README: document pointer comparison assumption
[gnulib.git] / ChangeLog
1 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         README: document pointer comparison assumption
4         * README (Portability guidelines): Document assumption about
5         pointer comparisons, in response to a recent bug-gnulib comment by
6         Jeffrey Kegler.
7
8 2012-04-12  Bruno Haible  <bruno@clisp.org>
9
10         Tests for module 'getrusage'.
11         * modules/getrusage-tests: New file.
12         * tests/test-getrusage.c: New file.
13
14         New module 'getrusage'.
15         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
16         warn-on-use.h.
17         (getrusage): New declaration.
18         * lib/getrusage.c: New file.
19         * m4/getrusage.m4: New file.
20         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21         is declared.
22         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23         HAVE_GETRUSAGE.
24         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
25         snippet/c++defs, snippet/warn-on-use.
26         (Makefile.am): Update generation of sys/resource.h. Substitute
27         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
28         * modules/getrusage: New file.
29         * doc/posix-functions/getrusage.texi: Mention the new module.
30
31 2012-04-12  Bruno Haible  <bruno@clisp.org>
32
33         Tests for module 'sys_resource'.
34         * modules/sys_resource-tests: New file.
35         * tests/test-sys_resource.c: New file.
36
37         New module 'sys_resource'.
38         * lib/sys_resource.in.h: New file.
39         * m4/sys_resource_h.m4: New file.
40         * modules/sys_resource: New file.
41         * doc/posix-headers/sys_resource.texi: Mention the new module.
42
43 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
44
45         ioctl: Fix compilation error on mingw.
46         * lib/ioctl.c: Include <windows.h>.
47         Also reported by Ray Satiro <raysatiro@yahoo.com>.
48
49 2012-04-04  Jim Meyering  <meyering@redhat.com>
50
51         regex: correct #pragma guard expression
52         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
53         not 4.3.  Correct its cpp guard expression.
54
55 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56
57         regex: remove unnecessary type punning
58         Problem reported by Vladimir Serbinenko in
59         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
60         * lib/regex.h (struct re_pattern_buffer): Change the type of
61         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
62         Fix comment to match code.
63         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
64         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
65         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
67         (set_regs):
68         Omit no-longer-necessary casts.
69
70 2012-04-03  Bruno Haible  <bruno@clisp.org>
71
72         Tests for module 'ilogbl'.
73         * modules/ilogbl-tests: New file.
74         * tests/test-ilogbl.c: New file.
75
76         New module 'ilogbl'.
77         * lib/math.in.h (ilogbl): New declaration.
78         * lib/ilogbl.c: New file.
79         * m4/ilogbl.m4: New file.
80         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
81         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
82         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
83         Split sed invocation, to avoid the limit of 100 substitutions of
84         HP-UX 'sed'.
85         * modules/ilogbl: New file.
86         * tests/test-math-c++.cc: Check the declaration of ilogbl.
87         * doc/posix-functions/ilogbl.texi: Mention the new module.
88
89 2012-04-03  Bruno Haible  <bruno@clisp.org>
90
91         Tests for module 'ilogbf'.
92         * modules/ilogbf-tests: New file.
93         * tests/test-ilogbf.c: New file.
94
95         New module 'ilogbf'.
96         * lib/math.in.h (ilogbf): New declaration.
97         * lib/ilogbf.c: New file.
98         * m4/ilogbf.m4: New file.
99         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
101         REPLACE_ILOGBF.
102         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
103         REPLACE_ILOGBF.
104         * modules/ilogbf: New file.
105         * tests/test-math-c++.cc: Check the declaration of ilogbf.
106         * doc/posix-functions/ilogbf.texi: Mention the new module.
107
108 2012-04-03  Bruno Haible  <bruno@clisp.org>
109
110         Tests for module 'ilogb'.
111         * modules/ilogb-tests: New file.
112         * tests/test-ilogb.c: New file.
113         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
114         tests/test-logb-ieee.h.
115
116         New module 'ilogb'.
117         * lib/math.in.h (ilogb): New declaration.
118         * lib/ilogb.c: New file.
119         * m4/ilogb.m4: New file.
120         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
122         REPLACE_ILOGB.
123         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
124         REPLACE_ILOGB.
125         * modules/ilogb: New file.
126         * tests/test-math-c++.cc: Check the declaration of ilogb.
127         * doc/posix-functions/ilogb.texi: Mention the new module.
128
129 2012-04-03  Bruno Haible  <bruno@clisp.org>
130
131         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
132         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
133         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
134         (main): Check their values.
135         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
136         problem.
137
138 2012-04-03  Bruno Haible  <bruno@clisp.org>
139
140         Tests for module 'logbl-ieee'.
141         * modules/logbl-ieee-tests: New file.
142         * tests/test-logbl-ieee.c: New file.
143
144         New module 'logbl-ieee'.
145         * modules/logbl-ieee: New file.
146
147         Tests for module 'logb-ieee'.
148         * modules/logb-ieee-tests: New file.
149         * tests/test-logb-ieee.c: New file.
150
151         New module 'logb-ieee'.
152         * modules/logb-ieee: New file.
153
154         Tests for module 'logbf-ieee'.
155         * modules/logbf-ieee-tests: New file.
156         * tests/test-logbf-ieee.c: New file.
157         * tests/test-logb-ieee.h: New file.
158
159         New module 'logbf-ieee'.
160         * modules/logbf-ieee: New file.
161
162 2012-04-03  Bruno Haible  <bruno@clisp.org>
163
164         Tests for module 'logbl'.
165         * modules/logbl-tests: New file.
166         * tests/test-logbl.c: New file.
167
168         New module 'logbl'.
169         * lib/math.in.h (logbl): New declaration.
170         * lib/logbl.c: New file.
171         * m4/logbl.m4: New file.
172         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
174         REPLACE_LOGBL.
175         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
176         REPLACE_LOGBL.
177         * modules/logbl: New file.
178         * tests/test-math-c++.cc: Check the declaration of logbl.
179         * doc/posix-functions/logbl.texi: Mention the new module.
180
181 2012-04-02  Bruno Haible  <bruno@clisp.org>
182
183         Tests for module 'logbf'.
184         * modules/logbf-tests: New file.
185         * tests/test-logbf.c: New file.
186
187         New module 'logbf'.
188         * lib/math.in.h (logbf): New declaration.
189         * lib/logbf.c: New file.
190         * m4/logbf.m4: New file.
191         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
193         REPLACE_LOGBF.
194         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
195         REPLACE_LOGBF.
196         * modules/logbf: New file.
197         * tests/test-math-c++.cc: Check the declaration of logbf.
198         * doc/posix-functions/logbf.texi: Mention the new module.
199
200 2012-04-02  Bruno Haible  <bruno@clisp.org>
201
202         logb tests: More tests.
203         * tests/test-logb.h: New file, based on tests/test-logb.c and
204         tests/test-frexp.h.
205         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
206         (main): Just invoke test_function.
207         * modules/logb-tests (Files): Add tests/test-logb.h,
208         tests/minus-zero.h, tests/randomd.c.
209         (Makefile.am): Add randomd.c to test_logb_SOURCES.
210
211         logb: Provide replacement and workarounds.
212         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
213         is 1.
214         * lib/logb.c: New file.
215         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
216         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
218         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
219         * modules/logb (Files): Add lib/logb.c.
220         (Depends-on): Add isfinite, frexp, isnand.
221         (configure.ac): Compile the replacement code logb.c if needed.
222         * tests/test-math-c++.cc: Check the declaration of logb.
223         * doc/posix-functions/logb.texi: Mention the replacement and the bug
224         with subnormal numbers.
225
226 2012-04-02  Bruno Haible  <bruno@clisp.org>
227
228         log10* tests: Speed up.
229         * tests/test-log10.h (test_function): Reduce amount of random numbers
230         to test.
231
232 2012-04-01  Bruno Haible  <bruno@clisp.org>
233
234         logf-ieee: Fix test whether logf works.
235         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
236
237 2012-04-01  Bruno Haible  <bruno@clisp.org>
238
239         log10l: Work around log10l-ieee test failure on IRIX 6.5.
240         * lib/log10l.c: Include <float.h>
241         (log10l): On IRIX, normalize the +Infinity value.
242         * modules/log10l (Depends-on): Add 'float'.
243         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
244         +Infinity.
245
246         log10f-ieee: Work around test failure on NetBSD 5.1.
247         * m4/log10f-ieee.m4: New file.
248         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
249         test whether log10f works with a negative argument. Replace it if not.
250         * lib/log10f.c (log10f): For negative arguments, return NaN.
251         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
252         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
253         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
254
255         log10f-ieee: Work around test failure on Solaris 9.
256         * modules/log10f-ieee (Depends-on): Add log10-ieee.
257         (configure.ac): Require gl_FUNC_LOG10F.
258
259         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
260         * m4/log10-ieee.m4: New file.
261         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
262         whether log10 works with a negative argument. Replace it if not.
263         * lib/log10.c (log10): For negative arguments, return NaN.
264         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
265         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
266         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
267
268         Tests for module 'log10l-ieee'.
269         * modules/log10l-ieee-tests: New file.
270         * tests/test-log10l-ieee.c: New file.
271
272         New module 'log10l-ieee'.
273         * modules/log10l-ieee: New file.
274
275         Tests for module 'log10-ieee'.
276         * modules/log10-ieee-tests: New file.
277         * tests/test-log10-ieee.c: New file.
278
279         New module 'log10-ieee'.
280         * modules/log10-ieee: New file.
281
282         Tests for module 'log10f-ieee'.
283         * modules/log10f-ieee-tests: New file.
284         * tests/test-log10f-ieee.c: New file.
285         * tests/test-log10-ieee.h: New file.
286
287         New module 'log10f-ieee'.
288         * modules/log10f-ieee: New file.
289
290 2012-04-01  Bruno Haible  <bruno@clisp.org>
291
292         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
293         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
294         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
295         workaround.
296         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
297         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
299         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
300         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
301         (Depends-on): Update conditions.
302         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
303         IRIX 6.5, OSF/1 5.1 problems.
304
305 2012-04-01  Bruno Haible  <bruno@clisp.org>
306
307         log10f: Work around OSF/1 5.1 bug.
308         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
309         * lib/log10f.c (log10f): If logf exists, use it and provide just the
310         workaround.
311         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
312         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
314         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
315         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
316         (Depends-on): Update conditions.
317         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
318
319 2012-04-01  Bruno Haible  <bruno@clisp.org>
320
321         log10: Work around OSF/1 5.1 bug.
322         * lib/math.in.h (log10): New declaration.
323         * lib/log10.c: New file.
324         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
325         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
326         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
328         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
329         * modules/log10 (Files): Add lib/log10.c.
330         (Depends-on): Add math.
331         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
332         * tests/test-math-c++.cc: Check the declaration of log10.
333         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
334
335 2012-03-31  Bruno Haible  <bruno@clisp.org>
336
337         log10l tests: More tests.
338         * modules/log10l-tests (Files): Add tests/test-log10l.h,
339         tests/minus-zero.h, tests/randoml.c.
340         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
341         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
342         (main): Invoke test_function.
343
344         log10f tests: More tests.
345         * modules/log10f-tests (Files): Add tests/test-log10.h,
346         tests/minus-zero.h, tests/randomf.c.
347         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
348         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
349         (main): Invoke test_function.
350
351         log10 tests: More tests.
352         * tests/test-log10.h: New file.
353         * modules/log10-tests (Files): Add tests/test-log10.h,
354         tests/minus-zero.h, tests/randomd.c.
355         (Makefile.am): Add randomd.c to test_log10_SOURCES.
356         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
357         (main): Invoke test_function.
358
359 2012-03-31  Simon Josefsson  <simon@josefsson.org>
360
361         fflush: Fix syntax error.
362         * lib/fflush.c: Include unused-parameter.h, needed for
363         _GL_UNUSED_PARAMETER.
364         * modules/fflush (Depends-on): Add snippet/unused-parameter.
365
366 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
367
368         regex: pacify GCC when compiling GRUB
369         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
370         a diagnostic.  Reported by Vladimir Serbinenko in
371         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
372
373 2012-03-29  Eric Blake  <eblake@redhat.com>
374
375         stdio: don't assume gets any more
376         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
377         support.
378         * modules/stdio (Makefile.am): Likewise.
379         * lib/stdio-read.c (gets): Likewise.
380         * tests/test-stdio-c++.cc: Likewise.
381         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
382         * lib/stdio.in.h (gets): Make warning occur in more places.
383         * doc/posix-functions/gets.texi (gets): Update documentation.
384         Reported by Christer Solskogen.
385
386         maint.mk: fix syntax checks without exclusions
387         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
388         Reported by Daniel P. Berrange.
389
390         strerror_r: avoid compiler warning
391         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
392         level.
393
394         fflush: avoid compiler warning
395         * lib/fflush.c (update_fpos_cache): Mark variables that are
396         potentially unused.
397
398 2012-03-25  Bruno Haible  <bruno@clisp.org>
399
400         Tests for module 'localeconv'.
401         * modules/localeconv-tests: New file.
402         * tests/test-localeconv.c: New file.
403
404         New module 'localeconv'.
405         * lib/locale.in.h (localeconv): New declaration.
406         * lib/localeconv.c: New file.
407         * m4/localeconv.m4: New file.
408         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
409         REPLACE_LOCALECONV.
410         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
411         REPLACE_LOCALECONV.
412         * modules/localeconv: New file.
413         * modules/nl_langinfo (Depends-on): Add localeconv.
414         * modules/human (Depends-on): Likewise.
415         * doc/posix-functions/localeconv.texi: Mention the new module.
416
417 2012-03-25  Bruno Haible  <bruno@clisp.org>
418
419         locale: Provide a complete 'struct lconv'.
420         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
421         'struct lconv' does not contain int_p_cs_precedes.
422         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
423         * doc/posix-headers/locale.texi: Update.
424
425         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
426         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
427         * doc/posix-headers/locale.texi: Update.
428
429         locale: Provide a working 'struct lconv'.
430         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
431         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
432         'struct lconv' does not even contain decimal_point.
433         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
434         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
435         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
436         * doc/posix-headers/locale.texi: Mention the problems with
437         'struct lconv'.
438         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
439
440 2012-03-24  Bruno Haible  <bruno@clisp.org>
441
442         Enable common subexpression optimization in GCC.
443         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
444         macros.
445         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
446         GCC attribute 'const'.
447         (uc_locale_language): Declare with GCC attribute 'pure'.
448         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
449         with GCC attribute 'const'.
450         * lib/unictype.in.h (uc_is_general_category_withtable,
451         uc_combining_class, uc_combining_class_name,
452         uc_combining_class_long_name, uc_bidi_class_name,
453         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
454         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
455         uc_decimal_value, uc_digit_value, uc_numeric_value,
456         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
457         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
458         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
459         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
460         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
461         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
462         Declare with GCC attribute 'const'.
463         (uc_general_category_name, uc_general_category_long_name,
464         uc_general_category_byname, uc_general_category,
465         uc_is_general_category, uc_combining_class_byname,
466         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
467         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
468         Declare with GCC attribute 'pure'.
469         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
470         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
471         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
472         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
473         with GCC attribute 'pure'.
474         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
475         'const'.
476         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
477         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
478         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
479         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
480         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
481         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
482         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
483         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
484         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
485         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
486         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
487         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
488         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
489         GCC attribute 'pure'.
490         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
491         'const'.
492         * lib/uniwidth.in.h (uc_width): Simplify declaration.
493         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
494         u32_strwidth): Declare with GCC attribute 'pure'.
495
496         Enable common subexpression optimization in GCC.
497         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
498         (alphasort): Declare with GCC attribute 'pure'.
499         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
500         (atoll): Declare with GCC attribute 'pure'.
501         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
502         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
503         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
504         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
505         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
506         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
507         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
508
509 2012-03-24  Bruno Haible  <bruno@clisp.org>
510
511         gnulib-tool: Avoid unintended error output from 'cmp'.
512         * gnulib-tool (func_add_file, func_update_file, func_import): Use
513         "cmp -s", not "cmp > /dev/null".
514
515 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
516
517         gnulib-tool: fix imprecise comments w.r.t. an automake bug
518
519         It's not just Automake versions < 1.9b that creates an empty
520         pkgdatadir at installation time if pkgdata_DATA is specified
521         to empty; modern automake versions do this as well, at least
522         until automake 1.11.4 (not yet released at the moment of writing,
523         but soon to appear).  That behaviour was generally considered a
524         feature rather than a bug, at least until this discussion:
525         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
526
527         See also automake bugs #10997 and #11030.
528
529         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
530         reference to relevant automake bug numbers.
531         (func_emit_tests_Makefile_am): Likewise.
532
533 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
534
535         announce-gen: use Digest::SHA when possible
536         * build-aux/announce-gen: Use Digest::SHA when possible, falling
537         back to Digest::SHA1 if necessary.
538
539 2012-03-20  Jim Meyering  <meyering@redhat.com>
540
541         tests: avoid gcc warnings about argv vs. const initializers
542         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
543         warnings about discarding 'const' qualifier from pointer target type.
544         * tests/test-posix_spawn2.c (main): Likewise.
545
546 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
547
548         README-release: simplify slightly
549         * top/README-release: Run "git checkout master" only once.
550
551 2012-03-15  Mark Wielaard  <mark@klomp.org>
552
553         git-merge-changelog: add specific example on how to use with hg.
554         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
555
556 2012-03-18  Mark Wielaard  <mark@klomp.org>
557
558         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
559
560 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
561
562         git-version-gen: don't let "prefix" envvar cause trouble
563         * build-aux/git-version-gen (prefix): Initialize properly,
564         so as not to use a value specified via the environment.
565         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
566
567 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
568
569         regex: diagnose too-large repeat counts in EREs
570         Previously, the code did not diagnose the too-large repeat count
571         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
572         as if it were 'b\{1000000000}', which is unexpected.
573         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
574         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
575         is a reasonable one for this problem.  Another option would be to
576         create a new REG_OVERFLOW error for repeat counts that are too large.
577         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
578         count is too large, so that the caller can distinguish the two cases.
579         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
580         "Too large" return code, and that repeat counts are one example of this.
581
582 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
583
584         doc: some glibc x32 integer width issues
585         * doc/posix-headers/sys_types.texi (sys/types.h):
586         * doc/posix-headers/time.texi (time.h):
587         Mention that glibc x32 does not conform to POSIX in a couple of
588         areas related to integer widths.
589
590 2012-03-15  Bruno Haible  <bruno@clisp.org>
591
592         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
593         * lib/fma.c (VOLATILE): New macro.
594         (FUNC): Use it to work around a GCC compiler bug.
595
596 2012-03-13  Bruno Haible  <bruno@clisp.org>
597
598         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
599         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
600         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
601         REPLACE_HYPOTL to 1.
602         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
603
604 2012-03-13  Bruno Haible  <bruno@clisp.org>
605
606         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
607         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
608         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
609         REPLACE_REMAINDERL to 1.
610         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
611         bug.
612
613 2012-03-13  Bruno Haible  <bruno@clisp.org>
614
615         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
616         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
617         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
618         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
619         too big rounding errors.
620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
621         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
622         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
623         (Depends-on): Update conditions.
624         * tests/test-sqrtl.c (my_ldexpl): New function.
625         (main): Add test of a particular value.
626         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
627
628 2012-03-13  Pádraig Brady  <P@draigBrady.com>
629
630         doc: Update timer_* platform portability notes.
631         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
632         that always return ENOSYS.
633         * doc/posix-functions/timer_delete.texi: Likewise.
634         * doc/posix-functions/timer_gettime.texi: Likewise.
635         * doc/posix-functions/timer_settime.texi: Likewise.
636
637 2012-03-13  Bruno Haible  <bruno@clisp.org>
638
639         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
640         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
641         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
642         REPLACE_CBRTL to 1.
643         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
644
645 2012-03-13  Bruno Haible  <bruno@clisp.org>
646
647         remainderl: Avoid compilation error on AIX >= 5.2.
648         * lib/math.in.h (remainderl): Undefine macro from the system header.
649
650 2012-03-13  Bruno Haible  <bruno@clisp.org>
651
652         Avoid compilation errors with MSVC option -fp:strict.
653         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
654         * lib/cbrtf.c: Likewise.
655         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
656
657 2012-03-12  Bruno Haible  <bruno@clisp.org>
658
659         uninorm: Don't crash in out-of-memory conditions.
660         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
661         gracefully.
662         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
663         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
664
665 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
666
667         quote: fix syntax-check
668         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
669         also exports quote_quoting_options.
670
671 2012-03-12  Simon Josefsson  <simon@josefsson.org>
672
673         Collapse list of copyright years to ranges.  See
674         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
675         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
676         build-aux/csharpexec.sh.in, build-aux/gnupload,
677         build-aux/install-reloc, build-aux/javacomp.sh.in,
678         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
679         build-aux/move-if-change, build-aux/reloc-ldflags,
680         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
681
682 2012-03-11  Bruno Haible  <bruno@clisp.org>
683
684         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
685         * m4/log2f-ieee.m4: New file.
686         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
687         whether log2f works with a minus zero argument. Replace it if not.
688         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
689         (Depends-on): Add log2-ieee.
690         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
691         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
692
693         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
694         * m4/log2-ieee.m4: New file.
695         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
696         whether log2 works with a minus zero argument. Replace it if not.
697         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
698         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
699         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
700
701         Tests for module 'log2l-ieee'.
702         * modules/log2l-ieee-tests: New file.
703         * tests/test-log2l-ieee.c: New file.
704
705         New module 'log2l-ieee'.
706         * modules/log2l-ieee: New file.
707
708         Tests for module 'log2-ieee'.
709         * modules/log2-ieee-tests: New file.
710         * tests/test-log2-ieee.c: New file.
711
712         New module 'log2-ieee'.
713         * modules/log2-ieee: New file.
714
715         Tests for module 'log2f-ieee'.
716         * modules/log2f-ieee-tests: New file.
717         * tests/test-log2f-ieee.c: New file.
718         * tests/test-log2-ieee.h: New file.
719
720         New module 'log2f-ieee'.
721         * modules/log2f-ieee: New file.
722
723 2012-03-11  Bruno Haible  <bruno@clisp.org>
724
725         Tests for module 'log2l'.
726         * modules/log2l-tests: New file.
727         * tests/test-log2l.c: New file.
728
729         New module 'log2l'.
730         * lib/math.in.h (log2l): New declaration.
731         * lib/log2l.c: New file.
732         * m4/log2l.m4: New file.
733         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
735         REPLACE_LOG2L.
736         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
737         REPLACE_LOG2L.
738         * modules/log2l: New file.
739         * tests/test-math-c++.cc: Check the declaration of log2l.
740         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
741         and OSF/1 problems.
742
743 2012-03-11  Bruno Haible  <bruno@clisp.org>
744
745         Tests for module 'log2f'.
746         * modules/log2f-tests: New file.
747         * tests/test-log2f.c: New file.
748
749         New module 'log2f'.
750         * lib/math.in.h (log2f): New declaration.
751         * lib/log2f.c: New file.
752         * m4/log2f.m4: New file.
753         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
755         REPLACE_LOG2F.
756         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
757         REPLACE_LOG2F.
758         * modules/log2f: New file.
759         * tests/test-math-c++.cc: Check the declaration of log2f.
760         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
761         and OSF/1 and Cygwin problems.
762
763 2012-03-11  Bruno Haible  <bruno@clisp.org>
764
765         Tests for module 'log2'.
766         * modules/log2-tests: New file.
767         * tests/test-log2.c: New file.
768         * tests/test-log2.h: New file.
769
770         New module 'log2'.
771         * lib/math.in.h (log2): New declaration.
772         * lib/log2.c: New file.
773         * m4/log2.m4: New file.
774         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
776         REPLACE_LOG2.
777         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
778         REPLACE_LOG2.
779         * modules/log2: New file.
780         * tests/test-math-c++.cc: Check the declaration of log2.
781         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
782         and OSF/1 and Cygwin problems.
783
784 2012-03-11  Bruno Haible  <bruno@clisp.org>
785
786         exp2* tests: More tests.
787         * tests/test-exp2.h (test_function): Test all integral arguments that
788         don't need to overflow or denormalized numbers.
789         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
790         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
791         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
792
793 2012-03-10  Bruno Haible  <bruno@clisp.org>
794
795         log1pl-ieee: Work around test failure on AIX 7.1.
796         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
797
798         log1pl-ieee: Work around test failure on IRIX 6.5.
799         * m4/log1pl-ieee.m4: New file.
800         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
801         test whether log1pl works with a minus zero argument. Replace it if
802         not.
803         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
805         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
806         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
807         (Depends-on): Update conditions.
808         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
809         m4/signbit.m4.
810         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
811         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
812
813         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
814         * m4/log1pf-ieee.m4: New file.
815         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
816         test whether log1pf works with a minus zero argument. Replace it if
817         not.
818         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
819         m4/signbit.m4.
820         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
821         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
822
823         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
824         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
825         (configure.ac): Require gl_FUNC_LOG1PF.
826
827         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
828         * m4/log1p-ieee.m4: New file.
829         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
830         whether log1p works with a minus zero argument. Replace it if not.
831         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
833         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
834         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
835         (Depends-on): Update conditions.
836         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
837         m4/signbit.m4.
838         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
839         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
840
841         Tests for module 'log1pl-ieee'.
842         * modules/log1pl-ieee-tests: New file.
843         * tests/test-log1pl-ieee.c: New file.
844
845         New module 'log1pl-ieee'.
846         * modules/log1pl-ieee: New file.
847
848         Tests for module 'log1p-ieee'.
849         * modules/log1p-ieee-tests: New file.
850         * tests/test-log1p-ieee.c: New file.
851
852         New module 'log1p-ieee'.
853         * modules/log1p-ieee: New file.
854
855         Tests for module 'log1pf-ieee'.
856         * modules/log1pf-ieee-tests: New file.
857         * tests/test-log1pf-ieee.c: New file.
858         * tests/test-log1p-ieee.h: New file.
859
860         New module 'log1pf-ieee'.
861         * modules/log1pf-ieee: New file.
862
863 2012-03-10  Bruno Haible  <bruno@clisp.org>
864
865         Tests for module 'log1pl'.
866         * modules/log1pl-tests: New file.
867         * tests/test-log1pl.c: New file.
868
869         New module 'log1pl'.
870         * lib/math.in.h (log1pl): New declaration.
871         * lib/log1pl.c: New file.
872         * m4/log1pl.m4: New file.
873         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
875         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
876         * modules/log1pl: New file.
877         * tests/test-math-c++.cc: Check the declaration of log1pl.
878         * doc/posix-functions/log1pl.texi: Mention the new module.
879
880 2012-03-10  Bruno Haible  <bruno@clisp.org>
881
882         Tests for module 'log1pf'.
883         * modules/log1pf-tests: New file.
884         * tests/test-log1pf.c: New file.
885
886         New module 'log1pf'.
887         * lib/math.in.h (log1pf): New declaration.
888         * lib/log1pf.c: New file.
889         * m4/log1pf.m4: New file.
890         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
892         REPLACE_LOG1PF.
893         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
894         REPLACE_LOG1PF.
895         * modules/log1pf: New file.
896         * tests/test-math-c++.cc: Check the declaration of log1pf.
897         * doc/posix-functions/log1pf.texi: Mention the new module.
898
899 2012-03-10  Bruno Haible  <bruno@clisp.org>
900
901         log1p tests: More tests.
902         * tests/test-log1p.h: New file.
903         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
904         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
905         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
906         (main): Invoke test_function.
907
908         log1p: Provide replacement for Minix and MSVC.
909         * lib/math.in.h (log1p): New declaration.
910         * lib/log1p.c: New file.
911         * m4/log1p.m4: New file.
912         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
914         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
915         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
916         (Depends-on): Add math, isnand, log, round.
917         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
918         HAVE_LOG1P is 0.
919         * tests/test-math-c++.cc: Check the declaration of log1p.
920         * doc/posix-functions/log1p.texi: Mention the replacement.
921
922 2012-03-10  Bruno Haible  <bruno@clisp.org>
923
924         math tests: Small simplification.
925         * tests/test-exp.h (test_function): Use the same err_bound for
926         'double' on platforms with sizeof (long double) == sizeof (double)
927         than on platforms with sizeof (long double) > sizeof (double).
928         * tests/test-exp2.h (test_function): Likewise.
929         * tests/test-expm1.h (test_function): Likewise.
930         * tests/test-log.h (test_function): Likewise.
931
932 2012-03-10  Bruno Haible  <bruno@clisp.org>
933
934         Fix some comments.
935         * lib/expl.c: Fix an ambiguous comment.
936         * lib/expm1.c: Likewise.
937         * lib/expm1l.c: Likewise.
938         * lib/exp2.c: Likewise.
939         * lib/exp2l.c: Likewise.
940
941 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
942
943         regex: allow inclusion of <regex.h> before <limits.h>
944         Without this patch, portable programs had to include <limits.h> before
945         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
946         I ran into this problem with a test version of GNU grep on Solaris 8.
947         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
948         This is done conditionally so that this change can be merged
949         back to glibc.
950         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
951         using the included regex.
952
953         fts: depend on fdopendir
954         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
955         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
956         problem was introduced when fdopendir was split out.
957
958 2012-03-10  Bruno Haible  <bruno@clisp.org>
959
960         Remove unused variables.
961         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
962         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
963
964 2012-03-10  Bruno Haible  <bruno@clisp.org>
965
966         isnanf-nolibm: Fix last commit.
967         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
968
969         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
970         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
971
972 2012-03-10  Bruno Haible  <bruno@clisp.org>
973
974         logf-ieee: Work around test failure on NetBSD 5.1.
975         * m4/logf-ieee.m4: New file.
976         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
977         whether logf works with a negative argument. Replace it if not.
978         * lib/logf.c (logf): For negative arguments, return NaN.
979         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
980         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
981         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
982
983         logf-ieee: Work around test failure on Solaris 9.
984         * modules/logf-ieee (Depends-on): Add log-ieee.
985         (configure.ac): Require gl_FUNC_LOGF.
986
987         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
988         * m4/log-ieee.m4: New file.
989         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
990         log works with a negative argument. Replace it if not.
991         * lib/log.c (log): For negative arguments, return NaN.
992         * modules/log-ieee (Files): Add m4/log-ieee.m4.
993         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
994         * doc/posix-functions/log.texi: Mention the log-ieee module.
995
996         Tests for module 'logl-ieee'.
997         * modules/logl-ieee-tests: New file.
998         * tests/test-logl-ieee.c: New file.
999
1000         New module 'logl-ieee'.
1001         * modules/logl-ieee: New file.
1002
1003         Tests for module 'log-ieee'.
1004         * modules/log-ieee-tests: New file.
1005         * tests/test-log-ieee.c: New file.
1006
1007         New module 'log-ieee'.
1008         * modules/log-ieee: New file.
1009
1010         Tests for module 'logf-ieee'.
1011         * modules/logf-ieee-tests: New file.
1012         * tests/test-logf-ieee.c: New file.
1013         * tests/test-log-ieee.h: New file.
1014
1015         New module 'logf-ieee'.
1016         * modules/logf-ieee: New file.
1017
1018 2012-03-10  Bruno Haible  <bruno@clisp.org>
1019
1020         log: Fix bug introduced on 2012-03-09.
1021         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1022
1023 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1024
1025         timer-time: link explicitly with pthreads on glibc
1026         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1027         to support static linking, when newer glibc is
1028         detected, as that contains pthread emulation of
1029         POSIX timer functions where required.
1030         * modules/timer-time: Depend on threadlib to
1031         pull in the appropriate library to link.
1032
1033 2012-03-10  Bruno Haible  <bruno@clisp.org>
1034
1035         log* tests: More tests.
1036         * tests/test-log.h: New file.
1037         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1038         (main): Invoke test_function.
1039         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1040         (main): Invoke test_function.
1041         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1042         (main): Invoke test_function.
1043         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1044         tests/randomd.c.
1045         (Makefile.am): Add randomd.c to test_log_SOURCES.
1046         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1047         tests/randomf.c.
1048         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1049         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1050         tests/randoml.c.
1051         (Depends-on): Add 'float'.
1052         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1053
1054 2012-03-09  Bruno Haible  <bruno@clisp.org>
1055
1056         logl: Work around OSF/1 5.1 bug.
1057         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1058         * lib/logl.c (logl): If logl exists, use it and provide just the
1059         workaround.
1060         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1061         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1063         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1064         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1065         (Depends-on): Update conditions.
1066         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1067
1068 2012-03-09  Bruno Haible  <bruno@clisp.org>
1069
1070         logf: Work around OSF/1 5.1 bug.
1071         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1072         * lib/logf.c (logf): If logf exists, use it and provide just the
1073         workaround.
1074         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1075         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1077         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1078         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1079         (Depends-on): Update conditions.
1080         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1081
1082 2012-03-09  Bruno Haible  <bruno@clisp.org>
1083
1084         log: Work around OSF/1 5.1 bug.
1085         * lib/math.in.h (log): New declaration.
1086         * lib/log.c: New file.
1087         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1088         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1089         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1091         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1092         * modules/log (Files): Add lib/log.c.
1093         (Depends-on): Add math.
1094         (configure.ac): If REPLACE_LOG is 1, compile an override.
1095         * tests/test-math-c++.cc: Check the declaration of log.
1096         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1097
1098 2012-03-09  Jim Meyering  <meyering@redhat.com>
1099
1100         readtokens.c: adjust wording in a comment
1101         * lib/readtokens.c: Insert omitted "that" in a comment.
1102
1103 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1104
1105         modechange: add notations +40, 00440, etc.
1106         * lib/modechange.c (mode_compile): Support new notations
1107         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1108
1109 2012-03-08  Bruno Haible  <bruno@clisp.org>
1110
1111         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1112         * m4/exp2l-ieee.m4: New file.
1113         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1114         test whether exp2l works with a NaN argument and with a negative
1115         infinity argument. Replace it if not.
1116         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1118         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1119         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1120         (Depends-on): Update conditions.
1121         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1122         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1123         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1124
1125         Tests for module 'exp2l-ieee'.
1126         * modules/exp2l-ieee-tests: New file.
1127         * tests/test-exp2l-ieee.c: New file.
1128
1129         New module 'exp2l-ieee'.
1130         * modules/exp2l-ieee: New file.
1131
1132         Tests for module 'exp2-ieee'.
1133         * modules/exp2-ieee-tests: New file.
1134         * tests/test-exp2-ieee.c: New file.
1135
1136         New module 'exp2-ieee'.
1137         * modules/exp2-ieee: New file.
1138
1139         Tests for module 'exp2f-ieee'.
1140         * modules/exp2f-ieee-tests: New file.
1141         * tests/test-exp2f-ieee.c: New file.
1142         * tests/test-exp2-ieee.h: New file.
1143
1144         New module 'exp2f-ieee'.
1145         * modules/exp2f-ieee: New file.
1146
1147 2012-03-08  Bruno Haible  <bruno@clisp.org>
1148
1149         Tests for module 'exp2l'.
1150         * modules/exp2l-tests: New file.
1151         * tests/test-exp2l.c: New file.
1152
1153         New module 'exp2l'.
1154         * lib/math.in.h (exp2l): New declaration.
1155         * lib/exp2l.c: New file.
1156         * lib/expl-table.c: New file, extracted from lib/expl.c.
1157         * lib/expl.c (gl_expl_table): New declaration.
1158         (expl): Remove expl_table. Update reference.
1159         * m4/exp2l.m4: New file.
1160         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1162         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1163         * modules/exp2l: New file.
1164         * modules/expl (Files): Add lib/expl-table.c.
1165         (configure.ac): Compile also expl-table.c.
1166         * tests/test-math-c++.cc: Check the declaration of exp2l.
1167         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1168         problem.
1169
1170 2012-03-08  Bruno Haible  <bruno@clisp.org>
1171
1172         Tests for module 'exp2f'.
1173         * modules/exp2f-tests: New file.
1174         * tests/test-exp2f.c: New file.
1175
1176         New module 'exp2f'.
1177         * lib/math.in.h (exp2f): New declaration.
1178         * lib/exp2f.c: New file.
1179         * m4/exp2f.m4: New file.
1180         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1182         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1183         * modules/exp2f: New file.
1184         * tests/test-math-c++.cc: Check the declaration of exp2f.
1185         * doc/posix-functions/exp2f.texi: Mention the new module and the
1186         IRIX problem.
1187
1188 2012-03-08  Bruno Haible  <bruno@clisp.org>
1189
1190         Tests for module 'exp2'.
1191         * modules/exp2-tests: New file.
1192         * tests/test-exp2.c: New file.
1193         * tests/test-exp2.h: New file.
1194
1195         New module 'exp2'.
1196         * lib/math.in.h (exp2): New declaration.
1197         * lib/exp2.c: New file.
1198         * m4/exp2.m4: New file.
1199         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1201         REPLACE_EXP2.
1202         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1203         REPLACE_EXP2.
1204         * modules/exp2: New file.
1205         * tests/test-math-c++.cc: Check the declaration of exp2.
1206         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1207         and OpenBSD problems.
1208
1209 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1210
1211         savedir: fix comment typo
1212         * lib/savedir.c (savedirstream): Fix typo in comment.
1213
1214 2012-03-08  Bruno Haible  <bruno@clisp.org>
1215
1216         test-readtokens.c: use const; remove unwarranted cast
1217         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1218
1219 2012-03-08  Bruno Haible  <bruno@clisp.org>
1220
1221         fmal: Avoid compilation error on AIX.
1222         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1223         AIX 5.2..7.1.
1224
1225 2012-03-08  Bruno Haible  <bruno@clisp.org>
1226
1227         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1228         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1229         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1230         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1231         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1232         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1233         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1234
1235 2012-03-08  Bruno Haible  <bruno@clisp.org>
1236
1237         remainderf: Override buggy system function on IRIX 6.5.
1238         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1239         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1240         when it exists.
1241         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1242
1243 2012-03-08  Jim Meyering  <meyering@redhat.com>
1244
1245         test-readtokens.c: avoid const-related compilation warnings
1246         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1247
1248 2012-03-07  Jim Meyering  <meyering@redhat.com>
1249             Bruno Haible  <bruno@clisp.org>
1250
1251         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1252         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1253         tests/randomd.c.
1254         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1255         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1256         tests/randoml.c.
1257         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1258
1259 2012-03-07  Bruno Haible  <bruno@clisp.org>
1260
1261         expm1l: Avoid compilation error on AIX.
1262         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1263         AIX 5.2..7.1.
1264
1265 2012-03-07  Bruno Haible  <bruno@clisp.org>
1266
1267         expm1l: Don't override undeclared system function on IRIX 6.5.
1268         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1269         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1270         it exists. Set HAVE_DECL_EXPM1L.
1271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1272         HAVE_EXPM1L.
1273         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1274         HAVE_EXPM1L.
1275         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1276
1277 2012-03-07  Bruno Haible  <bruno@clisp.org>
1278
1279         remainderl: Don't override undeclared system function on IRIX 6.5.
1280         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1281         HAVE_REMAINDERL.
1282         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1283         declared when it exists. Set HAVE_DECL_REMAINDERL.
1284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1285         not HAVE_REMAINDERL.
1286         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1287         HAVE_REMAINDERL.
1288         * doc/posix-functions/remainderl.texi: Mention missing declaration
1289         problem.
1290
1291 2012-03-07  Bruno Haible  <bruno@clisp.org>
1292
1293         rintf: Don't override undeclared system function on IRIX 6.5.
1294         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1295         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1296         exists. Set HAVE_DECL_RINTF.
1297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1298         HAVE_RINTF.
1299         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1300         HAVE_RINTF.
1301         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1302
1303 2012-03-07  Bruno Haible  <bruno@clisp.org>
1304
1305         roundl: Avoid compilation error on AIX.
1306         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1307         AIX 5.2..7.1.
1308
1309 2012-03-07  Bruno Haible  <bruno@clisp.org>
1310
1311         roundl: Don't override undeclared system function on IRIX 6.5.
1312         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1313         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1314         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1315         * modules/roundl (configure.ac): For replacement code, test
1316         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1317         (Depends-on): Update conditions.
1318         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1319
1320 2012-03-07  Bruno Haible  <bruno@clisp.org>
1321
1322         roundf: Don't override undeclared system function on IRIX 6.5.
1323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1324         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1325         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1326         * modules/roundf (configure.ac): For replacement code, test
1327         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1328         (Depends-on): Update conditions.
1329         * modules/roundf-ieee (Depends-on): Update conditions.
1330         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1331
1332 2012-03-07  Bruno Haible  <bruno@clisp.org>
1333
1334         round: Don't override undeclared system function on IRIX 6.5.
1335         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1336         argument.
1337         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1338         also when it is not declared. Set HAVE_ROUND. For replacement code,
1339         test HAVE_ROUND, not HAVE_DECL_ROUND.
1340         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1341         not HAVE_DECL_ROUND.
1342         (Depends-on): Update conditions.
1343         * modules/round-ieee (Depends-on): Update conditions.
1344         * doc/posix-functions/round.texi: Mention the IRIX problem.
1345
1346 2012-03-07  Bruno Haible  <bruno@clisp.org>
1347
1348         copysignf: Don't override undeclared system function on IRIX 6.5.
1349         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1350         HAVE_COPYSIGNF.
1351         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1352         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1354         not HAVE_COPYSIGNF.
1355         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1356         HAVE_COPYSIGNF.
1357         * doc/posix-functions/copysignf.texi: Mention missing declaration
1358         problem.
1359
1360 2012-03-07  Jim Meyering  <meyering@redhat.com>
1361
1362         readtokens: add tests
1363         * modules/readtokens-tests: New file.
1364         * tests/test-readtokens.c: New file.
1365
1366 2012-03-07  Jim Meyering  <meyering@redhat.com>
1367
1368         quotearg: the module must now include quote.h
1369         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1370         So must the module.
1371         * modules/quotearg (Files): Add quote.h.
1372
1373 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         readtokens: avoid core dumps with unusual calling patterns
1376         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1377         * lib/readtokens.c: Include limits.h.
1378         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1379         (readtoken): Don't cache the delimiters; the cache code was buggy
1380         if !delim && saved_delim, or if the new n_delim differs from the old.
1381         Also, it wasn't thread-safe.
1382
1383 2012-03-07  Bruno Haible  <bruno@clisp.org>
1384
1385         quote: Adhere to common module description layout.
1386         * modules/quote (Makefile.am): Add back empty section.
1387
1388 2012-03-06  Akim Demaille  <demaille@gostai.com>
1389
1390         quote: fuse into quotearg
1391         This patch is made for the benefit of Bison.
1392         quote does not leave the choice of the quoting style to the user.
1393         quoting_style provides poor customizability, yet quoting_options,
1394         which is very rich, is hidden inside quotearg.c.  So in order to
1395         allow quote customization, move its implementation to quotearg.c.
1396         * lib/quote.c: Remove.
1397         * modules/quote: Adjust.
1398         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1399         warning: provide all the members of literal structs.
1400         (quote_quoting_options): New.
1401         (quote, quote_n): Import implementation from quote.c.
1402         * lib/quote.h: Import the comments from quote.c.
1403         (quote_quoting_options): New.
1404
1405 2012-03-06  Bruno Haible  <bruno@clisp.org>
1406
1407         Tests for module 'expm1l-ieee'.
1408         * modules/expm1l-ieee-tests: New file.
1409         * tests/test-expm1l-ieee.c: New file.
1410
1411         New module 'expm1l-ieee'.
1412         * modules/expm1l-ieee: New file.
1413
1414         Tests for module 'expm1f-ieee'.
1415         * modules/expm1f-ieee-tests: New file.
1416         * tests/test-expm1f-ieee.c: New file.
1417
1418         New module 'expm1f-ieee'.
1419         * modules/expm1f-ieee: New file.
1420
1421         Tests for module 'expm1-ieee'.
1422         * modules/expm1-ieee-tests: New file.
1423         * tests/test-expm1-ieee.c: New file.
1424         * tests/test-expm1-ieee.h: New file.
1425
1426         New module 'expm1-ieee'.
1427         * modules/expm1-ieee: New file.
1428         * m4/expm1-ieee.m4: New file.
1429         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1430         whether expm1 works with a minus zero argument. Replace it if not.
1431         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1433         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1434         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1435         (Depends-on): Update conditions.
1436         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1437         AIX problem.
1438
1439 2012-03-06  Bruno Haible  <bruno@clisp.org>
1440
1441         Work around expm1f bug on IRIX 6.5.
1442         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1443         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1444         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1445         not work.
1446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1447         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1448         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1449         (Depends-on): Update conditions.
1450         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1451
1452 2012-03-06  Bruno Haible  <bruno@clisp.org>
1453
1454         Tests for module 'expm1l'.
1455         * modules/expm1l-tests: New file.
1456         * tests/test-expm1l.c: New file.
1457
1458         New module 'expm1l'.
1459         * lib/math.in.h (expm1l): New declaration.
1460         * lib/expm1l.c: New file.
1461         * m4/expm1l.m4: New file.
1462         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1464         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1465         * modules/expm1l: New file.
1466         * tests/test-math-c++.cc: Check the declaration of expm1l.
1467         * doc/posix-functions/expm1l.texi: Mention the new module.
1468
1469 2012-03-06  Bruno Haible  <bruno@clisp.org>
1470
1471         Tests for module 'expm1f'.
1472         * modules/expm1f-tests: New file.
1473         * tests/test-expm1f.c: New file.
1474
1475         New module 'expm1f'.
1476         * lib/math.in.h (expm1f): New declaration.
1477         * lib/expm1f.c: New file.
1478         * m4/expm1f.m4: New file.
1479         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1481         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1482         * modules/expm1f: New file.
1483         * tests/test-math-c++.cc: Check the declaration of expm1f.
1484         * doc/posix-functions/expm1f.texi: Mention the new module.
1485
1486 2012-03-06  Bruno Haible  <bruno@clisp.org>
1487
1488         Tests for module 'expm1'.
1489         * modules/expm1-tests: New file.
1490         * tests/test-expm1.c: New file.
1491         * tests/test-expm1.h: New file.
1492
1493         New module 'expm1'.
1494         * lib/math.in.h (expm1): New declaration.
1495         * lib/expm1.c: New file.
1496         * m4/expm1.m4: New file.
1497         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1499         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1500         * modules/expm1: New file.
1501         * tests/test-math-c++.cc: Check the declaration of expm1.
1502         * doc/posix-functions/expm1.texi: Mention the new module.
1503
1504 2012-03-06  Bruno Haible  <bruno@clisp.org>
1505
1506         math: Ensure declarations of math functions.
1507         * modules/acosf (Depends-on): Add 'extensions'.
1508         * modules/asinf (Depends-on): Likewise.
1509         * modules/atan2f (Depends-on): Likewise.
1510         * modules/atanf (Depends-on): Likewise.
1511         * modules/cbrt (Depends-on): Likewise.
1512         * modules/cbrtf (Depends-on): Likewise.
1513         * modules/cbrtl (Depends-on): Likewise.
1514         * modules/copysignf (Depends-on): Likewise.
1515         * modules/copysignl (Depends-on): Likewise.
1516         * modules/cosf (Depends-on): Likewise.
1517         * modules/coshf (Depends-on): Likewise.
1518         * modules/expf (Depends-on): Likewise.
1519         * modules/fabsf (Depends-on): Likewise.
1520         * modules/fabsl (Depends-on): Likewise.
1521         * modules/fmaf (Depends-on): Likewise.
1522         * modules/fmal (Depends-on): Likewise.
1523         * modules/fmodf (Depends-on): Likewise.
1524         * modules/fmodl (Depends-on): Likewise.
1525         * modules/frexpf (Depends-on): Likewise.
1526         * modules/frexpl (Depends-on): Likewise.
1527         * modules/hypot (Depends-on): Likewise.
1528         * modules/hypotf (Depends-on): Likewise.
1529         * modules/hypotl (Depends-on): Likewise.
1530         * modules/ldexpf (Depends-on): Likewise.
1531         * modules/ldexpl (Depends-on): Likewise.
1532         * modules/log10f (Depends-on): Likewise.
1533         * modules/log10l (Depends-on): Likewise.
1534         * modules/log1p (Depends-on): Likewise.
1535         * modules/logb (Depends-on): Likewise.
1536         * modules/logf (Depends-on): Likewise.
1537         * modules/modff (Depends-on): Likewise.
1538         * modules/modfl (Depends-on): Likewise.
1539         * modules/powf (Depends-on): Likewise.
1540         * modules/remainderf (Depends-on): Likewise.
1541         * modules/remainderl (Depends-on): Likewise.
1542         * modules/rintf (Depends-on): Likewise.
1543         * modules/rintl (Depends-on): Likewise.
1544         * modules/sinf (Depends-on): Likewise.
1545         * modules/sinhf (Depends-on): Likewise.
1546         * modules/sqrtf (Depends-on): Likewise.
1547         * modules/tanf (Depends-on): Likewise.
1548         * modules/tanhf (Depends-on): Likewise.
1549         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1550         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1551         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1552         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1553         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1554         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1555         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1556         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1557         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1558         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1559         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1560         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1561         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1562         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1563         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1564         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1565         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1566         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1567         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1568         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1569         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1570         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1571         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1572         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1574         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1575         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1576         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1577         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1578         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1579         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1580         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1581         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1582         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1583         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1584         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1585         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1586         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1587         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1588         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1589         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1590
1591 2012-03-06  Bruno Haible  <bruno@clisp.org>
1592
1593         math: Update module names in warnings.
1594         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1595         tanl): Use specific module name in warn-on-use warning.
1596
1597 2012-03-06  Bruno Haible  <bruno@clisp.org>
1598
1599         expl: Simplify computation.
1600         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1601
1602 2012-03-05  Bruno Haible  <bruno@clisp.org>
1603
1604         exp* tests: More tests.
1605         * tests/test-exp.h: New file.
1606         * tests/test-exp.c: Include <float.h> and test-exp.h.
1607         (main): Invoke test_function.
1608         * tests/test-expf.c: Include <float.h> and test-exp.h.
1609         (main): Invoke test_function.
1610         * tests/test-expl.c: Include <float.h> and test-exp.h.
1611         (main): Invoke test_function.
1612         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1613         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1614         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1615         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1616         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1617         (Depends-on): Add 'float'.
1618         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1619
1620         expl: Fix precision of computed result.
1621         * lib/expl.c: Completely rewritten.
1622         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1623         (Maintainer): Add me.
1624         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1625
1626 2012-03-05  Bruno Haible  <bruno@clisp.org>
1627
1628         cbrt* tests: More tests.
1629         * tests/test-cbrt.h: New file.
1630         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1631         (main): Invoke test_function.
1632         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1633         (main): Invoke test_function.
1634         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1635         (main): Invoke test_function.
1636         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1637         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1638         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1639         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1640         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1641         (Depends-on): Add 'float'.
1642         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1643
1644 2012-03-05  Bruno Haible  <bruno@clisp.org>
1645
1646         hypot* tests: More tests.
1647         * tests/test-hypot.h: New file, partially extracted from
1648         tests/test-hypotl.c.
1649         * tests/test-hypot.c: Include test-hypot.h.
1650         (main): Invoke test_function.
1651         * tests/test-hypotf.c: Include test-hypot.h.
1652         (main): Invoke test_function.
1653         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1654         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1655         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1656         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1657         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1658         tests/randomf.c.
1659         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1660         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1661         tests/randoml.c.
1662         (Depends-on): Add 'fpucw', 'float'.
1663         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1664
1665 2012-03-05  Bruno Haible  <bruno@clisp.org>
1666
1667         fpucw: Doc about FreeBSD.
1668         * lib/fpucw.h: Mention FreeBSD in comments.
1669
1670 2012-03-04  Bruno Haible  <bruno@clisp.org>
1671
1672         sqrt* tests: More tests.
1673         * tests/test-sqrt.h: New file.
1674         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1675         (main): Invoke test_function.
1676         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1677         (main): Invoke test_function.
1678         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1679         (main): Invoke test_function.
1680         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1681         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1682         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1683         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1684         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1685         (Depends-on): Add 'float'.
1686         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1687
1688 2012-03-04  Bruno Haible  <bruno@clisp.org>
1689
1690         remainder* tests: More tests.
1691         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1692         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1693         (main): Invoke test_function.
1694         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1695         (main): Invoke test_function.
1696         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1697         (main): Invoke test_function.
1698         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1699         tests/randomd.c.
1700         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1701         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1702         tests/randomf.c.
1703         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1704         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1705         tests/randoml.c.
1706         (Depends-on): Add 'float'.
1707         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1708
1709 2012-03-04  Bruno Haible  <bruno@clisp.org>
1710
1711         remainder, remainderf, remainderl: Fix computation for large quotients.
1712         * lib/remainder.c: Completely rewritten.
1713         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1714         USE_FLOAT.
1715         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1716         USE_LONG_DOUBLE.
1717         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1718         isnand, isinf. Remove round, fma.
1719         * modules/remainderf (Files): Add lib/remainder.c.
1720         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1721         Remove roundf, fmaf.
1722         * modules/remainderl (Files): Add lib/remainder.c.
1723         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1724         isinf. Remove roundl, fmal.
1725         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1726         REMAINDER_LIBM.
1727         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1728         REMAINDERF_LIBM.
1729         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1730         REMAINDERL_LIBM.
1731
1732 2012-03-04  Bruno Haible  <bruno@clisp.org>
1733
1734         fmod* tests: More tests.
1735         * tests/test-fmod.h (my_ldexp): New function.
1736         (test_function): Reduce amount of random numbers to test. Add tests
1737         of very large quotients x / y.
1738         * tests/test-fmod.c (MAX_EXP): New macro.
1739         * tests/test-fmodf.c (MAX_EXP): Likewise.
1740         * tests/test-fmodl.c (MAX_EXP): Likewise.
1741
1742 2012-03-04  Bruno Haible  <bruno@clisp.org>
1743
1744         fmod, fmodl: Fix computation for large quotients x / y.
1745         * lib/fmod.c: Completely rewritten.
1746         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1747         USE_LONG_DOUBLE.
1748         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1749         isnand. Remove fma.
1750         * modules/fmodl (Files): Add lib/fmod.c.
1751         (Depends-on): Add float, isfinite, signbit, fabsl,
1752         frexpl, ldexpl, isnanl. Remove fma.
1753         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1754         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1755
1756 2012-03-03  Bruno Haible  <bruno@clisp.org>
1757
1758         fmod* tests: More tests.
1759         * tests/test-fmod.h: New file.
1760         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1761         (main): Invoke test_function.
1762         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1763         (main): Invoke test_function.
1764         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1765         (main): Invoke test_function.
1766         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1767         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1768         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1769         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1770         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1771         (Depends-on): Add 'float'.
1772         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1773
1774 2012-03-03  Bruno Haible  <bruno@clisp.org>
1775
1776         rint* tests: More tests.
1777         * tests/test-rint.h: New file, partially extracted from
1778         tests/test-rintl.c.
1779         * tests/test-rint.c: Include test-rint.h.
1780         (main): Invoke test_function.
1781         * tests/test-rintf.c: Include test-rint.h.
1782         (main): Invoke test_function.
1783         * tests/test-rintl.c: Include test-rint.h.
1784         (main): Invoke test_function.
1785         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1786         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1787         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1788         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1789         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1790         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1791
1792 2012-03-03  Bruno Haible  <bruno@clisp.org>
1793
1794         modf* tests: More tests.
1795         * tests/test-modf.h: New file.
1796         * tests/test-modf.c: Include <float.h> and test-modf.h.
1797         (main): Invoke test_function.
1798         * tests/test-modff.c: Include <float.h> and test-modf.h.
1799         (main): Invoke test_function.
1800         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1801         (main): Invoke test_function.
1802         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1803         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1804         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1805         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1806         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1807         (Depends-on): Add 'float'.
1808         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1809
1810 2012-03-03  Bruno Haible  <bruno@clisp.org>
1811
1812         fabs* tests: More tests.
1813         * tests/test-fabs.h: New file, partially extracted from
1814         tests/test-fabsl.c.
1815         * tests/test-fabs.c (RANDOM): New macro.
1816         * tests/test-fabsf.c (RANDOM): New macro.
1817         * tests/test-fabsl.c (RANDOM): New macro.
1818         * modules/fabs-tests (Files): Add tests/randomd.c.
1819         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1820         * modules/fabsf-tests (Files): Add tests/randomf.c.
1821         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1822         * modules/fabsl-tests (Files): Add tests/randoml.c.
1823         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1824
1825 2012-03-03  Bruno Haible  <bruno@clisp.org>
1826
1827         ldexp* tests: More tests.
1828         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1829         * tests/test-ldexp.c (RANDOM): New macro.
1830         * tests/test-ldexpf.c (RANDOM): New macro.
1831         * tests/test-ldexpl.c (RANDOM): New macro.
1832         * modules/ldexp-tests (Files): Add tests/randomd.c.
1833         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1834         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1835         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1836         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1837         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1838
1839 2012-03-03  Bruno Haible  <bruno@clisp.org>
1840
1841         frexp* tests: More tests.
1842         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1843         * tests/test-frexp.c (RANDOM): New macro.
1844         * tests/test-frexpf.c (RANDOM): New macro.
1845         * tests/test-frexpl.c (RANDOM): New macro.
1846         * modules/frexp-tests (Files): Add tests/randomd.c.
1847         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1848         * modules/frexpf-tests (Files): Add tests/randomf.c.
1849         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1850         * modules/frexpl-tests (Files): Add tests/randoml.c.
1851         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1852
1853 2012-03-03  Bruno Haible  <bruno@clisp.org>
1854
1855         Support for pseudo-random numbers in tests.
1856         * tests/randomf.c: New file.
1857         * tests/randomd.c: New file.
1858         * tests/randoml.c: New file.
1859         * tests/macros.h (randomf, randomd, randoml): New declarations.
1860
1861 2012-03-03  Bruno Haible  <bruno@clisp.org>
1862
1863         frexp* tests: Refactor.
1864         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1865         * tests/test-frexp.c: Include and use it.
1866         * tests/test-frexpf.c: Likewise.
1867         * tests/test-frexpl.c: Likewise.
1868         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1869         * modules/frexpf-tests (Files): Likewise.
1870         * modules/frexpl-tests (Files): Likewise.
1871
1872 2012-03-02  Jim Meyering  <meyering@redhat.com>
1873
1874         maint: don't specify XZ_OPT=-9ev in dist-related rule
1875         Using xz's -9 option is warranted only if you have a very large
1876         tarball (see xz's documentation for the sizes vs. presets), and
1877         requires 64MiB of memory at decompression time.
1878         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1879         Automake's default of just "-e" is fine.  Override on a
1880         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1881
1882 2012-03-01  Eric Blake  <eblake@redhat.com>
1883
1884         maint.mk: allow announcement for non-gnulib project
1885         * maint.mk (announcement): Skip gnulib version if not used.
1886
1887 2012-03-01  Jim Meyering  <meyering@redhat.com>
1888
1889         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1890         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1891         envvar settings cannot interfere.  Otherwise, setting envvars like
1892         prohibit=foo require=bar, etc. would cause spurious test failures.
1893
1894 2012-03-01  Eric Blake  <eblake@redhat.com>
1895
1896         maint.mk: add per-line exclusions to prohibitions
1897         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1898         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1899         (sc_const_long_option): Use it.
1900
1901 2012-03-01  Bruno Haible  <bruno@clisp.org>
1902
1903         Tests for module 'expl-ieee'.
1904         * modules/expl-ieee-tests: New file.
1905         * tests/test-expl-ieee.c: New file.
1906
1907         New module 'expl-ieee'.
1908         * modules/expl-ieee: New file.
1909
1910         Tests for module 'exp-ieee'.
1911         * modules/exp-ieee-tests: New file.
1912         * tests/test-exp-ieee.c: New file.
1913
1914         New module 'exp-ieee'.
1915         * modules/exp-ieee: New file.
1916
1917         Tests for module 'expf-ieee'.
1918         * modules/expf-ieee-tests: New file.
1919         * tests/test-expf-ieee.c: New file.
1920         * tests/test-exp-ieee.h: New file.
1921
1922         New module 'expf-ieee'.
1923         * modules/expf-ieee: New file.
1924
1925 2012-02-29  Bruno Haible  <bruno@clisp.org>
1926
1927         cbrtl-ieee: Work around test failure on IRIX 6.5.
1928         * m4/cbrtl-ieee.m4: New file.
1929         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1930         test whether cbrtl works with a minus zero argument. Replace it if not.
1931         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1933         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1934         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1935         (Depends-on): Update conditions.
1936         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1937         m4/signbit.m4.
1938         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1939         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1940         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1941
1942         Tests for module 'cbrtl-ieee'.
1943         * modules/cbrtl-ieee-tests: New file.
1944         * tests/test-cbrtl-ieee.c: New file.
1945
1946         New module 'cbrtl-ieee'.
1947         * modules/cbrtl-ieee: New file.
1948
1949         Tests for module 'cbrt-ieee'.
1950         * modules/cbrt-ieee-tests: New file.
1951         * tests/test-cbrt-ieee.c: New file.
1952
1953         New module 'cbrt-ieee'.
1954         * modules/cbrt-ieee: New file.
1955
1956         Tests for module 'cbrtf-ieee'.
1957         * modules/cbrtf-ieee-tests: New file.
1958         * tests/test-cbrtf-ieee.c: New file.
1959         * tests/test-cbrt-ieee.h: New file.
1960
1961         New module 'cbrtf-ieee'.
1962         * modules/cbrtf-ieee: New file.
1963
1964 2012-02-29  Bruno Haible  <bruno@clisp.org>
1965
1966         cbrtf: Work around bug in IRIX 6.5 system function.
1967         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1968         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1969         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1970         work.
1971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1972         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1973         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1974         (Depends-on): Update conditions.
1975         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1976
1977 2012-02-29  Bruno Haible  <bruno@clisp.org>
1978
1979         Tests for module 'cbrtl'.
1980         * modules/cbrtl-tests: New file.
1981         * tests/test-cbrtl.c: New file.
1982
1983         New module 'cbrtl'.
1984         * lib/math.in.h (cbrtl): New declaration.
1985         * lib/cbrtl.c: New file.
1986         * m4/cbrtl.m4: New file.
1987         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1989         HAVE_DECL_CBRTL.
1990         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1991         HAVE_DECL_CBRTL.
1992         * modules/cbrtl: New file.
1993         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1994         * doc/posix-functions/cbrtl.texi: Mention the new module.
1995
1996 2012-02-29  Bruno Haible  <bruno@clisp.org>
1997
1998         Tests for module 'cbrtf'.
1999         * modules/cbrtf-tests: New file.
2000         * tests/test-cbrtf.c: New file.
2001
2002         New module 'cbrtf'.
2003         * lib/math.in.h (cbrtf): New declaration.
2004         * lib/cbrtf.c: New file.
2005         * m4/cbrtf.m4: New file.
2006         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2008         HAVE_DECL_CBRTF.
2009         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2010         HAVE_DECL_CBRTF.
2011         * modules/cbrtf: New file.
2012         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2013         * doc/posix-functions/cbrtf.texi: Mention the new module.
2014
2015 2012-02-29  Bruno Haible  <bruno@clisp.org>
2016
2017         cbrt: Provide replacement on MSVC and Minix.
2018         * lib/math.in.h (cbrt): New declaration.
2019         * lib/cbrt.c: New file.
2020         * m4/cbrt.m4: New file.
2021         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2023         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2024         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2025         (Depends-on): Add dependencies.
2026         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2027         * tests/test-math-c++.cc: Check the declaration of cbrt.
2028         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2029         replacement.
2030
2031 2012-02-29  Bruno Haible  <bruno@clisp.org>
2032
2033         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2034         * m4/hypotl-ieee.m4: New file.
2035         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2036         test whether hypotl works with mixed NaN and Infinity arguments.
2037         Replace it if not.
2038         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2040         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2041         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2042         (Depends-on): Update conditions.
2043         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2044         (Depends-on): Add hypot-ieee.
2045         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2046         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2047
2048         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2049         * m4/hypotf-ieee.m4: New file.
2050         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2051         test whether hypotf works with mixed NaN and Infinity arguments.
2052         Replace it if not.
2053         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2054         (Depends-on): Add hypot-ieee.
2055         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2056         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2057
2058         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2059         * lib/math.in.h (hypot): New declaration.
2060         * lib/hypot.c: New file.
2061         * m4/hypot-ieee.m4: New file.
2062         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2063         whether hypot works with mixed NaN and Infinity arguments. Replace it
2064         if not.
2065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2066         REPLACE_HYPOT.
2067         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2068         * modules/hypot (Files): Add lib/hypot.c.
2069         (Depends-on): Add dependencies.
2070         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2071         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2072         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2073         * tests/test-math-c++.cc: Check the declaration of hypot.
2074         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2075
2076         Tests for module 'hypotl-ieee'.
2077         * modules/hypotl-ieee-tests: New file.
2078         * tests/test-hypotl-ieee.c: New file.
2079
2080         New module 'hypotl-ieee'.
2081         * modules/hypotl-ieee: New file.
2082
2083         Tests for module 'hypot-ieee'.
2084         * modules/hypot-ieee-tests: New file.
2085         * tests/test-hypot-ieee.c: New file.
2086
2087         New module 'hypot-ieee'.
2088         * modules/hypot-ieee: New file.
2089
2090         Tests for module 'hypotf-ieee'.
2091         * modules/hypotf-ieee-tests: New file.
2092         * tests/test-hypotf-ieee.c: New file.
2093         * tests/test-hypot-ieee.h: New file.
2094
2095         New module 'hypotf-ieee'.
2096         * modules/hypotf-ieee: New file.
2097
2098 2012-02-29  Bruno Haible  <bruno@clisp.org>
2099
2100         Remove unused variables.
2101         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2102         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2103         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2104         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2105
2106 2012-02-29  Eric Blake  <eblake@redhat.com>
2107
2108         termios: fix pid_t always, not just for tcgetsid
2109         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2110         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2111         just when building tcgetsid.
2112
2113 2012-02-29  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'hypotl'.
2116         * modules/hypotl-tests: New file.
2117         * tests/test-hypotl.c: New file.
2118
2119         New module 'hypotl'.
2120         * lib/math.in.h (hypotl): New declaration.
2121         * lib/hypotl.c: New file.
2122         * m4/hypotl.m4: New file.
2123         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2125         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2126         * modules/hypotl: New file.
2127         * tests/test-math-c++.cc: Check the hypotl declaration.
2128         * doc/posix-functions/hypotl.texi: Mention the new module.
2129
2130 2012-02-29  Eric Blake  <eblake@redhat.com>
2131
2132         tcgetsid: fix cygwin header bug
2133         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2134
2135         docs: update cygwin progress
2136         * doc/posix-functions/llround.texi (llround): Added in cygwin
2137         1.7.8.
2138         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2139         * doc/glibc-functions/program_invocation_name.texi
2140         (program_invocation_name): Likewise.
2141         * doc/glibc-functions/program_invocation_short_name.texi
2142         (program_invocation_short_name): Likewise.
2143         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2144         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2145         Likewise.
2146         * doc/posix-functions/pthread_spin_destroy.texi
2147         (pthread_spin_destroy): Added in cygwin 1.7.10.
2148         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2149         Likewise.
2150         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2151         Likewise.
2152         * doc/posix-functions/pthread_spin_trylock.texi
2153         (pthread_spin_trylock): Likewise.
2154         * doc/posix-functions/pthread_spin_unlock.texi
2155         (pthread_spin_unlock): Likewise.
2156         * doc/posix-functions/pthread_setschedprio.texi
2157         (pthread_setschedprio): Likewise.
2158         * doc/posix-functions/pthread_attr_getstack.texi
2159         (pthread_attr_getstack): Likewise.
2160         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2161         (pthread_attr_getstackaddr): Likewise.
2162         * doc/glibc-functions/pthread_getattr_np.texi
2163         (pthread_getattr_np): Likewise.
2164         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2165         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2166         * doc/posix-functions/clock_settime.texi (clock_settime):
2167         Likewise.
2168         * doc/posix-functions/pthread_attr_getguardsize.texi
2169         (pthread_attr_getguardsize): Likewise.
2170         * doc/posix-functions/pthread_attr_setguardsize.texi
2171         (pthread_attr_setguardsize): Likewise.
2172         * doc/posix-functions/pthread_attr_setstack.texi
2173         (pthread_attr_setstack): Likewise.
2174         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2175         (pthread_attr_setstackaddr): Likewise.
2176         * doc/posix-functions/clock_getcpuclockid.texi
2177         (clock_getcpuclockid): Likewise.
2178         * doc/posix-functions/pthread_getcpuclockid.texi
2179         (pthread_getcpuclockid): Likewise.
2180         * doc/glibc-functions/error.texi (error): Likewise.
2181         * doc/glibc-functions/error_at_line.texi (error_at_line):
2182         Likewise.
2183         * doc/glibc-functions/error_message_count.texi
2184         (error_message_count): Likewise.
2185         * doc/glibc-functions/error_one_per_line.texi
2186         (error_one_per_line): Likewise.
2187         * doc/glibc-functions/error_print_progname.texi
2188         (error_print_progname): Likewise.
2189         * doc/posix-functions/pthread_condattr_getclock.texi
2190         (pthread_condattr_getclock): Likewise.
2191         * doc/posix-functions/pthread_condattr_setclock.texi
2192         (pthread_condattr_setclock): Likewise.
2193         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2194         Likewise.
2195         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2196         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2197         * doc/glibc-functions/get_current_dir_name.texi
2198         (get_current_dir_name): Likewise.
2199         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2200         Likewise.
2201         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2202         wrong return type.
2203         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2204         1.7.11.
2205
2206 2012-02-29  Bruno Haible  <bruno@clisp.org>
2207
2208         Tests for module 'hypotf'.
2209         * modules/hypotf-tests: New file.
2210         * tests/test-hypotf.c: New file.
2211
2212         New module 'hypotf'.
2213         * lib/math.in.h (hypotf): New declaration.
2214         * lib/hypotf.c: New file.
2215         * m4/hypotf.m4: New file.
2216         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2218         REPLACE_HYPOTF.
2219         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2220         REPLACE_HYPOTF.
2221         * modules/hypotf: New file.
2222         * tests/test-math-c++.cc: Check the hypotf declaration.
2223         * doc/posix-functions/hypotf.texi: Mention the new module.
2224
2225         hypot: Prepare for hypotf module.
2226         * m4/hypot.m4: New file.
2227         * modules/hypot (Files): Add m4/hypot.m4.
2228         (configure.ac): Invoke gl_FUNC_HYPOT.
2229
2230 2012-02-29  Bruno Haible  <bruno@clisp.org>
2231
2232         hypot tests: More tests.
2233         * tests/test-hypot.c: Include <float.h>.
2234         (main): Add tests about overflow and underflow.
2235
2236 2012-02-29  Bruno Haible  <bruno@clisp.org>
2237
2238         math code: Add comments.
2239         * lib/acosl.c: Add comment about related glibc source files.
2240         * lib/asinl.c: Likewise.
2241         * lib/atanl.c: Likewise.
2242         * lib/expl.c: Likewise.
2243         * lib/logl.c: Likewise.
2244         * lib/sincosl.c: Likewise.
2245         * lib/sinl.c: Likewise.
2246         * lib/tanl.c: Likewise.
2247         * lib/trigl.c: Likewise.
2248         * lib/cosl.c: Likewise. Fix comments.
2249
2250 2012-02-28  Bruno Haible  <bruno@clisp.org>
2251
2252         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2253         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2254         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2255         HUGE_VALL are defined.
2256         (numeric_equald): Renamed from numeric_equal.
2257         (numeric_equalf, numeric_equall): New functions.
2258         (main): Check also HUGE_VALF, HUGE_VALL.
2259         * modules/math-tests (Files): Add tests/macros.h.
2260         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2261         HUGE_VALL.
2262
2263 2012-02-28  Bruno Haible  <bruno@clisp.org>
2264
2265         doc: Move ISO C11 feature notes into POSIX chapters.
2266         * doc/posix-functions/aligned_alloc.texi: Renamed from
2267         doc/glibc-functions/aligned_alloc.texi.
2268         * doc/posix-functions/quick_exit.texi: Renamed from
2269         doc/glibc-functions/quick_exit.texi.
2270         * doc/posix-headers/uchar.texi: Renamed from
2271         doc/glibc-headers/uchar.texi.
2272         * doc/posix-functions/c16rtomb.texi: Renamed from
2273         doc/glibc-functions/c16rtomb.texi.
2274         * doc/posix-functions/c32rtomb.texi: Renamed from
2275         doc/glibc-functions/c32rtomb.texi.
2276         * doc/posix-functions/mbrtoc16.texi: Renamed from
2277         doc/glibc-functions/mbrtoc16.texi.
2278         * doc/posix-functions/mbrtoc32.texi: Renamed from
2279         doc/glibc-functions/mbrtoc32.texi.
2280         * doc/gnulib.texi: Update.
2281         (Glibc uchar.h): Remove section.
2282         Suggested by Eric Blake.
2283
2284 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         stdnoreturn: port to MSVC better
2287         MSVC standard headers use __declspec(noreturn), so #define noreturn
2288         to empty on that platform.  Reported by Bruno Haible in
2289         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2290         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2291         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2292
2293 2012-02-28  Bruno Haible  <bruno@clisp.org>
2294
2295         doc: Mention new glibc headers and functions.
2296         * doc/glibc-headers/uchar.texi: New file.
2297         * doc/glibc-functions/aligned_alloc.texi: New file.
2298         * doc/glibc-functions/c16rtomb.texi: New file.
2299         * doc/glibc-functions/c32rtomb.texi: New file.
2300         * doc/glibc-functions/clock_adjtime.texi: New file.
2301         * doc/glibc-functions/fanotify_init.texi: New file.
2302         * doc/glibc-functions/fanotify_mark.texi: New file.
2303         * doc/glibc-functions/inet6_opt_append.texi: New file.
2304         * doc/glibc-functions/inet6_opt_find.texi: New file.
2305         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2306         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2307         * doc/glibc-functions/inet6_opt_init.texi: New file.
2308         * doc/glibc-functions/inet6_opt_next.texi: New file.
2309         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2310         * doc/glibc-functions/inet6_rth_add.texi: New file.
2311         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2312         * doc/glibc-functions/inet6_rth_init.texi: New file.
2313         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2314         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2315         * doc/glibc-functions/inet6_rth_space.texi: New file.
2316         * doc/glibc-functions/login.texi: New file.
2317         * doc/glibc-functions/mbrtoc16.texi: New file.
2318         * doc/glibc-functions/mbrtoc32.texi: New file.
2319         * doc/glibc-functions/name_to_handle_at.texi: New file.
2320         * doc/glibc-functions/ntp_gettimex.texi: New file.
2321         * doc/glibc-functions/open_by_handle_at.texi: New file.
2322         * doc/glibc-functions/prlimit.texi: New file.
2323         * doc/glibc-functions/process_vm_readv.texi: New file.
2324         * doc/glibc-functions/process_vm_writev.texi: New file.
2325         * doc/glibc-functions/recvmmsg.texi: New file.
2326         * doc/glibc-functions/scandirat.texi: New file.
2327         * doc/glibc-functions/sendmmsg.texi: New file.
2328         * doc/glibc-functions/setns.texi: New file.
2329         * doc/glibc-functions/timespec_get.texi: New file.
2330         * doc/gnulib.texi: Include them.
2331         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2332         sections.
2333         Reported by Eric Blake.
2334
2335 2012-02-28  Bruno Haible  <bruno@clisp.org>
2336
2337         Avoid compilation errors with MSVC option -fp:strict.
2338         * lib/floor.c: Use MSVC specific pragma fenv_access.
2339         * lib/ceil.c: Likewise.
2340         * lib/trunc.c: Likewise.
2341         * lib/round.c: Likewise.
2342         * lib/rint.c: Likewise.
2343         * lib/fma.c: Likewise.
2344         * lib/integer_length.c: Likewise.
2345         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2347         * tests/test-floor2.c: Likewise.
2348         * tests/test-floorf2.c: Likewise.
2349         * tests/test-ceil2.c: Likewise.
2350         * tests/test-ceilf2.c: Likewise.
2351         * tests/test-trunc2.c: Likewise.
2352         * tests/test-truncf2.c: Likewise.
2353         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2354
2355 2012-02-27  Bruno Haible  <bruno@clisp.org>
2356
2357         Tests for module 'sqrtl-ieee'.
2358         * modules/sqrtl-ieee-tests: New file.
2359         * tests/test-sqrtl-ieee.c: New file.
2360
2361         New module 'sqrtl-ieee'.
2362         * modules/sqrtl-ieee: New file.
2363
2364         Tests for module 'sqrt-ieee'.
2365         * modules/sqrt-ieee-tests: New file.
2366         * tests/test-sqrt-ieee.c: New file.
2367
2368         New module 'sqrt-ieee'.
2369         * modules/sqrt-ieee: New file.
2370
2371         Tests for module 'sqrtf-ieee'.
2372         * modules/sqrtf-ieee-tests: New file.
2373         * tests/test-sqrtf-ieee.c: New file.
2374         * tests/test-sqrt-ieee.h: New file.
2375
2376         New module 'sqrtf-ieee'.
2377         * modules/sqrtf-ieee: New file.
2378
2379 2012-02-27  Bruno Haible  <bruno@clisp.org>
2380
2381         remainderl-ieee: Work around test failure on OSF/1.
2382         * m4/remainderl-ieee.m4: New file.
2383         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2384         present, test whether remainderl works with a zero second argument.
2385         Replace it if not.
2386         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2388         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2389         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2390         (Depends-on): Update conditions.
2391         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2392         (Depends-on): Add remainder-ieee.
2393         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2394         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2395         module.
2396
2397         remainderf-ieee: Work around test failure on OSF/1.
2398         * m4/remainderf-ieee.m4: New file.
2399         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2400         present, test whether remainderf works with a zero second argument.
2401         Replace it if not.
2402         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2404         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2405         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2406         (Depends-on): Update conditions.
2407         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2408         (Depends-on): Add remainder-ieee.
2409         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2410         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2411         module.
2412
2413         remainder-ieee: Work around test failure on OSF/1.
2414         * m4/remainder-ieee.m4: New file.
2415         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2416         present, test whether remainder works with a zero second argument.
2417         Replace it if not.
2418         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2420         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2421         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2422         (Depends-on): Update dependencies.
2423         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2424         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2425         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2426
2427         Tests for module 'remainderl-ieee'.
2428         * modules/remainderl-ieee-tests: New file.
2429         * tests/test-remainderl-ieee.c: New file.
2430
2431         New module 'remainderl-ieee'.
2432         * modules/remainderl-ieee: New file.
2433
2434         Tests for module 'remainder-ieee'.
2435         * modules/remainder-ieee-tests: New file.
2436         * tests/test-remainder-ieee.c: New file.
2437
2438         New module 'remainder-ieee'.
2439         * modules/remainder-ieee: New file.
2440
2441         Tests for module 'remainderf-ieee'.
2442         * modules/remainderf-ieee-tests: New file.
2443         * tests/test-remainderf-ieee.c: New file.
2444         * tests/test-remainder-ieee.h: New file.
2445
2446         New module 'remainderf-ieee'.
2447         * modules/remainderf-ieee: New file.
2448
2449 2012-02-27  Bruno Haible  <bruno@clisp.org>
2450
2451         modff, modfl: Fix configure syntax error.
2452         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2453         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2454
2455 2012-02-27  Bruno Haible  <bruno@clisp.org>
2456
2457         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2458         * m4/fmodl-ieee.m4: New file.
2459         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2460         whether fmodl works with zero arguments. Replace it if not.
2461         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2462         (Depends-on): Add fmod-ieee.
2463         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2464         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2465
2466         fmodf-ieee: Work around test failure on OSF/1.
2467         * m4/fmodf-ieee.m4: New file.
2468         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2469         whether fmodf works with zero arguments. Replace it if not.
2470         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2472         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2473         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2474         (Depends-on): Update dependencies.
2475         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2476         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2477         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2478
2479         fmodf-ieee: Work around test failure on MSVC 9.
2480         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2481         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2482
2483         fmod-ieee: Work around test failures on OSF/1, mingw.
2484         * m4/fmod-ieee.m4: New file.
2485         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2486         whether fmod works with zero arguments. Replace it if not.
2487         * lib/math.in.h (fmod): New declaration.
2488         * lib/fmod.c: New file.
2489         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2491         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2492         * modules/fmod (Files): Add lib/fmod.c.
2493         (Depends-on): Add math, isinf, trunc, fma.
2494         (configure.ac): Arrange to compile lib/fmod.c if needed.
2495         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2496         m4/signbit.m4.
2497         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2498         * tests/test-math-c++.cc: Check the declaration of fmod.
2499         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2500
2501         fmodl-ieee: Fix test failures.
2502         * lib/fmodl.c (fmodl): Treat Inf specially.
2503         * modules/fmodl (Depends-on): Add isinf.
2504
2505         Tests for module 'fmodl-ieee'.
2506         * modules/fmodl-ieee-tests: New file.
2507         * tests/test-fmodl-ieee.c: New file.
2508
2509         New module 'fmodl-ieee'.
2510         * modules/fmodl-ieee: New file.
2511
2512         Tests for module 'fmod-ieee'.
2513         * modules/fmod-ieee-tests: New file.
2514         * tests/test-fmod-ieee.c: New file.
2515
2516         New module 'fmod-ieee'.
2517         * modules/fmod-ieee: New file.
2518
2519         Tests for module 'fmodf-ieee'.
2520         * modules/fmodf-ieee-tests: New file.
2521         * tests/test-fmodf-ieee.c: New file.
2522         * tests/test-fmod-ieee.h: New file.
2523
2524         New module 'fmodf-ieee'.
2525         * modules/fmodf-ieee: New file.
2526
2527 2012-02-27  Bruno Haible  <bruno@clisp.org>
2528
2529         Tests for module 'rintl-ieee'.
2530         * modules/rintl-ieee-tests: New file.
2531         * tests/test-rintl-ieee.c: New file.
2532
2533         New module 'rintl-ieee'.
2534         * modules/rintl-ieee: New file.
2535
2536         Tests for module 'rint-ieee'.
2537         * modules/rint-ieee-tests: New file.
2538         * tests/test-rint-ieee.c: New file.
2539
2540         New module 'rint-ieee'.
2541         * modules/rint-ieee: New file.
2542
2543         Tests for module 'rintf-ieee'.
2544         * modules/rintf-ieee-tests: New file.
2545         * tests/test-rintf-ieee.c: New file.
2546         * tests/test-rint-ieee.h: New file.
2547
2548         New module 'rintf-ieee'.
2549         * modules/rintf-ieee: New file.
2550
2551 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         regex: re_search etc. should return -2 when memory exhausted
2554         This bug was uncovered when testing 'grep'.  Without the fix,
2555         re_search and friends return -1 when memory is exhausted, but -1
2556         means no match, and this causes grep to falsely report no-match
2557         instead of memory-exhaustion.  See
2558         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2559         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2560         trouble; this can occur if re_search_internal ran out of memory.
2561
2562 2012-02-26  Bruno Haible  <bruno@clisp.org>
2563
2564         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2565         * m4/modfl-ieee.m4: New file.
2566         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2567         whether modfl works with Inf. Replace it if not.
2568         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2570         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2571         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2572         (Depends-on): Update dependencies.
2573         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2574         m4/signbit.m4.
2575         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2576         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2577
2578         modfl-ieee: Fix dependencies.
2579         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2580
2581         modfl-ieee: Fix test failures.
2582         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2583         * modules/modfl (Depends-on): Add isfinite, isinf.
2584
2585         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2586         * m4/modff-ieee.m4: New file.
2587         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2588         whether modff works with NaN and Inf. Replace it if not.
2589         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2591         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2592         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2593         (Depends-on): Update dependencies.
2594         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2595         m4/signbit.m4.
2596         (Depends-on): Add modf-ieee.
2597         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2598         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2599
2600         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2601         * m4/modf-ieee.m4: New file.
2602         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2603         whether modf works with NaN and Inf. Replace it if not.
2604         * lib/math.in.h (modf): New declaration.
2605         * lib/modf.c: New file.
2606         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2608         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2609         * modules/modf (Files): Add lib/modf.c.
2610         (Depends-on): Add math, isfinite, trunc, isinf.
2611         (configure.ac): Addrange to compile lib/modf.c if needed.
2612         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2613         m4/signbit.m4.
2614         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2615         * tests/test-math-c++.cc: Check the declaration of modf.
2616         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2617
2618         Tests for module 'modfl-ieee'.
2619         * modules/modfl-ieee-tests: New file.
2620         * tests/test-modfl-ieee.c: New file.
2621
2622         New module 'modfl-ieee'.
2623         * modules/modfl-ieee: New file.
2624
2625         Tests for module 'modf-ieee'.
2626         * modules/modf-ieee-tests: New file.
2627         * tests/test-modf-ieee.c: New file.
2628
2629         New module 'modf-ieee'.
2630         * modules/modf-ieee: New file.
2631
2632         Tests for module 'modff-ieee'.
2633         * modules/modff-ieee-tests: New file.
2634         * tests/test-modff-ieee.c: New file.
2635         * tests/test-modf-ieee.h: New file.
2636
2637         New module 'modff-ieee'.
2638         * modules/modff-ieee: New file.
2639
2640 2012-02-26  Bruno Haible  <bruno@clisp.org>
2641
2642         Tests for module 'fabsl-ieee'.
2643         * modules/fabsl-ieee-tests: New file.
2644         * tests/test-fabsl-ieee.c: New file.
2645
2646         New module 'fabsl-ieee'.
2647         * modules/fabsl-ieee: New file.
2648
2649         Tests for module 'fabs-ieee'.
2650         * modules/fabs-ieee-tests: New file.
2651         * tests/test-fabs-ieee.c: New file.
2652
2653         New module 'fabs-ieee'.
2654         * modules/fabs-ieee: New file.
2655
2656         Tests for module 'fabsf-ieee'.
2657         * modules/fabsf-ieee-tests: New file.
2658         * tests/test-fabsf-ieee.c: New file.
2659         * tests/test-fabs-ieee.h: New file.
2660
2661         New module 'fabsf-ieee'.
2662         * modules/fabsf-ieee: New file.
2663
2664 2012-02-26  Bruno Haible  <bruno@clisp.org>
2665
2666         Tests for module 'fmal-ieee'.
2667         * modules/fmal-ieee-tests: New file.
2668         * tests/test-fmal-ieee.c: New file.
2669
2670         New module 'fmal-ieee'.
2671         * modules/fmal-ieee: New file.
2672
2673         Tests for module 'fma-ieee'.
2674         * modules/fma-ieee-tests: New file.
2675         * tests/test-fma-ieee.c: New file.
2676
2677         New module 'fma-ieee'.
2678         * modules/fma-ieee: New file.
2679
2680         Tests for module 'fmaf-ieee'.
2681         * modules/fmaf-ieee-tests: New file.
2682         * tests/test-fmaf-ieee.c: New file.
2683         * tests/test-fma-ieee.h: New file.
2684
2685         New module 'fmaf-ieee'.
2686         * modules/fmaf-ieee: New file.
2687
2688 2012-02-26  Bruno Haible  <bruno@clisp.org>
2689
2690         Tests for module 'ldexpl-ieee'.
2691         * modules/ldexpl-ieee-tests: New file.
2692         * tests/test-ldexpl-ieee.c: New file.
2693
2694         New module 'ldexpl-ieee'.
2695         * modules/ldexpl-ieee: New file.
2696
2697         Tests for module 'ldexp-ieee'.
2698         * modules/ldexp-ieee-tests: New file.
2699         * tests/test-ldexp-ieee.c: New file.
2700
2701         New module 'ldexp-ieee'.
2702         * modules/ldexp-ieee: New file.
2703
2704         Tests for module 'ldexpf-ieee'.
2705         * modules/ldexpf-ieee-tests: New file.
2706         * tests/test-ldexpf-ieee.c: New file.
2707         * tests/test-ldexp-ieee.h: New file.
2708
2709         New module 'ldexpf-ieee'.
2710         * modules/ldexpf-ieee: New file.
2711
2712 2012-02-26  Bruno Haible  <bruno@clisp.org>
2713
2714         Refactor frexp*-ieee tests.
2715         * tests/test-frexp-ieee.h: New file.
2716         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2717         (main): Just call test_function.
2718         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2719         (main): Just call test_function.
2720         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2721         (main): Just call test_function.
2722         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2723         * modules/frexp-ieee-tests (Files): Likewise.
2724         * modules/frexpl-ieee-tests (Files): Likewise.
2725
2726         Tests for module 'frexpl-ieee'.
2727         * modules/frexpl-ieee-tests: New file.
2728         * tests/test-frexpl-ieee.c: New file.
2729
2730         New module 'frexpl-ieee'.
2731         * modules/frexpl-ieee: New file.
2732
2733         Tests for module 'frexp-ieee'.
2734         * modules/frexp-ieee-tests: New file.
2735         * tests/test-frexp-ieee.c: New file.
2736
2737         New module 'frexp-ieee'.
2738         * modules/frexp-ieee: New file.
2739
2740         Tests for module 'frexpf-ieee'.
2741         * modules/frexpf-ieee-tests: New file.
2742         * tests/test-frexpf-ieee.c: New file.
2743
2744         New module 'frexpf-ieee'.
2745         * modules/frexpf-ieee: New file.
2746
2747 2012-02-26  Bruno Haible  <bruno@clisp.org>
2748
2749         roundl-ieee tests: More tests.
2750         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2751         (main): Add tests for [MX] shaded specification in POSIX.
2752         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2753         (Depends-on): Add isnanl-nolibm.
2754
2755         round-ieee tests: More tests.
2756         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2757         (main): Add tests for [MX] shaded specification in POSIX.
2758         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2759         (Depends-on): Add isnand-nolibm.
2760
2761         roundf-ieee tests: More tests.
2762         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2763         (main): Add tests for [MX] shaded specification in POSIX.
2764         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2765         (Depends-on): Add isnanf-nolibm.
2766
2767         truncl-ieee tests: More tests.
2768         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2769         (main): Add tests for [MX] shaded specification in POSIX.
2770         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2771         (Depends-on): Add isnanl-nolibm.
2772
2773         trunc-ieee tests: More tests.
2774         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2775         (main): Add tests for [MX] shaded specification in POSIX.
2776         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2777         (Depends-on): Add isnand-nolibm.
2778
2779         truncf-ieee tests: More tests.
2780         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2781         (main): Add tests for [MX] shaded specification in POSIX.
2782         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2783         (Depends-on): Add isnanf-nolibm.
2784
2785         ceill-ieee tests: More tests.
2786         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2787         (main): Add tests for [MX] shaded specification in POSIX.
2788         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2789         (Depends-on): Add isnanl-nolibm.
2790
2791         ceil-ieee tests: More tests.
2792         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2793         (main): Add tests for [MX] shaded specification in POSIX.
2794         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2795         (Depends-on): Add isnand-nolibm.
2796
2797         ceilf-ieee tests: More tests.
2798         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2799         (main): Add tests for [MX] shaded specification in POSIX.
2800         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2801         (Depends-on): Add isnanf-nolibm.
2802
2803         floorl-ieee tests: More tests.
2804         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2805         (main): Add tests for [MX] shaded specification in POSIX.
2806         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2807         (Depends-on): Add isnanl-nolibm.
2808
2809         floor-ieee tests: More tests.
2810         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2811         (main): Add tests for [MX] shaded specification in POSIX.
2812         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2813         (Depends-on): Add isnand-nolibm.
2814
2815         floorf-ieee tests: More tests.
2816         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2817         (main): Add tests for [MX] shaded specification in POSIX.
2818         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2819         (Depends-on): Add isnanf-nolibm.
2820
2821 2012-02-26  Bruno Haible  <bruno@clisp.org>
2822
2823         fpieee: More comments.
2824         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2825
2826 2012-02-25  Bruno Haible  <bruno@clisp.org>
2827
2828         Tests for module 'log10l'.
2829         * modules/log10l-tests: New file.
2830         * tests/test-log10l.c: New file.
2831         * tests/test-math-c++.cc: Check the declaration of log10l.
2832
2833         New module 'log10l'.
2834         * lib/math.in.h (log10l): New declaration.
2835         * lib/log10l.c: New file.
2836         * m4/log10l.m4: New file.
2837         * modules/log10l: New file.
2838         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2840         HAVE_DECL_LOG10L.
2841         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2842         HAVE_DECL_LOG10L.
2843         * doc/posix-functions/log10l.texi: Mention the new module.
2844
2845 2012-02-25  Bruno Haible  <bruno@clisp.org>
2846
2847         fmodl, remainder*: Avoid wrong results due to rounding errors.
2848         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2849         expected bounds.
2850         * lib/remainderf.c (remainderf): Likewise.
2851         * lib/remainder.c (remainder): Likewise.
2852         * lib/remainderl.c (remainderl): Likewise.
2853
2854 2012-02-25  Bruno Haible  <bruno@clisp.org>
2855
2856         Tests for module 'remainderl'.
2857         * modules/remainderl-tests: New file.
2858         * tests/test-remainderl.c: New file.
2859         * tests/test-math-c++.cc: Check the declaration of remainderl.
2860
2861         New module 'remainderl'.
2862         * lib/math.in.h (remainderl): New declaration.
2863         * lib/remainderl.c: New file.
2864         * m4/remainderl.m4: New file.
2865         * modules/remainderl: New file.
2866         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2868         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2869         HAVE_REMAINDERL.
2870         * doc/posix-functions/remainderl.texi: Mention the new module.
2871
2872 2012-02-25  Bruno Haible  <bruno@clisp.org>
2873
2874         Tests for module 'remainderf'.
2875         * modules/remainderf-tests: New file.
2876         * tests/test-remainderf.c: New file.
2877         * tests/test-math-c++.cc: Check the declaration of remainderf.
2878
2879         New module 'remainderf'.
2880         * lib/math.in.h (remainderf): New declaration.
2881         * lib/remainderf.c: New file.
2882         * m4/remainderf.m4: New file.
2883         * modules/remainderf: New file.
2884         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2886         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2887         HAVE_REMAINDERF.
2888         * doc/posix-functions/remainderf.texi: Mention the new module.
2889
2890 2012-02-25  Bruno Haible  <bruno@clisp.org>
2891
2892         remainder: Support for MSVC.
2893         * lib/math.in.h (remainder): New declaration.
2894         * lib/remainder.c: New file.
2895         * m4/remainder.m4: New file.
2896         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2897         (Depends-on): Add math, round, fma.
2898         (configure.ac): Use results of gl_FUNC_REMAINDER.
2899         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2901         HAVE_DECL_REMAINDER.
2902         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2903         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2904         * tests/test-math-c++.cc: Check the declaration of remainder.
2905         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2906         problems are fixed.
2907
2908 2012-02-25  Bruno Haible  <bruno@clisp.org>
2909
2910         Tests for module 'fmodl'.
2911         * modules/fmodl-tests: New file.
2912         * tests/test-fmodl.c: New file.
2913         * tests/test-math-c++.cc: Check the declaration of fmodl.
2914
2915         New module 'fmodl'.
2916         * lib/math.in.h (fmodl): New declaration.
2917         * lib/fmodl.c: New file.
2918         * m4/fmodl.m4: New file.
2919         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2921         REPLACE_FMODL.
2922         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2923         REPLACE_FMODL.
2924         * modules/fmodl: New file.
2925         * doc/posix-functions/fmodl.texi: Mention the new module.
2926
2927 2012-02-25  Bruno Haible  <bruno@clisp.org>
2928
2929         Tests for module 'modfl'.
2930         * modules/modfl-tests: New file.
2931         * tests/test-modfl.c: New file.
2932         * tests/test-math-c++.cc: Check the declaration of modfl.
2933
2934         New module 'modfl'.
2935         * lib/math.in.h (modfl): New declaration.
2936         * lib/modfl.c: New file.
2937         * m4/modfl.m4: New file.
2938         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2940         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2941         * modules/modfl: New file.
2942         * doc/posix-functions/modfl.texi: Mention the new module.
2943
2944 2012-02-25  Bruno Haible  <bruno@clisp.org>
2945
2946         Tests for module 'fabsl'.
2947         * modules/fabsl-tests: New file.
2948         * tests/test-fabsl.c: New file.
2949         * tests/test-math-c++.cc: Check the declaration of fabsl.
2950
2951         New module 'fabsl'.
2952         * lib/math.in.h (fabsl): New declaration.
2953         * lib/fabsl.c: New file.
2954         * m4/fabsl.m4: New file.
2955         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2957         REPLACE_FABSL.
2958         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2959         REPLACE_FABSL.
2960         * modules/fabsl: New file.
2961         * doc/posix-functions/fabsl.texi: Mention the new module.
2962
2963 2012-02-25  Bruno Haible  <bruno@clisp.org>
2964
2965         fabs tests: More tests.
2966         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2967         (zero): New variable.
2968         (main): Add tests for signed zero.
2969         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2970
2971         fabsf tests: More tests.
2972         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2973         (zero): New variable.
2974         (main): Add tests for signed zero.
2975         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2976
2977 2012-02-24  Bruno Haible  <bruno@clisp.org>
2978
2979         atanl: Provide function definition on MSVC.
2980         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2981         function pointer.
2982         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2983
2984 2012-02-24  Bruno Haible  <bruno@clisp.org>
2985
2986         acosl: Provide function definition on MSVC.
2987         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2988         function pointer.
2989         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2990
2991 2012-02-24  Bruno Haible  <bruno@clisp.org>
2992
2993         asinl: Provide function definition on MSVC.
2994         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2995         function pointer.
2996         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2997
2998 2012-02-24  Bruno Haible  <bruno@clisp.org>
2999
3000         tanl: Provide function definition on MSVC.
3001         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3002         function pointer.
3003         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3004
3005 2012-02-24  Bruno Haible  <bruno@clisp.org>
3006
3007         cosl: Provide function definition on MSVC.
3008         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3009         function pointer.
3010         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3011
3012 2012-02-24  Bruno Haible  <bruno@clisp.org>
3013
3014         sinl: Provide function definition on MSVC.
3015         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3016         function pointer.
3017         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3018
3019 2012-02-24  Bruno Haible  <bruno@clisp.org>
3020
3021         logl: Provide function definition on MSVC.
3022         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3023         function pointer.
3024         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3025
3026 2012-02-24  Bruno Haible  <bruno@clisp.org>
3027
3028         expl: Provide function definition on MSVC.
3029         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3030         function pointer.
3031         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3032
3033 2012-02-24  Bruno Haible  <bruno@clisp.org>
3034
3035         sqrtl: Provide function definition on MSVC.
3036         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3037         a function pointer.
3038         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3039
3040 2012-02-24  Bruno Haible  <bruno@clisp.org>
3041
3042         ceill: Provide function definition on MSVC.
3043         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3044         used as a function pointer.
3045         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3046
3047 2012-02-24  Bruno Haible  <bruno@clisp.org>
3048
3049         floorl: Provide function definition on MSVC.
3050         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3051         used as a function pointer.
3052         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3053
3054 2012-02-24  Bruno Haible  <bruno@clisp.org>
3055
3056         ceilf: Provide function definition on MSVC.
3057         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3058         used as a function pointer.
3059         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3060
3061 2012-02-24  Bruno Haible  <bruno@clisp.org>
3062
3063         floorf: Provide function definition on MSVC.
3064         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3065         used as a function pointer.
3066         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3067
3068 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         stdnoreturn: new module
3071         This implements a replacement for C11's <stdnoreturn.h>.
3072         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3073         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3074         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3075         * tests/test-stdnoreturn.c: New files.
3076
3077 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3078
3079         regex: fix false multibyte matches in some regular expressions
3080         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3081         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3082         * lib/regex_internal.c (re_string_skip_chars):
3083         Fix miscomputation of remain_len that may cause incomplete
3084         multi-byte character and false match.
3085
3086 2012-02-24  Jim Meyering  <meyering@redhat.com>
3087
3088         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3089         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3090         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3091         Remove now-unnecessary str''cmp obfuscation.
3092         Suggested by Akim Demaille.
3093
3094 2012-02-24  Bruno Haible  <bruno@clisp.org>
3095
3096         streq: Rename macro.
3097         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3098         * NEWS: Mention the change.
3099         * lib/mbrtowc.c (mbrtowc): Update.
3100         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3101         * lib/wcwidth.c (wcwidth): Update.
3102         Suggested by Akim Demaille and Jim Meyering.
3103
3104 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3105
3106         regex: fix typo in definition of MIN
3107         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3108         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3109
3110 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3111             Bruno Haible  <bruno@clisp.org>
3112
3113         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3114         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3115         entries into a stack-allocated buffer directly.
3116         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3117
3118 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3119             Bruno Haible  <bruno@clisp.org>
3120
3121         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3122
3123          - There were several instances of this pattern:
3124
3125              for (;;) {
3126                n = acl (f, GETACLCNT, 0, NULL);
3127                [ allocate an array A of size N ]
3128                if (acl (f, GETACL, n, a) == n)
3129                  break;
3130              }
3131
3132            This loop might never terminate if some other process is constantly
3133            manipulating the file's ACL.  The loop should be rewritten to
3134            terminate.
3135
3136          - The acl (... GETACLNT ...) call is merely an optimization; its value
3137            is merely a hint as to how big to make the array.  A better
3138            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3139            and just guess a reasonably-big size, growing the size and trying
3140            again if it's not large enough.  This guarantees termination, and
3141            saves a system call.
3142
3143         * lib/acl-internal.h: Include <limits.h>.
3144         (MIN, SIZE_MAX): New macros.
3145         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3146         a stack-allocated buffer, and use malloc if it does not fit. Don't
3147         use GETACLCNT.
3148         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3149
3150 2012-02-19  Bruno Haible  <bruno@clisp.org>
3151
3152         acl: Fix endless loop on Solaris with vxfs.
3153         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3154         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3155         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3156         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3157         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3158         Reported by Bill Jones in
3159         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3160
3161 2012-02-19  Bruno Haible  <bruno@clisp.org>
3162
3163         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3164         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3165         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3166         that this function returns 0 in some more cases.
3167
3168 2012-02-19  Bruno Haible  <bruno@clisp.org>
3169
3170         acl: Update doc references.
3171         * doc/acl-resources.txt: Update links to Solaris documentation.
3172
3173 2012-02-19  Bruno Haible  <bruno@clisp.org>
3174
3175         Fix test failure in many locales on Solaris 11.
3176         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3177         'tr' arguments.
3178         * tests/test-pipe-filter-ii1.c (main): Likewise.
3179         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3180         expressions in the C locale.
3181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3182         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3183
3184 2012-02-19  Bruno Haible  <bruno@clisp.org>
3185
3186         gnulib-tool: Improve usage message.
3187         * gnulib-tool (func_usage): Move doc of --help and --version to the
3188         section "Operation modes".
3189
3190 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3191
3192         README-release: make it easier to execute commands
3193         * top/README-release: break commands out on to separate lines.
3194
3195 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3196
3197         GNUmakefile: simplify detection of unconfigured trees
3198         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3199         whether the tree make is being run from is already configured or
3200         not.  Related simplifications.
3201
3202 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3203
3204         * gnulib-tool (func_usage): Document --help and --version.
3205
3206 2012-02-11  Jim Meyering  <meyering@redhat.com>
3207
3208         bootstrap: don't exit 0 upon gnulib-tool failure
3209         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3210         its exit status, not 0.
3211
3212 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3213
3214         README-release: various improvements
3215         * top/README-release: Give a command to push changes for the
3216         release.  Add "distcheck" to list of other pre-release checks.
3217         Fix instance of "make stable" which should be "make TYPE".
3218
3219 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3220
3221         maint: replace FSF snail-mail addresses with URLs
3222         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3223         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3224         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3225         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3226         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3227         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3228         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3229         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3230         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3231         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3232         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3233         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3234         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3235         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3236         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3237         * lib/glthread/thread.c, lib/glthread/thread.h:
3238         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3239         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3240         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3241         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3242         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3243         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3244         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3245         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3246         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3247         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3248         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3249         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3250         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3251         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3252         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3253         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3254         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3255         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3256         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3257         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3258         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3259         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3260         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3261         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3262         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3263         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3264         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3265         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3266         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3267         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3268         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3269         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3270         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3271         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3272         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3273         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3274         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3275         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3276         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3277         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3278         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3279         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3280         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3281         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3282         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3283         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3284         * tests/test-poll.c, tests/test-quotearg-simple.c:
3285         * tests/test-quotearg.c, tests/test-quotearg.h:
3286         * tests/test-round-ieee.c, tests/test-round1.c:
3287         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3288         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3289         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3290         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3291         * tests/test-strerror.c, tests/test-strerror_r.c:
3292         * tests/test-strsignal.c, tests/test-strverscmp.c:
3293         * tests/test-xmemdup0.c:
3294         Replace FSF snail mail addresses with URLs, as per GNU coding
3295         standards.  See glibc bug
3296         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3297
3298 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3299
3300         README-release: capitalize a word and split a line
3301         * top/README-release: Fix punctuation and spacing.
3302
3303 2012-02-08  Akim Demaille  <demaille@gostai.com>
3304
3305         fatal-signal: use C prototypes (with explicit void).
3306         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3307         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3308
3309 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3310
3311         regex: spelling fix
3312         * lib/regexec.c: spelling fix
3313
3314         regex: rely on stdint.h for SIZE_MAX
3315         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3316
3317 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3318
3319         regex: merge glibc changes
3320
3321         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3322         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3323         (init_word_char): Work even if bitset words are not exactly 32 or
3324         64 bits wide.  Don't assume there are no padding bits.
3325         * lib/regex.c [_LIBC]: Do not include <config.h>.
3326         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3327         and -Wtype-limits.
3328         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3329         needless disagreement with glibc.  All uses changed.  Define it to
3330         1 only if _GNU_SOURCE, to match glibc.
3331         (_REG_RM_NAME): Remove; no longer needed, since the names in
3332         question are now all protected by __USE_GNU.
3333         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3334         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3335         * lib/regex_internal.h (MIN): New macro.
3336
3337         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3338         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3339
3340         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3341         * lib/regex_internal.c (re_string_fetch_byte_case):
3342         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3343         is miscompiled, and it turns out it is because of an incorrect
3344         attribute on re_string_fetch_byte_case.  Unlike
3345         re_string_peek_byte_case, this one is really not pure, it modifies
3346         memory (increments pstr->cur_idx), and with the pure attribute GCC
3347         assumed it doesn't and it cached the presumed value of
3348         regexp->cur_idx in a variable across the
3349          for (;; ++i)
3350            {
3351              if (i >= BRACKET_NAME_BUF_SIZE)
3352                return REG_EBRACK;
3353              if (token->type == OP_OPEN_CHAR_CLASS)
3354                ch = re_string_fetch_byte_case (regexp);
3355              else
3356                ch = re_string_fetch_byte (regexp);
3357              if (re_string_eoi(regexp))
3358                return REG_EBRACK;
3359              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3360                break;
3361              elem->opr.name[i] = ch;
3362            }
3363
3364         2011-11-29 Andreas Schwab <schwab@redhat.com>
3365         * lib/regcomp.c (build_equiv_class):
3366         Fix access after end of search string in regex matcher.
3367
3368         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3369         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3370
3371         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3372         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3373
3374         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3375         * lib/regcomp.c (parse_branch, parse_sub_exp):
3376         More regex memory leak fixes and tests.
3377         (parse_sub_exp, parse_bracket_exp):
3378         Fix memory leak for some invalid regular expressions.
3379
3380         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3381         * lib/regex_internal.c, lib/regexec.c:
3382         Fix unnecessary overallocation due to incomplete character.  When
3383         incomplete characters are found at the end of a string the code
3384         ran amok and allocated lots of memory.  Stricter limits are now in
3385         place.
3386
3387         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3388         * lib/regex.h: Update documentation.
3389
3390         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3391         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3392
3393         2010-05-05 Andreas Schwab <schwab@redhat.com>
3394         * lib/regexec.c (find_collation_sequence_value):
3395         Fix lookup of collation sequence value during regexp matching.
3396
3397         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3398         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3399
3400         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3401         * lib/regex.h: Cleanup namespace.
3402
3403         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3404         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3405
3406         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3407         * lib/regex_internal.h: Prevent some declarations and definitions
3408         to be seen when used in tests.
3409
3410         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3411         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3412         __libc_lock_* macros if not _LIBC.
3413         (struct re_dfa_t): Add lock.
3414
3415 2012-02-07  Eric Blake  <eblake@redhat.com>
3416
3417         maint.mk: also prohibit lower-case @var@
3418         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3419         lower case, like @top_srcdir@.
3420
3421 2012-02-04  Eric Blake  <eblake@redhat.com>
3422
3423         canonicalize: avoid uninitialized memory use
3424         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3425         random '/' left in dest.
3426         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3427
3428 2012-02-04  Bruno Haible  <bruno@clisp.org>
3429
3430         isatty: Fix test failure of ptsname_r on native Windows.
3431         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3432         and don't set errno.
3433         (isatty): Test first whether fd is valid. Set errno when returning 0.
3434
3435 2012-02-04  Bruno Haible  <bruno@clisp.org>
3436
3437         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3438         * tests/test-spawn-pipe-main.c: Include progname.h.
3439         (main): Invoke set_program_name.
3440         * modules/spawn-pipe-tests (Depends-on): Add progname.
3441
3442         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3443         * tests/test-nonblocking-socket-main.c: Include progname.h.
3444         (main): Invoke set_program_name.
3445         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3446
3447         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3448         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3449         (main): Invoke set_program_name.
3450         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3451
3452 2012-02-04  Eric Blake  <eblake@redhat.com>
3453
3454         canonicalize-lgpl: fix // handling
3455         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3456
3457         canonicalize: fix // handling
3458         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3459         /// to //, since only // is special.
3460
3461 2012-02-04  Bruno Haible  <bruno@clisp.org>
3462
3463         ioctl: Fix test failure on native Windows.
3464         * lib/ioctl.c: Include msvc-nothrow.h.
3465         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3466
3467 2012-02-04  Bruno Haible  <bruno@clisp.org>
3468
3469         fsync: Avoid test failure on native Windows.
3470         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3471         read-only.
3472
3473 2012-02-04  Bruno Haible  <bruno@clisp.org>
3474
3475         sys_select: Avoid syntax error on OpenBSD 5.0.
3476         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3477         currently being included, just include the system's <sys/select.h>.
3478
3479 2012-02-04  Bruno Haible  <bruno@clisp.org>
3480
3481         sys_select: Avoid syntax error on OpenBSD 5.0.
3482         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3483         <sys/select.h>, not before.
3484         Reported by Jiri B <jirib@devio.us>.
3485
3486 2012-02-04  Bruno Haible  <bruno@clisp.org>
3487
3488         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3489         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3490         global variables.
3491         * tests/test-get-rusage-data.c (main): Likewise.
3492         Reported by Jim Meyering.
3493
3494 2012-02-04  Bruno Haible  <bruno@clisp.org>
3495
3496         stdioext: Fix last commit.
3497         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3498
3499 2012-02-03  Bruno Haible  <bruno@clisp.org>
3500
3501         stdioext: Add tentative support for Plan9.
3502         * lib/stdio-impl.h: Include <errno.h>.
3503         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3504         * lib/freadable.c (freadable): Likewise.
3505         * lib/fwritable.c (fwritable): Likewise.
3506         * lib/fbufmode.c (fbufmode): Likewise.
3507         * lib/freading.c (freading): Likewise.
3508         * lib/fwriting.c (fwriting): Likewise.
3509         * lib/freadptr.c (freadptr): Likewise.
3510         * lib/freadseek.c (freadptrinc): Likewise.
3511         * lib/freadahead.c (freadahead): Likewise.
3512         * lib/fpurge.c (fpurge): Likewise.
3513         * lib/fseeko.c (rpl_fseeko): Likewise.
3514         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3515         Reported by Jens Staal <staal1978@gmail.com>.
3516
3517 2012-02-02  Jim Meyering  <meyering@redhat.com>
3518
3519         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3520         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3521         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3522         not even to try to add the attribute.  Instead, add a pragma to suppress
3523         the suggestion/warning.
3524
3525 2012-01-31  Karl Berry  <karl@gnu.org>
3526
3527         setstate doc: typo.
3528         * doc/posix-functions/setstate.texi (setstate): { not (.
3529
3530 2012-01-31  Bruno Haible  <bruno@clisp.org>
3531
3532         popen: Make more robust on Windows.
3533         * lib/popen.c: On native Windows, use the _popen based code even if
3534         HAVE_POPEN is set.
3535         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3536         environment variable on native Windows.
3537
3538 2012-01-30  Bruno Haible  <bruno@clisp.org>
3539
3540         pclose: Fix typo.
3541         * lib/stdio.in.h (pclose): Fix typo in warning message.
3542
3543 2012-01-30  Bruno Haible  <bruno@clisp.org>
3544
3545         doc about getlogin_r, setstate.
3546         * doc/posix-functions/getlogin_r.texi: List the incompatible
3547         declaration problem under "not fixed by gnulib".
3548         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3549         problem on Solaris 11 and other platforms.
3550
3551 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3552             Bruno Haible  <bruno@clisp.org>
3553
3554         poll tests: Make test more robust.
3555         * tests/test-poll.c: Include macros.h.
3556         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3557         return value of various I/O operations.
3558         * modules/poll-tests (Files): Add tests/macros.h.
3559
3560 2012-01-30  Bruno Haible  <bruno@clisp.org>
3561
3562         sys_stat: Fix support for mingw64 and MSVC.
3563         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3564         header files already do it.
3565         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3566         stat itself.
3567         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3568
3569 2012-01-30  Bruno Haible  <bruno@clisp.org>
3570
3571         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3573         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3574
3575 2012-01-29  Bruno Haible  <bruno@clisp.org>
3576
3577         quotearg: Fix test failure on MacOS X 10.5.
3578         * tests/test-quotearg-simple.c: Include localcharset.h.
3579         (main): If the locale encoding is not ASCII, bypass the tests of
3580         locale_quoting_style and clocale_quoting_style.
3581         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3582
3583 2012-01-29  Jim Meyering  <meyering@redhat.com>
3584
3585         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3586         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3587         detect uses of canonicalize_file_name.
3588
3589 2012-01-28  Bruno Haible  <bruno@clisp.org>
3590
3591         test-framework-sh: Fix test failure with AIX 7.1 diff.
3592         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3593         in column 1, like 'diff -c' does.
3594         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3595         whether 'diff -u' is used. Instead, test whether the output contains
3596         some '@' character.
3597
3598 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3599
3600         strtoimax: eliminate need for stdint.h, inttypes.h checks
3601         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3602         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3603         the prerequisites for a recently-introduced strtoimax test.
3604         I guess this might cause strtoimax to be replaced when not
3605         strictly necessary on older hosts, but this shouldn't introduce
3606         any bugs and it should make Emacs 'configure' faster on typical
3607         modern hosts.  Problem discovered when importing the latest gnulib
3608         to an Emacs test version.
3609         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3610
3611 2012-01-28  Bruno Haible  <bruno@clisp.org>
3612
3613         sys_time: Override 'struct timeval' on some native Windows platforms.
3614         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3615         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3616         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3617         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3618         needs to be overridden.
3619         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3620         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3621         * tests/test-sys_select.c: Check that the tv_sec member has the same
3622         size as a 'time_t'.
3623         * tests/test-sys_time.c: Likewise.
3624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3625         is set, set also REPLACE_GETTIMEOFDAY.
3626         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3627         convert the resulting 'struct timeval' before returning.
3628         * lib/select.c: Include <sys/time.h>.
3629         (select, timeval): Undefine at the right place.
3630         * modules/select (Depends-on): Add sys_time.
3631         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3632         some Windows platforms.
3633         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3634
3635 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3636
3637         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3638         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3639         an integer.
3640         * lib/fcntl.c (dupfd): Likewise.
3641         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3642
3643 2012-01-28  Bruno Haible  <bruno@clisp.org>
3644
3645         fcntl: Avoid compilation error on native Windows.
3646         * modules/fcntl (Depends-on): Add 'close'.
3647
3648 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3649
3650         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3651         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3652         pointer to an integer.
3653         * lib/poll.c (IsConsoleHandle): Likewise.
3654         * lib/isatty.c (IsConsoleHandle): Likewise.
3655
3656 2012-01-28  Jim Meyering  <meyering@redhat.com>
3657
3658         doc: clarify README-release
3659         * top/README-release: Clarify: you should make a point to have
3660         the latest stable versions of build tools in your PATH, and the
3661         reference to buildreq is solely for its list of tool names, not
3662         for its minimal-functional version numbers.
3663         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3664
3665         maint.mk: use more readable (yet functionally equivalent) quoting
3666         It is common to quote a single quote in a single quoted string like
3667         this:  '...'\''...'.  Unless you know the idiom, that looks like
3668         gibberish, so prefer to double-quote the string when possible.
3669         Then you can use a more readable, lone single quote: "...'..."
3670         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3671         "don't" is more readable than the equivalent 'don'\''t'.
3672         (sc_cast_of_x_alloc_return_value): Likewise.
3673         (sc_cast_of_alloca_return_value): Likewise.
3674         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3675         rather than '\'':'\''.
3676
3677 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3678
3679         stdalign: relax _Alignof and tighten _Alignas test
3680         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3681         as it was too strict: alignof must divide offsetof, but it need
3682         not equal offsetof.  Inspired by Joseph S. Myers's comment
3683         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3684         Conversely, tighten the _Alignas test a bit, as the resulting
3685         alignment must be exactly 8.
3686
3687 2012-01-27  Bruno Haible  <bruno@clisp.org>
3688
3689         stdalign: Document the last change.
3690         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3691
3692 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         stdalign: check that alignof and offsetof are consistent
3695         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3696         Problem reported for gnulib by Richard W.M. Jones in
3697         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3698
3699 2012-01-27  Jim Meyering  <meyering@redhat.com>
3700
3701         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3702         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3703         convert a sequence with gaps to the minimal containing range.
3704         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3705         * tests/test-update-copyright.sh: Test for this.
3706         The FSF confirmed it is ok to do this, assuming there is at
3707         least one significant change per year in the affected range:
3708         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3709
3710 2012-01-26  Bruno Haible  <bruno@clisp.org>
3711
3712         pipe2: refine doc about thread-safety
3713         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3714         multithread-safety problem.
3715         * doc/glibc-functions/accept4.texi: Likewise.
3716
3717 2012-01-26  Bruno Haible  <bruno@clisp.org>
3718
3719         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3720         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3721         In the test program, include <fcntl.h>, for O_RDONLY.
3722
3723 2012-01-26  Eric Blake  <eblake@redhat.com>
3724
3725         pipe2: document lack of thread-safety in replacement
3726         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3727         issue in replacement.
3728         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3729         Based on a report by Eric Wong.
3730
3731 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3732             Bruno Haible  <bruno@clisp.org>
3733
3734         malloca: Avoid warnings on x86_64 mingw64.
3735         * lib/malloca.c: Include <stdint.h>.
3736         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3737         * modules/malloca (Depends-on): Add stdint.
3738         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3739
3740 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3741
3742         obstack: remove __STDC__ conditionals
3743         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3744         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3745         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3746         m4/include_next.m4 as the only gnulib-maintained places that still
3747         refer to __STDC__.
3748
3749 2012-01-24  Bruno Haible  <bruno@clisp.org>
3750
3751         havelib: Modern quoting.
3752         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3753         the recent change to the GNU coding standards.
3754
3755 2012-01-24  Bruno Haible  <bruno@clisp.org>
3756
3757         stdint: Improve support for Android.
3758         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3759         Reported by Simon Josefsson <simon@josefsson.org>.
3760
3761 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3762
3763         doc: omit trailing empty lines from INSTALL etc.
3764         * doc/Makefile (INSTALL): Omit trailing empty lines.
3765         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3766         omit trailing empty lines.  This simplifies the build procedure.
3767
3768 2012-01-23  Jim Meyering  <meyering@redhat.com>
3769
3770         tests: avoid spurious warnings about gl_sockets_startup
3771         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3772         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3773         reporting a "statement with no effect".
3774         * tests/test-accept.c (main): Mark as "(void)".
3775         * tests/test-accept4.c (main): Likewise.
3776         * tests/test-bind.c (main): Likewise.
3777         * tests/test-connect.c (main): Likewise.
3778         * tests/test-getpeername.c (main): Likewise.
3779         * tests/test-getsockname.c (main): Likewise.
3780         * tests/test-getsockopt.c (main): Likewise.
3781         * tests/test-listen.c (main): Likewise.
3782         * tests/test-recv.c (main): Likewise.
3783         * tests/test-recvfrom.c (main): Likewise.
3784         * tests/test-send.c (main): Likewise.
3785         * tests/test-sendto.c (main): Likewise.
3786         * tests/test-setsockopt.c (main): Likewise.
3787         * tests/test-shutdown.c (main): Likewise.
3788
3789 2012-01-21  Bruno Haible  <bruno@clisp.org>
3790
3791         locale-fr.m4: Fix for Android.
3792         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3793         failure of the test program on Bionic libc.
3794
3795 2012-01-21  Jim Meyering  <meyering@redhat.com>
3796
3797         bootstrap: fail when bootstrap_post_import_hook fails
3798         Otherwise, it's far too easy to miss diagnostics emitted
3799         between gnulib-tool's output and that of running configure.
3800         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3801
3802 2012-01-17  Jim Meyering  <meyering@redhat.com>
3803
3804         maint: enable sc_trailing_blank
3805         * build-aux/pmccabe.css: Remove trailing blanks.
3806         * doc/acl-cygwin.txt: Likewise.
3807         * doc/gnu-oids.texi: Likewise
3808         * cfg.mk: Enable sc_trailing_blank.
3809         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3810
3811 2012-01-17  Jim Meyering  <meyering@redhat.com>
3812
3813         maint: enable sc_prohibit_openat_without_use
3814         * cfg.mk: Enable sc_prohibit_openat_without_use.
3815         Exempt lib/selinux-at.c.
3816
3817 2012-01-17  Jim Meyering  <meyering@redhat.com>
3818
3819         maint: enable sc_prohibit_cloexec_without_use
3820         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3821         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3822
3823 2012-01-17  Jim Meyering  <meyering@redhat.com>
3824
3825         maint: enable sc_prohibit_intprops_without_use
3826         * cfg.mk: Enable sc_prohibit_intprops_without_use
3827         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3828
3829 2012-01-17  Jim Meyering  <meyering@redhat.com>
3830
3831         maint: enable sc_prohibit_hash_pjw_without_use
3832         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3833         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3834         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3835         following " (".
3836
3837 2012-01-17  Jim Meyering  <meyering@redhat.com>
3838
3839         maint: enable double-word-prohibiting rule
3840         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3841         Exempt three files.
3842
3843 2012-01-17  Jim Meyering  <meyering@redhat.com>
3844
3845         maint: remove empty lines at EOF, but excluding modules/*
3846         Apply syntax rules at home as well as abroad.  Most changes
3847         were induced by running this:
3848           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3849             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3850             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3851         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3852         Exempt modules/* and two binary files.
3853         Also exempt doc/INSTALL*, per request from Bruno Haible.
3854         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3855         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3856         * doc/Copyright/request-assign.future: Likewise.
3857         * doc/Copyright/request-disclaim.changes: Likewise.
3858         * doc/INSTALL: Likewise.
3859         * doc/INSTALL.ISO: Likewise.
3860         * doc/INSTALL.UTF-8: Likewise.
3861         * doc/acl-cygwin.txt: Likewise.
3862         * doc/acl-resources.txt: Likewise.
3863         * doc/fdl-1.2.texi: Likewise.
3864         * doc/fdl-1.3.texi: Likewise.
3865         * doc/fdl.texi: Likewise.
3866         * lib/argp-pin.c: Likewise.
3867         * lib/round.c: Likewise.
3868         * lib/unicase/u16-totitle.c: Likewise.
3869         * lib/unictype/block_test.c: Likewise.
3870         * lib/uninorm/canonical-decomposition.c: Likewise.
3871         * m4/README: Likewise.
3872         * m4/relocatable-lib.m4: Likewise.
3873         * tests/test-isnand-nolibm.c: Likewise.
3874         * tests/test-isnand.c: Likewise.
3875         * tests/uninorm/NormalizationTest.txt: Likewise.
3876
3877 2012-01-17  Jim Meyering  <meyering@redhat.com>
3878
3879         maint: add framework to run syntax-check rules against gnulib sources
3880         * cfg.mk: New file, to disable all currently-failing tests.
3881         We'll enable them one by one, as they are made to pass.
3882         * Makefile (sc_maint): New rule.
3883
3884 2012-01-21  Bruno Haible  <bruno@clisp.org>
3885
3886         stdint: Add support for Android.
3887         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3888         include the system's <stdint.h>.
3889         Reported by Simon Josefsson <simon@josefsson.org>.
3890
3891 2012-01-19  Jim Meyering  <meyering@redhat.com>
3892
3893         bootstrap: add bootstrap_post_import_hook
3894         Bison does still need something like the gnulib_mk_hook whose
3895         invocation I had to remove along with slurp in commit 767ccd40.
3896         Technically, we could get along without it, but doing so would
3897         have required living with a warning and a mandatory post-bootstrap
3898         automake rerun.
3899         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3900         (bootstrap_post_import_hook): New function.
3901         Invoke it after gnulib-tool --import and before autoreconf.
3902
3903 2012-01-18  Jim Meyering  <meyering@redhat.com>
3904
3905         gitlog-to-changelog: don't use "no_"-prefixed variable name
3906         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3907         to enable both --cluster and --no-cluster.  Change variable name,
3908         s/\$no_cluster/$cluster/, and reverse usage to match.
3909
3910         gitlog-to-changelog: use "||", not "or" in expressions
3911         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3912         expressions.
3913
3914 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3915
3916         gitlog-to-changelog: new option --no-cluster
3917         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3918         clustering of adjacent commit messages.
3919
3920 2012-01-17  Jim Meyering  <meyering@redhat.com>
3921
3922         maint: spell file systems with two words, not one
3923         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3924         two words, not one.
3925
3926 2012-01-16  Jim Meyering  <meyering@redhat.com>
3927
3928         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3929         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3930
3931 2012-01-16  Eric Blake  <eblake@redhat.com>
3932
3933         bootstrap: cater to autoconf 2.59
3934         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3935         is not available.
3936
3937         bootstrap: properly check for libtool
3938         * build-aux/bootstrap (libtoolize): Also run libtool when older
3939         usage is detected.
3940
3941 2012-01-15  Bruno Haible  <bruno@clisp.org>
3942
3943         Improve support for MSVC 9.
3944         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3945         clashes on MSVC.
3946         * lib/fcntl.in.h: Likewise.
3947         * lib/stdlib.in.h: Likewise.
3948         * lib/sys_stat.in.h: Likewise.
3949
3950 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3951
3952         gnupload: we hold the master copy of this script now
3953         For motivation and more information, see:
3954         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3955         * build-aux/gnupload: Make it clear in the heading comments that the
3956         master copy of this file is maintained by gnulib.  Since we are at
3957         it, bump its copyright year and ...
3958         ($scriptversion): ... the date in its version.
3959         ($usage): Patches and bug reports should be sent to the gnulib list,
3960         not the automake one.
3961         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3962         anymore.
3963
3964 2012-01-15  Bruno Haible  <bruno@clisp.org>
3965
3966         Fix module 'random'.
3967         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3968         initstate, setstate are declared.
3969
3970 2012-01-14  Bruno Haible  <bruno@clisp.org>
3971
3972         Tests for module 'random'.
3973         * modules/random-tests: New file.
3974         * tests/test-random.c: New file, based on tests/test-random_r.c.
3975
3976         New module 'random'.
3977         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3978         declarations.
3979         * lib/random.c: New file, based on glibc/stdlib/random.c.
3980         * m4/random.m4: New file.
3981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3982         HAVE_RANDOM.
3983         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3984         * modules/random: New file.
3985         * config/srclist.txt: Add an entry for random.c.
3986         * doc/posix-functions/random.texi: Mention the 'random' module.
3987         * doc/posix-functions/initstate.texi: Likewise.
3988         * doc/posix-functions/setstate.texi: Likewise.
3989         * doc/posix-functions/srandom.texi: Likewise.
3990
3991 2012-01-12  Bruno Haible  <bruno@clisp.org>
3992
3993         random_r: Use common idioms.
3994         * lib/random_r.c: Include <stdlib.h> first.
3995
3996         random_r: Override incompatible API on AIX, OSF/1.
3997         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3998         Override the system function if REPLACE_RANDOM_R is 1.
3999         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4000         and OSF/1, set REPLACE_RANDOM_R.
4001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4002         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4003         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4004         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4005         * doc/glibc-functions/random_r.texi: Likewise.
4006         * doc/glibc-functions/setstate_r.texi: Likewise.
4007
4008         random_r: Support for MSVC 9.
4009         * lib/random_r.c: Include stdint.h, not inttypes.h.
4010
4011 2012-01-12  Eric Blake  <eblake@redhat.com>
4012
4013         inet_ntop: guard extra work by IF_LINT
4014         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4015         better code generation when not checking for warnings.
4016         Suggested by Paul Eggert and Jim Meyering.
4017
4018         strptime: fix regression on mingw
4019         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4020         Fix regression.  Reported by Bruno Haible.
4021
4022 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4023             Bruno Haible  <bruno@clisp.org>
4024
4025         copy-file: add error-code-returning variant.
4026         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4027         (qcopy_file_preserving): New declaration.
4028         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4029         copy_file_preserving. Change return type to 'int'. Don't emit an error
4030         message here.
4031         (copy_file_preserving): New function.
4032         * tests/test-copy-file.c: Include <stdlib.h>.
4033         (main): Test qcopy_file_preserving if the environment variable
4034         NO_STDERR_OUTPUT is set.
4035         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4036         with NO_STDERR_OUTPUT
4037         * tests/test-copy-file-2.sh: Likewise.
4038
4039 2012-01-10  Bruno Haible  <bruno@clisp.org>
4040
4041         copy-file: Use 'quote' module consistently.
4042         * lib/copy-file.c (copy_file_preserving): Use quote().
4043
4044         copy-file: Refactor.
4045         * lib/copy-file.c: Include quote.h.
4046         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4047         message here.
4048         * modules/copy-file (Depends-on): Add quote.
4049
4050         acl: Export qcopy_acl.
4051         * lib/acl.h (qcopy_acl): New declaration.
4052         * lib/copy-acl.c (qcopy_acl): Make non-static.
4053
4054         acl: Rename a local variable.
4055         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4056
4057         acl: Align return values of copy_acl and qcopy_acl.
4058         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4059         maybe < -1.
4060
4061 2012-01-11  Eric Blake  <eblake@redhat.com>
4062
4063         strptime: silence gcc warnings
4064         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4065         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4066         Reported by Daniel P. Berrange.
4067
4068         inet_ntop: silence gcc warning
4069         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4070         Reported by Daniel P. Berrange.
4071
4072 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4073
4074         getloadavg test: skip the test on GNU/Linux without /proc mounted
4075         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4076         file.  When /proc is not mounted, it always fails with ENOENT.
4077         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4078         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4079
4080 2012-01-10  Bruno Haible  <bruno@clisp.org>
4081
4082         regex: Avoid link error on MSVC 9.
4083         * modules/regex (Depends-on): Add wctype.
4084
4085 2012-01-10  Bruno Haible  <bruno@clisp.org>
4086
4087         doc: Mention --with-tests option.
4088         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4089         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4090         --with-tests.
4091         Reported by Reuben Thomas.
4092
4093 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4094
4095         users.txt: order package names lexicographically.
4096         * users.txt: Order package names lexicographically.
4097
4098 2012-01-10  Jim Meyering  <meyering@redhat.com>
4099
4100         maint.mk: fix description in comment
4101         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4102
4103         ignore-value: remove deprecated ignore_ptr function
4104         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4105         * NEWS: Note this.
4106
4107 2012-01-09  Jim Meyering  <meyering@redhat.com>
4108
4109         test-init.sh: avoid a subshell
4110         * tests/test-init.sh: Remove protective subshell.
4111         Suggested by Bernhard Voelker.  While a subshell is normally
4112         required to protect against older shells (Solaris, FreeBSD) that
4113         warn about a missing program before performing redirection, the
4114         shell-selection tests performed by init.sh probably exclude any
4115         offending shell.
4116
4117 2012-01-08  Bruno Haible  <bruno@clisp.org>
4118
4119         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4120         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4121         variable.
4122
4123 2012-01-08  Bruno Haible  <bruno@clisp.org>
4124
4125         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4126         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4127         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4128         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4129         macro.
4130         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4131         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4132         * lib/spawn_faction_addopen.c: Add workaround implementation if
4133         HAVE_WORKING_POSIX_SPAWN.
4134         * modules/spawn (Makefile): Substitute
4135         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4136         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4137         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4139         (Depends-on): Update conditions.
4140         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4141         the Solaris 11 bug.
4142
4143 2012-01-08  Bruno Haible  <bruno@clisp.org>
4144
4145         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4146         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4147         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4148         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4149         macro.
4150         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4151         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4152         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4153         HAVE_WORKING_POSIX_SPAWN.
4154         * modules/spawn (Makefile): Substitute
4155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4156         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4157         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4158         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4159         (Depends-on): Update conditions.
4160         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4161         the Solaris 11 bug.
4162
4163 2012-01-08  Bruno Haible  <bruno@clisp.org>
4164
4165         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4166         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4167         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4168         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4169         HAVE_WORKING_POSIX_SPAWN.
4170         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4171         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4172         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4173         * lib/spawn_faction_addclose.c: Add workaround implementation if
4174         HAVE_WORKING_POSIX_SPAWN.
4175         * modules/spawn (Makefile): Substitute
4176         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4177         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4178         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4180         (Depends-on): Update conditions.
4181         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4182         the Solaris 11 bug.
4183
4184 2012-01-08  Bruno Haible  <bruno@clisp.org>
4185
4186         doc: Update for Solaris 11 2011-11.
4187         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4188         * m4/printf.m4: Update comments.
4189
4190 2012-01-08  Bruno Haible  <bruno@clisp.org>
4191
4192         mktime: Avoid compilation error on Solaris 11.
4193         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4194
4195 2012-01-08  Bruno Haible  <bruno@clisp.org>
4196
4197         doc: Small fix.
4198         * doc/posix-headers/nl_types.texi: Correct platforms list.
4199
4200 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4201
4202         Add lgpl-3.0 module.
4203         * MODULES.html.sh (Support for building documentation): Add
4204         lgpl-3.0.
4205         * modules/lgpl-3.0: New file.
4206
4207 2012-01-08  Jim Meyering  <meyering@redhat.com>
4208
4209         select.c: indent with spaces, not TABs
4210         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4211
4212 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4213
4214         quotearg: do not use grave accent for left quote
4215         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4216         locale_quoting_style.
4217         (quotearg_buffer_restyled): Fix example.
4218         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4219
4220 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4221
4222         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4223         Most programs do not have translation catalogs for English and much
4224         less separate catalogs for British and American English.  Drop the
4225         suggestion to translators about these two, and provide it
4226         automatically for Unicode locales.  Like most programs, even those
4227         using American English, we use single quotation marks.  This conflicts
4228         with the American typographic convention, but works better when you
4229         cite the entire error message within double quotes.  It also tries not
4230         to clash with established practice and with what non-gnulib programs
4231         will usually do.
4232         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4233         using an UTF-8 or GB-18030 locale.  The list of other locales with
4234         quotes was provided by Bruno Haible.
4235         (quotearg_buffer_restyled): Adjust instructions to translators.
4236         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4237         text, since this would be wrong when using Unicode.
4238         * modules/quotearg: Depend on c-strcaseeq.
4239
4240 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4241
4242         quotearg: fix Wikipedia link
4243         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4244
4245 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4246
4247         Fix for mingw with MSVC9.
4248         * m4/ld-version-script.m4: Check that compiler rejects version
4249         scripts with syntax errors.  Reported by Bruno Haible
4250         <bruno@clisp.org>.
4251
4252 2012-01-06  Bruno Haible  <bruno@clisp.org>
4253
4254         Talk about "native Windows API", not "Woe32".
4255         * lib/accept4.c: Update comments to mention native Windows.
4256         * lib/execute.c: Likewise.
4257         * lib/fatal-signal.c: Likewise.
4258         * lib/localcharset.c: Likewise.
4259         * lib/nanosleep.c: Likewise.
4260         * lib/nl_langinfo.c: Likewise.
4261         * lib/pclose.c: Likewise.
4262         * lib/pipe-filter-gi.c: Likewise.
4263         * lib/pipe-filter-ii.c: Likewise.
4264         * lib/pipe.c: Likewise.
4265         * lib/pipe2.c: Likewise.
4266         * lib/popen.c: Likewise.
4267         * lib/progreloc.c: Likewise.
4268         * lib/relocatable.c: Likewise.
4269         * lib/sigaction.c: Likewise.
4270         * lib/sigprocmask.c: Likewise.
4271         * lib/spawn-pipe.h: Likewise.
4272         * lib/spawn-pipe.c: Likewise.
4273         * lib/spawni.c: Likewise.
4274         * lib/stat-time.h: Likewise.
4275         * lib/w32spawn.h: Likewise.
4276         * tests/test-isatty.c: Likewise.
4277         * lib/config.charset: More comments.
4278         * doc/gnulib-intro.texi: Mention native Windows.
4279         * doc/posix-functions/_Exit_C99.texi: Likewise.
4280         * doc/posix-headers/fcntl.texi: Likewise.
4281
4282 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4283
4284         argp: Avoid crash if translator uses % characters in a translation.
4285         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4286         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4287
4288 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         doc: C11 and C++11 are now official
4291         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4292         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4293         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4294         * modules/stdalign:
4295         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4296
4297 2012-01-06  Bruno Haible  <bruno@clisp.org>
4298
4299         uc-is-grapheme-break tests: Tweak.
4300         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4301         message.
4302
4303 2012-01-06  Bruno Haible  <bruno@clisp.org>
4304
4305         test-init.sh: correct the test for diff -u
4306         * tests/test-init.sh: Also redirect stdout to /dev/null.
4307
4308 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4309
4310         Use ', not `, for quoting output.
4311         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4312         (print_changelog_deltas, get_tool_versions, main program):
4313         * build-aux/git-version-gen:
4314         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4315         * build-aux/move-if-change (help):
4316         * build-aux/useless-if-before-free (usage, main program):
4317         * check-module (parse_module_file, usage)
4318         (find_included_lib_files, check_module):
4319         * lib/argmatch.c (main) [TEST]:
4320         * lib/argp-help.c (_help):
4321         * lib/getopt1.c (main) [TEST]:
4322         * lib/git-merge-changelog.c (usage):
4323         * lib/xstrtol-error.c (xstrtol_error):
4324         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4325         * m4/argz.m4 (gl_FUNC_ARGZ):
4326         * m4/bison.m4 (gl_BISON):
4327         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4329         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4330         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4331         * m4/gc-random.m4 (gl_GC_RANDOM):
4332         * m4/intl.m4 (gt_CHECK_DECL):
4333         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4334         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4335         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4336         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4337         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4338         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4339         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4340         * tests/test-dirname.c (main):
4341         * tests/test-getpass.c (main):
4342         * tests/test-iconvme.c (main):
4343         * tests/test-parse-datetime.c (LOG):
4344         * tests/test-xstrtoimax.sh:
4345         * tests/test-xstrtol.sh:
4346         * tests/test-xstrtoll.sh:
4347         * tests/test-xstrtoumax.sh:
4348         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4349         * top/GNUmakefile (abort-due-to-no-makefile):
4350         Quote 'like this', not `like this', as per the recent change to
4351         the GNU coding standards.
4352
4353 2012-01-05  Bruno Haible  <bruno@clisp.org>
4354
4355         strtoimax: Don't force a replacement on systems where intmax_t is int.
4356         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4357         'intmax_t' is not larger than 'int'.
4358         Reported by Pádraig Brady <P@draigBrady.com>.
4359
4360 2012-01-05  Bruno Haible  <bruno@clisp.org>
4361
4362         doc: Mention NetBSD bugs.
4363         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4364         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4365
4366 2012-01-05  Bruno Haible  <bruno@clisp.org>
4367
4368         strtoumax tests: Enhance tests.
4369         * tests/test-strtoumax.c (main): Add tests for large values.
4370
4371 2012-01-05  Bruno Haible  <bruno@clisp.org>
4372
4373         strtoimax: Work around AIX 5.1 bug.
4374         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4375         definition.
4376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4377         Set HAVE_STRTOIMAX.
4378         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4379         REPLACE_STRTOIMAX.
4380         * modules/inttypes-incomplete (Makefile.am): Substitute
4381         REPLACE_STRTOIMAX.
4382         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4383         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4384         (Depends-on): Update conditions.
4385         * tests/test-strtoimax.c (main): Add tests for large values.
4386         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4387
4388 2012-01-05  Bruno Haible  <bruno@clisp.org>
4389
4390         inttypes: Modernize.
4391         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4392         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4393         (Makefile.am): Update inttypes.h rule.
4394
4395 2012-01-05  Jim Meyering  <meyering@redhat.com>
4396
4397         init.sh: don't waste a subshell just to redirect stderr
4398         * tests/init.sh: In testing for diff -u and diff -c, use a
4399         stderr-redirecting exec inside `...` rather than a subshell.
4400
4401         test-init.sh: avoid failure on HP-UX 11.00
4402         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4403         resolves to diff -c or cmp.  Reported by Bruno Haible.
4404
4405 2012-01-05  Bruno Haible  <bruno@clisp.org>
4406
4407         Tests for module 'strtoull'.
4408         * modules/strtoull-tests: New file.
4409         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4410
4411 2012-01-05  Bruno Haible  <bruno@clisp.org>
4412
4413         Tests for module 'strtoll'.
4414         * modules/strtoll-tests: New file.
4415         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4416
4417 2012-01-05  Bruno Haible  <bruno@clisp.org>
4418
4419         Tests for module 'strtoul'.
4420         * modules/strtoul-tests: New file.
4421         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4422
4423 2012-01-05  Bruno Haible  <bruno@clisp.org>
4424
4425         Tests for module 'strtol'.
4426         * modules/strtol-tests: New file.
4427         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4428
4429 2012-01-04  Jim Meyering  <meyering@redhat.com>
4430
4431         test-init.sh: accommodate Solaris 5.10's different diff -u output
4432         * tests/test-init.sh: Also exempt @@ lines from the comparison
4433         of diff output, since Solaris 5.10 and GNU diff formats differ.
4434         Reported by Stefano Lattarini.
4435
4436 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4437
4438         test-posixtm: don't assume signed integer wraparound
4439         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4440         after signed integer overflow.  Inspired by (though it may not
4441         fix) Bruno Haible's bug report in
4442         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4443
4444         Spell out "Windows 9x" and "Windows XP".
4445         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4446         "Windows 9x" and "WinXP" with "Windows XP".
4447
4448 2012-01-04  Jim Meyering  <meyering@redhat.com>
4449
4450         test-vc-list-files-cvs.sh: remove obsolete comment
4451         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4452         double exit.  Now that's all encapsulated via skip_ and Exit.
4453
4454 2012-01-04  Bruno Haible  <bruno@clisp.org>
4455
4456         Talk about "native Windows API", not "Win32".
4457         * lib/classpath.c: Update comments to mention native Windows.
4458         * lib/csharpexec.c: Likewise.
4459         * lib/dup2.c: Likewise.
4460         * lib/error.c: Likewise.
4461         * lib/fcntl.c: Likewise.
4462         * lib/filename.h: Likewise.
4463         * lib/findprog.c: Likewise.
4464         * lib/get-rusage-as.c: Likewise.
4465         * lib/get-rusage-data.c: Likewise.
4466         * lib/getpagesize.c: Likewise.
4467         * lib/javaexec.c: Likewise.
4468         * lib/msvc-inval.c: Likewise.
4469         * lib/msvc-nothrow.c: Likewise.
4470         * lib/nanosleep.c: Likewise.
4471         * lib/nonblocking.c: Likewise.
4472         * lib/printf-parse.c: Likewise.
4473         * lib/setlocale.c: Likewise.
4474         * lib/sigaction.c: Likewise.
4475         * lib/strerror_r.c: Likewise.
4476         * lib/tmpdir.c: Likewise.
4477         * lib/vasnprintf.c: Likewise.
4478         * lib/w32spawn.h: Likewise.
4479         * lib/waitpid.c: Likewise.
4480         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4481         * m4/locale-ar.m4: Likewise.
4482         * m4/locale-fr.m4: Likewise.
4483         * m4/locale-ja.m4: Likewise.
4484         * m4/locale-tr.m4: Likewise.
4485         * m4/locale-zh.m4: Likewise.
4486         * m4/printf.m4: Likewise.
4487         * tests/test-cloexec.c: Likewise.
4488         * tests/test-copy-acl.sh: Likewise.
4489         * tests/test-copy-file.sh: Likewise.
4490         * tests/test-file-has-acl.sh: Likewise.
4491         * tests/test-set-mode-acl.sh: Likewise.
4492         * tests/test-dup-safer.c: Likewise.
4493         * tests/test-dup2.c: Likewise.
4494         * tests/test-dup3.c: Likewise.
4495         * tests/test-fcntl.c: Likewise.
4496         * tests/test-nonblocking-pipe.h: Likewise.
4497         * tests/test-nonblocking-socket.h: Likewise.
4498         * tests/test-pipe.c: Likewise.
4499         * tests/test-pipe2.c: Likewise.
4500         * tests/test-spawn-pipe-child.c: Likewise.
4501         * doc/acl-resources.txt: Likewise.
4502         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4503         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4504         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4505         * lib/localcharset.c: Update comments to mention native Windows.
4506         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4507         * lib/localename.c: Likewise.
4508         * lib/progreloc.c: Likewise.
4509         * lib/relocatable.c: Likewise.
4510         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4511         (windows_compute_revents): Renamed from win32_compute_revents.
4512         (windows_compute_revents_socket): Renamed from
4513         win32_compute_revents_socket.
4514         * lib/select.c: Update comments to mention native Windows.
4515         (windows_poll_handle): Renamed from win32_poll_handle.
4516         * m4/threadlib.m4: Update comments to mention native Windows.
4517         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4518         --enable-threads=windows instead of --enable-threads=win32. Set
4519         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4520         * lib/glthread/lock.h: Update comments to mention native Windows.
4521         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4522         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4523         USE_WIN32_THREADS.
4524         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4525         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4526         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4527         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4528         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4529         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4530         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4531         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4532         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4533         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4534         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4535         * tests/test-tls.c: Likewise.
4536         Rationale:
4537         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4538         on both 32-bit and 64-bit Windows systems.
4539         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4540         line of distinction is between "native Windows" on one side and Unix/
4541         POSIX systems on the other side. More details in
4542         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4543         Suggested by Paul Eggert.
4544
4545 2012-01-03  Bruno Haible  <bruno@clisp.org>
4546
4547         isatty: Support for MSVC 9.
4548         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4549         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4550         (_isatty_nothrow): New function.
4551         (isatty): Use it instead of _isatty.
4552         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4553         * lib/poll.c (IsConsoleHandle): Likewise.
4554         * lib/select.c (IsConsoleHandle): Likewise.
4555         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4556         (gl_PREREQ_ISATTY): New macro.
4557         * modules/isatty (Depends-on): Add msvc-inval.
4558         (configure.ac): Invoke gl_PREREQ_ISATTY.
4559
4560 2012-01-03  Jim Meyering  <meyering@redhat.com>
4561
4562         maint.mk: remove temporary transition aid from over 1.5 years ago
4563         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4564         purpose was to aid in the transition (avoiding silent malfunction)
4565         from that old name to the new _sc_search_regexp.  This shim was
4566         added by commit 219c504b.
4567
4568         init.sh: do not try to accommodate compare arguments starting with "-"
4569         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4570         compare arguments that start with "-".  Besides, we do not worry
4571         about this when invoking diff or cmp; why start now with sed?
4572         Using "--" to separate options from argument would trigger sed
4573         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4574         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4575
4576 2012-01-02  Bruno Haible  <bruno@clisp.org>
4577
4578         Enhance tests for module 'isatty'.
4579         * modules/isatty-tests (Depends-on): Add pipe-posix.
4580         * tests/test-isatty.c: Include <fcntl.h>.
4581         (DEV_NULL): New macro.
4582         (main): Test the resut of isatty() also on regular files, pipes, and
4583         /dev/null.
4584
4585         New module 'isatty'.
4586         * lib/unistd.in.h (isatty): New declaration.
4587         * lib/isatty.c: New file, based on an idea of
4588         Bastien Roucariès <roucaries.bastien@gmail.com>.
4589         * m4/isatty.m4: New file.
4590         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4591         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4592         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4593         REPLACE_ISATTY.
4594         * modules/isatty: New file.
4595         * doc/posix-functions/isatty.texi: Mention the new module.
4596         Suggested by Paolo Bonzini.
4597
4598 2012-01-02  Bruno Haible  <bruno@clisp.org>
4599
4600         canonicalize: Tweak 2011-12-29 commit.
4601         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4602         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4603
4604 2012-01-02  Jim Meyering  <meyering@redhat.com>
4605
4606         gitlog-to-changelog: describe input syntax in --help output
4607         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4608
4609         gitlog-to-changelog: fix typo in --help: show backslash before email @
4610         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4611         in sources, but not in actual output.
4612
4613 2011-12-30  Jim Meyering  <meyering@redhat.com>
4614
4615         gitlog-to-changelog: don't malfunction when name contains %-directive
4616         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4617         in a name string cause trouble.  E.g., with a user name of "%s",
4618         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4619
4620 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4621
4622         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4623         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4624         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4625         the "  (tiny change)" notation that is appended to the standard
4626         ChangeLog "date  name  email" header line.
4627
4628 2012-01-01  Jim Meyering  <meyering@redhat.com>
4629
4630         test-framework-sh: init.sh: fix "make dist" failure
4631         When using gnulib-tool's --with-tests option and any module that
4632         depends on test-framework-sh, "make dist" would fail due to the
4633         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4634         in the gltests directory, and not in the gllib/ directory.
4635         One way to work around that is to move the EXTRA_DIST += init.sh
4636         from the primary module to the -tests one:
4637         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4638         * modules/test-framework-sh (Makefile.am): ...not here.
4639         Reported by Tom G. Christensen in
4640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4641
4642         version-etc: update copyright year reported by --version
4643         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4644
4645 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4646
4647         canonicalize: only stat() if required
4648         * lib/canonicalize.c (canonicalize_filename_mode):
4649         Avoid calling l?stat() when both CAN_MISSING,
4650         and CAN_NOLINKS are set, as we neither need
4651         to resolve symlinks or test component existence.
4652
4653 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         doc: cover st_ino issues once; add OpenVMS etc.
4656         * doc/posix-functions/stat.texi (stat):
4657         * doc/posix-functions/lstat.texi (lstat):
4658         * doc/posix-functions/fstatat.texi (fstatat):
4659         * doc/posix-functions/fstat.texi (fstat):
4660         Move general 'struct stat' stuff to sys_stat.texi,
4661         leaving behind a pointer.
4662         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4663         Merge duplicate info about 'struct stat' problems into here.
4664         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4665         and suggest partial workarounds.
4666
4667         same-inode: port to OpenVMS
4668         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4669         three st_ino values.
4670
4671 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4672
4673         canonicalize: fix references to stat() and lstat()
4674         * lib/canonicalize.c (canonicalize_filename_mode):
4675         Ensure references always resolve to a replacement
4676         function if required (even via a macro).
4677
4678 2011-12-30  Jim Meyering  <meyering@redhat.com>
4679
4680         gitlog-to-changelog: remove a little duplication
4681         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4682         rather than twice.
4683
4684 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4685
4686         canonicalize: add support for not resolving symlinks
4687         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4688         indicate we don't want to follow symlinks.  Also
4689         provide CAN_MODE_MASK to aid setting these existing
4690         mutually exclusive values.
4691         * lib/canonicalize.c (canonicalize_filename_mode):
4692         Extract the flags from can_mode parameter, which
4693         are currently just used to select between stat()
4694         and lstat().  Also ensure that mutually exclusive
4695         values are flagged immediately as invalid.
4696         * tests/test-canonicalize.c: Verify symlinks are
4697         not followed, and that invalid flag combinations
4698         are diagnosed.
4699
4700 2011-12-25  Jim Meyering  <meyering@redhat.com>
4701
4702         gitlog-to-changelog: do not clump multi-paragraph entries
4703         Identical header lines (date,name,email+coauthors) are suppressed,
4704         thus putting all entries with those same characteristics under
4705         a single header.  However, when a log entry consists of two or
4706         more paragraphs, it may not be clear where it starts and ends.
4707         This change makes it so that such an entry is always separated
4708         from others by a header line, even when that header would
4709         otherwise be suppressed.
4710         * build-aux/gitlog-to-changelog: Implement the above.
4711         Inspired by a related request from Stefano Lattarini in
4712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4713
4714 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         announce-gen: fix `cmd' typo in diagnostic
4717         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4718         diagnostic: a missing '$' meant that the command was not output.
4719
4720 2011-12-23  Jim Meyering  <meyering@redhat.com>
4721
4722         test-framework-sh: distribute init.sh
4723         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4724         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4725         fail due to the lack of init.sh.
4726
4727         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4728         * modules/atexit-tests: Rather than listing tests/init.sh,
4729         now that there's a module for it, simply depend on that new module.
4730         * modules/closein-tests: Likewise.
4731         * modules/exclude-tests: Likewise.
4732         * modules/getcwd-tests: Likewise.
4733         * modules/perror-tests: Likewise.
4734         * modules/pread-tests: Likewise.
4735         * modules/pwrite-tests: Likewise.
4736         * modules/vc-list-files-tests: Likewise.
4737         * modules/verify-tests: Likewise.
4738         * modules/xalloc-die-tests: Likewise.
4739         * modules/xstrtoimax-tests: Likewise.
4740         * modules/xstrtol-tests: Likewise.
4741         * modules/xstrtoll-tests: Likewise.
4742         * modules/xstrtoumax-tests: Likewise.
4743         * modules/yesno-tests: Likewise.
4744
4745 2011-12-22  Jim Meyering  <meyering@redhat.com>
4746
4747         test-framework-sh: add minimal tests of init.sh's compare function
4748         * modules/test-framework-sh-tests: New file.
4749         * tests/test-init.sh: New file.
4750
4751         test-framework-sh: new module
4752         * modules/test-framework-sh: New file.
4753         * MODULES.html.sh (Support for maintaining and releasing projects):
4754         List it.
4755
4756         init.sh: do not emit simulated diff output to stderr
4757         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4758
4759 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4760
4761         .gitignore: ignore gnulib.dvi and regex.info
4762         * doc/.gitignore:add gnulib.dvi and regex.info
4763
4764 2011-12-22  Jim Meyering  <meyering@redhat.com>
4765
4766         init.sh: correct previous change
4767         * tests/init.sh (compare): My previous change was wrong.
4768         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4769
4770         init.sh: avoid unwarranted test failure when using "set -e"
4771         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4772         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4773         a use like "compare exp out" would get evoke an unconditional failure.
4774
4775 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4776
4777         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4778         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4779         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4780         autoreconf that did not.
4781         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4782         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4783
4784 2011-12-17  Jim Meyering  <meyering@redhat.com>
4785
4786         bootstrap: remove some now-unneeded code
4787         This script arose back when gnulib-tool was young.
4788         Since then, it has seen improvements that render much of this
4789         script unnecessary.  In particular, it can now make symlinks
4790         to the files it uses.  Also, I no longer see as much value in
4791         marking files as read-only via comments.
4792         If you relied on the symlink-creation feature of the preceding
4793         version of this script, you can get most of that functionality
4794         by adding the --symlink option to the definition of
4795         gnulib_tool_option_extras in your bootstrap.conf file.
4796         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4797         Run autopoint and libtoolize *before* gnulib-tool.
4798         After it, run an abbreviated autoreconf, rather than a loop around
4799         all tools.
4800         (slirp, bt_mark_as_generated): Remove functions.
4801
4802 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         ftoastr: fix typo
4805         * lib/ftoastr.h: Fix misspelling in comment.
4806
4807 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4808
4809         * top/README-release: fix punctuation.
4810
4811 2011-12-17  Jim Meyering  <meyering@redhat.com>
4812
4813         bootstrap: correct the recent buildreq change
4814         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4815         had no effect.
4816         * build-aux/bootstrap (buildreq): Bracket each search term with
4817         "*...*", so that the shell "case" statement works as intended.
4818         Add comments.
4819
4820 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4821
4822         build: let bootstrap resort to wget when downloading .po files
4823         * build-aux/bootstrap (download_po_files): Fallback to wget when
4824         downloading the .po files via rsync fails.  This is necessary to
4825         bootstrap from behind a strict firewall.
4826
4827 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4828
4829         stdint: don't assume C++11 when compiling with g++
4830         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4832         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4833         work also in C++ before C++11, as that improperly inhibits
4834         generating a substitute stdint.h for that case.
4835
4836 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         alloca: protect comment from gnulib-tool
4839         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4840         that gnulib-tool doesn't think it's a license, and munge it to
4841         say "GCC version 3".
4842
4843 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4844
4845         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4846         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4847         $(abs_top_builddir) instead of $(top_builddir).
4848
4849 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4850
4851         strftime-tests: also test nanoseconds
4852         * tests/test-strftime.c (T): Add a test of %N.
4853
4854 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4855
4856         inttypes, stdint: add C++11 support
4857         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4858         when including inttypes.h and stdint.h.  Support this change to
4859         the standard.
4860         * doc/posix-headers/inttypes.texi (inttypes.h):
4861         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4862         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4863         Define if not defined already, for the benefit of pre-C++11 hosts.
4864         Define the standard format macros (e.g., PRId8) always.
4865         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4866         Likewise, if __cpluspus.  Define the standard constant and limit
4867         macros (e.g., INT8_C, INT8_MAX) always.
4868         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4869         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4870         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4871         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4872         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4873         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4874         Likewise.
4875
4876 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4877
4878         nonblocking tests: Fix test failure on Linux/PPC.
4879         Suggested by Prerna Saxena in
4880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4881         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4882         Set to 1100000.
4883
4884 2011-12-12  Jim Meyering  <meyering@redhat.com>
4885
4886         argmatch: don't hard-code `' when listing valid option arguments
4887         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4888         use the quote function to add quotes.  Use fputs rather than
4889         fprintf for the format string with no format directive.
4890
4891 2011-12-07  Eric Blake  <eblake@redhat.com>
4892
4893         bootstrap: detect tools required by gnulib-tool
4894         * build-aux/bootstrap (buildreq): Provide minimum implicit
4895         dependencies.
4896         * DEPENDENCIES: Mention patch as a prereq.
4897
4898 2011-12-04  Bruno Haible  <bruno@clisp.org>
4899
4900         sethostname: Port to Windows platforms.
4901         * lib/sethostname.c: Provide an alternate implementation for Windows
4902         platforms.
4903         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4904         (main): Skip the test if sethostname() fails with EPERM. On Windows
4905         platforms, don't check the result of gethostname().
4906
4907 2011-12-04  Bruno Haible  <bruno@clisp.org>
4908             Jim Meyering  <meyering@redhat.com>
4909
4910         tests: Avoid spurious error message on platforms without mktemp program.
4911         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4912
4913 2011-12-04  Bruno Haible  <bruno@clisp.org>
4914
4915         sethostname: Fix documentation.
4916         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4917         "not fixed" section.
4918
4919 2011-12-03  Bruno Haible  <bruno@clisp.org>
4920
4921         gnulib-tool: Verify that the License field is present and non-empty.
4922         * gnulib-tool (func_get_license_raw): New function, extracted from
4923         func_get_license.
4924         (func_get_license): Use it. Warn if the module is not a test module and
4925         has no license.
4926         Suggested by Jim Meyering.
4927
4928 2011-12-03  Bruno Haible  <bruno@clisp.org>
4929
4930         sethostname tests: Fix link error on mingw.
4931         * tests/test-sethostname1.c: New file, extracted from
4932         tests/test-sethostname.c.
4933         * tests/test-sethostname2.c: New file, extracted from
4934         tests/test-sethostname.c.
4935         * tests/test-sethostname.c: Remove file.
4936         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4937         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4938         (Depends-on): Add gethostname.
4939         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4940         Link the latter with $(GETHOSTNAME_LIB).
4941
4942         sethostname tests: Fix compilation error on mingw.
4943         * tests/test-sethostname.c: Don't include <sys/types.h>.
4944         (geteuid): Use a dummy value without uid_t.
4945         * modules/sethostname-tests (Depends-on): Remove sys_types.
4946
4947         sethostname tests: Avoid a gcc warning.
4948         * tests/test-sethostname.c (main): Remove an unused variable.
4949
4950         Tweak last commit.
4951         * modules/sethostname-tests (Files): Sort by decreasing importance.
4952         (configure.ac): Check for geteuid.
4953         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4954         the test when there's nothing to test. Drop an unnecessary cast.
4955         Improve an error message. Verify that the final sethostname() call
4956         succeeds.
4957
4958 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4959
4960         Add a test suite for the sethostname module.
4961         * modules/sethostname-tests: New file.  A test program
4962         for the sethostname module.
4963         * tests/test-sethostname.c: Likewise.
4964
4965 2011-12-03  Bruno Haible  <bruno@clisp.org>
4966
4967         Tweak last commit.
4968         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4969         Fix preprocessor directives indentation. Fix typos.
4970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4971         * modules/unistd (Makefile): Likewise.
4972
4973 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4974
4975         Integrate the sethostname module into unistd.
4976         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4977         into the unistd.h header.
4978         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4979         preprocessor directives.
4980         * modules/unistd: Setup the Makefile substitutions of the
4981         SETHOSTNAME preprocessor directives.
4982
4983 2011-12-03  Bruno Haible  <bruno@clisp.org>
4984
4985         Tweak last commit.
4986         * lib/sethostname.c: Don't include <string.h>.
4987         (sethostname): No need to copy the argument string to the stack. Don't
4988         call clearerr. Preserve errno when fprintf failed.
4989         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4990         Don't invoke AC_REPLACE_FUNCS.
4991         * modules/sethostname (Link): Remove empty section.
4992         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4993         failure problem.
4994
4995 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4996
4997         New module 'sethostname'.
4998         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4999         for systems that lack it.
5000         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5001         sethostname declaration and function.
5002         * modules/sethostname: New file.  Define the sethostname module.
5003
5004 2011-12-03  Bruno Haible  <bruno@clisp.org>
5005
5006         Tweak last commit.
5007         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5008
5009 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5010
5011         Split the HOST_NAME_MAX detection into a separate m4 macro.
5012         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5013         macro so it can be used by the pending sethostname module.
5014
5015 2011-12-03  Bruno Haible  <bruno@clisp.org>
5016
5017         Fix module descriptions syntax.
5018         * modules/argv-iter (License): Fix syntax.
5019         * modules/di-set (License): Likewise.
5020         * modules/ino-map (License): Likewise.
5021         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5022
5023 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5024
5025         stdalign: port to Clang 3.0
5026         Problem reported by Simon Josefsson in
5027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5028         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5029         which has <stdalign.h> but which does not define alignof.
5030         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5031
5032 2011-12-01  Eric Blake  <eblake@redhat.com>
5033
5034         mktempd: silence dd usage
5035         * build-aux/mktempd (rand_bytes): Silence dd.
5036
5037 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5038
5039         manywarnings: Don't mention gcc version in docstring.
5040         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5041         Jim Meyering <meyering@redhat.com>.
5042
5043 2011-11-30  Jim Meyering  <meyering@redhat.com>
5044
5045         hash: mark a few floating point constants with "f" suffix
5046         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5047         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5048         floating point constants with "f", since they're destined to be
5049         saved/used as "float"s.
5050
5051 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5052
5053         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5054         * tests/test-float.c (test_long_double): Correct and re-enable the
5055         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5056
5057 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5058
5059         Avoid subtracting two pointers that don't point into the same block.
5060         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5061         only pointers into the same memory block are subtracted. We cannot
5062         assume that sizeof (ptrdiff_t) == sizeof (void *).
5063
5064 2011-11-29  Eric Blake  <eblake@redhat.com>
5065
5066         maint.mk: add syntax check for use of compare from init.sh
5067         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5068         moved here from coreutils.
5069
5070         manywarnings: drop -Wunsuffixed-float-constants
5071         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5072         '1.0D', which is the only way to silence this warning for 'double'.
5073
5074 2011-11-29  Jim Meyering  <meyering@redhat.com>
5075
5076         hash: mark compute_bucket_size with the pure attribute
5077         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5078
5079         quotearg, propername: correct pragma guard expression
5080         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5081         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5082
5083 2011-11-28  Jim Meyering  <meyering@redhat.com>
5084
5085         propername: do not mark proper_name with the const attribute
5086         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5087         since it examines data pointed to by its parameter.
5088         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5089         the suggestion from -Wsuggest-attribute=const.
5090
5091         propername: mark one more function as const
5092         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5093
5094 2011-11-27  Jim Meyering  <meyering@redhat.com>
5095
5096         mark functions with const and pure attributes
5097
5098         Mark functions per suggestions from gcc-4.6 when using these options:
5099         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5100         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5101         Follow these guidelines: when possible, apply the attribute to
5102         an extern declaration, not to its definition.  Apply it to the
5103         definition only when the definition is static.
5104         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5105         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5106         * lib/base64.h (isbase64): Likewise.
5107         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5108         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5109         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5110         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5111         (c_tolower, c_toupper): Likewise.
5112         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5113         * lib/chdir-long.c (find_non_slash): Likewise.
5114         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5115         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5116         * lib/file-type.h (file_type): Likewise.
5117         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5118         * lib/filevercmp.c (verrevcmp): Likewise.
5119         * lib/freadahead.h (freadahead): Likewise.
5120         * lib/fts.c (fts_maxarglen): Likewise.
5121         * lib/hash-pjw.h (hash_pjw): Likewise.
5122         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5123         * lib/hash.c (is_prime, next_prime): Likewise.
5124         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5125         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5126         (hash_table_ok, hash_get_first, hash_string): Likewise.
5127         (compute_bucket_size): Likewise.
5128         * lib/i-ring.h (i_ring_empty): Likewise.
5129         * lib/isnan.c (isnanl): Likewise.
5130         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5131         * lib/memcasecmp.h (memcasecmp): Likewise.
5132         * lib/memchr2.h (memchr2): Likewise.
5133         * lib/memcmp2.h (memcmp2): Likewise.
5134         * lib/parse-datetime.y (lookup_zone): Likewise.
5135         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5136         [!WINDOWS_SOCKETS]: Likewise.
5137         * lib/strnlen1.h (strnlen1): Likewise.
5138         * lib/uniwidth.in.h (uc_width): Likewise.
5139         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5140         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5141         (quoting_options_from_style): Add a comment.
5142         * lib/propername.h (proper_name): Add a comment.
5143
5144 2011-11-27  Bruno Haible  <bruno@clisp.org>
5145
5146         Remove unused macros from !_LIBC code in glibc-borrowed files.
5147         * lib/fnmatch.c (STRCOLL): Remove macro.
5148         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5149         * lib/glob.c (__stat, __readdir64): Remove macros.
5150         * lib/tempname.c (__open64, __xstat64): Remove macros.
5151         Suggested by Paul Eggert.
5152
5153 2011-11-27  Bruno Haible  <bruno@clisp.org>
5154
5155         getcwd: Fix link error on MSVC 9.
5156         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5157
5158 2011-11-27  Bruno Haible  <bruno@clisp.org>
5159
5160         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5161         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5162         HAVE_OPENDIR is 0.
5163         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5164         HAVE_CLOSEDIR is 0.
5165         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5166         is 0.
5167         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5168
5169 2011-11-27  Bruno Haible  <bruno@clisp.org>
5170
5171         getcwd: Fix bug from 2011-08-17.
5172         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5173         platforms that need it.
5174         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5175         code of 4 to be a failure, not a success. This ensures that
5176         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5177
5178 2011-11-27  Bruno Haible  <bruno@clisp.org>
5179
5180         binary-io tests: Avoid test failure on mingw when libtool is used.
5181         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5182         Don't verify the size of t-bin-out1.tmp here.
5183         * tests/test-binary-io.sh: Verify it here.
5184         Reported by Simon Josefsson.
5185
5186 2011-11-26  Bruno Haible  <bruno@clisp.org>
5187
5188         Fix conflict between two instantiations of module 'unistd'.
5189         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5190         ${include_guard_prefix} also in the autoconf snippet.
5191         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5193         GNULIB_UNISTD_H_GETOPT.
5194         * modules/getopt-posix (configure.ac): Set the
5195         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5196         * modules/getopt-gnu (configure.ac): Likewise.
5197         * modules/unistd (Makefile.am): Change the substitution value of
5198         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5199         Reported by Simon Josefsson.
5200
5201 2011-11-25  Bruno Haible  <bruno@clisp.org>
5202
5203         pagealign_alloc: Doc and comments.
5204         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5205         module.
5206         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5207
5208 2011-11-25  Jim Meyering  <meyering@redhat.com>
5209
5210         test-update-copyright.sh: avoid false-positive failure
5211         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5212         around false positive failure on Cygwin/Windows.  The latter was
5213         matching erroneously-created files with names like
5214         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5215
5216 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5217
5218         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5219         * m4/valgrind-tests.m4: Check that the parameters that will be
5220         used works, not just a subset of them.  Reported by Bruno Haible
5221         <bruno@clisp.org>.
5222
5223 2011-11-24  Jim Meyering  <meyering@redhat.com>
5224
5225         test-stdalign.c: comment out long double tests
5226         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5227         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5228         error: '_Alignas' specifiers cannot reduce alignment of \
5229         'static_longdouble_alignas'.
5230
5231 2011-11-22  Jim Meyering  <meyering@redhat.com>
5232
5233         init.sh: make "compare /dev/null FILE" output more readable
5234         * tests/init.sh (compare_): Document the preferred order of arguments.
5235         (emit_diff_u_header_): New function.
5236         (compare_dev_null_): Emit a simulated diff, rather than just the
5237         contents of the unexpected file.  Suggestion from Bruno Haible.
5238
5239 2011-11-21  Jim Meyering  <meyering@redhat.com>
5240             Eric Blake  <eblake@redhat.com>
5241
5242         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5243         * tests/init.sh: Make our compare function slightly more portable.
5244         Reported by Bruno Haible in
5245         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5246
5247 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5248
5249         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5250         before using it, in code that ends up in config.h.
5251
5252 2011-11-20  Bruno Haible  <bruno@clisp.org>
5253
5254         getcwd: Work around getcwd bug on AIX 5..7.
5255         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5256         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5257         Use a different value for gl_cv_func_getcwd_path_max. Move the
5258         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5259         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5260         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5261         Define HAVE_MINIMALLY_WORKING_GETCWD.
5262         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5263         where it is not even minimally working, that is, on AIX.
5264         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5265         m4/getcwd-path-max.m4.
5266         (main): Update exit code computation.
5267         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5268         getcwd does not handle long file names.
5269
5270 2011-11-20  Bruno Haible  <bruno@clisp.org>
5271
5272         getcwd: Fix bug from 2009-09-10.
5273         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5274         like "no".
5275
5276 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5277
5278         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5279
5280 2011-11-20  Bruno Haible  <bruno@clisp.org>
5281
5282         fma tests: Avoid shadowing local variables.
5283         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5284         expected.
5285
5286 2011-11-20  Bruno Haible  <bruno@clisp.org>
5287
5288         copysignf tests: Fix.
5289         * tests/test-copysignf.c: Fix signature check.
5290
5291 2011-11-20  Bruno Haible  <bruno@clisp.org>
5292
5293         fma: Remove unused code.
5294         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5295         unused macros.
5296
5297 2011-11-20  Bruno Haible  <bruno@clisp.org>
5298
5299         sethostname: Fix doc about AIX.
5300         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5301         sethostname; it has it.
5302
5303         sethostname: Mention more portability problems.
5304         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5305         problem.
5306         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5307
5308 2011-11-19  Bruno Haible  <bruno@clisp.org>
5309
5310         Depend on module fcntl-h when AT_FDCWD is used.
5311         * modules/utimens (Depends-on): Add fcntl-h.
5312         * modules/areadlinkat (Depends-on): Likewise.
5313         * modules/areadlinkat-with-size (Depends-on): Likewise.
5314         * modules/faccessat (Depends-on): Likewise.
5315         * modules/fchmodat (Depends-on): Likewise.
5316         * modules/fchownat (Depends-on): Likewise.
5317         * modules/getcwd (Depends-on): Likewise.
5318         * modules/mkdirat (Depends-on): Likewise.
5319         * modules/mkfifoat (Depends-on): Likewise.
5320         * modules/readlinkat (Depends-on): Likewise.
5321         * modules/symlinkat (Depends-on): Likewise.
5322         * modules/dup2-tests (Depends-on): Likewise.
5323         * modules/fdutimensat-tests (Depends-on): Likewise.
5324         * modules/futimens-tests (Depends-on): Likewise.
5325
5326 2011-11-19  Bruno Haible  <bruno@clisp.org>
5327
5328         euidaccess: Update a comment.
5329         * lib/euidaccess.c: Update comment about platforms with faccessat.
5330
5331 2011-11-19  Bruno Haible  <bruno@clisp.org>
5332
5333         openat: Fix file list.
5334         * modules/openat (Files): Remove lib/at-func.c.
5335
5336 2011-11-19  Bruno Haible  <bruno@clisp.org>
5337
5338         fstatat: Simplify.
5339         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5340         gnulib should define rpl_fstatat, there is a
5341         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5342
5343 2011-11-19  Bruno Haible  <bruno@clisp.org>
5344
5345         Ensure 'inline' can be used in tests/test-utimens-common.h.
5346         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5347         * modules/futimens-tests (configure.ac): Likewise.
5348         * modules/utimens-tests (configure.ac): Likewise.
5349         * modules/utimensat-tests (configure.ac): Likewise.
5350
5351 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5352
5353         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5354         not hash_insert0.
5355         (hash_insert_if_absent): Doc fix.
5356
5357 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5358
5359         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5360
5361 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5362
5363         test-getcwd: disambiguate exit status
5364         * tests/test-getcwd.c (test_long_name): Return 0..7.
5365         (main): Exit with an unambiguous exit status.  The old
5366         code yielded a mysterious mixture of two failure codes.
5367
5368         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5369         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5370         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5371         rpl_fstatat or fstatat.  This should fix the other problem
5372         reported by Kai Habel in
5373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5374         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5376         and I reproduced it on a Solaris 8 host we still have in production.
5377
5378 2011-11-18  Jim Meyering  <meyering@redhat.com>
5379
5380         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5381         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5382         Add a sentence to the comment.
5383         (hash_insert0): New function that simply calls hash_insert_if_absent.
5384         * lib/hash.h (hash_insert_if_absent): Declare it.
5385         (hash_insert0): Add deprecation attribute.
5386         (_GL_ATTRIBUTE_DEPRECATED): Define.
5387         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5388         not hash_insert0.
5389         * NEWS: Mention it, even though it's not really an incompatible change.
5390
5391 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5392
5393         openat: avoid compilation failure due to lack of <errno.h> inclusion
5394         * lib/openat.c: Include <errno.h>.
5395
5396 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5397
5398         * modules/getcwd (Depends-on): Add fdopendir.
5399         This fixes one of the two problems reported by Kai Habel in
5400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5401
5402         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5403         stdalign problem reported by Ian Beckwith in
5404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5405         * modules/crypto/gc-arcfour (Depends-on):
5406         Depend conditionally on crypto/arcfour.
5407         * modules/crypto/gc-arctwo (Depends-on):
5408         Depend conditionally on crypto/arctwo.
5409         * modules/crypto/gc-des (Depends-on):
5410         Depend conditionally on crypto/des.
5411         * modules/crypto/gc-hmac-md5 (Depends-on):
5412         Depend conditionally on crypto/hmac-md5.
5413         * modules/crypto/gc-hmac-sha1 (Depends-on):
5414         Depend conditionally on crypto/hmac-sha1.
5415         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5416         * modules/crypto/gc-md4 (Depends-on):
5417         Depend conditionally on crypto/md4.
5418         * modules/crypto/gc-md5 (Depends-on):
5419         Depend conditionally on crypto/md5.
5420         * modules/crypto/gc-rijndael (Depends-on):
5421         Depend conditionally on crypto/rijndael.
5422         * modules/crypto/gc-sha1 (Depends-on):
5423         Depend conditionally on crypto/sha1.
5424         * modules/crypto/gc-arcfour:
5425         * modules/crypto/gc-arctwo:
5426         * modules/crypto/gc-des:
5427         * modules/crypto/gc-hmac-md5:
5428         * modules/crypto/gc-hmac-sha1:
5429         * modules/crypto/gc-md2:
5430         * modules/crypto/gc-md4:
5431         * modules/crypto/gc-md5:
5432         * modules/crypto/gc-rijndael:
5433         * modules/crypto/gc-sha1:
5434         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5435         now that the conditional dependencies do the work for us.
5436
5437 2011-11-17  Jim Meyering  <meyering@redhat.com>
5438
5439         tests: factor st_ctime-comparison out of two headers
5440         * tests/test-utimens-common.h (ctime_compare): Define.
5441         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5442         * tests/test-lutimens.h (test_lutimens): Likewise.
5443         * tests/test-utimens.h (test_utimens): Likewise.
5444
5445         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5446         Invoke the test program via an init.sh-using wrapper.
5447         * tests/test-getcwd.sh: New file.
5448         * modules/getcwd-tests (Files): Add it.
5449         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5450
5451 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5452
5453         gitlog-to-changelog: support multi-author commits.
5454         The FSF cares about keeping track of all authors of patches to its
5455         projects, but Git doesn't provide obvious support for multi-author
5456         changesets. Consensus seems to be forming around the use of extra
5457         Signed-off-by inspired lines in the log message formatted as
5458         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5459         multi-author commits between version control systems.
5460         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5461         log message and output in standard ChangeLog multi-author format.
5462         Reported by Peter Rosin <peda@lysator.liu.se>
5463
5464 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5465             Bruno Haible  <bruno@clisp.org>
5466
5467         Fix some modules' file list.
5468         * modules/fstatat (Files): Add m4/lstat.m4.
5469         * modules/openat (Files): Likewise.
5470         * modules/unlinkat (Files): Likewise.
5471
5472 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5473
5474         maint.mk: fix tight-scope.mk generation in VPATH builds.
5475         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5476         reference with $(srcdir) so that the file is found correctly even
5477         when running `make syntax-check' in a VPATH build.
5478
5479 2011-11-13  Bruno Haible  <bruno@clisp.org>
5480             Jim Meyering  <meyering@redhat.com>
5481
5482         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5483         * tests/init.sh (compare): Remove "No differences encountered" or
5484         synonymous output from the 'diff' program.
5485
5486 2011-11-13  Bruno Haible  <bruno@clisp.org>
5487
5488         Makefile: Tweak indentation.
5489         * Makefile: Use tab as first character in every line that contains rule
5490         commands.
5491
5492 2011-11-13  Bruno Haible  <bruno@clisp.org>
5493
5494         Syntax check for copyright statements.
5495         * check-copyright: New file.
5496         * Makefile (sc_check_copyright): New rule.
5497
5498 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5499
5500         * build-aux/git-version-gen: Add --prefix to configure the tag
5501         match string.
5502
5503 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5504
5505         * build-aux/git-version-gen: Add --help and --version.
5506
5507 2011-11-12  Jim Meyering  <meyering@redhat.com>
5508
5509         revamp the other test-exclude?.sh scripts to use init.sh, too
5510         * tests/test-exclude1.sh: Use init.sh.
5511         * tests/test-exclude2.sh: Likewise.
5512         * tests/test-exclude3.sh: Likewise.
5513         * tests/test-exclude4.sh: Likewise.
5514         * tests/test-exclude5.sh: Likewise.
5515         * tests/test-exclude6.sh: Likewise.
5516         * tests/test-exclude7.sh: Likewise.
5517         * tests/test-exclude8.sh: Likewise.
5518         * modules/exclude-tests (Files): List init.sh.
5519
5520         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5521         These shell scripts ignored failure of the binary test-exclude,
5522         so making the latter return 77 didn't cause them to be skipped.
5523         * tests/test-exclude5.sh: Exit with test-exclude's error status
5524         when that program fails.  Revamp to use init.sh.
5525         * tests/test-exclude2.sh: Likewise.
5526
5527         test-exclude: fix a typo
5528         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5529
5530 2011-11-11  Bruno Haible  <bruno@clisp.org>
5531
5532         obstack: Fix compilation error on MSVC 9.
5533         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5534
5535 2011-11-11  Jim Meyering  <meyering@redhat.com>
5536
5537         test-exclude: skip tests rather than failing on deficient systems
5538         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5539         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5540         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5541         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5542
5543 2011-11-10  Bruno Haible  <bruno@clisp.org>
5544
5545         ptsname_r test: Avoid gcc warning on glibc systems.
5546         * tests/test-ptsname_r.c (null_ptr): New function.
5547         (test_errors): Use it.
5548
5549 2011-11-10  Bruno Haible  <bruno@clisp.org>
5550
5551         ptsname_r: Avoid compilation error on OSF/1 5.1.
5552         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5554         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5555         function is not declared or incompatibly declared.
5556         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5557         * modules/ptsname_r (Depends-on, configure.ac): Update.
5558         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5559
5560 2011-11-10  Bruno Haible  <bruno@clisp.org>
5561
5562         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5563         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5564         When cross-compiling, guess yes on all platforms except AIX.
5565         Reported by Ludovic Courtès <ludo@gnu.org>.
5566
5567 2011-11-09  Bruno Haible  <bruno@clisp.org>
5568
5569         ptsname_r tests: Fix bugs.
5570         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5571         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5572
5573 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5574
5575         fstatat: work with cross-compilation
5576         Problem reported by Ludovic Courtès in
5577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5578         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5579         "cross-compiling" and assume the bug is present.  Replace
5580         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5581         an inverted sense, to be more conservative about our assumptions.
5582         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5583
5584 2011-11-09  Bruno Haible  <bruno@clisp.org>
5585
5586         Improve MODULES.html output.
5587         * modules/mkfifoat (Description): Use the word "function".
5588         * modules/readlinkat (Description): Likewise.
5589         * modules/symlinkat (Description): Likewise.
5590
5591 2011-11-09  Eric Blake  <eblake@redhat.com>
5592
5593         ptsname_r-tests: new test module
5594         * modules/ptsname_r-tests: New module.
5595         * tests/test-ptsname_r.c: New file.
5596
5597         ptsname_r: new module
5598         * modules/ptsname_r: New module.
5599         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5600         * lib/ptsname.c (__ptsname_r): Split...
5601         * lib/ptsname_r.c: ...into new file.
5602         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5603         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5604         * modules/stdlib (Makefile.am): Substitute witnesses.
5605         * lib/stdlib.in.h (ptsname_r): Declare it.
5606         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5607         * MODULES.html.sh (Misc): Likewise.
5608         * modules/ptsname (Depends-on): Alter dependency.
5609         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5610
5611 2011-11-09  Jim Meyering  <meyering@redhat.com>
5612
5613         announce-gen: be more concise when there's only one URL+tarball
5614         * build-aux/announce-gen (get_tool_versions): When you distribute
5615         only one type of tarball, combine the first two "Here are..."
5616         sections and make the key-checking grammar independent of
5617         how many tarballs there are.
5618
5619 2011-11-09  Eric Blake  <eblake@redhat.com>
5620
5621         openpty: provide a stub on mingw
5622         * lib/pty.in.h (includes): Provide forward declarations.
5623         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5624
5625         raise: fix mingw handling of SIGPIPE
5626         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5627
5628 2011-11-08  Bruno Haible  <bruno@clisp.org>
5629
5630         More conditional dependencies.
5631         * modules/faccessat (Depends-on): Add conditions.
5632         * modules/fchmodat (Depends-on): Likewise.
5633         * modules/fchownat (Depends-on): Likewise.
5634         * modules/fstatat (Depends-on): Likewise.
5635         * modules/mkfifoat (Depends-on): Likewise.
5636         * modules/readlinkat (Depends-on): Likewise.
5637         * modules/symlinkat (Depends-on): Likewise.
5638         * modules/unlinkat (Depends-on): Likewise.
5639         * modules/utimensat (Depends-on): Likewise.
5640         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5641         * modules/linkat (Depends-on): Refine the conditions.
5642         * modules/renameat (Depends-on): Likewise.
5643
5644 2011-11-08  Bruno Haible  <bruno@clisp.org>
5645
5646         faccessat: Move AC_LIBOBJ invocation to module description.
5647         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5648         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5649         invocation from here...
5650         * modules/faccessat (configure.ac): ... to here. Invoke
5651         gl_PREREQ_FACCESSAT.
5652
5653 2011-11-08  Bruno Haible  <bruno@clisp.org>
5654
5655         faccessat: Simplify autoconf macro.
5656         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5657         gl_FUNC_EUIDACCESS.
5658
5659 2011-11-08  Bruno Haible  <bruno@clisp.org>
5660
5661         renameat: Fix dependencies.
5662         * modules/renameat (Depends-on): Add stdbool.
5663
5664 2011-11-08  Bruno Haible  <bruno@clisp.org>
5665
5666         mkfifoat: Fix module description.
5667         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5668         not gl_UNISTD_MODULE_INDICATOR.
5669
5670 2011-11-08  Bruno Haible  <bruno@clisp.org>
5671
5672         fstatat: Remove unused dependency.
5673         * modules/fstatat (Depends-on): Remove fstat.
5674
5675 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5676
5677         GNUmakefile: behave when Makefile is missing.
5678         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5679
5680 2011-11-08  Bruno Haible  <bruno@clisp.org>
5681
5682         openat: Conditionalize dependencies.
5683         * lib/openat.c: Reduce the scope of some #includes.
5684         * modules/openat (Depends-on): Add conditions.
5685
5686 2011-11-07  Jim Meyering  <meyering@redhat.com>
5687
5688         maint.mk: extract GPG key ID without using a temporary file
5689         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5690         without using a temporary file.  Based on a suggestion from Werner Koch
5691         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5692
5693 2011-11-07  Eric Blake  <eblake@redhat.com>
5694
5695         grantpt: fix typo
5696         * lib/stdlib.in.h (grantpt): Check correct function.
5697
5698         maint.mk: silence new syntax check
5699         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5700
5701 2011-11-06  Bruno Haible  <bruno@clisp.org>
5702
5703         Doc about floating-point and math API.
5704         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5705         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5706
5707 2011-11-06  Bruno Haible  <bruno@clisp.org>
5708
5709         stdalign tests: Skip the test when compiled by Sun C.
5710         * tests/test-stdalign.c (main): Skip the test on Sun C.
5711
5712 2011-11-06  Bruno Haible  <bruno@clisp.org>
5713
5714         ansi-c++-opt: Complete the 2011-06-05 change.
5715         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5716         does not support namespaces, set the variable to "no", not to ":".
5717
5718 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5719
5720         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5721
5722 2011-11-06  Bruno Haible  <bruno@clisp.org>
5723
5724         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5725         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5726         (minus_zerol) [HP-UX]: New macro.
5727         (unary_minus) [HP-UX]: New function.
5728         (copysignl) [HP-UX]: Use unary_minus function.
5729
5730 2011-11-06  Bruno Haible  <bruno@clisp.org>
5731
5732         ldexp, ldexpf, ldexpl: Enhance tests.
5733         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5734         and tests/test-ldexpl.c.
5735         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5736         LDEXP, MIN_EXP, MAX_EXP): New macros.
5737         Include test-ldexp.h.
5738         (main): Just call test_function.
5739         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5740         infinity.h, nan.h.
5741         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5742         MAX_EXP): New macros.
5743         Include test-ldexp.h.
5744         (x, y): Remove variables.
5745         (main): Just call test_function.
5746         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5747         infinity.h, nan.h.
5748         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5749         MAX_EXP): New macros.
5750         Include test-ldexp.h.
5751         (x, y): Remove variables.
5752         (main): Just call test_function.
5753         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5754         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5755         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5756         (Depends-on): Add isnand-nolibm, signbit, float.
5757         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5758         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5759         (Depends-on): Add isnanf-nolibm, signbit, float.
5760
5761 2011-11-06  Bruno Haible  <bruno@clisp.org>
5762
5763         math tests: Cosmetics.
5764         * tests/test-math-c++.cc: Reorder declarations.
5765
5766 2011-11-05  Bruno Haible  <bruno@clisp.org>
5767
5768         fma*: Simplify test.
5769         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5770         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5771
5772         Tests for module 'fmal'.
5773         * modules/fmal-tests: New file.
5774         * tests/test-fmal1.c: New file.
5775         * tests/test-fmal2.c: New file.
5776
5777         New module 'fmal'.
5778         * lib/math.in.h (fmal): New declaration.
5779         * lib/fmal.c: New file.
5780         * m4/fmal.m4: New file.
5781         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5783         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5784         REPLACE_FMAL.
5785         * modules/fmal: New file.
5786         * doc/posix-functions/fmal.texi: Mention the new module and the various
5787         bugs.
5788
5789         Tests for module 'fmaf'.
5790         * modules/fmaf-tests: New file.
5791         * tests/test-fmaf1.c: New file.
5792         * tests/test-fmaf2.c: New file.
5793
5794         New module 'fmaf'.
5795         * lib/math.in.h (fmaf): New declaration.
5796         * lib/fmaf.c: New file.
5797         * m4/fmaf.m4: New file.
5798         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5800         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5801         REPLACE_FMAF.
5802         * modules/fmaf: New file.
5803         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5804         bugs.
5805
5806         Tests for module 'fma'.
5807         * modules/fma-tests: New file.
5808         * tests/test-fma1.c: New file.
5809         * tests/test-fma1.h: New file.
5810         * tests/test-fma2.c: New file.
5811         * tests/test-fma2.h: New file.
5812
5813         New module 'fma'.
5814         * lib/math.in.h (fma): New declaration.
5815         * lib/fma.c: New file.
5816         * m4/fma.m4: New file.
5817         * m4/fegetround.m4: New file.
5818         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5820         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5821         REPLACE_FMA.
5822         * modules/fma: New file.
5823         * doc/posix-functions/fma.texi: Mention the new module and the various
5824         bugs.
5825
5826         Extend gl_MATHFUNC.
5827         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5828         Support 'void' as argument type.
5829         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5830
5831 2011-11-05  Jim Meyering  <meyering@redhat.com>
5832
5833         maint.mk: also prohibit inclusion of dirent.h without use
5834         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5835
5836 2011-11-05  Bruno Haible  <bruno@clisp.org>
5837
5838         ldexpl tests: Avoid test failure on MSVC 9.
5839         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5840         value. Needed in order to enforce the conversion from a value greater
5841         than LDBL_MAX to Infinity.
5842
5843 2011-11-05  Bruno Haible  <bruno@clisp.org>
5844
5845         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5846         * modules/at-internal: New file, extracted from modules/openat.
5847         * modules/openat-h: New file.
5848         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5849         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5850         * modules/openat (Description): Add reference to POSIX function.
5851         (Files): Remove lib/openat.h, lib/openat-proc.c.
5852         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5853         intprops, unistd.
5854         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5855         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5856         gl_FCNTL_MODULE_INDICATOR.
5857         (Include): Remove unistd.h, openat.h.
5858         * modules/areadlinkat (Files): Add lib/at-func.c.
5859         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5860         openat-die, openat-h, save-cwd.
5861         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5862         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5863         openat-die, openat-h, save-cwd, unistd.
5864         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5865         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5866         openat-h, save-cwd. Remove fcntl-h, openat.
5867         * modules/fchmodat (Files): Remove lib/openat.h.
5868         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5869         openat, stdbool, unistd.
5870         * modules/fchownat (Files): Remove lib/openat.h.
5871         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5872         openat, stdbool, sys_stat.
5873         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5874         lib/openat-proc.c.
5875         (Depends-on): Add at-internal.
5876         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5877         * modules/fstatat (Files): Remove lib/openat.h.
5878         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5879         stdbool, unistd.
5880         * modules/fts (Depends-on): Add openat-h.
5881         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5882         openat.
5883         * modules/mkdirat (Files): Remove lib/openat.h.
5884         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5885         openat, stdbool, sys_stat.
5886         * modules/mkfifoat (Files): Add lib/at-func.c.
5887         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5888         openat-h, save-cwd. Remove fcntl-h, openat.
5889         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5890         * modules/readlinkat (Files): Add lib/at-func.c.
5891         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5892         openat-h, save-cwd. Remove fcntl-h, openat.
5893         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5894         openat.
5895         * modules/selinux-at (Files): Add lib/at-func.c.
5896         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5897         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5898         * modules/symlinkat (Files): Add lib/at-func.c.
5899         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5900         openat-h, save-cwd. Remove fcntl-h, openat.
5901         * modules/unlinkat (Files): Remove lib/openat.h.
5902         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5903         stdbool.
5904         * modules/utimensat (Files): Add lib/at-func.c.
5905         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5906         openat-die, openat-h, save-cwd.
5907         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5908         * modules/fdutimensat-tests (Depends-on): Add openat.
5909         * modules/fstatat-tests (Depends-on): Add openat-h.
5910         * modules/readlinkat-tests (Depends-on): Add openat.
5911         * modules/symlinkat-tests (Depends-on): Add openat.
5912
5913 2011-11-05  Bruno Haible  <bruno@clisp.org>
5914
5915         openat: Include <stdbool.h>.
5916         * lib/openat.c: Include <stdbool.h>.
5917
5918 2011-11-04  Bruno Haible  <bruno@clisp.org>
5919
5920         fchownat, renameat, unlinkat: Fix dependencies.
5921         * modules/fchownat (Depends-on): Add fstatat.
5922         * modules/renameat (Depends-on): Likewise.
5923         * modules/unlinkat (Depends-on): Likewise.
5924
5925 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5926
5927         openat: remove direct dependency on dirent
5928         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5929         and hasn't been needed ever since fdopendir was split into its own
5930         module on 2009-08-31.
5931         * modules/openat (Depends-on): Remove dirent.
5932
5933 2011-11-04  Bruno Haible  <bruno@clisp.org>
5934
5935         renameat: Optimize code size.
5936         * modules/renameat (configure.ac): Don't compile at-func2.c if
5937         REPLACE_RENAMEAT is 1.
5938
5939 2011-11-04  Bruno Haible  <bruno@clisp.org>
5940
5941         openat tests: Fix file list.
5942         * modules/openat-tests (Files): Add tests/test-open.h.
5943
5944 2011-11-04  Bruno Haible  <bruno@clisp.org>
5945
5946         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5947         * modules/fchmodat (Depends-on): Add openat-die.
5948         * modules/fchownat (Depends-on): Likewise.
5949         * modules/linkat (Depends-on): Likewise.
5950         * modules/renameat (Depends-on): Likewise.
5951         * modules/openat (Depends-on): Add dirent.
5952
5953 2011-11-04  Jim Meyering  <meyering@redhat.com>
5954
5955         at-func*.c: fix comments
5956         * lib/at-func2.c: Correct/improve first-line comment.
5957         * lib/at-func.c: Correct grammar in first-line comment.
5958
5959 2011-11-04  Bruno Haible  <bruno@clisp.org>
5960
5961         New module 'mkdirat', split off from module 'openat'.
5962         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5963         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5964         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5965         * modules/mkdirat: New file, extracted from modules/openat.
5966         * modules/openat (Files): Remove lib/mkdirat.c.
5967         (Depends-on): Remove mkdir.
5968         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5969         (Include): Remove <sys/stat.h>.
5970         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5971         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5972         tests/test-mkdir.h.
5973         (Depends-on): Remove ignore-value.
5974         (Makefile.am): Remove rules for test-mkdirat.
5975         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5976         of module 'openat'.
5977         * NEWS: Mention the change.
5978
5979 2011-11-04  Bruno Haible  <bruno@clisp.org>
5980
5981         closedir: Avoid warning on mingw.
5982         * lib/closedir.c: Include <unistd.h>.
5983
5984 2011-11-04  Bruno Haible  <bruno@clisp.org>
5985
5986         New module 'fstatat', split off from module 'openat'.
5987         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5988         defined.
5989         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5990         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5991         gl_FUNC_FSTATAT.
5992         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5993         * modules/fstatat: New file, extracted from modules/openat.
5994         * modules/openat (Files): Remove lib/fstatat.c.
5995         (Depends-on): Remove lstat.
5996         (configure.ac): Remove AC_LIBOBJ of fstatat.
5997         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5998         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5999         tests/test-lstat.h, tests/test-stat.h.
6000         (Depends-on): Remove getcwd-lgpl.
6001         (Makefile.am): Remove rules for test-fstatat.
6002         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6003         of module 'openat'.
6004         * NEWS: Mention the change.
6005         * modules/getcwd (Depends-on): Add fstatat.
6006         * modules/linkat (Depends-on): Likewise.
6007         * modules/mkfifoat-tests (Depends-on): Likewise.
6008         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6009
6010 2011-11-03  Bruno Haible  <bruno@clisp.org>
6011
6012         New module 'unlinkat', split off from module 'openat'.
6013         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6014         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6015         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6016         * modules/unlinkat: New file, extracted from modules/openat. Correct
6017         the dependency conditions.
6018         * modules/openat (Files): Remove lib/unlinkat.c.
6019         (Depends-on): Remove rmdir, unlink.
6020         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6021         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6022         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6023         tests/test-rmdir.h, tests/test-unlink.h.
6024         (Depends-on): Remove unlinkdir.
6025         (Makefile.am): Remove rules for test-unlinkat.
6026         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6027         of module 'openat'.
6028         * NEWS: Mention the change.
6029         * modules/linkat-tests (Depends-on): Add unlinkat.
6030         * modules/mkfifoat-tests (Depends-on): Likewise.
6031         * modules/readlinkat-tests (Depends-on): Likewise.
6032
6033 2011-11-02  Bruno Haible  <bruno@clisp.org>
6034
6035         New module 'fchmodat', split off from module 'openat'.
6036         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6037         defined.
6038         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6039         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6040         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6041         * modules/fchmodat: New file, extracted from modules/openat.
6042         * modules/openat (Files): Remove lib/fchmodat.c.
6043         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6044         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6045         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6046         (Makefile.am): Remove rules for test-fchmodat.
6047         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6048         of module 'openat'.
6049         * NEWS: Mention the change.
6050
6051 2011-11-02  Jim Meyering  <meyering@redhat.com>
6052
6053         putenv: indent #definition of "environ" to placate cppi
6054         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6055
6056         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6057         Git logs are often treated as immutable, because editing them
6058         changes the SHA1 checksums of all descendants.  Thus, errors in
6059         git logs tend to stay there forever.  However, when we generate
6060         a ChangeLog file -- typically for distribution -- from that git log,
6061         we can actually make corrections in the generated file.  The key
6062         lies in recording in machine-readable/applicable form the desired
6063         corrections.  See --help for description and an example.
6064         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6065         (usage): Describe it; alphabetize option descriptions.
6066         (main): Honor the new option, carefully.
6067
6068 2011-11-01  Jim Meyering  <meyering@redhat.com>
6069
6070         gitlog-to-changelog: avoid an infloop
6071         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6072         that ends up being empty.
6073
6074 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6075
6076         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6077         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6078         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6079         contains (possibly-quoted) backslashes.  This should avoid
6080         all-too-common shell bugs if COMPLICATED contains backslashes in
6081         the "wrong" places.  Reported by David Evans in
6082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6083         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6084         because we want ASCII ranges.  Is there some reason we don't use
6085         the C locale everywhere in this script?
6086         (func_module, top level): Avoid unwanted pathname expansion when
6087         $repo_url_prefix or $repo_url_suffix_repl contain shell
6088         metacharacters like '?' and '*'.
6089
6090 2011-11-01  Bruno Haible  <bruno@clisp.org>
6091
6092         fchownat: Improve description.
6093         * modules/fchownat (Description): Add link to function.
6094
6095 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6096
6097         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6098         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6100         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6101
6102 2011-11-01  Bruno Haible  <bruno@clisp.org>
6103
6104         alignof: Avoid collision with stdalign module.
6105         * lib/alignof.h (alignof): Remove macro.
6106         * NEWS: Mention the change.
6107         Reported by Paul Eggert.
6108
6109 2011-11-01  Bruno Haible  <bruno@clisp.org>
6110
6111         New module 'fchownat', split off from module 'openat'.
6112         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6113         defined.
6114         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6115         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6116         invoke gl_FUNC_FCHOWNAT.
6117         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6118         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6119         * modules/fchownat: New file, extracted from modules/openat.
6120         * modules/openat (Files): Remove lib/fchownat.c.
6121         (Depends-on): Remove lchown.
6122         (configure.ac): Remove AC_LIBOBJ of fchownat.
6123         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6124         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6125         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6126         (Depends-on): Remove mgetgroups, usleep, stat-time.
6127         (configure.ac): Remove test for getegid.
6128         (Makefile.am): Remove rules for test-fchownat.
6129         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6130         of module 'openat'.
6131         * NEWS: Mention the change.
6132
6133 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6134
6135         stdalign: port better to MSVC and to Sun C 5.11
6136         This fixes some of the problems reported by Bruno Haible in
6137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6138         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6139         shortcomings of MSVC and of Sun C 5.11.
6140         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6141         around __declspec arg.
6142         * modules/stdalign-tests (Files): Add tests/macros.h.
6143         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6144         Include macros.h, for ASSERT.
6145         (DECLARE_ALIGNED): Remove.
6146         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6147         to catch bug), and to 1 if not (simplifies the rest of the code).
6148         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6149         (CHECK_AUTO): Remove.
6150         (CHECK_ALIGNED): Check only the alignment of the static vars,
6151         since auto var alignment isn't supported by Sun C 5.11.
6152         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6153         ASSERT failures are easier to diagnose.
6154
6155 2011-10-31  Bruno Haible  <bruno@clisp.org>
6156
6157         doc about some IRIX 5.3 problems.
6158         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6159         on IRIX 5.3.
6160         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6161         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6162         5.3.
6163         * doc/posix-functions/grantpt.texi: Likewise.
6164         * doc/posix-functions/unlockpt.texi: Likewise.
6165         * doc/posix-functions/lgamma.texi: Likewise.
6166         * doc/posix-functions/nextafter.texi: Likewise.
6167         * doc/posix-functions/remainder.texi: Likewise.
6168         * doc/posix-functions/select.texi: Mention misplaced declaration on
6169         IRIX 5.3.
6170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6171
6172 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6173
6174         gitlog-to-changelog: fix git-log invocation.
6175         git-log mishandles date strings before 1970-01-01 UTC, and there is
6176         no use to specify --since=1970-01-01 by default anyway.
6177         * build-aux/gitlog-to-changelog: By default, when no --since option
6178         was given, do not specify explicit --since option to git-log.
6179
6180 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6181
6182         gitlog-to-changelog: new option --append-dot.
6183         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6184         first non-blank line of each commit message terminated with a dot.
6185
6186 2011-10-30  Bruno Haible  <bruno@clisp.org>
6187
6188         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6189         * lib/ffsl.h: Include <config.h>.
6190         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6191
6192 2011-10-30  Jim Meyering  <meyering@redhat.com>
6193
6194         GNUmakefile: reenable "make syntax-check" for most projects
6195         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6196         build-aux variable", "syntax-check" would do nothing but succeed with
6197         the "No version control files detected..." diagnostic (unless you
6198         happened to override _build-aux via cfg.mk).
6199         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6200         to precede inclusion of maint.mk.  Otherwise, these variables would
6201         be used undefined in any project that does not override the default.
6202
6203 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6204
6205         gitlog-to-changelog: treat a message with only blank lines as empty.
6206         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6207         trailing blank lines before the code that issues a warning about an
6208         empty commit message.
6209
6210 2011-10-30  Jim Meyering  <meyering@redhat.com>
6211
6212         test-parse-datetime.c: avoid new DST-related false positive test failure
6213         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6214         based on the time/date we'll convert, not the current time.
6215         Otherwise, the moment we cross a DST boundary like today's in
6216         Europe, (CEST to CET), that offset ends up being one hour off.
6217
6218 2011-10-27  Bruno Haible  <bruno@clisp.org>
6219
6220         fstat: Tweak documentation.
6221         * modules/fstat (Description): More precise description.
6222
6223 2011-10-27  Bruno Haible  <bruno@clisp.org>
6224
6225         Update documentation regarding 'largefile' module.
6226         * doc/posix-functions/fstat.texi: Tweak wording.
6227         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6228         problems with huge directories and/or small ino_t types.
6229         * doc/posix-functions/readdir.texi: Likewise.
6230         * doc/posix-functions/rewinddir.texi: Likewise.
6231
6232 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6233
6234         maint.mk: don't maintain a second build-aux variable.
6235         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6236         depends on GNUmakefile, which already maintains a cfg.mk
6237         overridable $(_build-aux) for projects with a non-standard
6238         build-aux directory location, although without the $(srcdir)
6239         prefix.  Use that variable consistently instead of introducing a
6240         second one.  Adjust all call sites.
6241
6242 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         Add stdalign module and use it in other modules.
6245         This is based on a previous proposal by Bruno Haible
6246         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6247
6248         stdalign: new module
6249         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6250         * modules/stdalign: New files.
6251         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6252         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6253
6254         stdalign-tests: new module
6255         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6256
6257         argp: use stdalign
6258         * lib/argp-parse.c: Include <stdalign.h>.
6259         (alignof): Remove.
6260         * modules/argp (Depends-on): Add stdalign.
6261
6262         crypto libraries: use stdalign
6263         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6264         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6265         Do not include <stdlib.h> twice, in md4.c.
6266         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6267         because we are accessing a pointer's bit-pattern, not a size.
6268         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6269         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6270         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6271         * modules/crypto/sha512: Likewise.
6272
6273         sys_socket: use stdalign, not alignof
6274         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6275         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6276
6277 2011-10-27  Bruno Haible  <bruno@clisp.org>
6278
6279         raise test: Avoid a test failure on Linux/MIPS.
6280         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6281         because 99 is a valid signal on Linux/MIPS.
6282
6283 2011-10-27  Bruno Haible  <bruno@clisp.org>
6284
6285         nonblocking tests: Fix test failure on Linux/MIPS.
6286         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6287         Set to 270000.
6288
6289 2011-10-27  Bruno Haible  <bruno@clisp.org>
6290
6291         utimensat: Work around problem on Linux/hppa.
6292         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6293         values.
6294         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6295
6296 2011-10-25  Jim Meyering  <meyering@redhat.com>
6297
6298         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6299         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6300         after symbols like NULL, size_t, etc.
6301         Reported by Alfred M. Szmidt.
6302
6303         maint.mk: exempt ENODATA from a syntax-check rule
6304         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6305         from the sc_prohibit_always-defined_macros syntax-check rule.
6306         Add a comment.  See this for more details:
6307         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6308
6309 2011-10-23  Jim Meyering  <meyering@redhat.com>
6310
6311         fts: close parent dir FD before returning from post-traversal fts_read
6312         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6313         unlink A, even though an FD open on A remained.  This is suboptimal
6314         (holding a file descriptor open longer than needed), but otherwise not
6315         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6316         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6317         that represents a real problem: it causes the removal of A to fail
6318         with e.g., "rm: cannot remove `A': Device or resource busy"
6319
6320         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6321         directory file descriptors.  After completing the final, FTS_DP,
6322         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6323         cache, but then proceeded to add a new FD to it via the subsequent
6324         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6325         final file descriptor would be closed only via fts_close's call to
6326         fd_ring_clear.  Now, it is usually closed earlier, via the final
6327         FTS_DP-returning fts_read call.
6328         * lib/fts.c (restore_initial_cwd): New function, converted from
6329         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6330         Update callers.
6331         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6332         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6333
6334 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6335             Bruno Haible  <bruno@clisp.org>
6336             Jim Meyering  <jim@meyering.net>
6337
6338         readme-release: improve safety of release prep instructions.
6339         * README-release: Don't git pull all branches when only master
6340         is needed for the release process.
6341         Run make maintainer-clean before changing trees and merging.
6342         Don't try to run ./configure right after git pull in case files
6343         that influence the bootstrap process have changed, move the
6344         ./configure step to after running ./bootstrap.
6345         Don't bootstrap "one last time"... it's the first time!
6346
6347 2011-10-22  Bruno Haible  <bruno@clisp.org>
6348
6349         errno, strerror-override: Support for MSVC 10.
6350         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6351         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6352         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6353         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6354         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6355         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6356         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6357         Assign values compatible with MSVC 10.
6358         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6359         New macros.
6360         (GNULIB_defined_EWINSOCK): New macro.
6361         * lib/strerror-override.c (strerror_override): Update accordingly.
6362         * lib/strerror-override.h: Likewise.
6363         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6364         longer equal to the corresponding errno value.
6365         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6366
6367 2011-10-22  Bruno Haible  <bruno@clisp.org>
6368
6369         perror: Recognize when test program crashes.
6370         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6371         strerror, set gl_cv_func_perror_works to no.
6372         Reported by Daniel Richard G. <skunk@iskunk.org>.
6373
6374         perror: Fix indentation.
6375         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6376
6377 2011-10-22  Bruno Haible  <bruno@clisp.org>
6378
6379         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6380         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6381         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6382         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6383         functions, not as a macro.
6384         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6385         macros.
6386         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6387         absence of macro.
6388         Suggested by Eric Blake.
6389         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6390
6391 2011-10-21  Bruno Haible  <bruno@clisp.org>
6392
6393         relocatable-prog-wrapper: Don't leave object files behind.
6394         * build-aux/install-reloc: Re-synchronize list of .o files to be
6395         removed with list of compilation units.
6396
6397 2011-10-20  Bruno Haible  <bruno@clisp.org>
6398
6399         openpty, posix_openpt: Remove code duplication.
6400         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6401         * lib/openpty.c: Include <stdlib.h>.
6402         (openpty): Use posix_openpt on all platforms except IRIX.
6403         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6404
6405 2011-10-20  Bruno Haible  <bruno@clisp.org>
6406
6407         unlockpt: Detect invalid argument.
6408         * lib/unlockpt.c: Include <fcntl.h>.
6409         (unlockpt): Check whether fd is valid, using fcntl().
6410         * modules/unlockpt (Depends-on): Add fcntl-h.
6411
6412 2011-10-20  Bruno Haible  <bruno@clisp.org>
6413
6414         openpty: Avoid compilation error on AIX 6.1.
6415         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6416
6417 2011-10-20  Bruno Haible  <bruno@clisp.org>
6418
6419         posix_openpt: Support for OpenBSD.
6420         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6421         (posix_openpt) [OpenBSD]: New code.
6422         * lib/grantpt.c: Include <fcntl.h>.
6423         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6424         * modules/grantpt (Depends-on): Add fcntl-h.
6425
6426 2011-10-20  Bruno Haible  <bruno@clisp.org>
6427
6428         posix_openpt test: Coding style.
6429         * tests/test-posix_openpt.c: Use GNU coding style.
6430
6431 2011-10-20  Bruno Haible  <bruno@clisp.org>
6432
6433         grantpt: Support --avoid=pt_chown.
6434         * modules/grantpt (Files): Add lib/pty-private.h.
6435
6436 2011-10-20  Bruno Haible  <bruno@clisp.org>
6437
6438         posix_openpt: Fix autoconf macro.
6439         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6440         unneeded check for _getpty.
6441
6442 2011-10-20  Bruno Haible  <bruno@clisp.org>
6443
6444         openpty: Update comments.
6445         * lib/openpty.c: Add comments about Minix.
6446
6447 2011-10-19  Eric Blake  <eblake@redhat.com>
6448
6449         openpty: relax license
6450         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6451
6452         pt_chown: use configmake to simplify build
6453         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6454
6455         ptsname and others: relax license
6456         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6457         * modules/unlockpt (License): Likewise.
6458         * modules/pt_chown (License): Likewise.
6459         * modules/ptsname (License): Likewise.
6460         * modules/ttyname_r (License): Likewise.
6461
6462 2011-10-19  Jim Meyering  <meyering@redhat.com>
6463
6464         posix_openpt: remove spurious #endif
6465         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6466
6467 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6468
6469         maint.mk: Respect $(build_aux) in web-manual rule.
6470         * top/maint.mk (web-manual): Find gen-announce script in user's
6471         $(build_aux) directory instead of hard-coding 'build-aux'.
6472
6473 2011-10-19  Bruno Haible  <bruno@clisp.org>
6474
6475         posix_openpt: Fix compilation error.
6476         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6477         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6478         Mention the openpty module as an alternative.
6479
6480 2011-10-19  Bruno Haible  <bruno@clisp.org>
6481
6482         Support for old NeXTstep 3.3 frexp().
6483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6484         execution time of the test to 5 seconds.
6485         Reported by Daniel Richard G. <skunk@iskunk.org>.
6486
6487 2011-10-19  Bruno Haible  <bruno@clisp.org>
6488
6489         Support for old NeXTstep 3.3 sed.
6490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6491         part, use /.../, not \|...|. Escape periods in the header file name.
6492         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6493         Reported by Daniel Richard G. <skunk@iskunk.org>.
6494
6495 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6496
6497         Support for old NeXTstep 3.3 gcc.
6498         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6499         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6500         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6501         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6502         * lib/regex.h (_Restrict_arr_): Likewise.
6503         * lib/regex_internal.h (re_token_t): Likewise.
6504         * lib/regexec.c (check_node_accept_bytes): Likewise.
6505         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6506
6507 2011-10-18  Eric Blake  <eblake@redhat.com>
6508
6509         posix_openpt: new module
6510         * modules/posix_openpt: New module.
6511         * m4/posix_openpt.m4: New file.
6512         * lib/posix_openpt.c: Likewise.
6513         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6514         (gl_STDLIB_H_DEFAULTS): Set defaults.
6515         * modules/stdlib (Makefile.am): Substitute macros.
6516         * lib/stdlib.in.h (posix_openpt): Declare.
6517         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6518         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6519         * modules/posix_openpt-tests: New test module.
6520         * tests/test-posix_openpt.c: New test.
6521
6522 2011-10-15  Bruno Haible  <bruno@clisp.org>
6523
6524         xstrtoll: Fix compilation failure.
6525         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6526         from lib/strtol.c.
6527         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6528         some platforms.
6529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6530
6531 2011-10-15  Bruno Haible  <bruno@clisp.org>
6532
6533         vasnprintf: Optimize bit search operation.
6534         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6536         gl_DOUBLE_EXPONENT_LOCATION.
6537         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6538         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6539         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6540         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6541         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6542         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6543         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6544         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6545         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6546
6547 2011-10-15  Bruno Haible  <bruno@clisp.org>
6548
6549         vasnprintf: Fix comments.
6550         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6551
6552 2011-10-14  Bruno Haible  <bruno@clisp.org>
6553
6554         Tests for module 'integer_length_ll'.
6555         * modules/integer_length_ll-tests: New file.
6556         * tests/test-integer_length_ll.c: New file.
6557
6558         New module 'integer_length_ll'.
6559         * lib/integer_length_ll.c: New file.
6560         * modules/integer_length_ll: New file.
6561
6562 2011-10-14  Bruno Haible  <bruno@clisp.org>
6563
6564         Tests for module 'integer_length_l'.
6565         * modules/integer_length_l-tests: New file.
6566         * tests/test-integer_length_l.c: New file.
6567
6568         New module 'integer_length_l'.
6569         * lib/integer_length_l.c: New file.
6570         * modules/integer_length_l: New file.
6571
6572 2011-10-14  Bruno Haible  <bruno@clisp.org>
6573
6574         Tests for module 'integer_length'.
6575         * modules/integer_length-tests: New file.
6576         * tests/test-integer_length.c: New file.
6577
6578         New module 'integer_length'.
6579         * lib/integer_length.h: New file.
6580         * lib/integer_length.c: New file.
6581         * modules/integer_length: New file.
6582
6583 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6584
6585         popen: Fix dependency conditions.
6586         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6587
6588 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6589
6590         perror: Fix autoconf test.
6591         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6592         <stdlib.h> and <string.h>.
6593
6594 2011-10-14  Bruno Haible  <bruno@clisp.org>
6595
6596         ffsl: Optimize on 64-bit platforms.
6597         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6598         unrolling.
6599
6600 2011-10-13  Bruno Haible  <bruno@clisp.org>
6601
6602         ffsl: Optimize on 32-bit platforms.
6603         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6604         use ffs() without a loop.
6605
6606         ffsl, ffsll: Optimize for GCC.
6607         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6608         * lib/ffsl.c (GCC_BUILTIN): New macro.
6609         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6610
6611 2011-10-13  Bruno Haible  <bruno@clisp.org>
6612
6613         ffs, bcopy, memset: Support symbol renaming via config.h.
6614         * lib/ffs.c: Include <config.h>.
6615         * lib/bcopy.c: Likewise.
6616         * lib/memset.c: Likewise.
6617
6618 2011-10-10  Bruno Haible  <bruno@clisp.org>
6619
6620         atanl: Simplify for platforms where 'long double' == 'double'.
6621         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6622         alternative implementation.
6623         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6624         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6625         * modules/atanl (Depends-on): Add atan. Update conditions.
6626
6627 2011-10-10  Bruno Haible  <bruno@clisp.org>
6628
6629         acosl: Simplify for platforms where 'long double' == 'double'.
6630         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6631         alternative implementation.
6632         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6633         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6634         * modules/acosl (Depends-on): Add acos. Update conditions.
6635
6636 2011-10-10  Bruno Haible  <bruno@clisp.org>
6637
6638         asinl: Simplify for platforms where 'long double' == 'double'.
6639         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6640         alternative implementation.
6641         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6642         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6643         * modules/asinl (Depends-on): Add asin. Update conditions.
6644
6645 2011-10-10  Bruno Haible  <bruno@clisp.org>
6646
6647         tanl: Simplify for platforms where 'long double' == 'double'.
6648         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6649         implementation.
6650         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6651         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6652         * modules/tanl (Depends-on): Add tan. Update conditions.
6653         (configure.ac): Don't compile trigl.c if
6654         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6655
6656 2011-10-10  Bruno Haible  <bruno@clisp.org>
6657
6658         cosl: Simplify for platforms where 'long double' == 'double'.
6659         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6660         implementation.
6661         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6662         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6663         * modules/cosl (Depends-on): Add cos. Update conditions.
6664         (configure.ac): Don't compile sincosl.c and trigl.c if
6665         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6666
6667 2011-10-10  Bruno Haible  <bruno@clisp.org>
6668
6669         sinl: Simplify for platforms where 'long double' == 'double'.
6670         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6671         implementation.
6672         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6673         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6674         * modules/sinl (Depends-on): Add sin. Update conditions.
6675         (configure.ac): Don't compile sincosl.c and trigl.c if
6676         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6677
6678 2011-10-10  Bruno Haible  <bruno@clisp.org>
6679
6680         logl: Simplify for platforms where 'long double' == 'double'.
6681         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6682         implementation.
6683         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6684         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6685         * modules/logl (Depends-on): Add log. Update conditions.
6686
6687 2011-10-10  Bruno Haible  <bruno@clisp.org>
6688
6689         expl: Simplify for platforms where 'long double' == 'double'.
6690         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6691         implementation.
6692         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6693         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6694         * modules/expl (Depends-on): Add exp. Update conditions.
6695
6696 2011-10-10  Bruno Haible  <bruno@clisp.org>
6697
6698         sqrtl: Simplify for platforms where 'long double' == 'double'.
6699         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6700         alternative implementation.
6701         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6702         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6703         * modules/sqrtl (Depends-on): Update conditions.
6704
6705 2011-10-10  Bruno Haible  <bruno@clisp.org>
6706
6707         ldexpl: Simplify for platforms where 'long double' == 'double'.
6708         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6709         alternative implementation.
6710         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6711         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6712         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6713
6714 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6715
6716         ffsll: set correct witness
6717         * modules/ffsll (configure.ac): Fix typo.
6718
6719 2011-10-10  Bruno Haible  <bruno@clisp.org>
6720
6721         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6722         * lib/printf-frexpl.c: Include <config.h>.
6723         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6724         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6725         second time.
6726         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6727         gl_LONG_DOUBLE_VS_DOUBLE.
6728         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6729         conditions.
6730
6731 2011-10-10  Bruno Haible  <bruno@clisp.org>
6732
6733         frexpl: Simplify for platforms where 'long double' == 'double'.
6734         * lib/frexpl.c: Include <config.h>.
6735         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6736         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6737         time.
6738         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6739         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6740         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6741         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6742         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6743         conditions.
6744
6745 2011-10-10  Jim Meyering  <meyering@redhat.com>
6746
6747         test-renameat: don't leave behind a temporary file
6748         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6749           ERROR: files left in build directory after distclean:
6750           ./gltests/test-renameat.too
6751           make[1]: *** [distcleancheck] Error 1
6752         Reported by Tom G. Christensen.
6753
6754 2011-10-09  Bruno Haible  <bruno@clisp.org>
6755
6756         rint: Determine RINT_LIBM correctly on AIX 7.
6757         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6758         directly, not only through a function pointer. Also accept an optional
6759         4th argument with extra code.
6760         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6761         rintf() call by gcc when optimizing.
6762
6763         mathfunc.m4: Refactor.
6764         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6765         m4 variable.
6766
6767 2011-10-09  Bruno Haible  <bruno@clisp.org>
6768
6769         rintl: Simplify for platforms where 'long double' == 'double'.
6770         * lib/rintl.c: Include <config.h>.
6771         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6772         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6773         time.
6774         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6775         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6776         * modules/rintl (Depends-on): Add rint. Update conditions.
6777
6778 2011-10-09  Bruno Haible  <bruno@clisp.org>
6779
6780         roundl: Simplify for platforms where 'long double' == 'double'.
6781         * lib/roundl.c: Include <config.h>.
6782         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6783         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6784         time.
6785         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6786         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6787         * modules/roundl (Depends-on): Add round. Update conditions.
6788
6789 2011-10-09  Bruno Haible  <bruno@clisp.org>
6790
6791         truncl: Simplify for platforms where 'long double' == 'double'.
6792         * lib/truncl.c: Include <config.h>.
6793         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6794         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6795         time.
6796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6797         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6798         * modules/truncl (Depends-on): Add trunc. Update conditions.
6799
6800 2011-10-09  Bruno Haible  <bruno@clisp.org>
6801
6802         ceill: Simplify for platforms where 'long double' == 'double'.
6803         * lib/ceill.c: Include <config.h>.
6804         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6805         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6806         time.
6807         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6808         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6809         * modules/ceill (Depends-on): Add ceil. Update conditions.
6810
6811 2011-10-09  Bruno Haible  <bruno@clisp.org>
6812
6813         floorl: Simplify for platforms where 'long double' == 'double'.
6814         * lib/floorl.c: Include <config.h>.
6815         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6816         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6817         time.
6818         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6819         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6820         * modules/floorl (Depends-on): Add floor. Update conditions.
6821
6822 2011-10-09  Bruno Haible  <bruno@clisp.org>
6823
6824         rint: Fix ordering constraints.
6825         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6826         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6827         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6828
6829 2011-10-09  Bruno Haible  <bruno@clisp.org>
6830
6831         copysignl: Simplify for platforms where 'long double' == 'double'.
6832         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6833         alternative.
6834         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6835         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6836         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6837
6838 2011-10-09  Bruno Haible  <bruno@clisp.org>
6839
6840         Tests for module 'rintl'.
6841         * modules/rintl-tests: New file.
6842         * tests/test-rintl.c: New file.
6843
6844         New module 'rintl'.
6845         * lib/math.in.h (rintl): New declaration.
6846         * lib/rintl.c: New file.
6847         * m4/rintl.m4: New file.
6848         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6850         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6851         * modules/rintl: New file.
6852         * tests/test-math-c++.cc: Check the declaration of rintl.
6853         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6854         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6855         * doc/posix-functions/rintl.texi: Mention the new module.
6856
6857 2011-10-09  Bruno Haible  <bruno@clisp.org>
6858
6859         Tests for module 'rintf'.
6860         * modules/rintf-tests: New file.
6861         * tests/test-rintf.c: New file.
6862
6863         New module 'rintf'.
6864         * lib/math.in.h (rintf): New declaration.
6865         * lib/rintf.c: New file.
6866         * m4/rintf.m4: New file.
6867         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6869         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6870         * modules/rintf: New file.
6871         * tests/test-math-c++.cc: Check the declaration of rintf.
6872         * doc/posix-functions/rintf.texi: Mention the new module.
6873
6874 2011-10-09  Bruno Haible  <bruno@clisp.org>
6875
6876         rint: Support for MSVC.
6877         * lib/math.in.h (rint): New declaration.
6878         * lib/rint.c: New file.
6879         * m4/rint.m4: New file.
6880         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6882         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6883         * modules/rint (Description): Fix.
6884         (Files): Add lib/rint.c, m4/rint.m4.
6885         (Depends-on): Add math.
6886         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6887         gl_MATH_MODULE_INDICATOR.
6888         * tests/test-math-c++.cc: Check the declaration of rint.
6889         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6890         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6891         * doc/posix-functions/rint.texi: Mention the replacement provided by
6892         the module.
6893
6894         rint tests: More tests.
6895         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6896         minus-zero.h, infinity.h, nan.h.
6897         (main): Skip the test if the current rounding mode is not standard. Add
6898         tests for negative numbers, minus zero, infinity, NaN.
6899         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6900         tests/nan.h.
6901         (Depends-on): Add isnand-nolibm.
6902
6903 2011-10-09  Bruno Haible  <bruno@clisp.org>
6904
6905         Tests for module 'copysignl'.
6906         * modules/copysignl-tests: New file.
6907         * tests/test-copysignl.c: New file.
6908
6909         New module 'copysignl'.
6910         * lib/math.in.h (copysignl): New declaration.
6911         * lib/copysignl.c: New file.
6912         * m4/copysignl.m4: New file.
6913         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6915         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6916         HAVE_COPYSIGNL.
6917         * modules/copysignl: New file.
6918         * tests/test-math-c++.cc: Check the declaration of copysignl.
6919         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6920         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6921         * doc/posix-functions/copysignl.texi: Mention the new module.
6922
6923 2011-10-09  Bruno Haible  <bruno@clisp.org>
6924
6925         Tests for module 'copysignf'.
6926         * modules/copysignf-tests: New file.
6927         * tests/test-copysignf.c: New file.
6928
6929         New module 'copysignf'.
6930         * lib/math.in.h (copysignf): New declaration.
6931         * lib/copysignf.c: New file.
6932         * m4/copysignf.m4: New file.
6933         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6935         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6936         HAVE_COPYSIGNF.
6937         * modules/copysignf: New file.
6938         * tests/test-math-c++.cc: Check the declaration of copysignf.
6939         * doc/posix-functions/copysignf.texi: Mention the new module.
6940
6941 2011-10-09  Bruno Haible  <bruno@clisp.org>
6942
6943         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6946         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6948         gl_SIGNAL_H_DEFAULTS.
6949
6950 2011-10-09  Bruno Haible  <bruno@clisp.org>
6951
6952         poll: Make macro safer.
6953         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6954         ac_cv_header_poll_h is not set.
6955
6956 2011-10-09  Bruno Haible  <bruno@clisp.org>
6957
6958         copysign: Provide replacement.
6959         * lib/math.in.h (copysign): New declaration.
6960         * lib/copysign.c: New file.
6961         * m4/copysign.m4: New file.
6962         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6964         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6965         HAVE_COPYSIGN.
6966         * modules/copysign (Description): Clarify.
6967         (Files): Add lib/copysign.c, m4/copysign.m4.
6968         (Depends-on): Add math, signbit.
6969         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6970         gl_MATH_MODULE_INDICATOR.
6971         * tests/test-math-c++.cc: Check the declaration of copysign.
6972         * doc/posix-functions/copysign.texi: Mention the effects of the module
6973         on Minix and MSVC.
6974
6975 2011-10-09  Bruno Haible  <bruno@clisp.org>
6976
6977         isinf: Ensure macro on AIX 5.1.
6978         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6979         macro.
6980         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6981
6982 2011-10-09  Bruno Haible  <bruno@clisp.org>
6983
6984         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6985         * modules/snprintf-posix-tests (configure.ac): Require
6986         gl_LONG_DOUBLE_VS_DOUBLE.
6987         * modules/sprintf-posix-tests (configure.ac): Likewise.
6988         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6989         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6990         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6991         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6992         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6993         tests on platforms where 'long double' is the same as 'double'.
6994         * tests/test-sprintf-posix.h (test_function): Likewise.
6995         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6996         * tests/test-vasprintf-posix.c (test_function): Likewise.
6997
6998         *printf: Fix for platforms where 'long double' == 'double'.
6999         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7000         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7001         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7002         * modules/fprintf-posix (Files): Likewise.
7003         * modules/obstack-printf-posix (Files): Likewise.
7004         * modules/snprintf-posix (Files): Likewise.
7005         * modules/sprintf-posix (Files): Likewise.
7006         * modules/vasnprintf (Files): Likewise.
7007         * modules/vasnprintf-posix (Files): Likewise.
7008         * modules/vasprintf-posix (Files): Likewise.
7009         * modules/vdprintf-posix (Files): Likewise.
7010         * modules/vfprintf-posix (Files): Likewise.
7011         * modules/vsnprintf-posix (Files): Likewise.
7012         * modules/vsprintf-posix (Files): Likewise.
7013         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7014         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7015         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7016         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7017         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7018         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7019         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7020
7021         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7022         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7023         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7024         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7025         'long double'.
7026         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7027
7028         isinf: Fix for platforms where 'long double' == 'double'.
7029         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7030         Don't blindly assume 80-bit 'long double'.
7031
7032         isfinite: Fix for platforms where 'long double' == 'double'.
7033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7034         Don't blindly assume 80-bit 'long double'.
7035
7036         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7037         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7038         * modules/isfinite-tests (configure.ac): Require
7039         gl_LONG_DOUBLE_VS_DOUBLE.
7040         * modules/isinf-tests (configure.ac): Likewise.
7041         * modules/isnan-tests (configure.ac): Likewise.
7042         * modules/isnanl-tests (configure.ac): Likewise.
7043         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7044         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7045         tests on platforms where 'long double' is the same as 'double'.
7046         * tests/test-isinf.c (test_isinfl): Likewise.
7047         * tests/test-isnan.c (test_long_double): Likewise.
7048         * tests/test-isnanl.h (main): Likewise.
7049
7050 2011-10-08  Bruno Haible  <bruno@clisp.org>
7051
7052         Tests for module 'tanhf'.
7053         * modules/tanhf-tests: New file.
7054         * tests/test-tanhf.c: New file.
7055
7056         New module 'tanhf'.
7057         * lib/math.in.h (tanhf): New declaration.
7058         * lib/tanhf.c: New file.
7059         * m4/tanhf.m4: New file.
7060         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7062         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7063         * modules/tanhf: New file.
7064         * tests/test-math-c++.cc: Check the declaration of tanhf.
7065         * doc/posix-functions/tanhf.texi: Mention the new module.
7066
7067         tanh: Use a .m4 file.
7068         * m4/tanh.m4: New file.
7069         * modules/tanh (Files): Add it.
7070         (configure.ac): Just invoke gl_FUNC_TANH.
7071
7072 2011-10-08  Bruno Haible  <bruno@clisp.org>
7073
7074         Tests for module 'coshf'.
7075         * modules/coshf-tests: New file.
7076         * tests/test-coshf.c: New file.
7077
7078         New module 'coshf'.
7079         * lib/math.in.h (coshf): New declaration.
7080         * lib/coshf.c: New file.
7081         * m4/coshf.m4: New file.
7082         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7084         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7085         * modules/coshf: New file.
7086         * tests/test-math-c++.cc: Check the declaration of coshf.
7087         * doc/posix-functions/coshf.texi: Mention the new module.
7088
7089         cosh: Use a .m4 file.
7090         * m4/cosh.m4: New file.
7091         * modules/cosh (Files): Add it.
7092         (configure.ac): Just invoke gl_FUNC_COSH.
7093
7094 2011-10-08  Bruno Haible  <bruno@clisp.org>
7095
7096         Tests for module 'sinhf'.
7097         * modules/sinhf-tests: New file.
7098         * tests/test-sinhf.c: New file.
7099
7100         New module 'sinhf'.
7101         * lib/math.in.h (sinhf): New declaration.
7102         * lib/sinhf.c: New file.
7103         * m4/sinhf.m4: New file.
7104         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7106         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7107         * modules/sinhf: New file.
7108         * tests/test-math-c++.cc: Check the declaration of sinhf.
7109         * doc/posix-functions/sinhf.texi: Mention the new module.
7110
7111         sinh: Use a .m4 file.
7112         * m4/sinh.m4: New file.
7113         * modules/sinh (Files): Add it.
7114         (configure.ac): Just invoke gl_FUNC_SINH.
7115
7116 2011-10-08  Bruno Haible  <bruno@clisp.org>
7117
7118         Tests for module 'atan2f'.
7119         * modules/atan2f-tests: New file.
7120         * tests/test-atan2f.c: New file.
7121
7122         New module 'atan2f'.
7123         * lib/math.in.h (atan2f): New declaration.
7124         * lib/atan2f.c: New file.
7125         * m4/atan2f.m4: New file.
7126         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7128         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7129         * modules/atan2f: New file.
7130         * tests/test-math-c++.cc: Check the declaration of atan2f.
7131         * doc/posix-functions/atan2f.texi: Mention the new module.
7132
7133         atan2: Use a .m4 file.
7134         * m4/atan2.m4: New file.
7135         * modules/atan2 (Files): Add it.
7136         (configure.ac): Just invoke gl_FUNC_ATAN2.
7137
7138 2011-10-08  Bruno Haible  <bruno@clisp.org>
7139
7140         Tests for module 'atanf'.
7141         * modules/atanf-tests: New file.
7142         * tests/test-atanf.c: New file.
7143
7144         New module 'atanf'.
7145         * lib/math.in.h (atanf): New declaration.
7146         * lib/atanf.c: New file.
7147         * m4/atanf.m4: New file.
7148         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7150         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7151         * modules/atanf: New file.
7152         * tests/test-math-c++.cc: Check the declaration of atanf.
7153         * doc/posix-functions/atanf.texi: Mention the new module.
7154
7155         atan: Use a .m4 file.
7156         * m4/atan.m4: New file.
7157         * modules/atan (Files): Add it.
7158         (configure.ac): Just invoke gl_FUNC_ATAN.
7159
7160 2011-10-08  Bruno Haible  <bruno@clisp.org>
7161
7162         Tests for module 'acosf'.
7163         * modules/acosf-tests: New file.
7164         * tests/test-acosf.c: New file.
7165
7166         New module 'acosf'.
7167         * lib/math.in.h (acosf): New declaration.
7168         * lib/acosf.c: New file.
7169         * m4/acosf.m4: New file.
7170         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7172         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7173         * modules/acosf: New file.
7174         * tests/test-math-c++.cc: Check the declaration of acosf.
7175         * doc/posix-functions/acosf.texi: Mention the new module.
7176
7177         acos: Use a .m4 file.
7178         * m4/acos.m4: New file.
7179         * modules/acos (Files): Add it.
7180         (configure.ac): Just invoke gl_FUNC_ACOS.
7181
7182 2011-10-08  Bruno Haible  <bruno@clisp.org>
7183
7184         Tests for module 'asinf'.
7185         * modules/asinf-tests: New file.
7186         * tests/test-asinf.c: New file.
7187
7188         New module 'asinf'.
7189         * lib/math.in.h (asinf): New declaration.
7190         * lib/asinf.c: New file.
7191         * m4/asinf.m4: New file.
7192         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7194         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7195         * modules/asinf: New file.
7196         * tests/test-math-c++.cc: Check the declaration of asinf.
7197         * doc/posix-functions/asinf.texi: Mention the new module.
7198
7199         asin: Use a .m4 file.
7200         * m4/asin.m4: New file.
7201         * modules/asin (Files): Add it.
7202         (configure.ac): Just invoke gl_FUNC_ASIN.
7203
7204 2011-10-08  Bruno Haible  <bruno@clisp.org>
7205
7206         Tests for module 'tanf'.
7207         * modules/tanf-tests: New file.
7208         * tests/test-tanf.c: New file.
7209
7210         New module 'tanf'.
7211         * lib/math.in.h (tanf): New declaration.
7212         * lib/tanf.c: New file.
7213         * m4/tanf.m4: New file.
7214         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7216         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7217         * modules/tanf: New file.
7218         * tests/test-math-c++.cc: Check the declaration of tanf.
7219         * doc/posix-functions/tanf.texi: Mention the new module.
7220
7221         tan: Use a .m4 file.
7222         * m4/tan.m4: New file.
7223         * modules/tan (Files): Add it.
7224         (configure.ac): Just invoke gl_FUNC_TAN.
7225
7226 2011-10-08  Bruno Haible  <bruno@clisp.org>
7227
7228         Tests for module 'cosf'.
7229         * modules/cosf-tests: New file.
7230         * tests/test-cosf.c: New file.
7231
7232         New module 'cosf'.
7233         * lib/math.in.h (cosf): New declaration.
7234         * lib/cosf.c: New file.
7235         * m4/cosf.m4: New file.
7236         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7238         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7239         * modules/cosf: New file.
7240         * tests/test-math-c++.cc: Check the declaration of cosf.
7241         * doc/posix-functions/cosf.texi: Mention the new module.
7242
7243         cos: Use a .m4 file.
7244         * m4/cos.m4: New file.
7245         * modules/cos (Files): Add it.
7246         (configure.ac): Just invoke gl_FUNC_COS.
7247
7248 2011-10-08  Bruno Haible  <bruno@clisp.org>
7249
7250         Tests for module 'sinf'.
7251         * modules/sinf-tests: New file.
7252         * tests/test-sinf.c: New file.
7253
7254         New module 'sinf'.
7255         * lib/math.in.h (sinf): New declaration.
7256         * lib/sinf.c: New file.
7257         * m4/sinf.m4: New file.
7258         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7260         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7261         * modules/sinf: New file.
7262         * tests/test-math-c++.cc: Check the declaration of sinf.
7263         * doc/posix-functions/sinf.texi: Mention the new module.
7264
7265         sin: Use a .m4 file.
7266         * m4/sin.m4: New file.
7267         * modules/sin (Files): Add it.
7268         (configure.ac): Just invoke gl_FUNC_SIN.
7269
7270 2011-10-08  Bruno Haible  <bruno@clisp.org>
7271
7272         Tests for module 'powf'.
7273         * modules/powf-tests: New file.
7274         * tests/test-powf.c: New file.
7275
7276         New module 'powf'.
7277         * lib/math.in.h (powf): New declaration.
7278         * lib/powf.c: New file.
7279         * m4/powf.m4: New file.
7280         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7282         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7283         * modules/powf: New file.
7284         * tests/test-math-c++.cc: Check the declaration of powf.
7285         * doc/posix-functions/powf.texi: Mention the new module.
7286
7287         pow: Use a .m4 file.
7288         * m4/pow.m4: New file.
7289         * modules/pow (Files): Add it.
7290         (configure.ac): Just invoke gl_FUNC_POW.
7291
7292 2011-10-08  Bruno Haible  <bruno@clisp.org>
7293
7294         Tests for module 'log10f'.
7295         * modules/log10f-tests: New file.
7296         * tests/test-log10f.c: New file.
7297
7298         New module 'log10f'.
7299         * lib/math.in.h (log10f): New declaration.
7300         * lib/log10f.c: New file.
7301         * m4/log10f.m4: New file.
7302         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7304         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7305         * modules/log10f: New file.
7306         * tests/test-math-c++.cc: Check the declaration of log10f.
7307         * doc/posix-functions/log10f.texi: Mention the new module.
7308
7309         log10: Use a .m4 file.
7310         * m4/log10.m4: New file.
7311         * modules/log10 (Files): Add it.
7312         (configure.ac): Just invoke gl_FUNC_LOG10.
7313
7314 2011-10-08  Bruno Haible  <bruno@clisp.org>
7315
7316         Tests for module 'logf'.
7317         * modules/logf-tests: New file.
7318         * tests/test-logf.c: New file.
7319
7320         New module 'logf'.
7321         * lib/math.in.h (logf): New declaration.
7322         * lib/logf.c: New file.
7323         * m4/logf.m4: New file.
7324         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7326         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7327         * modules/logf: New file.
7328         * tests/test-math-c++.cc: Check the declaration of logf.
7329         * doc/posix-functions/logf.texi: Mention the new module.
7330
7331         log: Use a .m4 file.
7332         * m4/log.m4: New file.
7333         * modules/log (Files): Add it.
7334         (configure.ac): Just invoke gl_FUNC_LOG.
7335
7336 2011-10-08  Bruno Haible  <bruno@clisp.org>
7337
7338         Tests for module 'expf'.
7339         * modules/expf-tests: New file.
7340         * tests/test-expf.c: New file.
7341
7342         New module 'expf'.
7343         * lib/math.in.h (expf): New declaration.
7344         * lib/expf.c: New file.
7345         * m4/expf.m4: New file.
7346         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7348         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7349         * modules/expf: New file.
7350         * tests/test-math-c++.cc: Check the declaration of expf.
7351         * doc/posix-functions/expf.texi: Mention the new module.
7352
7353         exp: Use a .m4 file.
7354         * m4/exp.m4: New file.
7355         * modules/exp (Files): Add it.
7356         (configure.ac): Just invoke gl_FUNC_EXP.
7357
7358 2011-10-08  Bruno Haible  <bruno@clisp.org>
7359
7360         Tests for module 'sqrtf'.
7361         * modules/sqrtf-tests: New file.
7362         * tests/test-sqrtf.c: New file.
7363
7364         New module 'sqrtf'.
7365         * lib/math.in.h (sqrtf): New declaration.
7366         * lib/sqrtf.c: New file.
7367         * m4/sqrtf.m4: New file.
7368         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7370         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7371         * modules/sqrtf: New file.
7372         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7373         * doc/posix-functions/sqrtf.texi: Mention the new module.
7374
7375 2011-10-08  Bruno Haible  <bruno@clisp.org>
7376
7377         Tests: Avoid link failures w.r.t. libintl.
7378         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7379         $(LIBINTL).
7380         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7381         $(LIBINTL).
7382         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7383         against $(LIBINTL).
7384         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7385         $(LIBINTL).
7386         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7387         $(LIBINTL).
7388         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7389
7390 2011-10-08  Bruno Haible  <bruno@clisp.org>
7391
7392         pow tests: Defeat compiler optimizations.
7393         * tests/test-pow.c (main): Assign arguments to x and y before use.
7394
7395 2011-10-08  Bruno Haible  <bruno@clisp.org>
7396
7397         gnulib-tool: Improve last commit.
7398         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7399         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7400         ignore dependencies that are not among the modules list.
7401
7402 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7403
7404         gnulib-tool: don't follow dependencies to avoided modules
7405         This fixes a bug that is related to the previous one.
7406         * gnulib-tool (func_modules_transitive_closure)
7407         (func_emit_autoconf_snippets):
7408         Check whether a dependency is acceptable before using it.
7409         (--extract-dependencies): Report an error if --avoid is also used,
7410         since this combination of options is not yet supported.
7411
7412         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7413         Problem reported by Peter Dyballa in
7414         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7415         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7416         when echoing "$condition".
7417
7418 2011-10-07  Bruno Haible  <bruno@clisp.org>
7419
7420         Fix documentation about math functions on MacOS X.
7421         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7422         MacOS X 10.5.
7423         * doc/posix-functions/fdim.texi: Likewise.
7424         * doc/posix-functions/feclearexcept.texi: Likewise.
7425         * doc/posix-functions/fegetenv.texi: Likewise.
7426         * doc/posix-functions/fegetround.texi: Likewise.
7427         * doc/posix-functions/feholdexcept.texi: Likewise.
7428         * doc/posix-functions/feraiseexcept.texi: Likewise.
7429         * doc/posix-functions/fesetenv.texi: Likewise.
7430         * doc/posix-functions/fesetround.texi: Likewise.
7431         * doc/posix-functions/fetestexcept.texi: Likewise.
7432         * doc/posix-functions/feupdateenv.texi: Likewise.
7433         * doc/posix-functions/fmax.texi: Likewise.
7434         * doc/posix-functions/fmin.texi: Likewise.
7435         * doc/posix-functions/log2.texi: Likewise.
7436         * doc/posix-functions/modff.texi: Likewise.
7437         * doc/posix-functions/nan.texi: Likewise.
7438         * doc/posix-functions/nanf.texi: Likewise.
7439         * doc/posix-functions/nextafterf.texi: Likewise.
7440         * doc/posix-functions/remquo.texi: Likewise.
7441
7442 2011-10-07  Bruno Haible  <bruno@clisp.org>
7443
7444         modff: Drop assumption about library that defines modff.
7445         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7446         AC_CHECK_FUNCS.
7447         * modules/modff (Files): Add m4/mathfunc.m4.
7448
7449 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7450
7451         raise tests: Avoid a GCC warning.
7452         * tests/test-raise.c (handler): Use _Noreturn.
7453
7454 2011-10-07  Bruno Haible  <bruno@clisp.org>
7455
7456         Tests for module 'ldexpf'.
7457         * modules/ldexpf-tests: New file.
7458         * tests/test-ldexpf.c: New file.
7459
7460         New module 'ldexpf'.
7461         * lib/math.in.h (ldexpf): New declaration.
7462         * lib/ldexpf.c: New file.
7463         * m4/ldexpf.m4: New file.
7464         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7466         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7467         * modules/ldexpf: New file.
7468         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7469         * doc/posix-functions/ldexpf.texi: Mention the new module.
7470
7471 2011-10-06  Bruno Haible  <bruno@clisp.org>
7472
7473         frexpf: Work around problems on IRIX and mingw.
7474         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7476         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7477         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7478         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7479         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7480         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7481
7482 2011-10-06  Bruno Haible  <bruno@clisp.org>
7483
7484         fabsf: Drop assumption about library that defines fabsf.
7485         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7486         AC_CHECK_FUNCS.
7487         * modules/fabsf (Files): Add m4/mathfunc.m4.
7488
7489 2011-10-06  Bruno Haible  <bruno@clisp.org>
7490
7491         frexpf: Drop assumption about library that defines frexpf.
7492         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7493         'int *', 'float *', 'long double *', 'float', 'long double'.
7494         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7495         AC_CHECK_FUNCS.
7496         * modules/frexpf (Files): Add m4/mathfunc.m4.
7497
7498         Tests for module 'frexpf'.
7499         * modules/frexpf-tests: New file.
7500         * tests/test-frexpf.c: New file.
7501
7502         New module 'frexpf'.
7503         * lib/math.in.h (frexpf): New declaration.
7504         * lib/frexpf.c: New file.
7505         * m4/frexpf.m4: New file.
7506         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7508         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7509         * modules/frexpf: New file.
7510         * tests/test-math-c++.cc: Check the declaration of frexpf.
7511         * doc/posix-functions/frexpf.texi: Mention the new module.
7512
7513 2011-10-06  Bruno Haible  <bruno@clisp.org>
7514
7515         math: Sort function declarations of math.in.h.
7516         * lib/math.in.h (frexp, logb): Move declarations.
7517
7518 2011-10-05  Bruno Haible  <bruno@clisp.org>
7519
7520         Tests for module 'modff'.
7521         * modules/modff-tests: New file.
7522         * tests/test-modff.c: New file.
7523
7524         New module 'modff'.
7525         * lib/math.in.h (modff): New declaration.
7526         * lib/modff.c: New file.
7527         * m4/modff.m4: New file.
7528         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7530         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7531         * modules/modff: New file.
7532         * tests/test-math-c++.cc: Check the declaration of modff.
7533         * doc/posix-functions/modff.texi: Mention the new module.
7534
7535         modf tests: Make test sharper.
7536         * tests/test-modf.c (main): Strengthen upper bound.
7537
7538         modf: Use a .m4 file.
7539         * m4/modf.m4: New file.
7540         * modules/modf (Files): Add it.
7541         (configure.ac): Just invoke gl_FUNC_MODF.
7542
7543 2011-10-05  Bruno Haible  <bruno@clisp.org>
7544
7545         Tests for module 'fmodf'.
7546         * modules/fmodf-tests: New file.
7547         * tests/test-fmodf.c: New file.
7548
7549         New module 'fmodf'.
7550         * lib/math.in.h (fmodf): New declaration.
7551         * lib/fmodf.c: New file.
7552         * m4/fmodf.m4: New file.
7553         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7555         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7556         * modules/fmodf: New file.
7557         * tests/test-math-c++.cc: Check the declaration of fmodf.
7558         * doc/posix-functions/fmodf.texi: Mention the new module.
7559
7560         fmod: Use a .m4 file.
7561         * m4/fmod.m4: New file.
7562         * modules/fmod (Files): Add it.
7563         (configure.ac): Just invoke gl_FUNC_FMOD.
7564
7565 2011-10-05  Bruno Haible  <bruno@clisp.org>
7566
7567         Tests for module 'fabsf'.
7568         * modules/fabsf-tests: New file.
7569         * tests/test-fabsf.c: New file.
7570
7571         New module 'fabsf'.
7572         * lib/math.in.h (fabsf): New declaration.
7573         * lib/fabsf.c: New file.
7574         * m4/fabsf.m4: New file.
7575         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7577         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7578         * modules/fabsf: New file.
7579         * tests/test-math-c++.cc: Check the declaration of fabsf.
7580         * doc/posix-functions/fabsf.texi: Mention the new module.
7581
7582         fabs: Use a .m4 file.
7583         * m4/fabs.m4: New file.
7584         * modules/fabs (Files): Add it.
7585         (configure.ac): Just invoke gl_FUNC_FABS.
7586
7587 2011-10-05  Jim Meyering  <meyering@redhat.com>
7588
7589         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7590         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7591         ls -lL regression introduced in coreutils-8.12, it does so at the
7592         cost of an additional stat call in the common case.  Besides, now
7593         that the kernel change that prompted commit 95f7c57f has been reverted
7594         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7595         we have no use for commit 95f7c57f, "file-has-acl: use
7596         acl_extended_file_nofollow if available".
7597
7598 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7599
7600         file-has-acl: revert unintended change in behavior of ls -L
7601         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7602         derived from...
7603         (file_has_acl): ...code here.  Call it.
7604         This problem was introduced with 2011-07-22 commit 95f7c57f,
7605         "file-has-acl: use acl_extended_file_nofollow if available".
7606         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7607
7608 2011-10-03  Bruno Haible  <bruno@clisp.org>
7609
7610         poll: Avoid link errors on MSVC.
7611         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7612         * modules/poll (Depends-on): Add sockets.
7613         (Link): New section.
7614         * NEWS: Mention the change.
7615         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7616         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7617         $(LIB_POLL) instead of $(LIBSOCKET).
7618
7619 2011-10-03  Bruno Haible  <bruno@clisp.org>
7620
7621         sys_select tests: Fix link error on MSVC 9.
7622         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7623         with $(LIB_SELECT) instead of $(LIBSOCKET).
7624
7625 2011-10-03  Bruno Haible  <bruno@clisp.org>
7626
7627         sys_select: Fix compilation error on mingw.
7628         * lib/sys_select.in.h: On native Windows, include <io.h>.
7629
7630 2011-10-03  Bruno Haible  <bruno@clisp.org>
7631
7632         wmemset: Support for MSVC.
7633         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7634         whether wmemset() exists.
7635
7636 2011-10-03  Bruno Haible  <bruno@clisp.org>
7637
7638         wmemmove: Support for MSVC.
7639         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7640         whether wmemmove() exists.
7641
7642 2011-10-03  Bruno Haible  <bruno@clisp.org>
7643
7644         wmemcpy: Support for MSVC.
7645         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7646         whether wmemcpy() exists.
7647
7648 2011-10-03  Bruno Haible  <bruno@clisp.org>
7649
7650         wmemcmp: Support for MSVC.
7651         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7652         whether wmemcmp() exists.
7653
7654 2011-10-03  Bruno Haible  <bruno@clisp.org>
7655
7656         wmemchr: Support for MSVC.
7657         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7658         whether wmemchr() exists.
7659
7660 2011-10-03  Bruno Haible  <bruno@clisp.org>
7661
7662         glthread/*, strsignal: Support for MSVC.
7663         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7664         including <winsock.h> on MSVC 9.
7665         * lib/glthread/lock.h: Likewise.
7666         * lib/glthread/thread.h: Likewise.
7667         * lib/glthread/tls.h: Likewise.
7668         * lib/glthread/yield.h: Likewise.
7669         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7670         if HAVE_UNISTD_H is false.
7671         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7672
7673 2011-10-03  Bruno Haible  <bruno@clisp.org>
7674
7675         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7676         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7677         Set to 100000.
7678
7679 2011-10-03  Bruno Haible  <bruno@clisp.org>
7680
7681         acl: Fix specification.
7682         * lib/file-has-acl.c (file_has_acl): Fix specification.
7683
7684 2011-10-03  Bruno Haible  <bruno@clisp.org>
7685
7686         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7687         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7688         (compute_curr_prefix, shared_library_fullname,
7689         find_shared_library_fullname, get_shared_library_fullname, relocate):
7690         Use it together with PIC && INSTALLDIR.
7691         Reported by <jojelino@gmail.com>
7692         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7693
7694 2011-10-01  Jim Meyering  <meyering@redhat.com>
7695
7696         maint.mk: adjust a release-related rule not to require use of gzip
7697         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7698         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7699         projects that build only .tar.xz files.  Also fix an erroneous test.
7700
7701         test-linkat: don't leave behind a temporary file
7702         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7703         Otherwise, coreutils' "make distcheck" would fail with this:
7704           Only in /c/cu/tests/torture/coreutils/test/\
7705             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7706           make[2]: *** [my-distcheck] Error 1
7707
7708         float, math: add omitted file
7709         * lib/itold.c: Add file, required for yesterday's float change.
7710
7711 2011-10-01  Bruno Haible  <bruno@clisp.org>
7712
7713         isinf: Fix for OpenBSD/x86.
7714         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7715         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7716         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7717
7718 2011-10-01  Bruno Haible  <bruno@clisp.org>
7719
7720         isfinite: Fix syntax error in configure test.
7721         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7722
7723         isfinite: Fix typo.
7724         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7725         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7726
7727 2011-10-01  Bruno Haible  <bruno@clisp.org>
7728
7729         nonblocking tests: Fix test failure on Linux/IA-64.
7730         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7731         Set to 270000.
7732
7733 2011-10-01  Bruno Haible  <bruno@clisp.org>
7734
7735         mkfifoat tests: Fix a test failure on mingw.
7736         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7737         with error ENOSYS.
7738
7739 2011-09-30  Bruno Haible  <bruno@clisp.org>
7740
7741         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7742         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7743         'long double'. Set REPLACE_ITOLD.
7744         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7745         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7746         * lib/itold.c: New file.
7747         * modules/float (Files): Add lib/itold.c.
7748         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7749         (Makefile.am): Substitute REPLACE_ITOLD.
7750         * modules/math (Depends-on): Add float.
7751         (Makefile.am): Substitute REPLACE_ITOLD.
7752         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7753         * doc/posix-headers/math.texi: Likewise.
7754         * doc/posix-functions/logl.texi: Likewise.
7755
7756 2011-09-30  Bruno Haible  <bruno@clisp.org>
7757
7758         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7759         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7760         Set to 140000.
7761
7762 2011-09-30  Bruno Haible  <bruno@clisp.org>
7763
7764         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7765         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7766         invocation, say "right after AC_PROG_CC_STDC", not "right after
7767         AC_PROG_CC".
7768         Reported by Gary V. Vaughan <gary@gnu.org>.
7769
7770 2011-09-30  Bruno Haible  <bruno@clisp.org>
7771
7772         Centralize C99 requirement.
7773         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7774         * modules/stdarg (configure.ac-early): Invoke it instead of
7775         AC_PROG_CC_STDC.
7776         Reported by Gary V. Vaughan and Paul Eggert.
7777
7778 2011-09-29  Bruno Haible  <bruno@clisp.org>
7779
7780         float: Fix LDBL_MAX value on Linux/PowerPC.
7781         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7782         on Linux/PowerPC.
7783         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7784         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7785         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7786         platform.
7787         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7788
7789 2011-09-29  Bruno Haible  <bruno@clisp.org>
7790
7791         doc: Improve doc about gl_EARLY.
7792         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7793         AC_PROG_CC_STDC invocation.
7794         Reported by Gary V. Vaughan <gary@gnu.org>.
7795
7796 2011-09-28  Bruno Haible  <bruno@clisp.org>
7797
7798         fgetc, fputc, fread, fwrite tests: Fix link error.
7799         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7800         on non-MSVC platforms.
7801         * tests/test-fputc.c (main): Likewise.
7802         * tests/test-fread.c (main): Likewise.
7803         * tests/test-fwrite.c (main): Likewise.
7804         Reported by Jim Meyering.
7805
7806 2011-09-27  Bruno Haible  <bruno@clisp.org>
7807
7808         fputc, fwrite tests: Avoid test failure on MSVC.
7809         * tests/test-fgetc.c: Include msvc-inval.h.
7810         (main): Invoke gl_msvc_inval_ensure_handler.
7811         * tests/test-fputc.c: Include msvc-inval.h.
7812         (main): Invoke gl_msvc_inval_ensure_handler.
7813         * tests/test-fread.c: Include msvc-inval.h.
7814         (main): Invoke gl_msvc_inval_ensure_handler.
7815         * tests/test-fwrite.c: Include msvc-inval.h.
7816         (main): Invoke gl_msvc_inval_ensure_handler.
7817         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7818         * modules/fputc-tests (Depends-on): Likewise.
7819         * modules/fread-tests (Depends-on): Likewise.
7820         * modules/fwrite-tests (Depends-on): Likewise.
7821
7822 2011-09-27  Bruno Haible  <bruno@clisp.org>
7823
7824         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7825         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7826         (raise): Remove older, duplicated declaration.
7827         (_gl_raise_SIGPIPE): New declaration.
7828         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7829         (rpl_raise): Remove function.
7830         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7831         a gnulib-defined SIGPIPE here.
7832         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7833         'sigprocmask' has detected missing signal-blocking and the module
7834         'sigpipe' is enabled.
7835         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7836
7837 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7838
7839         base64-tests: avoid memory leak
7840         * tests/test-base64.c (main): Plug memory leak.
7841
7842         base32: new module
7843         * modules/base32: New module.
7844         * lib/base32.c: New file.
7845         * lib/base32.h: Likewise.
7846         * m4/base32.m4: Likewise.
7847         * modules/base32-tests: New test.
7848         * tests/test-base32.c: Likewise.
7849         * MODULES.html.sh (Misc): Mention it.
7850
7851 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7852
7853         gnulib: use more-standard license notice wording
7854         * gnulib-tool (func_emit_copyright_notice): When emitting a
7855         license notice into a file, use the standard wording as suggested
7856         by the current information for GNU maintainers, except say "file"
7857         rather than "program".  The new wording gives a license version
7858         number, which addresses an issue raised by Glenn Morris in
7859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7860         * m4/onceonly.m4: Use that same wording here, too.
7861
7862         dup2: minor simplification
7863         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7864         as lib/dup2.c no longer uses 'inline'.
7865
7866 2011-09-25  Bruno Haible  <bruno@clisp.org>
7867
7868         strings: Fix compilation error on MSVC.
7869         * lib/strings.in.h: Include <stddef.h> for size_t.
7870
7871 2011-09-25  Bruno Haible  <bruno@clisp.org>
7872
7873         fflush et al.: Document limitation on MSVC.
7874         * doc/posix-functions/fflush.texi: Document possible crash in handling
7875         mode other than DEFAULT_HANDLING.
7876         * doc/posix-functions/fgetc.texi: Likewise.
7877         * doc/posix-functions/fputc.texi: Likewise.
7878         * doc/posix-functions/fread.texi: Likewise.
7879         * doc/posix-functions/fwrite.texi: Likewise.
7880
7881 2011-09-25  Bruno Haible  <bruno@clisp.org>
7882
7883         msvc-inval: Allow three invalid parameter handling modes.
7884         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7885         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7886         macros.
7887         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7888         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7889         SANE_LIBRARY_HANDLING as a no-op.
7890         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7891         <stdlib.h>.
7892         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7893
7894 2011-09-25  Bruno Haible  <bruno@clisp.org>
7895
7896         msvc-inval: Make handler multithread-safe.
7897         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7898         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7899         declarations.
7900         (gl_msvc_inval_current): New declaration.
7901         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7902         Operate on the structure returned by gl_msvc_inval_current().
7903         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7904         Remove varaiables.
7905         (tls_index, tls_initialized): New variables.
7906         (not_per_thread): New variable.
7907         (gl_msvc_inval_current): New function.
7908         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7909         returned by gl_msvc_inval_current().
7910
7911 2011-09-25  Bruno Haible  <bruno@clisp.org>
7912
7913         msvc-inval: Install handler globally.
7914         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7915         !_MSC_VER.
7916         (gl_msvc_invalid_parameter_handler): Remove declaration.
7917         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7918         declarations.
7919         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7920         Install the handler globally, don't uninstall it.
7921         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7922         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7923         currently valid, call RaiseException instead.
7924         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7925         for !_MSC_VER.
7926
7927 2011-09-25  Bruno Haible  <bruno@clisp.org>
7928
7929         strerror_r-posix: Fix for MSVC 9.
7930         * lib/strerror_r.c (local_snprintf): New function.
7931         (snprintf): Define to local_snprintf, not to _snprintf.
7932
7933 2011-09-25  Bruno Haible  <bruno@clisp.org>
7934
7935         ftruncate: Support for MSVC 9.
7936         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7937         (chsize_nothrow): New function.
7938         (chsize): Redefine as a macro.
7939         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7940         * modules/ftruncate (Depends-on): Add msvc-inval.
7941
7942 2011-09-25  Bruno Haible  <bruno@clisp.org>
7943
7944         New module 'fstat'.
7945         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7946         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7947         * lib/fchdir.c (rpl_fstat): Remove function.
7948         * m4/fstat.m4: New file.
7949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7951         declared.
7952         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7953         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7954         * modules/fstat: New file.
7955         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7956         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7957         is set.
7958         * doc/posix-functions/fstat.texi: Mention the new module and the
7959         problem on MSVC.
7960         * NEWS: Mention the change.
7961         * modules/acl (Depends-on): Add fstat.
7962         * modules/chdir-safer (Depends-on): Likewise.
7963         * modules/chown (Depends-on): Likewise.
7964         * modules/copy-file (Depends-on): Likewise.
7965         * modules/fchdir (Depends-on): Likewise.
7966         * modules/fdopendir (Depends-on): Likewise.
7967         * modules/fopen (Depends-on): Likewise.
7968         * modules/fts (Depends-on): Likewise.
7969         * modules/getcwd (Depends-on): Likewise.
7970         * modules/isapipe (Depends-on): Likewise.
7971         * modules/linkat (Depends-on): Likewise.
7972         * modules/lseek (Depends-on): Likewise.
7973         * modules/mkdir-p (Depends-on): Likewise.
7974         * modules/open (Depends-on): Likewise.
7975         * modules/openat (Depends-on): Likewise.
7976         * modules/read-file (Depends-on): Likewise.
7977         * modules/renameat (Depends-on): Likewise.
7978         * modules/utimens (Depends-on): Likewise.
7979
7980 2011-09-25  Bruno Haible  <bruno@clisp.org>
7981
7982         linkat: Fix compilation on MSVC 9.
7983         * lib/linkat.c: Don't include <stdint.h>.
7984
7985 2011-09-25  Bruno Haible  <bruno@clisp.org>
7986
7987         fclose: Support for MSVC 9.
7988         * lib/fclose.c: Include msvc-inval.h.
7989         (fclose_nothrow): New function.
7990         (rpl_fclose): Use it.
7991         * modules/fclose (Depends-on): Add msvc-inval.
7992         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7993
7994 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         dup2: minor simplifications
7997         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7998         that it's a performance win.
7999         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8000         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8001
8002 2011-09-24  Jim Meyering  <meyering@redhat.com>
8003
8004         test-futimens: avoid a warning from gcc -Wshadow
8005         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8006         to avoid a shadowing warning.
8007
8008 2011-09-24  Bruno Haible  <bruno@clisp.org>
8009
8010         fdopen: Support for MSVC 9.
8011         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8012         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8013         * lib/fdopen.c: Include msvc-inval.h.
8014         (fdopen_nothrow): New function.
8015         (rpl_fdopen): Use it.
8016         * modules/fdopen (Depends-on): Add msvc-inval.
8017         * modules/fclose-tests (Depends-on): Add fdopen.
8018         * modules/fflush-tests (Depends-on): Likewise.
8019         * modules/fgetc-tests (Depends-on): Likewise.
8020         * modules/fputc-tests (Depends-on): Likewise.
8021         * modules/fread-tests (Depends-on): Likewise.
8022         * modules/freopen-tests (Depends-on): Likewise.
8023         * modules/fseeko-tests (Depends-on): Likewise.
8024         * modules/ftello-tests (Depends-on): Likewise.
8025         * modules/fwrite-tests  (Depends-on): Likewise.
8026         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8027
8028 2011-09-24  Bruno Haible  <bruno@clisp.org>
8029
8030         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8031         * modules/fgetc-tests (Depends-on): Add unistd.
8032         * modules/fputc-tests (Depends-on): Likewise.
8033         * modules/fread-tests (Depends-on): Likewise.
8034         * modules/fwrite-tests (Depends-on): Likewise.
8035
8036 2011-09-24  Bruno Haible  <bruno@clisp.org>
8037
8038         dup: Simplify autoconf test.
8039         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8040         on gl_MSVC_INVAL's result.
8041
8042 2011-09-24  Bruno Haible  <bruno@clisp.org>
8043
8044         Tests for function fwrite().
8045         * modules/fwrite-tests: New file.
8046         * tests/test-fwrite.c: New file.
8047         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8048
8049         Tests for function fread().
8050         * modules/fread-tests: New file.
8051         * tests/test-fread.c: New file.
8052         * modules/stdio-tests (Depends-on): Add fread-tests.
8053
8054         Activate fputc tests.
8055         * modules/stdio-tests (Depends-on): Add fputc-tests.
8056
8057         Enhance fgetc, fputc tests.
8058         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8059         * tests/test-fputc.c (main): Likewise.
8060
8061 2011-09-24  Bruno Haible  <bruno@clisp.org>
8062
8063         write: Support for MSVC 9.
8064         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8065         is not 1.
8066         * lib/write.c (write_nothrow): New function.
8067         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8068         not 1. Use write_nothrow.
8069         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8070         invalid parameter handler.
8071         (gl_PREREQ_WRITE): New macro.
8072         * modules/write (Depends-on): Add msvc-inval.
8073         (configure.ac): Invoke gl_PREREQ_WRITE.
8074         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8075
8076 2011-09-24  Bruno Haible  <bruno@clisp.org>
8077
8078         read: Fix last commit.
8079         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8080
8081 2011-09-24  Bruno Haible  <bruno@clisp.org>
8082
8083         dup2: Fix last commit.
8084         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8085         (rpl_dup2): Disable fcntl workaround on native Windows.
8086
8087         sigprocmask: Make code safer.
8088         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8089         section that changes macro definitions for this compilation unit.
8090
8091 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8092
8093         dup2: clarify by coalescing Windows-specific material
8094         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8095         "msvc-nothrow.h"' to the Windows-specific section, so that the
8096         Emacs source need not contain these include files.
8097         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8098         Windows-specific fixes into this function rather than just the
8099         nothrow fix, as this shortens and clarifies the code.  Always
8100         define as a function, as that's a bit cleaner than having it be
8101         sometimes a function and sometimes a macro.
8102         (rpl_dup2): Move the Windows-specific stuff out of here and into
8103         ms_windows_dup2.  Don't protect the Haiku-related fix with
8104         "#if !defined __linux__", as the same code also works around
8105         a Linux kernel bug, and it doesn't add any system calls on any
8106         platform.  Add comment about FreeBSD 6.1.
8107
8108         sigprocmask: move #include directive
8109         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8110         Windows-specific section, so that the Emacs source need not
8111         contain msvc-inval.h.
8112
8113 2011-09-23  Bruno Haible  <bruno@clisp.org>
8114
8115         read: Support for MSVC 9.
8116         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8117         is not 1.
8118         * lib/read.c (read_nothrow): New function.
8119         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8120         read_nothrow.
8121         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8122         invalid parameter handler.
8123         (gl_PREREQ_READ): New macro.
8124         * modules/read (Depends-on): Add msvc-inval.
8125         (configure.ac): Invoke gl_PREREQ_READ.
8126         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8127
8128 2011-09-23  Bruno Haible  <bruno@clisp.org>
8129
8130         close: Support for MSVC 9.
8131         * lib/close.c: Include <errno.h>, msvc-inval.h.
8132         (close_nothrow): New function.
8133         (rpl_close): Use it.
8134         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8135         invalid parameter handler.
8136         * modules/close (Depends-on): Add msvc-inval.
8137         * modules/dup2-tests (Depends-on): Add close.
8138         * modules/dup3-tests (Depends-on): Likewise.
8139         * modules/fcntl-tests (Depends-on): Likewise.
8140         * modules/spawn-pipe-tests (Depends-on): Likewise.
8141         * modules/unistd-safer-tests (Depends-on): Likewise.
8142         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8143
8144 2011-09-23  Bruno Haible  <bruno@clisp.org>
8145
8146         New module 'dup'.
8147         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8148         Allow replacement.
8149         * lib/dup.c: New file.
8150         * lib/fchdir.c (rpl_dup): Remove function.
8151         * m4/dup.m4: New file.
8152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8153         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8154         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8155         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8156         * modules/dup: New file.
8157         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8158         'dup' module is in use.
8159         * modules/fdopendir (Depends-on): Add dup.
8160         * modules/fdutimensat-tests (Depends-on): Likewise.
8161         * modules/fts (Depends-on): Likewise.
8162         * modules/futimens-tests (Depends-on): Likewise.
8163         * modules/posix_spawnp-tests (Depends-on): Likewise.
8164         * modules/unistd-safer-tests (Depends-on): Likewise.
8165         * modules/utimens-tests (Depends-on): Likewise.
8166         * doc/posix-functions/dup.texi: Mention the new module and the problem
8167         on MSVC.
8168
8169 2011-09-23  Bruno Haible  <bruno@clisp.org>
8170
8171         getdtablesize: Support for MSVC 9.
8172         * lib/getdtablesize.c: Include msvc-inval.h.
8173         (_setmaxstdio_nothrow): New function.
8174         (_setmaxstdio): Redefine it.
8175         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8176         * modules/getdtablesize (Depends-on): Add msvc-inval.
8177         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8178
8179 2011-09-23  Bruno Haible  <bruno@clisp.org>
8180
8181         signal-h: Rename from signal.
8182         * modules/signal-h: Renamed from modules/signal.
8183         * modules/pthread_sigmask (Depends-on): Update.
8184         * modules/raise (Depends-on): Likewise.
8185         * modules/sigaction (Depends-on): Likewise.
8186         * modules/sigpipe (Depends-on): Likewise.
8187         * modules/sigprocmask (Depends-on): Likewise.
8188         * modules/sys_select (Depends-on): Likewise.
8189         * modules/signal-h-tests: Renamed from modules/signal-tests.
8190         (Files, Depends-on, Makefile.am): Update.
8191         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8192         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8193         (Files, Makefile.am): Update.
8194         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8195         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8196         * modules/signal: New placeholder file.
8197         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8198         * doc/posix-headers/signal.texi: Update.
8199         * NEWS: Mention the change.
8200
8201 2011-09-23  Bruno Haible  <bruno@clisp.org>
8202
8203         sigprocmask: Avoid crashes through signal() on MSVC 9.
8204         * lib/sigprocmask.c: Include msvc-inval.h.
8205         (signal_nothrow): New function.
8206         (signal): Redefine it.
8207         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8208         * modules/sigprocmask (Depends-on): Add msvc-inval.
8209         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8210
8211 2011-09-23  Bruno Haible  <bruno@clisp.org>
8212
8213         Tests for module 'raise'.
8214         * modules/raise-tests: New file.
8215         * tests/test-raise.c: New file.
8216
8217         raise: Support for MSVC.
8218         * lib/signal.in.h (raise): New declaration.
8219         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8220         for native Windows platforms.
8221         * m4/raise.m4: New file.
8222         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8223         HAVE_RAISE, REPLACE_RAISE.
8224         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8225         REPLACE_RAISE.
8226         * modules/raise (Status, Notice): Remove fields.
8227         (Files): Add m4/raise.m4.
8228         (Depends-on): Add signal, msvc-inval.
8229         (configure.ac): Use the common idioms.
8230         (Maintainer): Add me.
8231         * tests/test-signal-c++.cc: Check the signature of raise.
8232         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8233
8234 2011-09-23  Bruno Haible  <bruno@clisp.org>
8235
8236         pipe2: Fix compilation on pre-C99 compilers.
8237         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8238
8239 2011-09-23  Bruno Haible  <bruno@clisp.org>
8240
8241         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8242         * lib/msvc-nothrow.h: New file.
8243         * lib/msvc-nothrow.c: New file.
8244         * m4/msvc-nothrow.m4: New file.
8245         * modules/msvc-nothrow: New file.
8246         * lib/dup2.c: Include msvc-nothrow.h.
8247         (rpl_dup2): No need to protect _get_osfhandle call here.
8248         * lib/accept4.c: Include msvc-nothrow.h.
8249         * lib/error.c: Likewise.
8250         * lib/fcntl.c: Likewise.
8251         * lib/lseek.c: Likewise.
8252         * lib/nonblocking.c: Likewise.
8253         * lib/poll.c: Likewise.
8254         * lib/read.c: Likewise.
8255         * lib/select.c: Likewise.
8256         * lib/sockets.h: Likewise.
8257         * lib/sockets.c: Likewise.
8258         * lib/stdio-read.c: Likewise.
8259         * lib/stdio-write.c: Likewise.
8260         * lib/write.c: Likewise.
8261         * lib/w32sock.h: Likewise.
8262         * lib/w32spawn.h: Likewise.
8263         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8264         * lib/fsync.c: Likewise.
8265         * lib/isapipe.c: Likewise.
8266         * modules/dup2 (Depends-on): Add msvc-nothrow.
8267         * modules/accept4 (Depends-on): Likewise.
8268         * modules/error (Depends-on): Likewise.
8269         * modules/fcntl (Depends-on): Likewise.
8270         * modules/lseek (Depends-on): Likewise.
8271         * modules/nonblocking (Depends-on): Likewise.
8272         * modules/poll (Depends-on): Likewise.
8273         * modules/read (Depends-on): Likewise.
8274         * modules/select (Depends-on): Likewise.
8275         * modules/sockets (Depends-on): Likewise.
8276         * modules/sigpipe (Depends-on): Likewise.
8277         * modules/write (Depends-on): Likewise.
8278         * modules/accept (Depends-on): Likewise.
8279         * modules/bind (Depends-on): Likewise.
8280         * modules/connect (Depends-on): Likewise.
8281         * modules/gethostname (Depends-on): Likewise.
8282         * modules/getpeername (Depends-on): Likewise.
8283         * modules/getsockname (Depends-on): Likewise.
8284         * modules/getsockopt (Depends-on): Likewise.
8285         * modules/ioctl (Depends-on): Likewise.
8286         * modules/listen (Depends-on): Likewise.
8287         * modules/recv (Depends-on): Likewise.
8288         * modules/recvfrom (Depends-on): Likewise.
8289         * modules/send (Depends-on): Likewise.
8290         * modules/sendto (Depends-on): Likewise.
8291         * modules/setsockopt (Depends-on): Likewise.
8292         * modules/shutdown (Depends-on): Likewise.
8293         * modules/socket (Depends-on): Likewise.
8294         * modules/execute (Depends-on): Likewise.
8295         * modules/spawn-pipe (Depends-on): Likewise.
8296         * modules/flock (Depends-on): Likewise.
8297         * modules/fsync (Depends-on): Likewise.
8298         * modules/isapipe (Depends-on): Likewise.
8299         * tests/test-cloexec.c: Include msvc-nothrow.h.
8300         * tests/test-dup-safer.c: Likewise.
8301         * tests/test-dup2.c: Likewise.
8302         * tests/test-dup3.c: Likewise.
8303         * tests/test-fcntl.c: Likewise.
8304         * tests/test-pipe.c: Likewise.
8305         * tests/test-pipe2.c: Likewise.
8306         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8307         * modules/unistd-safer-tests (Depends-on): Likewise.
8308         * modules/dup2-tests (Depends-on): Likewise.
8309         * modules/dup3-tests (Depends-on): Likewise.
8310         * modules/fcntl-tests (Depends-on): Likewise.
8311         * modules/pipe-posix-tests (Depends-on): Likewise.
8312         * modules/pipe2-tests (Depends-on): Likewise.
8313
8314 2011-09-23  Bruno Haible  <bruno@clisp.org>
8315
8316         dup2: Make code more maintainable.
8317         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8318         (rpl_dup2): Use it.
8319         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8320         * modules/dup2 (configure.ac): Invoke it.
8321         Reported by Paul Eggert.
8322
8323 2011-09-23  Bruno Haible  <bruno@clisp.org>
8324
8325         msvc-inval: Fix compilation error.
8326         * lib/msvc-inval.h: Include <excpt.h>.
8327
8328 2011-09-23  Bruno Haible  <bruno@clisp.org>
8329
8330         mkdir: Tweak for MSVC 9.
8331         * lib/sys_stat.in.h: Update comments.
8332         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8333
8334         Tests for module 'chdir'.
8335         * modules/chdir-tests: New file.
8336         * tests/test-chdir.c: New file.
8337
8338         New module 'chdir'.
8339         * modules/chdir: New file.
8340         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8341         (chdir): New declaration.
8342         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8343         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8344         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8345         * tests/test-unistd-c++.cc: Check signature of chdir.
8346         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8347         * modules/chdir-long (Depends-on): Add chdir.
8348         * modules/fchdir (Depends-on): Likewise.
8349         * modules/rename (Depends-on): Likewise.
8350         * modules/savewd (Depends-on): Likewise.
8351
8352         rmdir: Support for mingw, MSVC 9.
8353         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8354         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8355
8356         getcwd: Tweak for MSVC 9.
8357         * lib/unistd.in.h: Update comments.
8358         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8359
8360 2011-09-22  Bruno Haible  <bruno@clisp.org>
8361
8362         strerror_r-posix: Avoid a link error on MSVC.
8363         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8364         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8365
8366 2011-09-22  Bruno Haible  <bruno@clisp.org>
8367
8368         select: Avoid link errors on MSVC.
8369         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8370         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8371         * modules/pselect (Link): Likewise.
8372         * NEWS: Mention the change.
8373         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8374         test-select-stdin against $(LIB_SELECT).
8375         * modules/pselect-tests (Makefile.am): Link test-pselect against
8376         $(LIB_SELECT).
8377
8378 2011-09-22  Bruno Haible  <bruno@clisp.org>
8379
8380         select: Avoid compilation error on MSVC.
8381         * lib/select.c: Don't include <stdbool.h>.
8382
8383 2011-09-21  Bruno Haible  <bruno@clisp.org>
8384
8385         Consolidate all uses of PATH_MAX in *.m4 files.
8386         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8387         macros.
8388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8389         and gl_PATHMAX_SNIPPET.
8390         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8391         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8392         * modules/chdir-long (Files): Add m4/pathmax.m4.
8393         * modules/getcwd (Files): Likewise.
8394
8395 2011-09-21  Bruno Haible  <bruno@clisp.org>
8396
8397         ftruncate: Un-deprecate, concentrate on Win32 support.
8398         * modules/ftruncate (Status, Notice): Remove sections.
8399         (Depends-on): Add largefile.
8400         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8401         non-mingw platforms.
8402         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8403         include <io.h>.
8404         * modules/perror-tests (Depends-on): Add ftruncate.
8405         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8406         'ftruncate' module.
8407
8408 2011-09-21  Bruno Haible  <bruno@clisp.org>
8409
8410         Add dependencies to new dirent related modules.
8411         * modules/opendir (Depends-on): Add closedir.
8412         * modules/getcwd (Depends-on): Add opendir, closedir.
8413         * modules/dirent-safer-tests (Depends-on): Likewise.
8414         * modules/fdopendir-tests (Depends-on): Likewise.
8415         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8416         * modules/renameat-tests (Depends-on): Likewise.
8417
8418 2011-09-21  Bruno Haible  <bruno@clisp.org>
8419
8420         opendir: Avoid compilation error on mingw.
8421         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8422         * modules/opendir (Depends-on): Add unistd.
8423
8424 2011-09-21  Bruno Haible  <bruno@clisp.org>
8425
8426         ftruncate tests: Avoid a test failure on mingw.
8427         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8428
8429 2011-09-21  Bruno Haible  <bruno@clisp.org>
8430
8431         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8432         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8433         native Windows.
8434
8435 2011-09-21  Bruno Haible  <bruno@clisp.org>
8436
8437         New module 'fdopen'.
8438         * lib/stdio.in.h (fdopen): New declaration.
8439         * lib/fdopen.c: New file.
8440         * m4/fdopen.m4: New file.
8441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8442         REPLACE_FDOPEN.
8443         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8444         REPLACE_FDOPEN.
8445         * modules/fdopen: New file.
8446         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8447         * tests/test-stdio-c++.cc: Check signature of fdopen.
8448         * doc/posix-functions/fdopen.texi: Mention the new module.
8449
8450 2011-09-21  Bruno Haible  <bruno@clisp.org>
8451
8452         unlockpt tests: Avoid test failure on NetBSD 5.1.
8453         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8454         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8455
8456 2011-09-21  Bruno Haible  <bruno@clisp.org>
8457
8458         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8459         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8460         * tests/test-getlogin_r.c (main): Likewise.
8461
8462 2011-09-20  Bruno Haible  <bruno@clisp.org>
8463
8464         time tests: Don't require pid_t.
8465         * doc/posix-headers/time.texi: Revert last change.
8466         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8467         * tests/test-time.c: Comment out the check for pid_t.
8468
8469 2011-09-20  Bruno Haible  <bruno@clisp.org>
8470
8471         fsync tests: Avoid a test failure on mingw.
8472         * tests/test-fsync.c (main): Allow a failure with EIO.
8473
8474 2011-09-20  Bruno Haible  <bruno@clisp.org>
8475
8476         euidaccess: Update comments.
8477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8478
8479 2011-09-20  Bruno Haible  <bruno@clisp.org>
8480
8481         Ensure EBADF returns for socket functions on mingw.
8482         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8483         descriptor is invalid.
8484         * lib/bind.c (rpl_bind): Likewise.
8485         * lib/connect.c (rpl_connect): Likewise.
8486         * lib/getpeername.c (rpl_getpeername): Likewise.
8487         * lib/getsockname.c (rpl_getsockname): Likewise.
8488         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8489         * lib/listen.c (rpl_listen): Likewise.
8490         * lib/recv.c (rpl_recv): Likewise.
8491         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8492         * lib/send.c (rpl_send): Likewise.
8493         * lib/sendto.c (rpl_sendto): Likewise.
8494         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8495         * lib/shutdown.c (rpl_shutdown): Likewise.
8496
8497 2011-09-20  Bruno Haible  <bruno@clisp.org>
8498
8499         select tests: EBADF tests.
8500         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8501         test_bad_fd): New functions.
8502         (test_function): Invoke also test_bad_fd.
8503
8504 2011-09-20  Bruno Haible  <bruno@clisp.org>
8505
8506         Tests for module 'posix_spawn_file_actions_addopen.
8507         * modules/posix_spawn_file_actions_addopen-tests: New file.
8508         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8509
8510         Tests for module 'posix_spawn_file_actions_adddup2'.
8511         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8512         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8513
8514         Tests for module 'posix_spawn_file_actions_addclose'.
8515         * modules/posix_spawn_file_actions_addclose-tests: New file.
8516         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8517
8518 2011-09-20  Bruno Haible  <bruno@clisp.org>
8519
8520         Tests for module 'unlockpt'.
8521         * modules/unlockpt-tests: New file.
8522         * tests/test-unlockpt.c: New file.
8523         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8524
8525         Tests for module 'grantpt'.
8526         * modules/grantpt-tests: New file.
8527         * tests/test-grantpt.c: New file.
8528         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8529
8530 2011-09-20  Bruno Haible  <bruno@clisp.org>
8531
8532         freopen tests: EBADF tests.
8533         * tests/test-freopen.c: Include errno.h, unistd.h.
8534         (main): Add tests for EBADF, commented out for the moment.
8535
8536         fclose tests: EBADF tests.
8537         * tests/test-fclose.c (main): Add tests for EBADF.
8538
8539         fflush tests: EBADF tests.
8540         * tests/test-fflush.c: Include errno.h, macros.h.
8541         (main): Add tests for EBADF.
8542
8543         ftello tests: EBADF tests.
8544         * tests/test-ftello4.sh: New file.
8545         * tests/test-ftello4.c: New file.
8546         * modules/ftello-tests (Files): Add them.
8547         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8548
8549         fseeko tests: EBADF tests.
8550         * tests/test-fseeko4.sh: New file.
8551         * tests/test-fseeko4.c: New file.
8552         * modules/fseeko-tests (Files): Add them.
8553         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8554
8555         Tests for function fputc().
8556         * modules/fputc-tests: New file.
8557         * tests/test-fputc.c: New file.
8558         * modules/stdio-tests (Depends-on): Add fputc-tests.
8559
8560         Tests for function fgetc().
8561         * modules/fgetc-tests: New file.
8562         * tests/test-fgetc.c: New file.
8563         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8564
8565         Tests for function fdopen().
8566         * modules/fdopen-tests: New file.
8567         * tests/test-fdopen.c: New file.
8568         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8569
8570         Tests for module 'vdprintf'.
8571         * modules/vdprintf-tests: New file.
8572         * tests/test-vdprintf.c: New file.
8573
8574         Tests for module 'dprintf'.
8575         * modules/dprintf-tests: New file.
8576         * tests/test-dprintf.c: New file.
8577
8578 2011-09-20  Bruno Haible  <bruno@clisp.org>
8579
8580         Tests for module 'ioctl'.
8581         * modules/ioctl-tests: New file.
8582         * tests/test-ioctl.c: New file.
8583
8584 2011-09-20  Bruno Haible  <bruno@clisp.org>
8585
8586         fcntl tests: EBADF tests.
8587         * tests/test-fcntl.c (main): Add more tests for EBADF.
8588
8589 2011-09-20  Bruno Haible  <bruno@clisp.org>
8590
8591         utimensat tests: EBADF tests.
8592         * tests/test-utimensat.c (main): Add tests for EBADF.
8593
8594         renameat tests: EBADF tests.
8595         * tests/test-renameat.c (main): Add tests for EBADF.
8596
8597         mkfifoat tests: EBADF tests.
8598         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8599
8600         readlinkat tests: EBADF tests.
8601         * tests/test-readlinkat.c (main): Add tests for EBADF.
8602
8603         symlinkat tests: EBADF tests.
8604         * tests/test-symlinkat.c (main): Add tests for EBADF.
8605
8606         linkat tests: EBADF tests.
8607         * tests/test-linkat.c (main): Add tests for EBADF.
8608
8609         Tests for module 'faccessat'.
8610         * modules/faccessat-tests: New file.
8611         * tests/test-faccessat.c: New file.
8612
8613         fdopendir tests: EBADF tests.
8614         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8615
8616         openat tests: EBADF tests.
8617         * tests/test-fchownat.c (main): Add tests for EBADF.
8618         * tests/test-fstatat.c (main): Likewise.
8619         * tests/test-mkdirat.c (main): Likewise.
8620         * tests/test-openat.c (main): Likewise.
8621         * tests/test-unlinkat.c (main): Likewise.
8622         * tests/test-fchmodat.c: New file.
8623         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8624         (Makefile.am): Also run 'test-fchmodat'.
8625
8626 2011-09-20  Bruno Haible  <bruno@clisp.org>
8627
8628         utimens, futimens, fdutimensat tests: EBADF tests.
8629         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8630
8631         Tests for function fstat().
8632         * modules/fstat-tests: New file.
8633         * tests/test-fstat.c: New file.
8634         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8635
8636 2011-09-20  Bruno Haible  <bruno@clisp.org>
8637
8638         test-ttyname_r tests: EBADF tests.
8639         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8640
8641         Tests for module 'isatty'.
8642         * modules/isatty-tests: New file.
8643         * tests/test-isatty.c: New file.
8644
8645         Tests for module 'write'.
8646         * modules/write-tests: New file.
8647         * tests/test-write.c: New file.
8648
8649         Tests for module 'read'.
8650         * modules/read-tests: New file.
8651         * tests/test-read.c: New file.
8652
8653         pwrite tests: EBADF tests.
8654         * tests/test-pwrite.c (main): Add tests for EBADF.
8655
8656         pread tests: EBADF tests.
8657         * tests/test-pread.c (main): Add tests for EBADF.
8658
8659         lseek tests: EBADF tests.
8660         * tests/test-lseek.c (main): Add more tests for EBADF.
8661
8662         Tests for module 'ftruncate'.
8663         * modules/ftruncate-tests: New file.
8664         * tests/test-ftruncate.sh: New file.
8665         * tests/test-ftruncate.c: New file.
8666
8667         fsync tests: EBADF tests.
8668         * tests/test-fsync.c (main): Add more tests for EBADF.
8669
8670         fdatasync tests: EBADF tests.
8671         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8672
8673         Tests for module 'fchown'.
8674         * modules/fchown-tests: New file.
8675         * tests/test-fchown.c: New file.
8676
8677         Tests for module 'fchmod'.
8678         * modules/fchmod-tests: New file.
8679         * tests/test-fchmod.c: New file.
8680
8681         fchdir tests: EBADF tests.
8682         * tests/test-fchdir.c (main): Add more tests for EBADF.
8683
8684         dup2 tests: EBADF tests.
8685         * tests/test-dup2.c (main): Add more tests for EBADF.
8686
8687         Tests for module 'dup'.
8688         * modules/dup-tests: New file.
8689         * tests/test-dup.c: New file.
8690
8691         Tests for module 'close'.
8692         * modules/close-tests: New file.
8693         * tests/test-close.c: New file.
8694
8695 2011-09-20  Bruno Haible  <bruno@clisp.org>
8696
8697         Tests for module 'shutdown'.
8698         * modules/shutdown-tests: New file.
8699         * tests/test-shutdown.c: New file.
8700
8701         Tests for module 'setsockopt'.
8702         * modules/setsockopt-tests: New file.
8703         * tests/test-setsockopt.c: New file.
8704
8705         Tests for module 'sendto'.
8706         * modules/sendto-tests: New file.
8707         * tests/test-sendto.c: New file.
8708
8709         Tests for module 'send'.
8710         * modules/send-tests: New file.
8711         * tests/test-send.c: New file.
8712
8713         Tests for module 'recvfrom'.
8714         * modules/recvfrom-tests: New file.
8715         * tests/test-recvfrom.c: New file.
8716
8717         Tests for module 'recv'.
8718         * modules/recv-tests: New file.
8719         * tests/test-recv.c: New file.
8720
8721         Tests for module 'listen'.
8722         * modules/listen-tests: New file.
8723         * tests/test-listen.c: New file.
8724
8725         Tests for module 'getsockopt'.
8726         * modules/getsockopt-tests: New file.
8727         * tests/test-getsockopt.c: New file.
8728
8729         Tests for module 'getsockname'.
8730         * modules/getsockname-tests: New file.
8731         * tests/test-getsockname.c: New file.
8732
8733         Tests for module 'getpeername'.
8734         * modules/getpeername-tests: New file.
8735         * tests/test-getpeername.c: New file.
8736
8737         Tests for module 'connect'.
8738         * modules/connect-tests: New file.
8739         * tests/test-connect.c: New file.
8740
8741         Tests for module 'bind'.
8742         * modules/bind-tests: New file.
8743         * tests/test-bind.c: New file.
8744
8745         accept4 tests: Fix for native Windows.
8746         * tests/test-accept4.c: Include sockets.h.
8747         (main): Invoke gl_sockets_startup.
8748         * modules/accept4-tests (Depends-on): Add sockets.
8749
8750         accept tests: Fix for native Windows.
8751         * tests/test-accept.c: Include sockets.h.
8752         (main): Invoke gl_sockets_startup.
8753         * modules/accept-tests (Depends-on): Add sockets.
8754
8755 2011-09-19  Bruno Haible  <bruno@clisp.org>
8756
8757         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8758         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8759         do...while(0).
8760         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8761         Suggested by Paul Eggert.
8762
8763 2011-09-19  Bruno Haible  <bruno@clisp.org>
8764
8765         sched: Ensure pid_t is defined.
8766         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8767         not define pid_t.
8768         * lib/sched.in.h: Include <sys/types.h>.
8769         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8771
8772 2011-09-19  Bruno Haible  <bruno@clisp.org>
8773
8774         msvc-inval: Ensure the entire expansion is a single statement.
8775         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8776         of braces.
8777
8778 2011-09-19  Jim Meyering  <meyering@redhat.com>
8779
8780         tests: use printf, not echo in init.sh's warn_ function
8781         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8782         misbehave when given strings containing a backslash or starting
8783         with e.g., -n.  James Youngman suggested setting IFS.
8784
8785 2011-09-19  Eric Blake  <eblake@redhat.com>
8786
8787         futimens: enhance test
8788         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8789         closed non-negative fd.
8790
8791         date: accept 'hence' as opposite of 'ago'
8792         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8793         * tests/test-parse-datetime.c (main): Enhance test.
8794         Suggested by Jesse Wilson.
8795
8796 2011-09-19  Jim Meyering  <meyering@redhat.com>
8797
8798         getcwd: don't fail in a deep directory on a system without openat
8799         Before this change, getcwd would fail when called from a directory
8800         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8801         the non-openat implementation used "..", "../..", "../../..", etc.
8802         to access ancestor directories.  With too many, that string would
8803         be longer than PATH_MAX.
8804         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8805         using gnulib's openat replacement.
8806         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8807         we're using the replacement function.
8808
8809 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8810
8811         maint.mk: avoid warnings from perl about missing files
8812         * top/maint.mk (def_sym_regex): Ignore files listed in
8813         $(gl_other_headers_) that do not exist, say because a project
8814         does not use a corresponding module.
8815
8816 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8817
8818         stat: use pathmax.h only if needed
8819         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8820         This is better for Emacs, which does not have a mingw port and
8821         therefore can avoid the pathmax module.
8822
8823         utimens: remove dependency on dup2
8824         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8825         to work around the Linux kernel bug.
8826         * modules/utimens (Depends-on): Remove dup2.
8827
8828 2011-09-18  Bruno Haible  <bruno@clisp.org>
8829
8830         inet_ntop, inet_pton: Look for it also in libresolv.
8831         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8832         libnsl, search for it in libresolv.
8833         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8834         Needed on Solaris 7.
8835
8836 2011-09-18  Bruno Haible  <bruno@clisp.org>
8837
8838         accept, accept4 tests: Avoid link error on Solaris.
8839         * modules/accept-tests (Makefile.am): Link test-accept against
8840         $(LIBSOCKET).
8841         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8842         $(LIBSOCKET).
8843
8844         accept4: Avoid link error on Solaris.
8845         * modules/accept4 (Link): New section.
8846
8847         socket functions: Avoid link errors on Solaris.
8848         * modules/accept (Depends-on): Add socketlib.
8849         (Link): New section.
8850         * modules/bind (Depends-on): Add socketlib.
8851         (Link): New section.
8852         * modules/connect (Depends-on): Add socketlib.
8853         (Link): New section.
8854         * modules/getpeername (Depends-on): Add socketlib.
8855         (Link): New section.
8856         * modules/getsockname (Depends-on): Add socketlib.
8857         (Link): New section.
8858         * modules/getsockopt (Depends-on): Add socketlib.
8859         (Link): New section.
8860         * modules/listen (Depends-on): Add socketlib.
8861         (Link): New section.
8862         * modules/recv (Depends-on): Add socketlib.
8863         (Link): New section.
8864         * modules/recvfrom (Depends-on): Add socketlib.
8865         (Link): New section.
8866         * modules/send (Depends-on): Add socketlib.
8867         (Link): New section.
8868         * modules/sendto (Depends-on): Add socketlib.
8869         (Link): New section.
8870         * modules/setsockopt (Depends-on): Add socketlib.
8871         (Link): New section.
8872         * modules/shutdown (Depends-on): Add socketlib.
8873         (Link): New section.
8874         * modules/socket (Depends-on): Add socketlib.
8875         (Link): New section.
8876
8877 2011-09-18  Bruno Haible  <bruno@clisp.org>
8878
8879         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8880         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8881         than 5 seconds.
8882         * modules/ptsname-tests (configure.ac): Test for alarm.
8883
8884 2011-09-18  Bruno Haible  <bruno@clisp.org>
8885
8886         posix_spawn_file_actions_add*: Fix module dependencies.
8887         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8888         posix_spawn_file_actions_init.
8889         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8890         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8891
8892 2011-09-18  Bruno Haible  <bruno@clisp.org>
8893
8894         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8895         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8896         * tests/test-renameat.c (main): Likewise.
8897
8898 2011-09-18  Bruno Haible  <bruno@clisp.org>
8899
8900         Tests for module 'accept4'.
8901         * modules/accept4-tests: New file.
8902         * tests/test-accept4.c: New file.
8903
8904 2011-09-18  Bruno Haible  <bruno@clisp.org>
8905
8906         Tests for module 'accept'.
8907         * modules/accept-tests: New file.
8908         * tests/test-accept.c: New file.
8909
8910 2011-09-18  Bruno Haible  <bruno@clisp.org>
8911
8912         dup2: Support for MSVC.
8913         * lib/dup2.c: Include msvc-inval.h.
8914         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8915         _get_osfhandle calls.
8916         * modules/dup2 (Depends-on): Add msvc-inval.
8917         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8918
8919         New module 'msvc-inval'.
8920         * lib/msvc-inval.h: New file.
8921         * lib/msvc-inval.c: New file.
8922         * m4/msvc-inval.m4: New file.
8923         * modules/msvc-inval: New file.
8924
8925 2011-09-17  Bruno Haible  <bruno@clisp.org>
8926
8927         Tests for module 'pclose'.
8928         * modules/pclose-tests: New file.
8929
8930         New module 'pclose'.
8931         * lib/stdio.in.h (pclose): New declaration.
8932         * lib/pclose.c: New file.
8933         * m4/pclose.m4: New file.
8934         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8935         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8936         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8937         * modules/pclose: New file.
8938         * modules/popen-tests (Depends-on): Add pclose.
8939         * modules/popen-safer-tests (Depends-on): Likewise.
8940         * doc/posix-functions/pclose.texi: Mention the new module.
8941
8942 2011-09-17  Bruno Haible  <bruno@clisp.org>
8943
8944         popen: Support for MSVC.
8945         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8946         * lib/popen.c (popen): Provide alternate definition for native Windows.
8947         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8949         * modules/popen (Depends-on, configure.ac): Update condition.
8950         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8951         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8952         fixed.
8953
8954 2011-09-17  Bruno Haible  <bruno@clisp.org>
8955
8956         isnanl, isnand, isnanf: Work around MSVC bug.
8957         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8958
8959 2011-09-17  Bruno Haible  <bruno@clisp.org>
8960
8961         sys_socket tests: Fix recent mistake.
8962         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8963
8964 2011-09-17  Bruno Haible  <bruno@clisp.org>
8965
8966         putenv: Support for MSVC.
8967         * modules/putenv (Depends-on): Add environ.
8968         * lib/putenv.c (environ): Disable declaration.
8969         * lib/unistd.in.h: Update comment.
8970
8971 2011-09-17  Bruno Haible  <bruno@clisp.org>
8972
8973         math: Avoid macro redefinition warnings on MSVC.
8974         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8975         Undefine before redefining.
8976
8977 2011-09-17  Bruno Haible  <bruno@clisp.org>
8978
8979         doc: Mention functions which are declared as macros.
8980         * doc/posix-functions/*[fl].texi: Mention that some functions are
8981         defined as macros with arguments only.
8982
8983 2011-09-17  Bruno Haible  <bruno@clisp.org>
8984
8985         Add dependencies to new dirent related modules.
8986         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8987         * modules/fts (Depends-on): Likewise.
8988         * modules/glob (Depends-on): Likewise.
8989         * modules/savedir (Depends-on): Likewise.
8990         * modules/scandir (Depends-on): Likewise.
8991         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8992         * modules/fdopendir (Depends-on): Add opendir.
8993
8994 2011-09-17  Bruno Haible  <bruno@clisp.org>
8995
8996         inet_pton: Support for MSVC on Windows Vista or newer.
8997         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8998         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8999         HAVE_DECL_INET_PTON is defined.
9000         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9001         On platforms with <winsock2.h>, test whether inet_pton is declared in
9002         <ws2tcpip.h>. If so, arrange to replace it.
9003         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9004         REPLACE_INET_PTON.
9005         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9006         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9007         (Depends-on, configure.ac): Update condition.
9008         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9009
9010 2011-09-17  Bruno Haible  <bruno@clisp.org>
9011
9012         inet_ntop: Support for MSVC on Windows Vista or newer.
9013         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9014         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9015         HAVE_DECL_INET_NTOP is defined.
9016         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9017         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9018         <ws2tcpip.h>. If so, arrange to replace it.
9019         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9020         REPLACE_INET_NTOP.
9021         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9022         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9023         (Depends-on, configure.ac): Update condition.
9024         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9025
9026 2011-09-16  Eric Blake  <eblake@redhat.com>
9027
9028         test-fsync: yet another enhancement
9029         * tests/test-fsync.c (main): Also test behavior on read-only text
9030         file.
9031
9032 2011-09-16  Bruno Haible  <bruno@clisp.org>
9033
9034         Enhance fsync, fdatasync tests.
9035         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9036         * tests/test-fdatasync.c (main): Likewise.
9037
9038 2011-09-16  Bruno Haible  <bruno@clisp.org>
9039
9040         Support for MSVC compiler: Ensure mode_t gets defined.
9041         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9044         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9045         * tests/test-fcntl-h.c: Check that mode_t is defined.
9046         * tests/test-sys_stat.c: Likewise.
9047         * tests/test-sys_types.c: Likewise.
9048         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9049         * doc/posix-headers/sys_stat.texi: Likewise.
9050         * doc/posix-headers/sys_types.texi: Likewise.
9051
9052 2011-09-16  Bruno Haible  <bruno@clisp.org>
9053
9054         sys_stat: Support for MSVC.
9055         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9056         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9057         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9058         MSVC.
9059
9060 2011-09-16  Bruno Haible  <bruno@clisp.org>
9061
9062         Support for MSVC compiler: Ensure off_t gets defined.
9063         * lib/unistd.in.h: Include <sys/types.h>.
9064         * tests/test-fcntl-h.c: Check that off_t is defined.
9065         * tests/test-sys_stat.c: Likewise.
9066         * tests/test-sys_types.c: Likewise.
9067
9068 2011-09-16  Eric Blake  <eblake@redhat.com>
9069
9070         fdatasync: port to Solaris
9071         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9072         * modules/fdatasync (Link): Document it.
9073         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9074
9075         fdatasync: port to MacOS X 10.7
9076         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9077         declared.
9078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9079         * modules/unistd (Makefile.am): Substitute it.
9080         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9081         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9082
9083         fdatasync: minor improvements
9084         * modules/fdatasync (Depends-on): Add condition for fsync.
9085         * lib/fdatasync.c (fdatasync): Add comment.
9086         * tests/test-unistd-c++.cc: Test fdatasync.
9087
9088         unistd: update refs to newer POSIX
9089         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9090         Suggested by Bruno Haible.
9091
9092         fdatasync: new module
9093         * modules/fsync (Description): Document difference to fdatasync.
9094         * modules/fdatasync: New module.
9095         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9096         * lib/fdatasync.c (fdatasync): Likewise.
9097         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9098         defaults.
9099         * modules/unistd (Makefile.am): Set witnesses.
9100         * lib/unistd.in.h (fdatasync): Declare.
9101         * MODULES.html.sh: Document it.
9102         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9103         * modules/fdatasync-tests: New test.
9104         * tests/test-fdatasync.c: Likewise.
9105
9106 2011-09-16  Eric Blake  <eblake@redhat.com>
9107
9108         test-fsync: enhance tests
9109         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9110         * tests/test-fsync.c (main): Enhance test.
9111
9112 2011-09-15  Bruno Haible  <bruno@clisp.org>
9113
9114         Support for MSVC compiler: Ensure ssize_t gets defined.
9115         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9116         * doc/posix-headers/stdio.texi: Likewise.
9117         * modules/stdio (Depends-on): Add ssize_t.
9118         * modules/sys_socket (Depends-on): Likewise.
9119         * modules/sys_types (Depends-on): Likewise.
9120         * modules/sys_uio (Depends-on): Likewise.
9121         * modules/unistd (Depends-on): Likewise.
9122         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9123         * tests/test-sys_types.c: Check that ssize_t is defined.
9124
9125 2011-09-14  Bruno Haible  <bruno@clisp.org>
9126
9127         Avoid using #, the m4 comment starter character, near brackets.
9128         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9129         delimiter character in sed expressions.
9130         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9131         Suggested by Eric Blake.
9132
9133         Properly quote AC_CHECK_DECLS' 4th argument.
9134         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9135         argument.
9136         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9137         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9138         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9139         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9140         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9141         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9143         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9144         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9146         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9147         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9148         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9149         * m4/isinf.m4 (gl_ISINF): Likewise.
9150         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9151         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9152         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9153         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9156         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9157         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9158         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9159         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9160         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9161         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9163         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9165         Reported by Eric Blake.
9166
9167         Properly quote AC_CHECK_DECL's 4th argument.
9168         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9169         argument.
9170         * m4/argp.m4 (gl_ARGP): Likewise.
9171         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9172         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9173         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9174         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9175         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9176         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9178         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9180         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9181         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9182         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9183         Reported by Eric Blake.
9184
9185 2011-09-14  Eric Blake  <eblake@redhat.com>
9186
9187         opendir: avoid compile warning
9188         * lib/opendir.c (includes): Always include errno.h.
9189         Reported by Tatsuro MATSUOKA.
9190
9191 2011-09-14  Jim Meyering  <meyering@redhat.com>
9192
9193         maint.mk: sc_tight_scope: propagate failure from sub-make
9194         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9195         Reported by Martin von Gagern.
9196
9197 2011-09-13  Bruno Haible  <bruno@clisp.org>
9198
9199         tempname: Support for MSVC.
9200         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9201         MSVC.
9202         * modules/tempname (Depends-on): Add fcntl-h.
9203
9204 2011-09-13  Bruno Haible  <bruno@clisp.org>
9205
9206         sys_time: Support for MSVC.
9207         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9208         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9209         include <winsock2.h>.
9210         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9211         function declarations that collide with POSIX.
9212         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9213         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9214
9215 2011-09-13  Bruno Haible  <bruno@clisp.org>
9216
9217         stat: Support for MSVC.
9218         * lib/stat.c: Include pathmax.h.
9219         * modules/stat (Depends-on): Add pathmax.
9220
9221         pathmax: Support for native Windows.
9222         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9223
9224 2011-09-12  Bruno Haible  <bruno@clisp.org>
9225
9226         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9227         * lib/dirent.in.h (struct dirent): New type.
9228         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9229         DT_WHT): New macros.
9230         (DIR): New type.
9231         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9232         (readdir, rewinddir): New declarations.
9233         * lib/dirent-private.h: New file.
9234         * lib/opendir.c: New file.
9235         * lib/readdir.c: New file.
9236         * lib/rewinddir.c: New file.
9237         * lib/closedir.c: New file.
9238         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9239         * m4/opendir.m4: New file.
9240         * m4/readdir.m4: New file.
9241         * m4/rewinddir.m4: New file.
9242         * m4/closedir.m4: New file.
9243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9244         REPLACE_CLOSEDIR here.
9245         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9246         readdir, rewinddir are declared.
9247         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9248         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9249         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9250         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9251         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9252         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9253         * modules/opendir: New file.
9254         * modules/readdir: New file.
9255         * modules/rewinddir: New file.
9256         * modules/closedir: New file.
9257         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9258         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9259         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9260         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9261         * NEWS: Mention the 'fchdir' change.
9262
9263 2011-09-11  Bruno Haible  <bruno@clisp.org>
9264
9265         asm-underscore.m4: Support for MSVC.
9266         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9267         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9268
9269 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9270
9271         Doc about crypt functions.
9272         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9273         needing for _GNU_SOURCE to get crypt.
9274         * doc/posix-functions/encrypt.texi: Likewise.
9275         * doc/posix-functions/setkey.texi: Likewise.
9276
9277 2011-09-11  Bruno Haible  <bruno@clisp.org>
9278
9279         doc: Update regarding MSVC 9.
9280         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9281         tested".
9282         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9283         * doc/posix-headers/*.texi: Likewise.
9284         * doc/pastposix-functions/*.texi: Likewise.
9285         * doc/glibc-functions/*.texi: Likewise.
9286         * doc/glibc-headers/*.texi: Likewise.
9287
9288 2011-09-11  Bruno Haible  <bruno@clisp.org>
9289
9290         unistd et al.: Don't assume <unistd.h> exists.
9291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9292         does not exist.
9293         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9294         exist. But include <stdlib.h>.
9295         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9296         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9297         symlink() does not exist.
9298         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9299         include <io.h> instead.
9300         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9301         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9302         include <direct.h> instead.
9303         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9305         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9306         <io.h> instead.
9307         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9308         correctly if the system does not have hard links.
9309         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9310         <direct.h> instead.
9311         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9312         it when looking for function declarations.
9313         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9314         <direct.h> and <io.h> instead.
9315         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9316
9317 2011-09-11  Bruno Haible  <bruno@clisp.org>
9318
9319         strcase: Support for MSVC.
9320         * modules/strcase (Status, Notice): Remove obsoletion mark.
9321         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9322         * doc/posix-functions/strncasecmp.texi: Likewise.
9323
9324         strings: Don't assume <strings.h> exists.
9325         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9326         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9327         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9328         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9329
9330 2011-09-11  Bruno Haible  <bruno@clisp.org>
9331
9332         dirent: Don't assume <dirent.h> exists.
9333         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9334         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9335         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9336         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9337
9338 2011-09-11  Bruno Haible  <bruno@clisp.org>
9339
9340         Fix wint_t on MSVC.
9341         * lib/wchar.in.h (wint_t): On MSVC, override it.
9342         * lib/wctype.in.h (wint_t): Likewise.
9343         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9344         MSVC.
9345         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9346         * doc/posix-headers/wctype.texi: Likewise.
9347
9348 2011-09-11  Bruno Haible  <bruno@clisp.org>
9349
9350         sys_types: Fix typo.
9351         * lib/sys_types.in.h: Fix typo in comment.
9352         Reported by Paul Eggert.
9353
9354         Support for MSVC compiler: Ensure size_t gets defined.
9355         * modules/strings (Depends-on): Add 'sys_types'.
9356         * modules/sys_uio (Depends-on): Likewise.
9357         * lib/sys_uio.in.h: Update comment.
9358
9359         C++ tests for module 'sys_types'.
9360         * modules/sys_types-c++-tests: New file.
9361         * tests/test-sys_types-c++.cc: New file.
9362
9363         Tests for module 'sys_types'.
9364         * modules/sys_types-tests: New file.
9365         * tests/test-sys_types.c: New file.
9366
9367         New module 'sys_types'.
9368         * lib/sys_types.in.h: New file.
9369         * m4/sys_types_h.m4: New file.
9370         * modules/sys_types: New file.
9371         * doc/posix-headers/sys_types.texi: Mention the new module and the
9372         size_t problem on MSVC 9.
9373
9374 2011-09-11  Bruno Haible  <bruno@clisp.org>
9375
9376         Support for MSVC compiler: Avoid division by a literal 0.
9377         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9379         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9380         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9381         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9382         * tests/infinity.h: New file.
9383         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9384         on MSVC.
9385         * tests/test-ceilf1.c: Include infinity.h.
9386         (main): Use Infinityf.
9387         * tests/test-ceil1.c: Include infinity.h.
9388         (main): Use Infinityd.
9389         * tests/test-ceill.c: Include infinity.h.
9390         (main): Use Infinityl.
9391         * tests/test-dprintf-posix.c: Include infinity.h.
9392         (test_function): Use Infinityd.
9393         * tests/test-floorf1.c: Include infinity.h.
9394         (main): Use Infinityf.
9395         * tests/test-floor1.c: Include infinity.h.
9396         (main): Use Infinityd.
9397         * tests/test-floorl.c: Include infinity.h.
9398         (main): Use Infinityl.
9399         * tests/test-fprintf-posix.c: Include infinity.h.
9400         (test_function): Use Infinityd.
9401         * tests/test-frexp.c: Include infinity.h.
9402         (main): Use Infinityd.
9403         * tests/test-frexpl.c: Include infinity.h.
9404         (main): Use Infinityl.
9405         * tests/test-isfinite.c: Include infinity.h.
9406         (test_isfinitef): Use Infinityf.
9407         (test_isfinited): Use Infinityd.
9408         (test_isfinitel): Use Infinityl.
9409         * tests/test-isinf.c: Include infinity.h.
9410         (test_isinff): Use Infinityf.
9411         (test_isinfd): Use Infinityd.
9412         (test_isinfl): Use Infinityl.
9413         * tests/test-isnan.c: Include infinity.h.
9414         (test_float): Use Infinityf.
9415         (test_double): Use Infinityd.
9416         (test_long_double): Use Infinityl.
9417         * tests/test-isnanf.h: Include infinity.h.
9418         (main): Use Infinityf.
9419         * tests/test-isnand.h: Include infinity.h.
9420         (main): Use Infinityd.
9421         * tests/test-isnanl.h: Include infinity.h.
9422         (main): Use Infinityl.
9423         * tests/test-ldexpl.c: Include infinity.h.
9424         (main): Use Infinityl.
9425         * tests/test-printf-posix.h: Include infinity.h.
9426         (test_function): Use Infinityd.
9427         * tests/test-roundf1.c: Include infinity.h.
9428         (main): Use Infinityf.
9429         * tests/test-round1.c: Include infinity.h.
9430         (main): Use Infinityd.
9431         * tests/test-roundl.c: Include infinity.h.
9432         (main): Use Infinityl.
9433         * tests/test-signbit.c: Include infinity.h.
9434         (test_signbitf): Use Infinityf.
9435         (test_signbitd): Use Infinityd.
9436         (test_signbitl): Use Infinityl.
9437         * tests/test-snprintf-posix.h: Include infinity.h.
9438         (test_function): Use Infinityd, Infinityl.
9439         * tests/test-sprintf-posix.h: Include infinity.h.
9440         (test_function): Use Infinityd, Infinityl.
9441         * tests/test-truncf1.c: Include infinity.h.
9442         (main): Use Infinityf.
9443         * tests/test-trunc1.c: Include infinity.h.
9444         (main): Use Infinityd.
9445         * tests/test-truncl.c: Include infinity.h.
9446         (main): Use Infinityl.
9447         * tests/test-vasnprintf-posix.c: Include infinity.h.
9448         (test_function): Use Infinityd, Infinityl.
9449         * tests/test-vasprintf-posix.c: Include infinity.h.
9450         (test_function): Use Infinityd, Infinityl.
9451         * modules/ceilf-tests (Files): Add tests/infinity.h.
9452         * modules/ceil-tests (Files): Likewise.
9453         * modules/ceill-tests (Files): Likewise.
9454         * modules/dprintf-posix-tests (Files): Likewise.
9455         * modules/floorf-tests (Files): Likewise.
9456         * modules/floor-tests (Files): Likewise.
9457         * modules/floorl-tests (Files): Likewise.
9458         * modules/fprintf-posix-tests (Files): Likewise.
9459         * modules/frexp-tests (Files): Likewise.
9460         * modules/frexp-nolibm-tests (Files): Likewise.
9461         * modules/frexpl-tests (Files): Likewise.
9462         * modules/frexpl-nolibm-tests (Files): Likewise.
9463         * modules/isfinite-tests (Files): Likewise.
9464         * modules/isinf-tests (Files): Likewise.
9465         * modules/isnan-tests (Files): Likewise.
9466         * modules/isnanf-tests (Files): Likewise.
9467         * modules/isnanf-nolibm-tests (Files): Likewise.
9468         * modules/isnand-tests (Files): Likewise.
9469         * modules/isnand-nolibm-tests (Files): Likewise.
9470         * modules/isnanl-tests (Files): Likewise.
9471         * modules/isnanl-nolibm-tests (Files): Likewise.
9472         * modules/ldexpl-tests (Files): Likewise.
9473         * modules/printf-posix-tests (Files): Likewise.
9474         * modules/roundf-tests (Files): Likewise.
9475         * modules/round-tests (Files): Likewise.
9476         * modules/roundl-tests (Files): Likewise.
9477         * modules/signbit-tests (Files): Likewise.
9478         * modules/snprintf-posix-tests (Files): Likewise.
9479         * modules/sprintf-posix-tests (Files): Likewise.
9480         * modules/truncf-tests (Files): Likewise.
9481         * modules/trunc-tests (Files): Likewise.
9482         * modules/truncl-tests (Files): Likewise.
9483         * modules/vasnprintf-posix-tests (Files): Likewise.
9484         * modules/vasprintf-posix-tests (Files): Likewise.
9485         * modules/vdprintf-posix-tests (Files): Likewise.
9486         * modules/vfprintf-posix-tests (Files): Likewise.
9487         * modules/vprintf-posix-tests (Files): Likewise.
9488         * modules/vsnprintf-posix-tests (Files): Likewise.
9489         * modules/vsprintf-posix-tests (Files): Likewise.
9490         * modules/xprintf-posix-tests (Files): Likewise.
9491
9492 2011-09-11  Bruno Haible  <bruno@clisp.org>
9493
9494         Ensure pid_t gets defined.
9495         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9496         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9497         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9498         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9499         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9500         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9501         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9502         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9503         * tests/test-fcntl-h.c: Check that pid_t is defined.
9504         * tests/test-sched.c: Likewise.
9505         * tests/test-termios.c: Likewise.
9506         * tests/test-time.c: Likewise.
9507         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9508         * doc/posix-headers/signal.texi: Likewise.
9509         * doc/posix-headers/sys_types.texi: Likewise.
9510         * doc/posix-headers/time.texi: Likewise.
9511
9512 2011-09-11  Bruno Haible  <bruno@clisp.org>
9513
9514         acl: Fix compilation on Solaris 10 (older version).
9515         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9516         of ACE_EVERYONE.
9517         * lib/set-mode-acl.c (qset_acl): Likewise.
9518         Reported by Christian Jullien <eligis@orange.fr>.
9519
9520 2011-09-10  Bruno Haible  <bruno@clisp.org>
9521
9522         iconv, unsetenv: Add support for MSVC compiler.
9523         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9524         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9525
9526 2011-09-10  Bruno Haible  <bruno@clisp.org>
9527
9528         *printf: Add support for MSVC compiler.
9529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9530         handles the exception caused by the %n directive. When cross-compiling,
9531         guess no on native Windows.
9532         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9533         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9534         emulate it through vsnprintf.
9535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9536         * doc/posix-functions/dprintf.texi: Update documentation regarding
9537         MSVC 9.
9538         * doc/posix-functions/fprintf.texi: Likewise.
9539         * doc/posix-functions/printf.texi: Likewise.
9540         * doc/posix-functions/snprintf.texi: Likewise.
9541         * doc/posix-functions/sprintf.texi: Likewise.
9542         * doc/posix-functions/swprintf.texi: Likewise.
9543         * doc/posix-functions/vdprintf.texi: Likewise.
9544         * doc/posix-functions/vfprintf.texi: Likewise.
9545         * doc/posix-functions/vprintf.texi: Likewise.
9546         * doc/posix-functions/vsnprintf.texi: Likewise.
9547         * doc/posix-functions/vsprintf.texi: Likewise.
9548         * doc/glibc-functions/asprintf.texi: Likewise.
9549         * doc/glibc-functions/obstack_printf.texi: Likewise.
9550         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9551         * doc/glibc-functions/vasprintf.texi: Likewise.
9552
9553 2011-09-10  Bruno Haible  <bruno@clisp.org>
9554
9555         nocrash: Add support for native Windows.
9556         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9557
9558 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9559             Bruno Haible  <bruno@clisp.org>
9560
9561         absolute-header, include-next: Add support for MSVC compiler.
9562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9563         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9564         directory separator in #line directives.
9565         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9566         recognize also backslash as directory separator in #line directives.
9567
9568 2011-09-08  Jim Meyering  <meyering@redhat.com>
9569
9570         maint.mk: mark the post-release commit log with "maint: " prefix
9571         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9572         one-line commit-log summary.
9573
9574 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9575             Bruno Haible  <bruno@clisp.org>
9576
9577         Doc about crypt functions.
9578         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9579         systems.
9580         * doc/posix-functions/encrypt.texi: Likewise.
9581         * doc/posix-functions/setkey.texi: Likewise.
9582
9583 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9584
9585         * lib/gc.h: Fix copyright header.
9586
9587 2011-09-07  Bruno Haible  <bruno@clisp.org>
9588
9589         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9591         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9592
9593 2011-09-07  Bruno Haible  <bruno@clisp.org>
9594
9595         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9596         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9597         * lib/freopen.c: Likewise.
9598         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9599         * lib/lstat.c: Likewise.
9600         * lib/stat.c: Likewise.
9601         * lib/open.c: Use different syntax for include of <fcntl.h>.
9602         * lib/openat.c: Include fcntl.h again, explicitly.
9603
9604 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9605
9606         parse-datetime: document the newly accepted format
9607         * doc/parse-datetime.texi (Combined date and time of day items):
9608         New section.
9609
9610 2011-09-06  Bruno Haible  <bruno@clisp.org>
9611
9612         acl: Fix a test failure on newer Solaris 10 with ZFS.
9613         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9614         ENOSYS as no ACL.
9615         Reported by Jim Meyering.
9616
9617 2011-09-06  Bruno Haible  <bruno@clisp.org>
9618
9619         acl: Update for AIX >= 5.3 with NFS.
9620         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9621         ENOSYS as no ACL.
9622
9623         acl: Fix a test failure on AIX >= 5.3 with NFS.
9624         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9625         as no ACL.
9626
9627 2011-09-06  Bruno Haible  <bruno@clisp.org>
9628
9629         acl: Fix a test failure on IRIX 6.5 with NFS.
9630         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9631         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9632         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9633         * lib/copy-acl.c (qcopy_acl): Likewise.
9634
9635 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         openat: port to AIX 7.1 with large files
9638         AIX 7.1 does a "#define openat open64at" if large files are in use,
9639         so we can't simply #undef openat.  Use the orig_openat trick (similar
9640         to orig_open in lib/open.c) to work around the problem.  Problem
9641         reported by Kevin Brott for GNU tar, in the thread containing
9642         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9643         * lib/openat.c (__need_system_fcntl_h): Define first.
9644         Include <fcntl.h> and <sys/types.h> before undefining.
9645         (orig_openat) [HAVE_OPENAT]: New inline function.
9646         (openat) [HAVE_OPENAT]: Do not undef.
9647         (rpl_openat): Use orig_openat, not openat.
9648
9649 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9650             Bruno Haible  <bruno@clisp.org>
9651
9652         acl: Avoid errors on NonStop Kernel.
9653         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9654         ENOTSUP errors.
9655
9656 2011-09-05  Bruno Haible  <bruno@clisp.org>
9657
9658         acl: Clean up Solaris code.
9659         * lib/acl-internal.h: Remove no-op #if.
9660         * lib/file-has-acl.c: Likewise.
9661         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9662         * lib/copy-acl.c (qcopy_acl): Likewise.
9663
9664 2011-09-05  Bruno Haible  <bruno@clisp.org>
9665
9666         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9667         binaries built on the original Solaris 10.
9668         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9669         trivial.
9670
9671 2011-09-05  Bruno Haible  <bruno@clisp.org>
9672
9673         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9674         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9675         10.
9676         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9677         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9678         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9679         instead of acl_get, facl_get, acl_set, facl_set.
9680
9681 2011-09-05  Bruno Haible  <bruno@clisp.org>
9682
9683         copy-file: Try unit tests on more file systems.
9684         * tests/test-copy-file-1.sh: New file.
9685         * tests/test-copy-file-2.sh: New file.
9686         * modules/copy-file-tests (Files): Add them.
9687         (Makefile.am): Add them to TESTS.
9688
9689         acl: Try unit tests on more file systems.
9690         * tests/test-file-has-acl-1.sh: New file.
9691         * tests/test-file-has-acl-2.sh: New file.
9692         * tests/test-set-mode-acl-1.sh: New file.
9693         * tests/test-set-mode-acl-2.sh: New file.
9694         * tests/test-copy-acl-1.sh: New file.
9695         * tests/test-copy-acl-2.sh: New file.
9696         * modules/acl-tests (Files): Add them.
9697         (Makefile.am): Add them to TESTS.
9698
9699 2011-09-04  Bruno Haible  <bruno@clisp.org>
9700
9701         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9702         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9703         10.
9704         (OLD_ALLOW, OLD_DENY): New macros.
9705         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9706         ACE_ACCESS_ALLOWED_ACE_TYPE.
9707         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9708         ACE_ACCESS_DENIED_ACE_TYPE.
9709         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9710         (NEW_ACE_EXECUTE): Fix value.
9711         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9712         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9713         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9714         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9715         NEW_ACE_SYNCHRONIZE): New macros.
9716         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9717         instead of acl_fromtext, acl_set, facl_set.
9718         Fixes a coreutils/tests/cp/perm failure.
9719
9720 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         openat: test for fstatat (..., 0) bug
9723         Further testing with tar suggests that fstatat (..., 0)
9724         does not work in general, on AIX 7.1; see
9725         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9726         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9727         replacement fstatat (which is what older AIX releases were using
9728         anyway).
9729         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9730         use is now changed to orig_fstatat.  This was probably the right
9731         thing to do anyway.
9732         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9733         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9734         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9735         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9736         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9737         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9738         if the bug is found.
9739
9740         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9741         This tests for another fstatat bug on AIX 7.1:
9742         fstatat (AT_FDCWD, ..., 0) does not work.  See
9743         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9744         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9745         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9746         (rpl_fstatat): Adjust so that it works around either (or both)
9747         bugs if present.
9748         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9749
9750 2011-09-03  Karl Berry  <karl@gnu.org>
9751
9752         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9753         in index entries.
9754
9755 2011-09-02  Bruno Haible  <bruno@clisp.org>
9756
9757         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9758         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9759         values of AR, ARFLAGS, RANLIB.
9760         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9761
9762 2011-09-02  Bruno Haible  <bruno@clisp.org>
9763
9764         Find 'ar' program that fits with --host argument.
9765         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9766
9767 2011-09-02  Bruno Haible  <bruno@clisp.org>
9768
9769         tests: init.sh: Support any non-GNU diff.
9770         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9771         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9772         Solaris 8.
9773
9774 2011-09-02  Bruno Haible  <bruno@clisp.org>
9775
9776         tests: init.sh: work also with any non-GNU diff that supports -u
9777         * tests/init.sh: Relax check for diff -u support.
9778         Rather than checking for GNU diff via --version, simply check
9779         for support for -u itself.  Useful at least on OpenBSD 4.9,
9780         AIX 7.1, IRIX 6.5, and Solaris 10.
9781
9782 2011-09-01  Bruno Haible  <bruno@clisp.org>
9783
9784         strtoimax, strtoumax: Document problem on HP-UX 11.
9785         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9786         * doc/posix-functions/strtoumax.texi: Likewise.
9787
9788 2011-09-01  Bruno Haible  <bruno@clisp.org>
9789
9790         strtoumax: Avoid link error on OSF/1 with DTK cc.
9791         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9792         defined as a function.
9793         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9794         strtoumax is defined, not whether it is declared.
9795
9796 2011-09-01  Bruno Haible  <bruno@clisp.org>
9797
9798         strtoimax: Avoid link error on OSF/1 with DTK cc.
9799         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9800         defined as a function.
9801         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9802         strtoimax is defined, not whether it is declared.
9803
9804 2011-09-01  Bruno Haible  <bruno@clisp.org>
9805
9806         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9807         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9808         as a function.
9809         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9810         whether it is declared.
9811
9812 2011-09-01  Bruno Haible  <bruno@clisp.org>
9813
9814         imaxabs: Avoid link error on OSF/1 with DTK cc.
9815         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9816         as a function.
9817         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9818         whether it is declared.
9819
9820 2011-09-01  Bruno Haible  <bruno@clisp.org>
9821
9822         Tests for module 'strtoumax'.
9823         * modules/strtoumax-tests: New file.
9824         * tests/test-strtoumax.c: New file.
9825
9826         Tests for module 'strtoimax'.
9827         * modules/strtoimax-tests: New file.
9828         * tests/test-strtoimax.c: New file.
9829
9830         Tests for module 'imaxdiv'.
9831         * modules/imaxdiv-tests: New file.
9832         * tests/test-imaxdiv.c: New file.
9833
9834         Tests for module 'imaxabs'.
9835         * modules/imaxabs-tests: New file.
9836         * tests/test-imaxabs.c: New file.
9837
9838 2011-09-01  Bruno Haible  <bruno@clisp.org>
9839
9840         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9842         pthread_create.
9843
9844 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9845
9846         openat: work around AIX 7.1 fstatat issue
9847         This should fix the problem that was not properly fixed
9848         in the previous change, dated 2011-08-30.
9849         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9850         __need_system_stat_h defined.
9851         (orig_fstatat) [HAVE_FSTATAT]: New function.
9852         (rpl_fstatat): Go back to the old way of doing things,
9853         except call orig_fstatat instead of fstatat.
9854         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9855         Remove unnecessary check whether fstatat fills in st_size etc.
9856
9857 2011-09-01  Bruno Haible  <bruno@clisp.org>
9858
9859         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9860         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9861         just include the system's header.
9862
9863 2011-08-31  Jim Meyering  <meyering@redhat.com>
9864
9865         tests: avoid spurious assertion failure in test-float.c on ppc64
9866         * tests/test-float.c (test_long_double): Comment out an assertion,
9867         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9868         with gcc-4.4.4.
9869
9870         maint: indent with spaces, not TABs
9871         I need to get in the habit of running gnulib's "make check".
9872         Both of these would have been caught.
9873         * m4/largefile.m4: Indent with spaces, not TABs.
9874         * lib/parse-datetime.y (iso_8601_time): Likewise.
9875         Spotted by Pádraig Brady.
9876
9877         test-parse-datetime.c: accommodate a relatively strict gcc warning
9878         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9879         to avoid a warning from gcc's -Werror=missing-declarations.
9880         Insert a few spaces-before-funcall-parenthesis.
9881
9882 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9883
9884         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9885         The parser now accepts ISO 8601 date-time strings with "T" as the
9886         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9887         with a space between the date and time strings.  Now it also parses
9888         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9889         variants like "2004-02-29T16:21:42.333-07:00"
9890         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9891         of day representation using the 'T' separator character.
9892         * doc/parse-datetime.texi (General date syntax): replace use of
9893         deprecated --iso-8601 option with --rfc-3339 in example of date
9894         command output formats that can be parsed.
9895         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9896         lib/parse-datetime.y.
9897         (gmt_offset): New function.
9898         (main): Add additional test cases to validate ISO8601 extended
9899         date and time of day parsing.
9900
9901 2011-08-31  Bruno Haible  <bruno@clisp.org>
9902
9903         freopen: Documentation.
9904         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9905         name.
9906         Reported by Claudio Bley <claudio.bley@gmail.com>.
9907
9908 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9909
9910         freopen: Don't crash if the filename argument is NULL.
9911         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9912         NULL.
9913
9914 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9915
9916         openat: work around AIX 7.1 fstatat bug
9917         Problem reported by Kevin Brott for GNU tar, in the thread containing
9918         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9919         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9920         FSTATAT_ST_SIZE_ETC_BROKEN.
9921         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9922         rpl_fstatat.
9923         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9924         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9925         AC_CHECK_FUNCS_ONCE for fstatat.
9926         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9927         fchmodat, mkdirat, openat and unlinkat.
9928
9929 2011-08-30  Bruno Haible  <bruno@clisp.org>
9930
9931         Avoid endless recursions if config.h includes some header files.
9932         * lib/fopen.c (__need_FILE): Define already before including config.h.
9933         * lib/freopen.c (__need_FILE): Likewise.
9934         * lib/open.c (__need_system_fcntl_h): Likewise.
9935         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9936         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9937         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9938
9939 2011-08-25  Karl Berry  <karl@gnu.org>
9940
9941         * config/srclist.txt (ylwrap): new try.
9942         * build-aux/ylwrap: new file.
9943
9944 2011-08-23  Bruno Haible  <bruno@clisp.org>
9945
9946         tmpdir: Use a good default directory on native Windows.
9947         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9948         (P_tmpdir): Default to _P_tmpdir on native Windows.
9949         (path_search): On native Windows, try the value returned by GetTempPath
9950         before trying P_tmpdir.
9951         * modules/tmpdir (Depends-on): Add pathmax.
9952         Suggested by John Darrington <john@darrington.wattle.id.au>.
9953
9954 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9955
9956         doc: fix typo in README-release
9957         * top/README-release: Capitalize first word of a sentence.
9958
9959 2011-08-19  Jim Meyering  <meyering@redhat.com>
9960
9961         fts: do not exhaust memory when processing million-entry directories
9962         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9963         directory would require about 256*N bytes of memory.  Thus, it was
9964         easy to construct a directory too large to be processed by any of
9965         those tools.  With this change, fts' maximum memory utilization is
9966         now limited to around 30MB.
9967         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9968         (fts_read): When we've processed the final entry (i.e., when
9969         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9970         using the parent entry to read any remaining entries.  Dispatch
9971         depending on what fts_build returns:
9972         - NULL+stop, aka failure: stop
9973         - NULL otherwise: move up in the dir hierarchy
9974         - non-NULL: handle this new entry
9975         (fts_build): Declare and use new local, continue_readdir.
9976         Prepare to be called from fts_read, when the entries
9977         from a partially-read directory have just been exhausted.
9978         In that case, we'll skip the opendir and instead use the parent's
9979         fts_dirp and derive dir_fd from that.
9980         Finally, in the readdir loop, if we read max_entries entries,
9981         exit the loop ensuring *not* to call closedir.  This is required
9982         so that fts_dirp can be reused on a subsequent call.
9983         Prompted by Ben England's report of memory exhaustion in find
9984         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9985
9986         maint: fts: move decl of `dp' down into while loop; split a long line
9987         * lib/fts.c (fts_build): No semantic change.
9988
9989         fts: add/use new struct member, fts_dirp
9990         We are about to use this to manage any directory with
9991         too many entries to read all of them into memory at once.
9992         To do that, we'll need to save the DIR* pointer in each
9993         affected FTSENT struct.
9994         * lib/fts_.h: Include <dirent.h>.
9995         (struct FTSENT) [fts_dirp]: New member.
9996         * lib/fts.c (closedir_and_clear): Define.
9997         Use it in place of closedir so that we are sure to
9998         clear the new fts_dirp member when done with it.
9999         (fts_alloc): Initialize the new member.
10000         (fts_lfree): Free, if needed.
10001
10002         maint: fts: give __opendir2 a new parameter and rename
10003         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10004         than surreptitiously using sole caller's "dir_fd".
10005         (fts_opendir): Rename from __opendir2.
10006
10007         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10008         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10009
10010         maint: fts.c: correct off-by-one indentation
10011         * lib/fts.c (fts_build): Correct indentation, change style
10012         of a couple of block comments, and bracing style.
10013
10014         maint: fts.c: move __opendir2 #define "up" out of function body
10015         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10016
10017         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10018         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10019         out for a long time and besides was useful only on BSD systems.
10020
10021 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10022
10023         regex: port to Stratus OpenVOS
10024         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10025         define to empty, rather than attempting nonportable optimizations.
10026         Problem reported by Paul Green in:
10027         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10028         and fix suggested by Eric Blake in:
10029         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10030
10031 2011-08-17  Eric Blake  <eblake@redhat.com>
10032
10033         getcwd: fix test failures on mingw
10034         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10035         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10036         test if long directory cannot be created, and allow mingw errno.
10037
10038         getcwd-lgpl: fix m4 to match relaxed test for BSD
10039         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10040         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10041         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10042         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10043         signature problem.
10044
10045         getcwd: fix compilation on mingw64
10046         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10047         getcwd.
10048         Reported by Marc-André Lureau.
10049
10050         pipe2: silence compiler warning
10051         * lib/pipe2.c (pipe2): Hide label if it is not used.
10052
10053 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10054
10055         relocatable-prog: fix link error
10056         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10057         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10058         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10059         into modules/relocatable-lib without noticing that
10060         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10061         also needs to build relocatable.c.
10062
10063 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10064
10065         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10067         shell code: it contained a 'break' that was not in a loop.
10068         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10069         via a shell-language loop; this may have been true in old Autoconf
10070         versions, but it's not true in Autoconf 2.68.  I found this bug
10071         when testing coreutils git on Solaris 8, whose shell complains
10072         about the syntax error.
10073
10074 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10075
10076         * lib/base64.c: Fix comment to reference RFC 4648.
10077         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10078         <gvtulder@gmail.com>.
10079
10080 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10081
10082         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10083
10084         po/Makefile.in.in: fix make -q problem
10085         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10086         rule, since there's no file named 'check-macro-version' and its
10087         use as a file breaks make -q.
10088         (all): Don't depend on check-macro-version.
10089         (CHECK_MACRO_VERSION): New macro.
10090         (stamp-po): Use it.
10091
10092         configmake: fix make -q problem
10093         * modules/configmake (configmake.h): Update configmake.h's time stamp
10094         even if the file does not change.  Otherwise, 'make -q' fails.
10095         Problem reported by Simon Josefsson in
10096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10097
10098 2011-08-11  Jim Meyering  <meyering@redhat.com>
10099
10100         git-version-gen: correct the advice in a comment
10101         * build-aux/git-version-gen: Correct comment.
10102         Don't recommend to list .tarball-version in .gitignore.
10103
10104 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10105
10106         base64: fix off-by-one buffer size bug
10107         Problem and (trivial) fix reported by Gijs van Tulder in
10108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10109         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10110         * tests/test-base64.c (main): Catch the bug.
10111
10112 2011-08-10  Eric Blake  <eblake@redhat.com>
10113
10114         closein: correct comments
10115         * lib/closein.c (close_stdin): Improve comments.
10116
10117 2011-08-09  Bruno Haible  <bruno@clisp.org>
10118
10119         More tests for 'fseeko'.
10120         * tests/test-fseeko3.c: New file, from Eric Blake.
10121         * tests/test-fseeko3.sh: New file.
10122         * modules/fseeko-tests (Files): Add them.
10123         (TESTS): Add test-fseeko3.sh.
10124         (check_PROGRAMS): Add test-fseeko3.
10125
10126 2011-08-09  Eric Blake  <eblake@redhat.com>
10127
10128         fseeko: remove unneeded hack
10129         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10130
10131         fseeko: fix bug on glibc
10132         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10133         Reported by John W. Eaton.
10134
10135 2011-08-08  Bruno Haible  <bruno@clisp.org>
10136
10137         unictype/base: Fix interoperability with preinstalled libunistring.
10138         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10139         Reported by Simon Josefsson.
10140
10141 2011-08-08  Bruno Haible  <bruno@clisp.org>
10142
10143         iswblank: Detect declaration correctly.
10144         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10145         AC_CHECK_DECLS invocation.
10146
10147 2011-08-08  Bruno Haible  <bruno@clisp.org>
10148
10149         tcgetsid: Detect declaration correctly.
10150         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10151         AC_CHECK_DECLS invocation.
10152         Reported by Simon Josefsson.
10153
10154 2011-08-08  Eric Blake  <eblake@redhat.com>
10155
10156         largefile: fix typo that regressed large file support
10157         * modules/largefile (configure.ac-early): Fix section name.
10158
10159 2011-08-06  Karl Berry  <karl@gnu.org>
10160
10161         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10162         a separate module.
10163
10164 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10165
10166         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10167         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10168         get prototype for free.
10169
10170 2011-08-04  Bruno Haible  <bruno@clisp.org>
10171
10172         Tests for module 'pathmax'.
10173         * modules/pathmax-tests: New file.
10174         * tests/test-pathmax.c: New file.
10175
10176         canonicalize-lgpl: Support larger filenames on the Hurd.
10177         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10178         Reported by Paul Eggert.
10179
10180         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10181         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10182         * lib/chdir-long.h: Include pathmax.h.
10183         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10184         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10185         (PATH_MAX): Remove code that is done by pathmax.h.
10186         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10187         * lib/tmpfile.c: Add a comment.
10188         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10189         * modules/chdir-long (Depends-on): Add pathmax.
10190         * modules/getcwd (Depends-on): Add pathmax.
10191         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10192         is not defined.
10193         * doc/posix-headers/limits.texi: Mention the pathmax module.
10194         * NEWS: Mention the change.
10195
10196 2011-08-02  Bruno Haible  <bruno@clisp.org>
10197
10198         pthread_sigmask: Actually use results of gl_THREADLIB.
10199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10200         gl_THREADLIB, not gl_[]THREADLIB.
10201         Reported by Eric Blake.
10202
10203 2011-08-02  Jim Meyering  <meyering@redhat.com>
10204
10205         maint.mk: relax the default _gl_TS_function_match regexp
10206         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10207         space between function name and "(" in an "extern" declaration.
10208         That would fail to match a decl with no space there: extern void foo();
10209
10210 2011-07-31  Iain Nicol  <iain@thenicols.net>
10211
10212         git-version-gen: document that EXTRA_DIST must include .version
10213         * build-aux/git-version-gen: In the how-to-use comment, document
10214         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10215         will fail when run from an unpacked distribution tarball.
10216
10217 2011-08-01  Bruno Haible  <bruno@clisp.org>
10218
10219         wctype-h: Fix last change.
10220         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10221         REPLACE_TOWLOWER to 0.
10222         Reported by Sam Steingold <sds@gnu.org>.
10223
10224 2011-07-31  Bruno Haible  <bruno@clisp.org>
10225
10226         frexpl: Update autoconf test.
10227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10228         according to changes of 2011-06-20.
10229
10230 2011-07-31  Bruno Haible  <bruno@clisp.org>
10231
10232         sys_utsname: Add support for Minix.
10233         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10234         <sys/utsname.h>.
10235         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10236         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10237
10238 2011-07-31  Bruno Haible  <bruno@clisp.org>
10239
10240         strings: Add support for Minix.
10241         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10242         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10243         * doc/posix-headers/strings.texi: Document the Minix problem.
10244
10245 2011-07-31  Bruno Haible  <bruno@clisp.org>
10246
10247         wctype-h: Add support for Minix.
10248         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10249         REPLACE_TOWLOWER.
10250         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10251         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10252         REPLACE_ISWCNTRL.
10253
10254 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10257         This is a performance improvement for 64-bit hosts: it causes the
10258         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10259
10260 2011-07-31  Bruno Haible  <bruno@clisp.org>
10261
10262         stdioext: Add support for Minix.
10263         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10264         * lib/fpurge.c (fpurge): Likewise.
10265         * lib/freadahead.c (freadahead): Likewise.
10266         * lib/freadable.c (freadable): Likewise.
10267         * lib/freading.c (freading): Likewise.
10268         * lib/freadptr.c (freadptr): Likewise.
10269         * lib/freadseek.c (freadptrinc): Likewise.
10270         * lib/fseeko.c (rpl_fseeko): Likewise.
10271         * lib/fseterr.c (fseterr): Likewise.
10272         * lib/fwritable.c (fwritable): Likewise.
10273         * lib/fwriting.c (fwriting): Likewise.
10274         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10275         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10276
10277 2011-07-31  Bruno Haible  <bruno@clisp.org>
10278
10279         errno: Port to Minix.
10280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10281         ECONNABORTED are defined.
10282         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10283         GNULIB_defined_ECONNABORTED): New macros.
10284         * lib/strerror-override.h (strerror_override): Test also
10285         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10286         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10287         ECONNABORTED.
10288         * doc/posix-headers/errno.texi: Mention the Minix problem.
10289
10290 2011-07-31  Bruno Haible  <bruno@clisp.org>
10291
10292         Work around declaration collisions on Minix.
10293         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10294         defined, set REPLACE_MBSINIT.
10295         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10296         defined, set REPLACE_MBRTOWC.
10297         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10298         set REPLACE_MBRLEN.
10299         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10300         defined, set REPLACE_MBSRTOWCS.
10301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10302         defined, set REPLACE_WCRTOMB.
10303         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10304         defined, set REPLACE_WCSRTOMBS.
10305
10306 2011-07-31  Bruno Haible  <bruno@clisp.org>
10307
10308         Add support for Minix with ACK compiler.
10309         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10310         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10311         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10312
10313 2011-07-31  Bruno Haible  <bruno@clisp.org>
10314
10315         Documentation about Minix.
10316         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10317         * doc/glibc-headers/*.texi: Likewise.
10318         * doc/posix-functions/*.texi: Likewise.
10319         * doc/glibc-functions/*.texi: Likewise.
10320
10321 2011-07-31  Bruno Haible  <bruno@clisp.org>
10322
10323         snippet/warn-on-use: Fix indentation.
10324         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10325
10326 2011-07-25  Jim Meyering  <meyering@redhat.com>
10327
10328         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10329         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10330         commands.
10331
10332 2011-07-27  Jim Meyering  <meyering@redhat.com>
10333
10334         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10335         * top/maint.mk (gl_extract_significant_defines_): Now that
10336         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10337         gnulib/lib/signal.in.h, and now that we recommend to
10338         define-if-undefined those two symbols in application code,
10339         we must filter them out of the "significant" list.
10340         This avoids a "make syntax-check" failure in coreutils.
10341
10342 2011-07-26  Eric Blake  <eblake@redhat.com>
10343
10344         warnings: add comments about previous patch
10345         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10346         * m4/include_next.m4: Likewise.
10347         * m4/warn-on-use.m4: Likewise.
10348         * m4/warnings.m4: Likewise, and simplify use.
10349         Suggested by Stefano Lattarini.
10350
10351         include-next, warnings: support older autoconf
10352         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10353         AS_VAR_PUSHDEF in a way that works with older autoconf.
10354         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10355         Reported by Daniel P. Berrange.
10356
10357 2011-07-25  Bruno Haible  <bruno@clisp.org>
10358
10359         fseek, ftell: Fix doc.
10360         * doc/posix-functions/fseek.texi: Reword statement about
10361         AC_SYS_LARGEFILE.
10362         * doc/posix-functions/ftell.texi: Likewise.
10363
10364 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10365             Bruno Haible  <bruno@clisp.org>
10366
10367         Add dependencies to the 'largefile' module.
10368         * modules/fopen (Depends-on): Add 'largefile'.
10369         * modules/freopen (Depends-on): Likewise.
10370         * modules/fseeko (Depends-on): Likewise.
10371         * modules/ftello (Depends-on): Likewise.
10372         * modules/glob (Depends-on): Likewise.
10373         * modules/lseek (Depends-on): Likewise.
10374         * modules/lstat (Depends-on): Likewise.
10375         * modules/mkostemp (Depends-on): Likewise.
10376         * modules/mkostemps (Depends-on): Likewise.
10377         * modules/mkstemp (Depends-on): Likewise.
10378         * modules/mkstemps (Depends-on): Likewise.
10379         * modules/open (Depends-on): Likewise.
10380         * modules/openat (Depends-on): Likewise.
10381         * modules/pread (Depends-on): Likewise.
10382         * modules/pwrite (Depends-on): Likewise.
10383         * modules/scandir (Depends-on): Likewise.
10384         * modules/stat (Depends-on): Likewise.
10385         * modules/tmpfile (Depends-on): Likewise.
10386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10387         since the containing module now depends on the largefile module.
10388         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10389         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10390         off_t is fixed by gnulib.
10391         * doc/posix-functions/freopen.texi: Likewise.
10392         * doc/posix-functions/fseeko.texi: Likewise.
10393         * doc/posix-functions/fstatat.texi: Likewise.
10394         * doc/posix-functions/ftello.texi: Likewise.
10395         * doc/posix-functions/glob.texi: Likewise.
10396         * doc/posix-functions/lseek.texi: Likewise.
10397         * doc/posix-functions/lstat.texi: Likewise.
10398         * doc/posix-functions/mkstemp.texi: Likewise.
10399         * doc/posix-functions/open.texi: Likewise.
10400         * doc/posix-functions/openat.texi: Likewise.
10401         * doc/posix-functions/pread.texi: Likewise.
10402         * doc/posix-functions/pwrite.texi: Likewise.
10403         * doc/posix-functions/scandir.texi: Likewise.
10404         * doc/posix-functions/stat.texi: Likewise.
10405         * doc/posix-functions/tmpfile.texi: Likewise.
10406         * doc/glibc-functions/mkostemp.texi: Likewise.
10407         * doc/glibc-functions/mkostemps.texi: Likewise.
10408         * doc/glibc-functions/mkstemps.texi: Likewise.
10409
10410 2011-07-25  Bruno Haible  <bruno@clisp.org>
10411
10412         fcntl: Move AC_LIBOBJ invocation to module description.
10413         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10414         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10415
10416         fcntl: Remove call-in from fchdir.m4.
10417         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10419
10420         dup3: Remove potential call-in from fchdir.m4.
10421         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10423
10424         dup2: Move AC_LIBOBJ invocation to module description.
10425         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10426         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10427         Don't invoke AC_LIBOBJ.
10428         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10429
10430         dup2: Remove call-in from fchdir.m4.
10431         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10433
10434         fclose: Move AC_LIBOBJ invocation to module description.
10435         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10436         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10437         to 1.
10438         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10439
10440         fclose: Remove call-in from close.m4.
10441         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10442         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10443
10444         close: Move AC_LIBOBJ invocation to module description.
10445         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10446         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10447         1.
10448         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10449
10450         close: Remove call-in from fchdir.m4.
10451         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10453
10454         open: Move AC_LIBOBJ invocation to module description.
10455         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10456         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10457         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10458
10459         open: Remove call-in from fchdir.m4.
10460         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10462
10463         fchdir: Start to remove gl_REPLACE_* idiom.
10464         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10465         (gl_FUNC_FCHDIR): Invoke it.
10466
10467 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10468
10469         * lib/ftell.c (ftell): Comment out cast.
10470
10471         close: use gl_REPLACE_FCLOSE only if defined
10472         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10473         is defined.  The close module doesn't depend on the fclose module
10474         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10476         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10477
10478 2011-07-24  Jim Meyering  <meyering@redhat.com>
10479
10480         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10481         * tests/test-select.h (test_function): Declare as "static".
10482
10483 2011-07-24  Bruno Haible  <bruno@clisp.org>
10484
10485         doc: Mention the effects of AC_SYS_LARGEFILE.
10486         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10487         on this function.
10488         * doc/posix-functions/aio_error.texi: Likewise.
10489         * doc/posix-functions/aio_fsync.texi: Likewise.
10490         * doc/posix-functions/aio_read.texi: Likewise.
10491         * doc/posix-functions/aio_return.texi: Likewise.
10492         * doc/posix-functions/aio_suspend.texi: Likewise.
10493         * doc/posix-functions/aio_write.texi: Likewise.
10494         * doc/posix-functions/fgetpos.texi: Likewise.
10495         * doc/posix-functions/fopen.texi: Likewise.
10496         * doc/posix-functions/freopen.texi: Likewise.
10497         * doc/posix-functions/fsetpos.texi: Likewise.
10498         * doc/posix-functions/fstatvfs.texi: Likewise.
10499         * doc/posix-functions/ftruncate.texi: Likewise.
10500         * doc/posix-functions/ftw.texi: Likewise.
10501         * doc/posix-functions/getrlimit.texi: Likewise.
10502         * doc/posix-functions/glob.texi: Likewise.
10503         * doc/posix-functions/lio_listio.texi: Likewise.
10504         * doc/posix-functions/lockf.texi: Likewise.
10505         * doc/posix-functions/mkstemp.texi: Likewise.
10506         * doc/posix-functions/mmap.texi: Likewise.
10507         * doc/posix-functions/nftw.texi: Likewise.
10508         * doc/posix-functions/openat.texi: Likewise.
10509         * doc/posix-functions/opendir.texi: Likewise.
10510         * doc/posix-functions/posix_fadvise.texi: Likewise.
10511         * doc/posix-functions/posix_fallocate.texi: Likewise.
10512         * doc/posix-functions/pread.texi: Likewise.
10513         * doc/posix-functions/pwrite.texi: Likewise.
10514         * doc/posix-functions/readdir.texi: Likewise.
10515         * doc/posix-functions/readdir_r.texi: Likewise.
10516         * doc/posix-functions/rewinddir.texi: Likewise.
10517         * doc/posix-functions/scandir.texi: Likewise.
10518         * doc/posix-functions/seekdir.texi: Likewise.
10519         * doc/posix-functions/setrlimit.texi: Likewise.
10520         * doc/posix-functions/statvfs.texi: Likewise.
10521         * doc/posix-functions/telldir.texi: Likewise.
10522         * doc/posix-functions/tmpfile.texi: Likewise.
10523         * doc/posix-functions/truncate.texi: Likewise.
10524         * doc/glibc-functions/fallocate.texi: Likewise.
10525         * doc/glibc-functions/fstatfs.texi: Likewise.
10526         * doc/glibc-functions/fts_children.texi: Likewise.
10527         * doc/glibc-functions/fts_read.texi: Likewise.
10528         * doc/glibc-functions/getdirentries.texi: Likewise.
10529         * doc/glibc-functions/mkostemp.texi: Likewise.
10530         * doc/glibc-functions/mkostemps.texi: Likewise.
10531         * doc/glibc-functions/mkstemps.texi: Likewise.
10532         * doc/glibc-functions/preadv.texi: Likewise.
10533         * doc/glibc-functions/pwritev.texi: Likewise.
10534         * doc/glibc-functions/sendfile.texi: Likewise.
10535         * doc/glibc-functions/statfs.texi: Likewise.
10536
10537 2011-07-24  Bruno Haible  <bruno@clisp.org>
10538
10539         doc: Fix typo.
10540         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10541
10542 2011-07-24  Bruno Haible  <bruno@clisp.org>
10543
10544         doc: Mention fsusage.
10545         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10546
10547 2011-07-24  Bruno Haible  <bruno@clisp.org>
10548
10549         doc: Mention new glibc headers and functions.
10550         * doc/glibc-headers/gshadow.texi: New file.
10551         * doc/glibc-functions/endsgent.texi: New file.
10552         * doc/glibc-functions/fgetsgent.texi: New file.
10553         * doc/glibc-functions/fgetsgent_r.texi: New file.
10554         * doc/glibc-functions/getsgent.texi: New file.
10555         * doc/glibc-functions/getsgent_r.texi: New file.
10556         * doc/glibc-functions/getsgnam.texi: New file.
10557         * doc/glibc-functions/getsgnam_r.texi: New file.
10558         * doc/glibc-functions/putsgent.texi: New file.
10559         * doc/glibc-functions/setsgent.texi: New file.
10560         * doc/glibc-functions/sgetsgent.texi: New file.
10561         * doc/glibc-functions/sgetsgent_r.texi: New file.
10562         * doc/glibc-functions/malloc_info.texi: New file.
10563         * doc/glibc-functions/preadv.texi: New file.
10564         * doc/glibc-functions/pwritev.texi: New file.
10565         * doc/glibc-functions/register_printf_modifier.texi: New file.
10566         * doc/glibc-functions/register_printf_specifier.texi: New file.
10567         * doc/glibc-functions/register_printf_type.texi: New file.
10568         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10569         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10570         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10571         * doc/glibc-functions/pthread_getname_np.texi: New file.
10572         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10573         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10574         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10575         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10576         * doc/glibc-functions/pthread_setname_np.texi: New file.
10577         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10578         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10579         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10580         * doc/glibc-functions/qsort_r.texi: New file.
10581         * doc/glibc-functions/quick_exit.texi: New file.
10582         * doc/glibc-functions/syncfs.texi: New file.
10583         * doc/gnulib.texi: Include them.
10584         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10585         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10586         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10587         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10588         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10589         * doc/glibc-functions/execvpe.texi: Likewise.
10590
10591 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         ftell: don't include <unistd.h>
10594         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10595         guaranteed to define off_t, and the ftell module depends on the
10596         stdio module.
10597
10598         ftell: do not assume wraparound signed arithmetic
10599         * lib/ftell.c: Include <limits.h>.
10600         (ftell): Don't assume wraparound signed arithmetic.
10601
10602 2011-07-24  Bruno Haible  <bruno@clisp.org>
10603
10604         close: No longer depend on module 'fclose'.
10605         * modules/close (Depends-on): Remove fclose.
10606         * NEWS: Mention the change.
10607         Suggested by Sam Steingold <sds@gnu.org>.
10608
10609 2011-07-24  Bruno Haible  <bruno@clisp.org>
10610
10611         fsusage: Enable large volume support on AIX >= 5.2.
10612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10613         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10614         instead of STAT_STATVFS.
10615         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10616
10617         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10619         f_blocks field only on MacOS X.
10620
10621         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10622         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10623         * modules/fsusage (Depends-on): Add largefile.
10624
10625 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         * README: Modernize discussion of signed integers.
10628         Assuming overflow wraparound is no longer safe.
10629         Mention ones' complement and signed magnitude.
10630
10631 2011-07-22  Bruno Haible  <bruno@clisp.org>
10632
10633         select tests, pselect tests: Refactor.
10634         * tests/test-select.h: New file, extracted from tests/test-select.c.
10635         (select_fn): New type.
10636         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10637         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10638         test_pipe): Add my_select argument.
10639         (test_function): Renamed from main. Add my_select argument.
10640         * tests/test-select.c: Move most code to tests/test-select.h. Include
10641         test-select.h.
10642         * modules/select-tests (Files): Add tests/test-select.h.
10643         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10644         (my_select, main): New functions.
10645         * modules/pselect-tests (Files): Add tests/test-select.h,
10646         tests/macros.h, tests/signature.h.
10647         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10648         (configure.ac): Check for <sys/wait.h>.
10649
10650 2011-07-22  Bruno Haible  <bruno@clisp.org>
10651
10652         sys_select tests: Check the signature of FD_*.
10653         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10654         signature tests from here...
10655         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10656         here.
10657         * modules/sys_select-tests (Files): Add tests/signature.h.
10658
10659 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         largefile: new module, replacing large-inode
10662         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10663         * MODULES.html.sh: Add largefile, remove large-inode.
10664         * modules/largefile, m4/largefile.m4: New files.
10665         * modules/large-inode, m4/large-inode.m4: Remove.
10666
10667         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10669         implementations that use only 32 bits to count blocks.
10670         On typical hosts with 1024-byte blocks, this fails with file
10671         systems as small as 4 TiB.  Problem reported by Herb Wartens
10672         <http://debbugs.gnu.org/9140> and this should also fix a similar
10673         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10674
10675         large-inode: New module
10676         * MODULES.html.sh: Add it.
10677         * modules/large-inode, m4/large-inode.m4: New files.
10678
10679         extensions: Enable extensions on MacOS X 10.5 and later.
10680         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10681
10682 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10683
10684         file-has-acl: use acl_extended_file_nofollow if available
10685         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10686         (acl_extended_file): New macro.
10687         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10688         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10689
10690 2011-07-21  Bruno Haible  <bruno@clisp.org>
10691
10692         Declare system functions in a way that works with C++.
10693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10694         declare fdopendir as extern "C".
10695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10696         declare frexpl as extern "C".
10697         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10698         declare gai_strerror as extern "C".
10699         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10700         programs, declare gai_strerror as extern "C".
10701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10702         declare getlogin_r as extern "C".
10703         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10704         as extern "C".
10705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10706         declare ldexpl as extern "C".
10707         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10708         as extern "C".
10709         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10710         program, declare getmntinfo as extern "C".
10711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10712         stpncpy as extern "C".
10713         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10714         program, declare __xpg_strerror_r as extern "C".
10715         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10716         strndup as extern "C".
10717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10718         declare memset and bzero as extern "C".
10719         Reported by Sam Steingold <sds@gnu.org>.
10720
10721 2011-07-12  Jim Meyering  <meyering@redhat.com>
10722
10723         maint.mk: prohibit inclusion of "verify.h" without use
10724         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10725
10726 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10727
10728         timer-time: A new module to check for timer_settime()
10729         * m4/timer_time.m4: Check for the posix function.
10730         * modules/timer-time: Add the new module.
10731         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10732         Mention it.
10733
10734 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10735             Bruno Haible  <bruno@clisp.org>
10736
10737         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10738         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10739         not defined, assume POSIX threads and look for pthread_sigmask in
10740         $LIBS, without changing $CPPFLAGS.
10741
10742 2011-07-19  Bruno Haible  <bruno@clisp.org>
10743
10744         strstr: Update cross-compilation guess.
10745         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10746         CPUs, guess no, in view of glibc
10747         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10748         Suggested by Eric Blake. Reported by Reuben Thomas.
10749
10750 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10751
10752         getopt-gnu: suppress core dumps from detection code
10753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10754         to suppress core dumps that may well occur on glibc systems.
10755         * modules/getopt-gnu: Depend on nocrash.
10756
10757 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10758
10759         pthread_sigmask: ensure usleep is declared
10760         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10761         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10762
10763 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10764
10765         doc: Document NonStop portability issues.
10766         * doc/posix-functions/sigaction.texi (sigaction):
10767         * doc/posix-headers/signal.texi (signal.h):
10768         Document NonStop.  See Joachim Schmitz in
10769         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10770
10771 2011-07-15  Bruno Haible  <bruno@clisp.org>
10772
10773         ffsl, ffsll: Avoid unportable behaviour.
10774         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10775
10776 2011-07-15  Bruno Haible  <bruno@clisp.org>
10777
10778         ffs: More tests.
10779         * tests/test-ffs.c (NBITS): New macro.
10780         (main): Add more tests.
10781         * tests/test-ffsl.c (NBITS): New macro.
10782         (main): Add more tests.
10783         * tests/test-ffsll.c (NBITS): New macro.
10784         (main): Add more tests.
10785
10786 2011-07-15  Eric Blake  <eblake@redhat.com>
10787
10788         ffsl, ffsll: new modules
10789         * modules/ffsl: New file.
10790         * modules/ffsll: Likewise.
10791         * m4/ffsl.m4: Likewise.
10792         * m4/ffsll.m4: Likewise.
10793         * lib/ffsl.c: Likewise.
10794         * lib/ffsl.h: Likewise.
10795         * lib/ffsll.c: Likewise.
10796         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10797         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10798         * modules/string (Makefile.am): Substitute witnesses.
10799         * lib/strings.in.h (ffsl, ffsll): Declare.
10800         * modules/ffsl-tests: New test file.
10801         * modules/ffsll-tests: Likewise.
10802         * tests/test-ffsl.c: Likewise.
10803         * tests/test-ffsll.c: Likewise.
10804         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10805         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10806         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10807
10808         ffs: fix m4 prerequisite
10809         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10810
10811         ffs: avoid undefined behavior
10812         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10813         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10814         Reported by Bruno Haible.
10815
10816 2011-07-12  Bruno Haible  <bruno@clisp.org>
10817
10818         pthread_sigmask: Rely on module 'threadlib'.
10819         * modules/pthread_sigmask (Depends-on): Add threadlib.
10820         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10821         is defined.
10822
10823 2011-07-12  Bruno Haible  <bruno@clisp.org>
10824
10825         regex: Depend on module 'strcase'.
10826         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10827
10828 2011-07-12  Jim Meyering  <meyering@redhat.com>
10829
10830         warn-on-use: fix typo in file name
10831         * modules/snippet/warn-on-use (Files): Correct file name:
10832         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10833
10834 2011-07-12  Bruno Haible  <bruno@clisp.org>
10835
10836         strings: Document module.
10837         * doc/posix-headers/strings.texi: Mention module 'strings'.
10838
10839 2011-07-12  Bruno Haible  <bruno@clisp.org>
10840
10841         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10842         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10843         (Files, Makefile.am): Update.
10844         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10845         * modules/stdlib (Depends-on): Update.
10846
10847 2011-07-12  Bruno Haible  <bruno@clisp.org>
10848
10849         * NEWS: Mention the changes.
10850
10851         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10852         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10853         (Files, Makefile.am): Update.
10854         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10855         * modules/arpa_inet (Depends-on): Update.
10856         * modules/ctype (Depends-on): Update.
10857         * modules/dirent (Depends-on): Update.
10858         * modules/fcntl-h (Depends-on): Update.
10859         * modules/glob (Depends-on): Update.
10860         * modules/iconv-h (Depends-on): Update.
10861         * modules/inttypes-incomplete (Depends-on): Update.
10862         * modules/langinfo (Depends-on): Update.
10863         * modules/locale (Depends-on): Update.
10864         * modules/math (Depends-on): Update.
10865         * modules/netdb (Depends-on): Update.
10866         * modules/poll-h (Depends-on): Update.
10867         * modules/pty (Depends-on): Update.
10868         * modules/search (Depends-on): Update.
10869         * modules/signal (Depends-on): Update.
10870         * modules/spawn (Depends-on): Update.
10871         * modules/stdio (Depends-on): Update.
10872         * modules/stdlib (Depends-on): Update.
10873         * modules/string (Depends-on): Update.
10874         * modules/strings (Depends-on): Update.
10875         * modules/sys_file (Depends-on): Update.
10876         * modules/sys_ioctl (Depends-on): Update.
10877         * modules/sys_select (Depends-on): Update.
10878         * modules/sys_socket (Depends-on): Update.
10879         * modules/sys_stat (Depends-on): Update.
10880         * modules/sys_time (Depends-on): Update.
10881         * modules/sys_times (Depends-on): Update.
10882         * modules/sys_utsname (Depends-on): Update.
10883         * modules/sys_wait (Depends-on): Update.
10884         * modules/termios (Depends-on): Update.
10885         * modules/time (Depends-on): Update.
10886         * modules/unistd (Depends-on): Update.
10887         * modules/wchar (Depends-on): Update.
10888         * modules/wctype-h (Depends-on): Update.
10889         * MODULES.html.sh (Support for building libraries and executables):
10890         Update.
10891
10892         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10893         * modules/snippet/unused-parameter: Renamed from
10894         modules/unused-parameter.
10895         (Files, Makefile.am): Update.
10896         * build-aux/snippet/unused-parameter.h: Renamed from
10897         build-aux/unused-parameter.h.
10898         * modules/selinux-h (Depends-on): Update.
10899         * modules/unistr/base (Depends-on): Update.
10900         * MODULES.html.sh (Core language properties): Update.
10901
10902         Rename module 'link-warning' to 'snippet/link-warning'.
10903         * modules/snippet/link-warning: Renamed from modules/link-warning.
10904         (Files, Makefile.am): Update.
10905         * build-aux/snippet/link-warning.h: Renamed from
10906         build-aux/link-warning.h.
10907         * MODULES.html.sh (Support for building libraries and executables):
10908         Update.
10909
10910         Rename module 'c++defs' to 'snippet/c++defs'.
10911         * modules/snippet/c++defs: Renamed from modules/c++defs.
10912         (Files, Makefile.am): Update.
10913         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10914         * modules/arpa_inet (Depends-on): Update.
10915         * modules/ctype (Depends-on): Update.
10916         * modules/dirent (Depends-on): Update.
10917         * modules/fcntl-h (Depends-on): Update.
10918         * modules/glob (Depends-on): Update.
10919         * modules/iconv-h (Depends-on): Update.
10920         * modules/langinfo (Depends-on): Update.
10921         * modules/locale (Depends-on): Update.
10922         * modules/math (Depends-on): Update.
10923         * modules/netdb (Depends-on): Update.
10924         * modules/poll-h (Depends-on): Update.
10925         * modules/pty (Depends-on): Update.
10926         * modules/search (Depends-on): Update.
10927         * modules/signal (Depends-on): Update.
10928         * modules/spawn (Depends-on): Update.
10929         * modules/stdio (Depends-on): Update.
10930         * modules/stdlib (Depends-on): Update.
10931         * modules/string (Depends-on): Update.
10932         * modules/strings (Depends-on): Update.
10933         * modules/sys_ioctl (Depends-on): Update.
10934         * modules/sys_select (Depends-on): Update.
10935         * modules/sys_socket (Depends-on): Update.
10936         * modules/sys_stat (Depends-on): Update.
10937         * modules/sys_time (Depends-on): Update.
10938         * modules/sys_wait (Depends-on): Update.
10939         * modules/termios (Depends-on): Update.
10940         * modules/time (Depends-on): Update.
10941         * modules/unistd (Depends-on): Update.
10942         * modules/wchar (Depends-on): Update.
10943         * modules/wctype-h (Depends-on): Update.
10944
10945         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10946         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10947         (Files, Makefile.am): Update.
10948         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10949         * modules/argv-iter (Depends-on): Update.
10950         * modules/arpa_inet (Depends-on): Update.
10951         * modules/dirent (Depends-on): Update.
10952         * modules/fcntl-h (Depends-on): Update.
10953         * modules/fnmatch (Depends-on): Update.
10954         * modules/getopt-posix (Depends-on): Update.
10955         * modules/glob (Depends-on): Update.
10956         * modules/iconv-h (Depends-on): Update.
10957         * modules/inttypes-incomplete (Depends-on): Update.
10958         * modules/locale (Depends-on): Update.
10959         * modules/math (Depends-on): Update.
10960         * modules/netdb (Depends-on): Update.
10961         * modules/search (Depends-on): Update.
10962         * modules/signal (Depends-on): Update.
10963         * modules/spawn (Depends-on): Update.
10964         * modules/stdio (Depends-on): Update.
10965         * modules/stdlib (Depends-on): Update.
10966         * modules/string (Depends-on): Update.
10967         * modules/strings (Depends-on): Update.
10968         * modules/sys_socket (Depends-on): Update.
10969         * modules/sys_stat (Depends-on): Update.
10970         * modules/sys_time (Depends-on): Update.
10971         * modules/sys_times (Depends-on): Update.
10972         * modules/sys_utsname (Depends-on): Update.
10973         * modules/time (Depends-on): Update.
10974         * modules/unistd (Depends-on): Update.
10975         * modules/wchar (Depends-on): Update.
10976         * MODULES.html.sh (Support for building libraries and executables):
10977         Update.
10978
10979 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10980
10981         Improvements on _Noreturn and related modules.
10982
10983         modules/_Exit-tests: test _Noreturn too
10984         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10985         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10986         (main): Use them.
10987
10988         stdnoreturn, stdnoreturn-tests: remove modules
10989         They're not needed here and a bit premature for use elsewhere.  See
10990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10991         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10992         * tests/test-stdnoreturn.c: Remove files.
10993         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10994         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10995         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10996         and using noreturn.
10997         * modules/openat, modules/sigpipe-die, modules/xalloc:
10998         * modules/xmemdup0, modules/xstrtol:
10999         Remove dependency on stdnoreturn.
11000
11001         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11002         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11003         Reparenthesize to avoid GCC warning.
11004         Support Microsoft's syntax.
11005         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11006
11007         _Noreturn-tests: remove module
11008         * modules/_Noreturn-tests: Remove.
11009         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11010         * tests/test-_Noreturn.c: Remove.
11011         * tests/test-stdnoreturn.c: Merge from the old
11012         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11013
11014 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11015
11016         _Noreturn, stdnoreturn, and related modules.
11017
11018         * top/maint.mk: Adjust to new noreturn support.
11019         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11020         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11021
11022         xalloc: use stdnoreturn.h
11023         * lib/xalloc.h: Include <stdnoreturn.h>.
11024         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11025         * modules/xalloc (Depends-on): Add stdnoreturn.
11026
11027         xstrtol: use stdnoreturn.h
11028         * lib/xstrtol.h: Include <stdnoreturn.h>.
11029         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11030         * modules/xstrtol (Depends-on): Add stdnoreturn.
11031
11032         xmemdup0: use stdnoreturn.h
11033         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11034         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11035         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11036
11037         sigpipe-die: use stdnoreturn.h
11038         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11039         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11040         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11041
11042         openat: use stdnoreturn.h
11043         * lib/openat.h: Include <stdnoreturn.h>.
11044         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11045         * modules/openat (Depends-on): Add stdnoreturn.
11046
11047         * lib/openat-die.c (openat_save_fail): Modernize comment.
11048
11049         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11050
11051         * lib/glthread/thread.h: Modernize comment.
11052
11053         obstack: use _Noreturn
11054         * lib/obstack.c (__attribute__): Remove macro.
11055         (print_and_abort): Use _Noreturn.
11056
11057         c-stack: use _Noreturn
11058         * lib/c-stack.c (die, overflow_handler, segv_handler):
11059         Use _Noreturn rather than __attribute__((noreturn)).
11060
11061         argmatch-tests, exclude_tests: use _Noreturn
11062         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11063         Remove.
11064         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11065
11066         stdlib: use _Noreturn
11067         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11068         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11069         * modules/stdlib (Depends-on): Add _Noreturn.
11070         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11071
11072         stdnoreturn-tests: new module
11073         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11074
11075         stdnoreturn: new module
11076         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11077         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11078
11079         _Noreturn-tests: new module
11080         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11081
11082         _Noreturn: new module
11083         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11084         New section, mentioning it.
11085         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11086
11087         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11088
11089 2011-07-11  Eric Blake  <eblake@redhat.com>
11090
11091         ffs: new module
11092         * modules/ffs: New file.
11093         * m4/ffs.m4: Likewise.
11094         * lib/ffs.c: Likewise.
11095         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11096         * modules/strings (Makefile.am): Substitute witness.
11097         (Depends-on): Add c++defs.
11098         * lib/strings.in.h (ffs): Declare.
11099         * modules/ffs-tests: New test file.
11100         * tests/test-ffs.c: Test new module.
11101         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11102         * doc/posix-functions/ffs.texi (ffs): Likewise.
11103
11104         regex: avoid compiler warning
11105         * lib/regex.c (includes): Include <strings.h>, for use of
11106         strcasecmp in regcomp.c.
11107         Reported by Joachim Schmitz.
11108
11109 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11110
11111         stdint: respect system's intmax_t if INTMAX_MAX
11112         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11113         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11114         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11115         long but int64_t is long long, and where we will clash with the
11116         system intmax_t if we override it.  See
11117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11118         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11119         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11120         similarly for UINTMAX_C.
11121
11122 2011-07-08  Bruno Haible  <bruno@clisp.org>
11123
11124         pthread_sigmask tests: Avoid a compiler warning.
11125         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11126         non-zero.
11127
11128         sigprocmask tests: A better way to avoid a compiler warning.
11129         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11130         (main): Complain if system() returns non-zero.
11131         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11132
11133 2011-07-08  Bruno Haible  <bruno@clisp.org>
11134
11135         pthread_sigmask: Work around IRIX bug.
11136         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11137         bug.
11138         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11139         there may be unblocked pending signals.
11140         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11141
11142 2011-07-08  Bruno Haible  <bruno@clisp.org>
11143
11144         pthread_sigmask: Work around Cygwin bug.
11145         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11146         bug.
11147         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11148         the system's pthread_sigmask function.
11149         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11150
11151 2011-07-08  Bruno Haible  <bruno@clisp.org>
11152
11153         pthread_sigmask: Work around bug in single-threaded implementation.
11154         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11155         FreeBSD, HP-UX, Solaris bug.
11156         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11157         * lib/pthread_sigmask.c: Include <stddef.h>.
11158         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11159         the system's pthread_sigmask function.
11160         * modules/pthread_sigmask (configure.ac): Invoke
11161         gl_PREREQ_PTHREAD_SIGMASK.
11162         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11163         HP-UX, Solaris.
11164
11165 2011-07-08  Eric Blake  <eblake@redhat.com>
11166
11167         test-sigprocmask: avoid compiler warning
11168         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11169         * tests/test-sigprocmask.c (main): Use it to silence warning.
11170         Reported by Jim Meyering.
11171
11172         test-snprintf: avoid compiler warning
11173         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11174         * tests/test-vsnprintf.c (main): Likewise.
11175         Reported by Jim Meyering.
11176
11177 2011-07-08  Bruno Haible  <bruno@clisp.org>
11178
11179         Tests for module 'pthread_sigmask'.
11180         * modules/pthread_sigmask-tests: New file.
11181         * tests/test-pthread_sigmask1.c: New file, based on
11182         tests/test-sigprocmask.c.
11183         * tests/test-pthread_sigmask2.c: New file.
11184
11185 2011-07-08  Jim Meyering  <meyering@redhat.com>
11186
11187         test-getopt.h: avoid warning about an unused variable
11188         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11189
11190 2011-07-07  Jim Meyering  <meyering@redhat.com>
11191
11192         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11193         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11194         now that it no longer contains leading TABs.
11195         Remove unused "url=FIXME" statement.
11196
11197 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11198
11199         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11200         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11201         When gl_THREADLIB is not in use, assume that the POSIX sematics
11202         are desired.  This is better for Emacs, which uses POSIX semantics
11203         on GNUish and/or POSIXish platforms, and does not use threads at
11204         all otherwise.
11205
11206         pthread_sigmask: fix typo when testing for libraries
11207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11208         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11209
11210 2011-07-08  Eric Blake  <eblake@redhat.com>
11211
11212         fts: introduce FTS_NOATIME
11213         * lib/fts_.h (FTS_NOATIME): New bit flag.
11214         (FTS_OPTIONMASK): Adjust.
11215         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11216         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11217
11218 2011-07-08  Bruno Haible  <bruno@clisp.org>
11219
11220         Tests for module 'thread'.
11221         * modules/thread-tests: New file.
11222         * tests/test-thread_self.c: New file.
11223         * tests/test-thread_create.cc: New file.
11224
11225 2011-07-08  Bruno Haible  <bruno@clisp.org>
11226
11227         thread: Avoid gcc warnings when using gl_thread_self().
11228         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11229         'void *'.
11230         (gl_thread_self_pointer): Update.
11231
11232 2011-07-07  Bruno Haible  <bruno@clisp.org>
11233
11234         signal-c++-tests: Check declaration of pthread_sigmask.
11235         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11236         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11237         $(LIB_PTHREAD_SIGMASK).
11238
11239 2011-07-07  Bruno Haible  <bruno@clisp.org>
11240
11241         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11242         * lib/signal.in.h (pthread_sigmask): Override if
11243         REPLACE_PTHREAD_SIGMASK is 1.
11244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11245         REPLACE_PTHREAD_SIGMASK.
11246         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11247         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11248         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11249         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11250         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11251
11252 2011-07-07  Bruno Haible  <bruno@clisp.org>
11253
11254         pthread_sigmask: Ensure declaration in <signal.h>.
11255         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11256         include <pthread.h>.
11257         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11258         problem.
11259
11260 2011-07-07  Bruno Haible  <bruno@clisp.org>
11261
11262         pthread_sigmask: Document the module.
11263         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11264
11265 2011-07-07  Bruno Haible  <bruno@clisp.org>
11266
11267         pthread_sigmask: Follow gnulib conventions.
11268         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11269         gl_PTHREAD_SIGMASK.
11270         * modules/pthread_sigmask (configure.ac): Update.
11271
11272 2011-07-07  Bruno Haible  <bruno@clisp.org>
11273
11274         pthread_sigmask: Make declaration C++ safe.
11275         * lib/signal.in.h: In two special conditions, just do an #include_next.
11276         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11277         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11279         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11280         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11281         not REPLACE_PTHREAD_MASK.
11282         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11283         not REPLACE_PTHREAD_MASK.
11284         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11285
11286 2011-07-07  Bruno Haible  <bruno@clisp.org>
11287
11288         pthread_sigmask: Fix return value.
11289         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11290         * lib/pthread_sigmask.c: New file.
11291         * modules/pthread_sigmask (Files): Add it.
11292         (configure.ac): Invoke AC_LIBOBJ.
11293
11294 2011-07-07  Eric Blake  <eblake@redhat.com>
11295
11296         getopt: more portable argv creation
11297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11298         const, use char arrays rather than strings.
11299         Suggested by Paul Eggert.
11300
11301 2011-07-07  Bruno Haible  <bruno@clisp.org>
11302
11303         Tests for module 'sigprocmask'.
11304         * modules/sigprocmask-tests: New file.
11305         * tests/test-sigprocmask.c: New file.
11306
11307 2011-07-07  Bruno Haible  <bruno@clisp.org>
11308
11309         float tests: Tweak.
11310         * tests/test-float.c (main): Tweak skip message.
11311
11312 2011-07-07  Eric Blake  <eblake@redhat.com>
11313
11314         getopt: avoid compiler warning during configure
11315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11316         assigning string literals to non-const pointer.
11317
11318         getopt-gnu: avoid crash in glibc getopt
11319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11320         * tests/test-getopt.h (test_getopt): Enhance test.
11321         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11322         * doc/posix-functions/getopt.texi (getopt): Document it.
11323         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11324         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11325         Likewise.
11326
11327 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11328
11329         getopt: handle W; without long options in getopt [BZ #12922]
11330         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11331         but no long options are defined, just return 'W'.
11332
11333 2011-07-07  Bruno Haible  <bruno@clisp.org>
11334
11335         Avoid literal tabs.
11336         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11337         variable containing a tab instead of a literal tab.
11338         Reported by Jim Meyering.
11339
11340 2011-07-07  Bruno Haible  <bruno@clisp.org>
11341
11342         Comments.
11343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11344
11345 2011-07-06  Bruno Haible  <bruno@clisp.org>
11346
11347         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11348         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11349         <winsock2.h>.
11350         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11351         lib/sys_socket.in.h.
11352         (close, gethostname): Hide declarations from <winsock2.h>.
11353         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11354         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11355         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11356         (select): Don't override if gnulib's <sys/select.h> was already
11357         included.
11358         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11359         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11360         setsockopt, shutdown, select): Tweak indentation.
11361
11362 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11365         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11366         in an application that does not use the sys_select module.
11367
11368 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11369
11370         poll: do not return 0 on timeout=-1
11371         * lib/poll.c: Loop with yield if no events occured
11372
11373 2011-07-06  Eric Blake  <eblake@redhat.com>
11374
11375         pthread_sigmask: always replace when not using pthread
11376         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11377         replacement when using some threading other than pthread.  Fix
11378         logic bug.
11379
11380 2011-07-06  Bruno Haible  <bruno@clisp.org>
11381
11382         Comments.
11383         * m4/printf.m4: Update comments about mingw.
11384
11385 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11386
11387         sys_select: define sigset_t more portably
11388         * lib/sys_select.in.h: Always include <sys/types.h>, since
11389         we now need sigset_t and mingw defines it there.
11390         Include <signal.h> before split inclusion guard, to avoid
11391         mishaps on Solaris, whose <signal.h> eventually includes us.
11392         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11393         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11394         which come from ...
11395         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11396         gl_CHECK_TYPE_SIGSET_T.
11397         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11398         does the real work.
11399         * modules/sys_select (Depends-on): Add 'signal'.
11400
11401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11402         Suggested by Bruno Haible.
11403
11404         pselect: Use pthread_sigmask, not sigprocmask.
11405         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11406         multithreaded apps better than sigprocmask does.
11407         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11408         sigprocmask directly.
11409
11410 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11411
11412         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11413         Don't #undef,  since we don't need any underlying pselect.
11414         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11415         (Depends-on): Add select.
11416         (Link): Add $(LIBSOCKET).
11417         These changes suggested by Bruno Haible.
11418
11419         pselect: document better
11420         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11421         * doc/posix-functions/pselect.texi (pselect): Document new module.
11422
11423         pthread_sigmask: new module
11424         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11425         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11426         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11427         This is done only as a macro; I don't know how well that'll
11428         work for C++.  Move <sys/types.h> include before the include_next,
11429         to avoid mishap on Solaris.
11430         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11431         * modules/signal (Makefile.am): Substitute the check's results.
11432         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11433
11434         test-pselect: new module
11435         * modules/pselect-tests, tests/test-pselect.c: New files.
11436         * tests/test-select.c, tests/test-sys_select-c++.cc:
11437         If TEST_PSELECT is defined, test pselect instead of testing select.
11438
11439         * tests/test-sys_select.c (sigset_t): Test for it, too.
11440         Suggested by Bruno Haible.
11441
11442 2011-07-05  Eric Blake  <eblake@redhat.com>
11443
11444         snprintf: guarantee %1$d, for libintl
11445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11446         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11447         * doc/posix-functions/snprintf.texi (snprintf): Update.
11448         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11449         * tests/test-snprintf.c (main): Enhance test.
11450         * tests/test-vsnprintf.c (main): Likewise.
11451
11452 2011-07-05  Jim Meyering  <meyering@redhat.com>
11453
11454         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11455         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11456         per Bruno's request, to accommodate this idiom (no space after "#")
11457         even when the function is inside an #if block:
11458         char *
11459         gets (char *s)
11460         #undef gets
11461         {
11462           ...
11463         }
11464
11465 2011-07-04  Jim Meyering  <meyering@redhat.com>
11466
11467         maint: indent with spaces, not TABs, and add a rule to check this
11468         * tests/test-userspec.c: Indent with spaces, not TABs.
11469         * tests/test-argp.c: Likewise.
11470         * tests/test-c-stack2.sh: Likewise.
11471         * tests/test-parse-duration.sh: Likewise
11472         * m4/strtod.m4: Likewise.
11473         * m4/alloca.m4: Likewise.
11474         * m4/pselect.m4: Likewise.
11475         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11476
11477 2011-07-03  Jim Meyering  <meyering@redhat.com>
11478
11479         maint.mk: correct omissions in prohibit_argmatch_without_use check
11480         This rule would mistakenly report that argmatch.h is included without
11481         use even when both the argmatch and invalid_arg macro were used.
11482         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11483         of argmatch and invalid_arg.
11484
11485 2011-07-03  Bruno Haible  <bruno@clisp.org>
11486
11487         Comments about EINTR.
11488         * lib/safe-read.h: Explain the purpose of this module.
11489         * lib/safe-write.h: Likewise.
11490         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11491         module.
11492         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11493         module.
11494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11495
11496 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         xnanosleep: Rewrite to use new dtotimespec module.
11499         It has the conversion code that used to be in xnanosleep.
11500         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11501         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11502         (TIME_T_MAX): Remove.
11503         (xnanosleep): Rewrite in terms of dtotimespec.
11504         * modules/xnanosleep (Depends-on): Add dtotimespec.
11505         Remove intprops, stdbool.
11506
11507         timespec-add, timespec-sub: new modules
11508         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11509         * lib/timespec-add.c, lib/timespec-sub.c:
11510         * modules/timespec-add, modules/timespec-sub: New files.
11511
11512         dtotimespec: new module
11513         * lib/timespec.h (dtotimespec): New decl.
11514         * lib/dtotimespec.c, modules/dtotimespec: New files.
11515
11516         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11517
11518         pselect: new module
11519         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11520         (pselect): New decls.
11521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11522         since the standard pselect decl uses 'restrict'.
11523         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11524         HAVE_PSELECT, REPLACE_PSELECT.
11525         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11526         HAVE_PSELECT, REPLACE_PSELECT.
11527         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11528
11529         sys_select: don't depend on sys_socket
11530         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11532         This fix works on GNU and GNU-like platforms, but has not been tested
11533         on native Windows.
11534         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11536         gl_HEADER_SYS_SOCKET.
11537         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11538         gl_PREREQ_SYS_H_WINSOCK2.
11539
11540 2011-06-29  Eric Blake  <eblake@redhat.com>
11541
11542         pipe2: fix C89 compile problem
11543         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11544         Reported by Bruno Haible.
11545
11546         pipe, pipe2: don't corrupt fd on error
11547         * lib/pipe.c (pipe): Leave fd unchanged on error.
11548         * lib/pipe2.c (pipe2): Likewise.
11549         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11550         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11551
11552 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11553
11554         mmap-anon: do not use regular expressions inadvertently
11555         * m4/mmap-anon.m4: Remove trailing period from strings sought
11556         in the output.
11557
11558 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11559
11560         nanosleep: fix integer overflow problem
11561         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11562         arithmetic wraps around on overflow.
11563
11564         nanosleep: simplify carrying
11565         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11566         first call to the underyling nanosleep, not for the last one.
11567         This doesn't fix any bugs, but it simplifies the computation of
11568         the remaining delay.  Found while auditing integer overflow issues.
11569
11570         dup2: remove test for existence of fcntl
11571         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11572         "#if HAVE_FCNTL", in the configure-time test program.
11573         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11574         and therefore speeds up "configure" a bit.  Found while
11575         adding the dup2 module to Emacs.
11576
11577 2011-06-24  Eric Blake  <eblake@redhat.com>
11578
11579         maint.mk: enhance useless header checks
11580         * top/maint.mk (_sc_header_without_use): Check both include
11581         styles.
11582         (sc_prohibit_assert_without_use)
11583         (sc_prohibit_close_stream_without_use)
11584         (sc_prohibit_getopt_without_use)
11585         (sc_prohibit_quotearg_without_use)
11586         (sc_prohibit_quote_without_use)
11587         (sc_prohibit_long_options_without_use)
11588         (sc_prohibit_inttostr_without_use)
11589         (sc_prohibit_ignore_value_without_use)
11590         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11591         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11592         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11593         (sc_prohibit_hash_pjw_without_use)
11594         (sc_prohibit_safe_read_without_use)
11595         (sc_prohibit_argmatch_without_use)
11596         (sc_prohibit_canonicalize_without_use)
11597         (sc_prohibit_root_dev_ino_without_use)
11598         (sc_prohibit_openat_without_use)
11599         (sc_prohibit_c_ctype_without_use)
11600         (sc_prohibit_signal_without_use)
11601         (sc_prohibit_stdio--_without_use)
11602         (sc_prohibit_stdio-safer_without_use)
11603         (sc_prohibit_strings_without_use)
11604         (sc_prohibit_intprops_without_use)
11605         (sc_prohibit_stddef_without_use)
11606         (sc_prohibit_xfreopen_without_use): Update clients.
11607
11608 2011-06-24  Jim Meyering  <meyering@redhat.com>
11609
11610         syntax-check: keep one maint.mk rule in sync with its header
11611         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11612         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11613         I prefer to avoid temporary files here, so use <(...), but that
11614         is not supported by /bin/sh, so...
11615         (SHELL): Define to /bin/bash.
11616
11617 2011-06-24  Eric Blake  <eblake@redhat.com>
11618
11619         maint.mk: update sc_prohibit_intprops_without_use
11620         * top/maint.mk (_intprops_names): Match recent changes.
11621
11622 2011-06-24  Bruno Haible  <bruno@clisp.org>
11623
11624         strerror-override: No-op tweak.
11625         * lib/strerror-override.h (strerror_override): Reorder conditions,
11626         for consistency with lib/strerror-override.c.
11627
11628 2011-06-23  Eric Blake  <eblake@redhat.com>
11629
11630         maint.mk: test further PATH_MAX issues
11631         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11632         (sc_prohibit_path_max_allocation): ...and also test alloca.
11633         Suggested by Jim Meyering.
11634
11635 2011-06-22  Eric Blake  <eblake@redhat.com>
11636
11637         maint.mk: add syntax-check to avoid char[PATH_MAX]
11638         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11639
11640         stat: be robust to PATH_MAX definition
11641         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11642         * modules/stat (Depends-on): Add verify.
11643
11644         link: work around IRIX bug
11645         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11646         * lib/link.c (rpl_link): Work around it.
11647         * tests/test-link.h (test_link): Enhance test.
11648         * doc/posix-functions/link.texi (link): Document the bug.
11649
11650         getopt: silence clang warning
11651         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11652         dereference.
11653         Reported by Gustavo Martin Domato.
11654
11655 2011-06-22  Jim Meyering  <meyering@redhat.com>
11656
11657         bootstrap: do not insert a blank line into each .gitignore file
11658         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11659
11660 2011-06-21  Eric Blake  <eblake@redhat.com>
11661
11662         perror: test for output mismatch
11663         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11664         perror on IRIX.
11665
11666         strerror_r: fix OpenBSD behavior on out-of-range
11667         * lib/strerror_r.c (strerror_r): Always use maximal string.
11668         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11669
11670         strerror_r: fix OpenBSD behavior on 0
11671         * lib/strerror-override.c (strerror_override): Also override 0
11672         when needed.
11673         * lib/strerror-override.h (strerror_override): Likewise.
11674         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11675         earlier.
11676         * lib/strerror_r.c (strerror_r): Likewise.
11677         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11678         behavior...
11679         (gl_FUNC_STRERROR_0): ...into new macro.
11680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11681         is overridden.
11682         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11683         * modules/strerror-override (Files): Add strerror.m4.
11684         (configure.ac): Also provide override for 0 when needed.
11685         * doc/posix-functions/strerror.texi (strerror): Document this.
11686         * doc/posix-functions/perror.texi (perror): Likewise.
11687
11688         perror: adjust array size
11689         * modules/perror (Depends-on): Add strerror-override.
11690         * lib/perror.c (perror): Use it to avoid magic number.
11691
11692         strerror-override: reduce size
11693         * lib/strerror-override.c (strerror_override): Use fewer lines.
11694
11695 2011-06-20  Bruno Haible  <bruno@clisp.org>
11696
11697         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11698         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11699
11700 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11701
11702         alloca: port to compilers that can optimize like GCC 4.6.0
11703         * lib/alloca.c (find_stack_direction): New signature, taken from
11704         Autoconf git.  This works with GCC 4.6.0.  This code should never
11705         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11706         be used with other compilers that optimize as well as GCC 4.6.0 does.
11707         (alloca): Adjust to new signature.
11708         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11709         New macro, which patches Autoconf in a similar way.
11710
11711         c-stack: stop worrying about stack direction
11712         * lib/c-stack.c (find_stack_direction): Remove.
11713         (segv_handler): Don't worry about stack direction growth, as it's
11714         too much of a pain to configure this correctly, given how compilers
11715         are optimizing-away our stack-growth detection code.  Instead, assume
11716         that any access to just before or just after the stack is OK.
11717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11718         Don't require AC_FUNC_ALLOCA; no longer needed.
11719
11720 2011-06-20  Eric Blake  <eblake@redhat.com>
11721
11722         test-stat: don't allocate PATH_MAX bytes
11723         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11724         PATH_MAX-sized buffer.
11725         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11726         * modules/stat-tests (Depends-on): Likewise.
11727         * tests/test-fstatat.c (includes): Drop pathmax.h.
11728         * tests/test-stat.c (includes): Likewise.
11729         Reported by Bruno Haible.
11730
11731 2011-06-20  Bruno Haible  <bruno@clisp.org>
11732
11733         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11734         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11735         * lib/float.c: New file.
11736         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11737         REPLACE_FLOAT_LDBL.
11738         * modules/float (Files): Add lib/float.c.
11739         (configure.ac): Invoke AC_LIBOBJ.
11740         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11741
11742 2011-06-20  Bruno Haible  <bruno@clisp.org>
11743
11744         Tests for module 'float'.
11745         * modules/float-tests: New file.
11746         * tests/test-float.c: New file.
11747
11748 2011-06-19  Bruno Haible  <bruno@clisp.org>
11749
11750         isinf: Coding style.
11751         * lib/isinf.c: Use GNU coding style.
11752
11753 2011-06-19  Bruno Haible  <bruno@clisp.org>
11754
11755         linkat test: Avoid test failure on AIX 7.1.
11756         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11757         * tests/test-link.h (test_link): Likewise.
11758
11759 2011-06-19  Bruno Haible  <bruno@clisp.org>
11760
11761         pread test: Avoid test failure on OpenBSD 4.9.
11762         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11763
11764 2011-06-19  Bruno Haible  <bruno@clisp.org>
11765
11766         sprintf-posix: Fix test failure on AIX 7.1.
11767         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11768         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11769         on AIX.
11770         * doc/posix-functions/fprintf.texi: Likewise.
11771         * doc/posix-functions/printf.texi: Likewise.
11772         * doc/posix-functions/snprintf.texi: Likewise.
11773         * doc/posix-functions/sprintf.texi: Likewise.
11774         * doc/posix-functions/vdprintf.texi: Likewise.
11775         * doc/posix-functions/vfprintf.texi: Likewise.
11776         * doc/posix-functions/vprintf.texi: Likewise.
11777         * doc/posix-functions/vsnprintf.texi: Likewise.
11778         * doc/posix-functions/vsprintf.texi: Likewise.
11779
11780 2011-06-19  Bruno Haible  <bruno@clisp.org>
11781
11782         roundl-ieee: Fix test failure on AIX 7.1.
11783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11784         * doc/posix-functions/roundl.texi: Mention problem with negative
11785         arguments.
11786
11787 2011-06-19  Bruno Haible  <bruno@clisp.org>
11788
11789         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11790         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11791         * doc/posix-functions/round.texi: Mention problem with negative
11792         arguments.
11793         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11794
11795 2011-06-19  Bruno Haible  <bruno@clisp.org>
11796
11797         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11799         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11800         * doc/posix-functions/roundf.texi: Mention problem with negative
11801         arguments.
11802         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11803
11804 2011-06-19  Bruno Haible  <bruno@clisp.org>
11805
11806         ceilf-ieee: Work around bug on MacOS X 10.5.
11807         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11808
11809         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11810         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11811         IEEE compliant, avoid compiler optimizations.
11812         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11813         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11814         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11815         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11816         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11817         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11820         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11821         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11822
11823 2011-06-19  Bruno Haible  <bruno@clisp.org>
11824
11825         ceilf-ieee: Work around bug on AIX 7.1.
11826         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11827         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11828
11829 2011-06-19  Bruno Haible  <bruno@clisp.org>
11830
11831         ceil-ieee: Work around bug on AIX 7.1.
11832         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11833         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11834
11835 2011-06-18  Bruno Haible  <bruno@clisp.org>
11836
11837         fsync test: Avoid test failure on MacOS X and AIX.
11838         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11839         EINVAL.
11840
11841 2011-06-18  Bruno Haible  <bruno@clisp.org>
11842
11843         openat, fdopendir tests: Fix link errors.
11844         * modules/openat-tests (Depends-on): Add progname.
11845         * modules/fdopendir-tests (Depends-on): Likewise.
11846         * tests/test-fchownat.c: Include progname.h.
11847         (main): Call set_program_name.
11848         * tests/test-fstatat.c: Include progname.h.
11849         (main): Call set_program_name.
11850         * tests/test-mkdirat.c: Include progname.h.
11851         (main): Call set_program_name.
11852         * tests/test-openat.c: Include progname.h.
11853         (main): Call set_program_name.
11854         * tests/test-unlinkat.c: Include progname.h.
11855         (main): Call set_program_name.
11856         * tests/test-fdopendir.c: Include progname.h.
11857         (main): Call set_program_name.
11858
11859 2011-06-18  Bruno Haible  <bruno@clisp.org>
11860
11861         Doc update.
11862         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11863         HP-UX.
11864         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11865
11866 2011-06-18  Bruno Haible  <bruno@clisp.org>
11867
11868         getcwd tests: Avoid compilation error on HP-UX 11.31.
11869         * modules/getcwd-tests (Depends-on): Add pathmax.
11870         * tests/test-getcwd.c: Include pathmax.h.
11871
11872 2011-06-18  Bruno Haible  <bruno@clisp.org>
11873
11874         isfinite, isinf: Fix link error on AIX 6 and 7.
11875         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11876         needed, also test the macro with a 'float' argument.
11877         * m4/isinf.m4 (gl_ISINF): Likewise.
11878
11879 2011-06-18  Bruno Haible  <bruno@clisp.org>
11880
11881         getloadavg: Don't clobber LIBS. Regression from previous commit.
11882         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11883         AC_CHECK_LIB from here...
11884         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11885         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11886         gl_func_getloadavg_done.
11887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11888
11889 2011-06-18  Bruno Haible  <bruno@clisp.org>
11890
11891         clean-temp: Improve documentation.
11892         * lib/clean-temp.h: Explain better how to use this module.
11893         Reported by John Darrington <john@darrington.wattle.id.au>.
11894
11895 2011-06-17  Bruno Haible  <bruno@clisp.org>
11896
11897         pread, pwrite: Avoid cc warning on AIX.
11898         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11899         (pwrite): Likewise.
11900
11901 2011-06-17  Bruno Haible  <bruno@clisp.org>
11902
11903         spawn-pipe tests: Fix link error.
11904         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11906
11907 2011-06-17  Bruno Haible  <bruno@clisp.org>
11908
11909         Tests: Remove unnecessary dependency.
11910         * modules/canonicalize-tests (Depends-on): Remove progname.
11911         * modules/chown-tests (Depends-on): Likewise.
11912         * modules/dirname-tests (Depends-on): Likewise.
11913         * modules/fdopendir-tests (Depends-on): Likewise.
11914         * modules/fdutimensat-tests (Depends-on): Likewise.
11915         * modules/hash-tests (Depends-on): Likewise.
11916         * modules/lchown-tests (Depends-on): Likewise.
11917         * modules/linkat-tests (Depends-on): Likewise.
11918         * modules/renameat-tests (Depends-on): Likewise.
11919         * modules/spawn-pipe-tests (Depends-on): Likewise.
11920         * modules/utimensat-tests (Depends-on): Likewise.
11921
11922 2011-06-17  Bruno Haible  <bruno@clisp.org>
11923
11924         spawn-pipe tests: Fix link error.
11925         * tests/test-spawn-pipe-child.c: Undefine fflush.
11926
11927 2011-06-17  Bruno Haible  <bruno@clisp.org>
11928
11929         Fix tests link errors.
11930         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11931         * modules/chown-tests (Makefile.am): Don't link test-chown with
11932         LIBINTL.
11933         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11934         LIBINTL.
11935         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11936         LIBINTL.
11937         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11938         LIBINTL.
11939
11940 2011-06-16  Bruno Haible  <bruno@clisp.org>
11941
11942         crypto/gc-sha1: Fix recent regression.
11943         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11944         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11945
11946         crypto/gc-md5: Fix recent regression.
11947         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11948
11949         crypto/gc-md4: Fix recent regression.
11950         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11951         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11952
11953         crypto/gc-arctwo: Fix recent regression.
11954         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11955         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11956
11957         crypto/gc-rijndael: Fix recent regression.
11958         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11959         (configure.ac): Invoke AC_LIBOBJ here.
11960         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11962
11963         crypto/gc-hmac-sha1: Fix recent regression.
11964         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11965         (configure.ac): Invoke AC_LIBOBJ here.
11966         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11968
11969         crypto/gc-hmac-md5: Fix recent regression.
11970         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11971         (configure.ac): Invoke AC_LIBOBJ here.
11972         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11974
11975         crypto/gc-des: Fix recent regression.
11976         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11977         (configure.ac): Invoke AC_LIBOBJ here.
11978         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11980
11981         crypto/gc-arcfour: Fix recent regression.
11982         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11983         (configure.ac): Invoke AC_LIBOBJ here.
11984         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11986
11987 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11988
11989         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11990         After the 2011-05-21 change, this macro requires
11991         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11992         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11993
11994 2011-06-16  Bruno Haible  <bruno@clisp.org>
11995
11996         fprintftime: Move AC_LIBOBJ invocations to module description.
11997         * m4/fprintftime.m4: Remove file.
11998         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11999         (configure.ac): Remove gl_FPRINTFTIME call.
12000         (Makefile.am): Augment lib_SOURCES.
12001         Reported by Jim Meyering.
12002
12003 2011-06-16  Bruno Haible  <bruno@clisp.org>
12004
12005         tmpfile-safer: Finish 2011-05-23 commit.
12006         * m4/stdio-safer.m4: Really remove file.
12007         Reported by Jim Meyering.
12008
12009 2011-06-16  Bruno Haible  <bruno@clisp.org>
12010
12011         syntax-check: Fix typo.
12012         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12013         printf-posix.m4.
12014         Reported by Jim Meyering.
12015
12016 2011-06-13  Jim Meyering  <meyering@redhat.com>
12017
12018         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12019         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12020
12021 2011-05-23  Bruno Haible  <bruno@clisp.org>
12022
12023         yesno: Move AC_LIBOBJ invocations to module description.
12024         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12025         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12026
12027 2011-05-23  Bruno Haible  <bruno@clisp.org>
12028
12029         xstrtol: Move AC_LIBOBJ invocations to module description.
12030         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12031         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12032
12033 2011-05-23  Bruno Haible  <bruno@clisp.org>
12034
12035         xstrtold: Move AC_LIBOBJ invocations to module description.
12036         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12037         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12038
12039 2011-05-23  Bruno Haible  <bruno@clisp.org>
12040
12041         xstrtod: Move AC_LIBOBJ invocations to module description.
12042         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12043         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12044
12045 2011-05-23  Bruno Haible  <bruno@clisp.org>
12046
12047         xnanosleep: Move AC_LIBOBJ invocations to module description.
12048         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12049         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12050
12051 2011-05-23  Bruno Haible  <bruno@clisp.org>
12052
12053         xgetcwd: Move AC_LIBOBJ invocations to module description.
12054         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12055         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12056
12057 2011-05-23  Bruno Haible  <bruno@clisp.org>
12058
12059         xalloc: Move AC_LIBOBJ invocations to module description.
12060         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12061         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12062
12063 2011-05-23  Bruno Haible  <bruno@clisp.org>
12064
12065         write-any-file: Move AC_LIBOBJ invocations to module description.
12066         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12067         invocation.
12068         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12069
12070 2011-05-23  Bruno Haible  <bruno@clisp.org>
12071
12072         utimens: Move AC_LIBOBJ invocations to module description.
12073         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12074         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12075
12076 2011-05-23  Bruno Haible  <bruno@clisp.org>
12077
12078         utimecmp: Move AC_LIBOBJ invocations to module description.
12079         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12080         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12081
12082 2011-05-23  Bruno Haible  <bruno@clisp.org>
12083
12084         userspec: Move AC_LIBOBJ invocations to module description.
12085         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12086         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12087
12088 2011-05-23  Bruno Haible  <bruno@clisp.org>
12089
12090         unlinkdir: Move AC_LIBOBJ invocations to module description.
12091         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12092         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12093
12094 2011-05-23  Bruno Haible  <bruno@clisp.org>
12095
12096         unistd-safer: Move AC_LIBOBJ invocations to module description.
12097         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12098         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12099
12100 2011-05-23  Bruno Haible  <bruno@clisp.org>
12101
12102         tempname: Move AC_LIBOBJ invocations to module description.
12103         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12104         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12105
12106 2011-05-23  Bruno Haible  <bruno@clisp.org>
12107
12108         strftime: Move AC_LIBOBJ invocations to module description.
12109         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12110         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12111
12112 2011-05-23  Bruno Haible  <bruno@clisp.org>
12113
12114         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12115         * m4/stdlib-safer.m4: Remove file.
12116         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12117         (configure.ac): Remove gl_STDLIB_SAFER call.
12118         (Makefile.am): Augment lib_SOURCES.
12119
12120 2011-05-23  Bruno Haible  <bruno@clisp.org>
12121
12122         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12123         * m4/stdio-safer.m4: Remove file.
12124         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12125         (configure.ac): Remove gl_TMPFILE_SAFER call.
12126         (Makefile.am): Augment lib_SOURCES.
12127
12128 2011-05-23  Bruno Haible  <bruno@clisp.org>
12129
12130         popen-safer: Move AC_LIBOBJ invocations to module description.
12131         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12132         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12133         (configure.ac): Remove gl_POPEN_SAFER call.
12134         (Makefile.am): Augment lib_SOURCES.
12135
12136 2011-05-23  Bruno Haible  <bruno@clisp.org>
12137
12138         freopen-safer: Move AC_LIBOBJ invocations to module description.
12139         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12140         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12141         (configure.ac): Remove gl_FREOPEN_SAFER call.
12142         (Makefile.am): Augment lib_SOURCES.
12143
12144 2011-05-23  Bruno Haible  <bruno@clisp.org>
12145
12146         fopen-safer: Move AC_LIBOBJ invocations to module description.
12147         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12148         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12149         (configure.ac): Remove gl_FOPEN_SAFER call.
12150         (Makefile.am): Augment lib_SOURCES.
12151
12152 2011-05-23  Bruno Haible  <bruno@clisp.org>
12153
12154         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12155         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12156         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12157
12158 2011-05-23  Bruno Haible  <bruno@clisp.org>
12159
12160         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12161         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12162         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12163
12164 2011-05-23  Bruno Haible  <bruno@clisp.org>
12165
12166         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12167         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12168         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12169
12170 2011-05-23  Bruno Haible  <bruno@clisp.org>
12171
12172         settime: Move AC_LIBOBJ invocations to module description.
12173         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12174         * modules/settime (Makefile.am): Augment lib_SOURCES.
12175
12176 2011-05-23  Bruno Haible  <bruno@clisp.org>
12177
12178         savedir: Move AC_LIBOBJ invocations to module description.
12179         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12180         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12181
12182 2011-05-23  Bruno Haible  <bruno@clisp.org>
12183
12184         save-cwd: Move AC_LIBOBJ invocations to module description.
12185         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12186         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12187
12188 2011-05-23  Bruno Haible  <bruno@clisp.org>
12189
12190         same: Move AC_LIBOBJ invocations to module description.
12191         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12192         * modules/same (Makefile.am): Augment lib_SOURCES.
12193
12194 2011-05-23  Bruno Haible  <bruno@clisp.org>
12195
12196         safe-write: Move AC_LIBOBJ invocations to module description.
12197         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12198         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12199         instead of gl_SAFE_WRITE.
12200         (Makefile.am): Augment lib_SOURCES.
12201
12202 2011-05-23  Bruno Haible  <bruno@clisp.org>
12203
12204         safe-read: Move AC_LIBOBJ invocations to module description.
12205         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12206         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12207         of gl_SAFE_READ.
12208         (Makefile.am): Augment lib_SOURCES.
12209
12210 2011-05-23  Bruno Haible  <bruno@clisp.org>
12211
12212         safe-alloc: Move AC_LIBOBJ invocations to module description.
12213         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12214         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12215
12216 2011-05-23  Bruno Haible  <bruno@clisp.org>
12217
12218         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12219         * m4/rijndael.m4: Remove file.
12220         * modules/crypto/rijndael (Files): Remove it.
12221         (configure.ac): Remove gl_RIJNDAEL call.
12222         (Makefile.am): Augment lib_SOURCES.
12223
12224 2011-05-23  Bruno Haible  <bruno@clisp.org>
12225
12226         readtokens: Move AC_LIBOBJ invocations to module description.
12227         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12228         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12229
12230 2011-05-23  Bruno Haible  <bruno@clisp.org>
12231
12232         read-file: Move AC_LIBOBJ invocations to module description.
12233         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12234         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12235         of gl_FUNC_READ_FILE.
12236         (Makefile.am): Augment lib_SOURCES.
12237
12238 2011-05-23  Bruno Haible  <bruno@clisp.org>
12239
12240         quotearg: Move AC_LIBOBJ invocations to module description.
12241         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12242         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12243
12244 2011-05-23  Bruno Haible  <bruno@clisp.org>
12245
12246         quote: Move AC_LIBOBJ invocations to module description.
12247         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12248         * modules/quote (Makefile.am): Augment lib_SOURCES.
12249
12250 2011-05-23  Bruno Haible  <bruno@clisp.org>
12251
12252         posixver: Move AC_LIBOBJ invocations to module description.
12253         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12254         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12255
12256 2011-05-23  Bruno Haible  <bruno@clisp.org>
12257
12258         posixtm: Move AC_LIBOBJ invocations to module description.
12259         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12260         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12261
12262 2011-05-23  Bruno Haible  <bruno@clisp.org>
12263
12264         physmem: Move AC_LIBOBJ invocations to module description.
12265         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12266         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12267
12268 2011-05-23  Bruno Haible  <bruno@clisp.org>
12269
12270         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12271         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12272         invocation.
12273         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12274
12275 2011-05-23  Bruno Haible  <bruno@clisp.org>
12276
12277         mpsort: Move AC_LIBOBJ invocations to module description.
12278         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12279         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         modechange: Move AC_LIBOBJ invocations to module description.
12284         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12285         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         mkdir-p: Move AC_LIBOBJ invocations to module description.
12290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12291         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12296         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12297         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12298
12299 2011-05-23  Bruno Haible  <bruno@clisp.org>
12300
12301         mgetgroups: Move AC_LIBOBJ invocations to module description.
12302         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12303         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12304
12305 2011-05-23  Bruno Haible  <bruno@clisp.org>
12306
12307         memxor: Move AC_LIBOBJ invocations to module description.
12308         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12309         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12310
12311 2011-05-23  Bruno Haible  <bruno@clisp.org>
12312
12313         memcoll: Move AC_LIBOBJ invocations to module description.
12314         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12315         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12316
12317 2011-05-23  Bruno Haible  <bruno@clisp.org>
12318
12319         memcasecmp: Move AC_LIBOBJ invocations to module description.
12320         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12321         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12322
12323 2011-05-23  Bruno Haible  <bruno@clisp.org>
12324
12325         crypto/md5: Move AC_LIBOBJ invocations to module description.
12326         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12327         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12328
12329 2011-05-23  Bruno Haible  <bruno@clisp.org>
12330
12331         crypto/md4: Move AC_LIBOBJ invocations to module description.
12332         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12333         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12334
12335 2011-05-23  Bruno Haible  <bruno@clisp.org>
12336
12337         crypto/md2: Move AC_LIBOBJ invocations to module description.
12338         * m4/md2.m4: Remove file.
12339         * modules/crypto/md2 (Files): Remove it.
12340         (configure.ac): Remove gl_MD2 call.
12341         (Makefile.am): Augment lib_SOURCES.
12342
12343 2011-05-23  Bruno Haible  <bruno@clisp.org>
12344
12345         long-options: Move AC_LIBOBJ invocations to module description.
12346         * m4/long-options.m4: Remove file.
12347         * modules/long-options (Files): Remove it.
12348         (configure.ac): Remove gl_LONG_OPTIONS call.
12349         (Makefile.am): Augment lib_SOURCES.
12350
12351 2011-05-23  Bruno Haible  <bruno@clisp.org>
12352
12353         i-ring: Move AC_LIBOBJ invocations to module description.
12354         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12355         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12356
12357 2011-05-23  Bruno Haible  <bruno@clisp.org>
12358
12359         idcache: Move AC_LIBOBJ invocations to module description.
12360         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12361         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12362
12363 2011-05-23  Bruno Haible  <bruno@clisp.org>
12364
12365         human: Move AC_LIBOBJ invocations to module description.
12366         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12367         * modules/human (Makefile.am): Augment lib_SOURCES.
12368
12369 2011-05-23  Bruno Haible  <bruno@clisp.org>
12370
12371         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12372         * m4/hmac-sha1.m4: Remove file.
12373         * modules/crypto/hmac-sha1 (Files): Remove it.
12374         (configure.ac): Remove gl_HMAC_SHA1 call.
12375         (Makefile.am): Augment lib_SOURCES.
12376
12377 2011-05-23  Bruno Haible  <bruno@clisp.org>
12378
12379         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12380         * m4/hmac-md5.m4: Remove file.
12381         * modules/crypto/hmac-md5 (Files): Remove it.
12382         (configure.ac): Remove gl_HMAC_MD5 call.
12383         (Makefile.am): Augment lib_SOURCES.
12384
12385 2011-05-23  Bruno Haible  <bruno@clisp.org>
12386
12387         hash: Move AC_LIBOBJ invocations to module description.
12388         * m4/hash.m4: Remove file.
12389         * modules/hash (Files): Remove it.
12390         (configure.ac): Remove gl_HASH call.
12391         (Makefile.am): Augment lib_SOURCES.
12392
12393 2011-05-23  Bruno Haible  <bruno@clisp.org>
12394
12395         hard-locale: Move AC_LIBOBJ invocations to module description.
12396         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12397         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12398
12399 2011-05-23  Bruno Haible  <bruno@clisp.org>
12400
12401         getugroups: Move AC_LIBOBJ invocations to module description.
12402         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12403         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12404
12405 2011-05-23  Bruno Haible  <bruno@clisp.org>
12406
12407         gettime: Move AC_LIBOBJ invocations to module description.
12408         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12409         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12410
12411 2011-05-23  Bruno Haible  <bruno@clisp.org>
12412
12413         getndelim2: Move AC_LIBOBJ invocations to module description.
12414         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12415         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12416
12417 2011-05-23  Bruno Haible  <bruno@clisp.org>
12418
12419         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12420         * m4/gc-pbkdf2-sha1.m4: Remove file.
12421         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12422         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12423         (Makefile.am): Augment lib_SOURCES.
12424
12425 2011-05-23  Bruno Haible  <bruno@clisp.org>
12426
12427         fts: Move AC_LIBOBJ invocations to module description.
12428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12429         * modules/fts (configure.ac): ... to here.
12430
12431 2011-05-23  Bruno Haible  <bruno@clisp.org>
12432
12433         file-type: Move AC_LIBOBJ invocations to module description.
12434         * m4/file-type.m4: Remove file.
12435         * modules/file-type (Files): Remove it.
12436         (configure.ac): Remove gl_FILE_TYPE call.
12437         (Makefile.am): Augment lib_SOURCES.
12438
12439 2011-05-23  Bruno Haible  <bruno@clisp.org>
12440
12441         filenamecat*: Respect rules for use of AC_LIBOBJ.
12442         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12443         Remove AC_LIBOBJ invocation.
12444         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12445         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12446
12447 2011-05-23  Bruno Haible  <bruno@clisp.org>
12448
12449         filemode: Move AC_LIBOBJ invocations to module description.
12450         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12451         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12452
12453 2011-05-23  Bruno Haible  <bruno@clisp.org>
12454
12455         openat-safer: Move AC_LIBOBJ invocations to module description.
12456         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12457         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12458
12459 2011-05-23  Bruno Haible  <bruno@clisp.org>
12460
12461         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12462         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12463         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12464
12465 2011-05-23  Bruno Haible  <bruno@clisp.org>
12466
12467         exclude: Move AC_LIBOBJ invocations to module description.
12468         * m4/exclude.m4: Remove file.
12469         * modules/exclude (Files): Remove it.
12470         (configure.ac): Remove gl_EXCLUDE call.
12471         (Makefile.am): Augment lib_SOURCES.
12472
12473 2011-05-23  Bruno Haible  <bruno@clisp.org>
12474
12475         dirname*: Respect rules for use of AC_LIBOBJ.
12476         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12477         invocations.
12478         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12479         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12480
12481 2011-05-23  Bruno Haible  <bruno@clisp.org>
12482
12483         dirent-safer: Move AC_LIBOBJ invocations to module description.
12484         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12485         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12486
12487 2011-05-23  Bruno Haible  <bruno@clisp.org>
12488
12489         crypto/des: Move AC_LIBOBJ invocations to module description.
12490         * m4/des.m4: Remove file.
12491         * modules/crypto/des (Files): Remove it.
12492         (configure.ac): Remove gl_DES call.
12493         (Makefile.am): Augment lib_SOURCES.
12494
12495 2011-05-23  Bruno Haible  <bruno@clisp.org>
12496
12497         cycle-check: Move AC_LIBOBJ invocations to module description.
12498         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12499         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12500
12501 2011-05-23  Bruno Haible  <bruno@clisp.org>
12502
12503         c-strtold: Move AC_LIBOBJ invocations to module description.
12504         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12505         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12506
12507 2011-05-23  Bruno Haible  <bruno@clisp.org>
12508
12509         c-strtod: Move AC_LIBOBJ invocations to module description.
12510         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12511         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12512
12513 2011-05-23  Bruno Haible  <bruno@clisp.org>
12514
12515         crc: Move AC_LIBOBJ invocations to module description.
12516         * m4/crc.m4: Remove file.
12517         * modules/crc (Files): Remove it.
12518         (configure.ac): Remove gl_CRC call.
12519         (Makefile.am): Augment lib_SOURCES.
12520
12521 2011-05-23  Bruno Haible  <bruno@clisp.org>
12522
12523         close-stream: Move AC_LIBOBJ invocations to module description.
12524         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12525         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12526
12527 2011-05-23  Bruno Haible  <bruno@clisp.org>
12528
12529         closeout: Move AC_LIBOBJ invocations to module description.
12530         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12531         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12532
12533 2011-05-23  Bruno Haible  <bruno@clisp.org>
12534
12535         closein: Move AC_LIBOBJ invocations to module description.
12536         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12537         * modules/closein (Makefile.am): Augment lib_SOURCES.
12538
12539 2011-05-23  Bruno Haible  <bruno@clisp.org>
12540
12541         cloexec: Move AC_LIBOBJ invocations to module description.
12542         * m4/cloexec.m4: Remove file.
12543         * modules/cloexec (Files): Remove it.
12544         (configure.ac): Remove gl_CLOEXEC call.
12545         (Makefile.am): Augment lib_SOURCES.
12546
12547 2011-05-23  Bruno Haible  <bruno@clisp.org>
12548
12549         check-version: Move AC_LIBOBJ invocations to module description.
12550         * m4/check-version.m4: Remove file.
12551         * modules/check-version (Files): Remove it.
12552         (configure.ac): Remove gl_CHECK_VERSION call.
12553         (Makefile.am): Augment lib_SOURCES.
12554
12555 2011-05-23  Bruno Haible  <bruno@clisp.org>
12556
12557         chdir-safer: Move AC_LIBOBJ invocations to module description.
12558         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12559         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12560
12561 2011-05-23  Bruno Haible  <bruno@clisp.org>
12562
12563         canonicalize: Move AC_LIBOBJ invocations to module description.
12564         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12565         AC_LIBOBJ invocation.
12566         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12567
12568 2011-05-23  Bruno Haible  <bruno@clisp.org>
12569
12570         canon-host: Move AC_LIBOBJ invocations to module description.
12571         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12572         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12573         instead of gl_CANON_HOST.
12574         (Makefile.am): Augment lib_SOURCES.
12575
12576 2011-05-23  Bruno Haible  <bruno@clisp.org>
12577
12578         backupfile: Move AC_LIBOBJ invocations to module description.
12579         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12580         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12581
12582 2011-05-23  Bruno Haible  <bruno@clisp.org>
12583
12584         argmatch: Move AC_LIBOBJ invocations to module description.
12585         * m4/argmatch.m4: Remove file.
12586         * modules/argmatch (Files): Remove it.
12587         (configure.ac): Remove gl_ARGMATCH call.
12588         (Makefile.am): Augment lib_SOURCES.
12589
12590 2011-05-23  Bruno Haible  <bruno@clisp.org>
12591
12592         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12593         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12594         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12595
12596 2011-05-23  Bruno Haible  <bruno@clisp.org>
12597
12598         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12599         * m4/arcfour.m4: Remove file.
12600         * modules/crypto/arcfour (Files): Remove it.
12601         (configure.ac): Remove gl_ARCFOUR call.
12602         (Makefile.am): Augment lib_SOURCES.
12603
12604 2011-05-22  Bruno Haible  <bruno@clisp.org>
12605
12606         write: Move AC_LIBOBJ invocations to module description.
12607         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12608         * modules/write (configure.ac): ... to here.
12609
12610 2011-05-22  Bruno Haible  <bruno@clisp.org>
12611
12612         wmemset: Move AC_LIBOBJ invocations to module description.
12613         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12614         here...
12615         * modules/wmemset (configure.ac): ... to here.
12616
12617 2011-05-22  Bruno Haible  <bruno@clisp.org>
12618
12619         wmemmove: Move AC_LIBOBJ invocations to module description.
12620         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12621         here...
12622         * modules/wmemmove (configure.ac): ... to here.
12623
12624 2011-05-22  Bruno Haible  <bruno@clisp.org>
12625
12626         wmemcpy: Move AC_LIBOBJ invocations to module description.
12627         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12628         here...
12629         * modules/wmemcpy (configure.ac): ... to here.
12630
12631 2011-05-22  Bruno Haible  <bruno@clisp.org>
12632
12633         wmemcmp: Move AC_LIBOBJ invocations to module description.
12634         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12635         here...
12636         * modules/wmemcmp (configure.ac): ... to here.
12637
12638 2011-05-22  Bruno Haible  <bruno@clisp.org>
12639
12640         wmemchr: Move AC_LIBOBJ invocations to module description.
12641         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12642         here...
12643         * modules/wmemchr (configure.ac): ... to here.
12644
12645 2011-05-22  Bruno Haible  <bruno@clisp.org>
12646
12647         wcswidth: Move AC_LIBOBJ invocations to module description.
12648         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12649         here...
12650         * modules/wcswidth (configure.ac): ... to here.
12651
12652 2011-05-22  Bruno Haible  <bruno@clisp.org>
12653
12654         wcwidth: Respect rules for use of AC_LIBOBJ.
12655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12656         invocation from here...
12657         * modules/wcwidth (configure.ac): ... to here.
12658         (Depends-on): Update conditions.
12659
12660 2011-05-22  Bruno Haible  <bruno@clisp.org>
12661
12662         wctype: Move AC_LIBOBJ invocations to module description.
12663         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12664         invocation from here...
12665         * modules/wctype (configure.ac): ... to here.
12666         (Depends-on): Update conditions.
12667
12668 2011-05-22  Bruno Haible  <bruno@clisp.org>
12669
12670         wctrans: Move AC_LIBOBJ invocations to module description.
12671         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12672         invocation from here...
12673         * modules/wctrans (configure.ac): ... to here.
12674
12675 2011-05-22  Bruno Haible  <bruno@clisp.org>
12676
12677         wctomb: Move AC_LIBOBJ invocations to module description.
12678         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12679         invocations from here...
12680         * modules/wctomb (configure.ac): ... to here.
12681
12682 2011-05-22  Bruno Haible  <bruno@clisp.org>
12683
12684         wctob: Move AC_LIBOBJ invocations to module description.
12685         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12686         gl_PREREQ_WCTOB invocations from here...
12687         * modules/wctob (configure.ac): ... to here.
12688         (Depends-on): Update conditions.
12689
12690 2011-05-22  Bruno Haible  <bruno@clisp.org>
12691
12692         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12693         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12694         here...
12695         * modules/wcsxfrm (configure.ac): ... to here.
12696
12697 2011-05-22  Bruno Haible  <bruno@clisp.org>
12698
12699         wcstok: Move AC_LIBOBJ invocations to module description.
12700         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12701         * modules/wcstok (configure.ac): ... to here.
12702
12703 2011-05-22  Bruno Haible  <bruno@clisp.org>
12704
12705         wcsstr: Move AC_LIBOBJ invocations to module description.
12706         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12707         * modules/wcsstr (configure.ac): ... to here.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         wcsspn: Move AC_LIBOBJ invocations to module description.
12712         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12713         * modules/wcsspn (configure.ac): ... to here.
12714
12715 2011-05-22  Bruno Haible  <bruno@clisp.org>
12716
12717         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12718         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12719         gl_PREREQ_WCSRTOMBS invocations from here...
12720         * modules/wcsrtombs (configure.ac): ... to here.
12721
12722 2011-05-22  Bruno Haible  <bruno@clisp.org>
12723
12724         wcsrchr: Move AC_LIBOBJ invocations to module description.
12725         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12726         here...
12727         * modules/wcsrchr (configure.ac): ... to here.
12728
12729 2011-05-22  Bruno Haible  <bruno@clisp.org>
12730
12731         wcspbrk: Move AC_LIBOBJ invocations to module description.
12732         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12733         here...
12734         * modules/wcspbrk (configure.ac): ... to here.
12735
12736 2011-05-22  Bruno Haible  <bruno@clisp.org>
12737
12738         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12739         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12740         gl_PREREQ_WCSNRTOMBS invocations from here...
12741         * modules/wcsnrtombs (configure.ac): ... to here.
12742
12743 2011-05-22  Bruno Haible  <bruno@clisp.org>
12744
12745         wcsnlen: Move AC_LIBOBJ invocations to module description.
12746         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12747         here...
12748         * modules/wcsnlen (configure.ac): ... to here.
12749
12750 2011-05-22  Bruno Haible  <bruno@clisp.org>
12751
12752         wcsncpy: Move AC_LIBOBJ invocations to module description.
12753         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12754         here...
12755         * modules/wcsncpy (configure.ac): ... to here.
12756
12757 2011-05-22  Bruno Haible  <bruno@clisp.org>
12758
12759         wcsncmp: Move AC_LIBOBJ invocations to module description.
12760         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12761         here...
12762         * modules/wcsncmp (configure.ac): ... to here.
12763
12764 2011-05-22  Bruno Haible  <bruno@clisp.org>
12765
12766         wcsncat: Move AC_LIBOBJ invocations to module description.
12767         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12768         here...
12769         * modules/wcsncat (configure.ac): ... to here.
12770
12771 2011-05-22  Bruno Haible  <bruno@clisp.org>
12772
12773         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12774         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12775         from here...
12776         * modules/wcsncasecmp (configure.ac): ... to here.
12777
12778 2011-05-22  Bruno Haible  <bruno@clisp.org>
12779
12780         wcslen: Move AC_LIBOBJ invocations to module description.
12781         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12782         * modules/wcslen (configure.ac): ... to here.
12783
12784 2011-05-22  Bruno Haible  <bruno@clisp.org>
12785
12786         wcsdup: Move AC_LIBOBJ invocations to module description.
12787         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12788         * modules/wcsdup (configure.ac): ... to here.
12789
12790 2011-05-22  Bruno Haible  <bruno@clisp.org>
12791
12792         wcscspn: Move AC_LIBOBJ invocations to module description.
12793         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12794         here...
12795         * modules/wcscspn (configure.ac): ... to here.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         wcscpy: Move AC_LIBOBJ invocations to module description.
12800         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12801         * modules/wcscpy (configure.ac): ... to here.
12802
12803 2011-05-22  Bruno Haible  <bruno@clisp.org>
12804
12805         wcscoll: Move AC_LIBOBJ invocations to module description.
12806         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12807         here...
12808         * modules/wcscoll (configure.ac): ... to here.
12809
12810 2011-05-22  Bruno Haible  <bruno@clisp.org>
12811
12812         wcscmp: Move AC_LIBOBJ invocations to module description.
12813         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12814         * modules/wcscmp (configure.ac): ... to here.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         wcschr: Move AC_LIBOBJ invocations to module description.
12819         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12820         * modules/wcschr (configure.ac): ... to here.
12821
12822 2011-05-22  Bruno Haible  <bruno@clisp.org>
12823
12824         wcscat: Move AC_LIBOBJ invocations to module description.
12825         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12826         * modules/wcscat (configure.ac): ... to here.
12827
12828 2011-05-22  Bruno Haible  <bruno@clisp.org>
12829
12830         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12831         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12832         here...
12833         * modules/wcscasecmp (configure.ac): ... to here.
12834
12835 2011-05-22  Bruno Haible  <bruno@clisp.org>
12836
12837         wcrtomb: Move AC_LIBOBJ invocations to module description.
12838         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12839         invocations from here...
12840         * modules/wcrtomb (configure.ac): ... to here.
12841
12842 2011-05-22  Bruno Haible  <bruno@clisp.org>
12843
12844         wcpncpy: Move AC_LIBOBJ invocations to module description.
12845         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12846         here...
12847         * modules/wcpncpy (configure.ac): ... to here.
12848
12849 2011-05-22  Bruno Haible  <bruno@clisp.org>
12850
12851         wcpcpy: Move AC_LIBOBJ invocations to module description.
12852         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12853         * modules/wcpcpy (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         waitpid: Move AC_LIBOBJ invocations to module description.
12858         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12859         invocation from here...
12860         * modules/waitpid (configure.ac): ... to here.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         utimensat: Move AC_LIBOBJ invocations to module description.
12865         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12866         here...
12867         * modules/utimensat (configure.ac): ... to here.
12868
12869 2011-05-22  Bruno Haible  <bruno@clisp.org>
12870
12871         usleep: Move AC_LIBOBJ invocations to module description.
12872         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12873         here...
12874         * modules/usleep (configure.ac): ... to here.
12875
12876 2011-05-22  Bruno Haible  <bruno@clisp.org>
12877
12878         unlockpt: Move AC_LIBOBJ invocations to module description.
12879         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12880         gl_PREREQ_UNLOCKPT invocations from here...
12881         * modules/unlockpt (configure.ac): ... to here.
12882
12883 2011-05-22  Bruno Haible  <bruno@clisp.org>
12884
12885         unlink: Respect rules for use of AC_LIBOBJ.
12886         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12887         * modules/unlink (configure.ac): ... to here.
12888
12889 2011-05-22  Bruno Haible  <bruno@clisp.org>
12890
12891         uname: Move AC_LIBOBJ invocations to module description.
12892         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12894         here...
12895         * modules/uname (configure.ac): ... to here.
12896
12897 2011-05-22  Bruno Haible  <bruno@clisp.org>
12898
12899         ttyname_r: Move AC_LIBOBJ invocations to module description.
12900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12901         gl_PREREQ_TTYNAME_R invocations from here...
12902         * modules/ttyname_r (configure.ac): ... to here.
12903
12904 2011-05-22  Bruno Haible  <bruno@clisp.org>
12905
12906         tsearch: Move AC_LIBOBJ invocations to module description.
12907         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12908         invocations from here...
12909         * modules/tsearch (configure.ac): ... to here.
12910
12911 2011-05-22  Bruno Haible  <bruno@clisp.org>
12912
12913         towctrans: Move AC_LIBOBJ invocations to module description.
12914         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12915         AC_LIBOBJ invocation from here...
12916         * modules/towctrans (configure.ac): ... to here.
12917
12918 2011-05-22  Bruno Haible  <bruno@clisp.org>
12919
12920         tmpfile: Move AC_LIBOBJ invocations to module description.
12921         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12922         invocations from here...
12923         * modules/tmpfile (configure.ac): ... to here.
12924
12925 2011-05-22  Bruno Haible  <bruno@clisp.org>
12926
12927         times: Move AC_LIBOBJ invocations to module description.
12928         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12929         * modules/times (configure.ac): ... to here.
12930
12931 2011-05-22  Bruno Haible  <bruno@clisp.org>
12932
12933         time_r: Move AC_LIBOBJ invocations to module description.
12934         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12935         invocations from here...
12936         * modules/time_r (configure.ac): ... to here.
12937
12938 2011-05-22  Bruno Haible  <bruno@clisp.org>
12939
12940         timegm: Move AC_LIBOBJ invocations to module description.
12941         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12942         invocations from here...
12943         * modules/timegm (configure.ac): ... to here.
12944
12945 2011-05-22  Bruno Haible  <bruno@clisp.org>
12946
12947         tcgetsid: Move AC_LIBOBJ invocations to module description.
12948         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12949         and gl_PREREQ_TCGETSID invocations from here...
12950         * modules/tcgetsid (configure.ac): ... to here.
12951         (Depends-on): Update conditions.
12952
12953 2011-05-22  Bruno Haible  <bruno@clisp.org>
12954
12955         symlinkat: Move AC_LIBOBJ invocations to module description.
12956         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12957         here...
12958         * modules/symlinkat (configure.ac): ... to here.
12959
12960 2011-05-22  Bruno Haible  <bruno@clisp.org>
12961
12962         symlink: Move AC_LIBOBJ invocations to module description.
12963         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12964         here...
12965         * modules/symlink (configure.ac): ... to here.
12966
12967 2011-05-22  Bruno Haible  <bruno@clisp.org>
12968
12969         strverscmp: Move AC_LIBOBJ invocations to module description.
12970         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12971         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12972         from here...
12973         * modules/strverscmp (configure.ac): ... to here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         strtok_r: Move AC_LIBOBJ invocations to module description.
12978         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12979         and gl_PREREQ_STRTOK_R invocations from here...
12980         * modules/strtok_r (configure.ac): ... to here.
12981         (Depends-on): Update conditions.
12982
12983 2011-05-22  Bruno Haible  <bruno@clisp.org>
12984
12985         strtoumax: Move AC_LIBOBJ invocations to module description.
12986         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12988         from here...
12989         * modules/strtoumax (configure.ac): ... to here.
12990
12991 2011-05-22  Bruno Haible  <bruno@clisp.org>
12992
12993         strtoimax: Move AC_LIBOBJ invocations to module description.
12994         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12996         from here...
12997         * modules/strtoimax (configure.ac): ... to here.
12998
12999 2011-05-22  Bruno Haible  <bruno@clisp.org>
13000
13001         strtoull: Move AC_LIBOBJ invocations to module description.
13002         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13004         from here...
13005         * modules/strtoull (configure.ac): ... to here.
13006
13007 2011-05-22  Bruno Haible  <bruno@clisp.org>
13008
13009         strtoll: Move AC_LIBOBJ invocations to module description.
13010         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13012         here...
13013         * modules/strtoll (configure.ac): ... to here.
13014
13015 2011-05-22  Bruno Haible  <bruno@clisp.org>
13016
13017         strtoul: Move AC_LIBOBJ invocations to module description.
13018         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13019         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13020         * modules/strtoul (configure.ac): ... to here.
13021
13022 2011-05-22  Bruno Haible  <bruno@clisp.org>
13023
13024         strtol: Move AC_LIBOBJ invocations to module description.
13025         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13026         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13027         * modules/strtol (configure.ac): ... to here.
13028
13029 2011-05-22  Bruno Haible  <bruno@clisp.org>
13030
13031         strtod: Move AC_LIBOBJ invocations to module description.
13032         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13033         invocations from here...
13034         * modules/strtod (configure.ac): ... to here.
13035
13036 2011-05-22  Bruno Haible  <bruno@clisp.org>
13037
13038         strstr*: Move AC_LIBOBJ invocations to module description.
13039         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13040         invocations from here...
13041         * modules/strstr-simple (configure.ac): ... to here.
13042         * modules/strstr (configure.ac): ... and here.
13043
13044 2011-05-22  Bruno Haible  <bruno@clisp.org>
13045
13046         strsignal: Move AC_LIBOBJ invocations to module description.
13047         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13048         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13049         * modules/strsignal (configure.ac): ... to here.
13050         (Depends-on): Update conditions.
13051
13052 2011-05-22  Bruno Haible  <bruno@clisp.org>
13053
13054         strsep: Move AC_LIBOBJ invocations to module description.
13055         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13057         here...
13058         * modules/strsep (configure.ac): ... to here.
13059
13060 2011-05-22  Bruno Haible  <bruno@clisp.org>
13061
13062         strptime: Move AC_LIBOBJ invocations to module description.
13063         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13064         gl_PREREQ_STRPTIME invocations from here...
13065         * modules/strptime (configure.ac): ... to here.
13066
13067 2011-05-22  Bruno Haible  <bruno@clisp.org>
13068
13069         strpbrk: Move AC_LIBOBJ invocations to module description.
13070         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13072         here...
13073         * modules/strpbrk (configure.ac): ... to here.
13074
13075 2011-05-22  Bruno Haible  <bruno@clisp.org>
13076
13077         strnlen: Move AC_LIBOBJ invocations to module description.
13078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13079         invocations from here...
13080         * modules/strnlen (configure.ac): ... to here.
13081
13082 2011-05-22  Bruno Haible  <bruno@clisp.org>
13083
13084         strndup: Move AC_LIBOBJ invocations to module description.
13085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13086         invocations from here...
13087         * modules/strndup (configure.ac): ... to here.
13088         (Depends-on): Update conditions.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         strncat: Move AC_LIBOBJ invocations to module description.
13093         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13094         invocations from here...
13095         * modules/strncat (configure.ac): ... to here.
13096
13097 2011-05-22  Bruno Haible  <bruno@clisp.org>
13098
13099         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13100         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13101         invocations from here...
13102         * modules/strdup (configure.ac): ... to here.
13103         * modules/strdup-posix (configure.ac): ... and here.
13104
13105 2011-05-22  Bruno Haible  <bruno@clisp.org>
13106
13107         strcspn: Move AC_LIBOBJ invocations to module description.
13108         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13110         here...
13111         * modules/strcspn (configure.ac): ... to here.
13112
13113 2011-05-22  Bruno Haible  <bruno@clisp.org>
13114
13115         strchrnul: Move AC_LIBOBJ invocations to module description.
13116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13117         gl_PREREQ_STRCHRNUL invocations from here...
13118         * modules/strchrnul (configure.ac): ... to here.
13119
13120 2011-05-22  Bruno Haible  <bruno@clisp.org>
13121
13122         strcasestr*: Move AC_LIBOBJ invocations to module description.
13123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13124         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13125         * modules/strcasestr-simple (configure.ac): ... to here.
13126         * modules/strcasestr (configure.ac): ... and here.
13127
13128 2011-05-22  Bruno Haible  <bruno@clisp.org>
13129
13130         strcase: Move AC_LIBOBJ invocations to module description.
13131         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13132         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13133         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13134         gl_PREREQ_STRNCASECMP invocations from here...
13135         * modules/strcase (configure.ac): ... to here.
13136
13137 2011-05-22  Bruno Haible  <bruno@clisp.org>
13138
13139         stpncpy: Move AC_LIBOBJ invocations to module description.
13140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13141         here...
13142         * modules/stpncpy (configure.ac): ... to here.
13143
13144 2011-05-22  Bruno Haible  <bruno@clisp.org>
13145
13146         stpcpy: Move AC_LIBOBJ invocations to module description.
13147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13148         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13149         here...
13150         * modules/stpcpy (configure.ac): ... to here.
13151
13152 2011-05-21  Bruno Haible  <bruno@clisp.org>
13153
13154         stat: Move AC_LIBOBJ invocations to module description.
13155         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13156         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13157         here...
13158         * modules/stat (configure.ac): ... to here.
13159
13160 2011-05-21  Bruno Haible  <bruno@clisp.org>
13161
13162         sleep: Move AC_LIBOBJ invocations to module description.
13163         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13164         * modules/sleep (configure.ac): ... to here.
13165
13166 2011-05-21  Bruno Haible  <bruno@clisp.org>
13167
13168         signbit: Move AC_LIBOBJ invocations to module description.
13169         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13170         * modules/signbit (configure.ac): ... to here.
13171
13172 2011-05-21  Bruno Haible  <bruno@clisp.org>
13173
13174         sigprocmask: Move AC_LIBOBJ invocations to module description.
13175         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13176         gl_PREREQ_SIGPROMASK invocations from here...
13177         * modules/sigprocmask (configure.ac): ... to here.
13178
13179 2011-05-21  Bruno Haible  <bruno@clisp.org>
13180
13181         sigaction: Move AC_LIBOBJ invocations to module description.
13182         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13183         gl_PREREQ_SIGACTION invocations from here...
13184         * modules/sigaction (configure.ac): ... to here.
13185
13186 2011-05-21  Bruno Haible  <bruno@clisp.org>
13187
13188         sig2str: Move AC_LIBOBJ invocations to module description.
13189         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13191         here...
13192         * modules/sig2str (configure.ac): ... to here.
13193
13194 2011-05-21  Bruno Haible  <bruno@clisp.org>
13195
13196         setlocale: Move AC_LIBOBJ invocations to module description.
13197         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13198         gl_PREREQ_SETLOCALE invocations from here...
13199         * modules/setlocale (configure.ac): ... to here.
13200
13201 2011-05-21  Bruno Haible  <bruno@clisp.org>
13202
13203         unsetenv: Move AC_LIBOBJ invocations to module description.
13204         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13205         and gl_PREREQ_UNSETENV invocations from here...
13206         * modules/unsetenv (configure.ac): ... to here.
13207         (Depends-on): Update.
13208
13209 2011-05-21  Bruno Haible  <bruno@clisp.org>
13210
13211         setenv: Move AC_LIBOBJ invocations to module description.
13212         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13213         here...
13214         * modules/setenv (configure.ac): ... to here.
13215
13216 2011-05-21  Bruno Haible  <bruno@clisp.org>
13217
13218         selinux-h: Move AC_LIBOBJ invocations to module description.
13219         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13220         AC_LIBOBJ invocation from here...
13221         * modules/selinux-h (configure.ac): ... to here.
13222
13223 2011-05-21  Bruno Haible  <bruno@clisp.org>
13224
13225         select: Respect rules for use of AC_LIBOBJ.
13226         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13227         here...
13228         * modules/select (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         scandir: Move AC_LIBOBJ invocations to module description.
13233         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13234         invocations from here...
13235         * modules/scandir (configure.ac): ... to here.
13236
13237 2011-05-21  Bruno Haible  <bruno@clisp.org>
13238
13239         rpmatch: Move AC_LIBOBJ invocations to module description.
13240         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13242         here...
13243         * modules/rpmatch (configure.ac): ... to here.
13244
13245 2011-05-21  Bruno Haible  <bruno@clisp.org>
13246
13247         rmdir: Respect rules for use of AC_LIBOBJ.
13248         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13249         * modules/rmdir (configure.ac): ... to here.
13250
13251 2011-05-21  Bruno Haible  <bruno@clisp.org>
13252
13253         renameat: Move AC_LIBOBJ invocations to module description.
13254         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13255         here...
13256         * modules/renameat (configure.ac): ... to here.
13257
13258 2011-05-21  Bruno Haible  <bruno@clisp.org>
13259
13260         rename: Respect rules for use of AC_LIBOBJ.
13261         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13262         here...
13263         * modules/rename (configure.ac): ... to here.
13264
13265 2011-05-21  Bruno Haible  <bruno@clisp.org>
13266
13267         remove: Move AC_LIBOBJ invocations to module description.
13268         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13269         here...
13270         * modules/remove (configure.ac): ... to here.
13271
13272 2011-05-21  Bruno Haible  <bruno@clisp.org>
13273
13274         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13275         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13276         macro.
13277         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13278         * modules/relocatable-lib (configure.ac): ... to here.
13279         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13280         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13281
13282 2011-05-21  Bruno Haible  <bruno@clisp.org>
13283
13284         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13285         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13286         here...
13287         * modules/relocatable-prog (configure.ac): ... to here.
13288
13289 2011-05-21  Bruno Haible  <bruno@clisp.org>
13290
13291         regex: Move AC_LIBOBJ invocations to module description.
13292         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13293         invocations from here...
13294         * modules/regex (configure.ac): ... to here.
13295
13296 2011-05-21  Bruno Haible  <bruno@clisp.org>
13297
13298         realloc-*: Move AC_LIBOBJ invocations to module description.
13299         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13300         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13301         AC_LIBOBJ invocations from here...
13302         * modules/realloc-gnu (configure.ac): ... to here.
13303         * modules/realloc-posix (configure.ac): ... and here.
13304
13305 2011-05-21  Bruno Haible  <bruno@clisp.org>
13306
13307         readutmp: Move AC_LIBOBJ invocations to module description.
13308         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13309         * modules/readutmp (configure.ac): ... to here.
13310
13311 2011-05-21  Bruno Haible  <bruno@clisp.org>
13312
13313         readlinkat: Move AC_LIBOBJ invocations to module description.
13314         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13315         here...
13316         * modules/readlinkat (configure.ac): ... to here.
13317
13318 2011-05-21  Bruno Haible  <bruno@clisp.org>
13319
13320         readlink: Move AC_LIBOBJ invocations to module description.
13321         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13322         gl_PREREQ_READLINK invocations from here...
13323         * modules/readlink (configure.ac): ... to here.
13324
13325 2011-05-21  Bruno Haible  <bruno@clisp.org>
13326
13327         readline: Move AC_LIBOBJ invocations to module description.
13328         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13329         gl_PREREQ_READLINE invocations from here...
13330         * modules/readline (configure.ac): ... to here.
13331
13332 2011-05-21  Bruno Haible  <bruno@clisp.org>
13333
13334         read: Move AC_LIBOBJ invocations to module description.
13335         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13336         * modules/read (configure.ac): ... to here.
13337
13338 2011-05-21  Bruno Haible  <bruno@clisp.org>
13339
13340         rawmemchr: Move AC_LIBOBJ invocations to module description.
13341         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13343         from here...
13344         * modules/rawmemchr (configure.ac): ... to here.
13345
13346 2011-05-21  Bruno Haible  <bruno@clisp.org>
13347
13348         random_r: Move AC_LIBOBJ invocations to module description.
13349         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13350         gl_PREREQ_RANDOM_R invocations from here...
13351         * modules/random_r (configure.ac): ... to here.
13352
13353 2011-05-21  Bruno Haible  <bruno@clisp.org>
13354
13355         pwrite: Move AC_LIBOBJ invocations to module description.
13356         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13357         * modules/pwrite (configure.ac): ... to here.
13358
13359 2011-05-21  Bruno Haible  <bruno@clisp.org>
13360
13361         putenv: Move AC_LIBOBJ invocations to module description.
13362         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13363         * modules/putenv (configure.ac): ... to here.
13364
13365 2011-05-21  Bruno Haible  <bruno@clisp.org>
13366
13367         login_tty: Move AC_LIBOBJ invocations to module description.
13368         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13369         * modules/login_tty (configure.ac): ... to here.
13370
13371 2011-05-21  Bruno Haible  <bruno@clisp.org>
13372
13373         openpty: Move AC_LIBOBJ invocations to module description.
13374         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13375         * modules/openpty (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         forkpty: Move AC_LIBOBJ invocations to module description.
13380         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13381         * modules/forkpty (configure.ac): ... to here.
13382
13383 2011-05-21  Bruno Haible  <bruno@clisp.org>
13384
13385         ptsname: Move AC_LIBOBJ invocations to module description.
13386         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13387         invocations from here...
13388         * modules/ptsname (configure.ac): ... to here.
13389
13390 2011-05-21  Bruno Haible  <bruno@clisp.org>
13391
13392         pread: Move AC_LIBOBJ invocations to module description.
13393         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13394         * modules/pread (configure.ac): ... to here.
13395
13396 2011-05-21  Bruno Haible  <bruno@clisp.org>
13397
13398         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13399         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13400         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13401         * modules/posix_spawn (configure.ac): ... to here.
13402         * modules/posix_spawnp (configure.ac): ... and here.
13403
13404 2011-05-21  Bruno Haible  <bruno@clisp.org>
13405
13406         popen: Move AC_LIBOBJ invocations to module description.
13407         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13408         invocations from here...
13409         * modules/popen (configure.ac): ... to here.
13410
13411 2011-05-21  Bruno Haible  <bruno@clisp.org>
13412
13413         poll: Move AC_LIBOBJ invocations to module description.
13414         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13415         invocations from here...
13416         * modules/poll (configure.ac): ... to here.
13417
13418 2011-05-21  Bruno Haible  <bruno@clisp.org>
13419
13420         pipe-posix: Move AC_LIBOBJ invocations to module description.
13421         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13422         * modules/pipe-posix (configure.ac): ... to here.
13423
13424 2011-05-21  Bruno Haible  <bruno@clisp.org>
13425
13426         openat: Respect rules for use of AC_LIBOBJ.
13427         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13428         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13429         * modules/openat (configure.ac): ... to here.
13430
13431 2011-05-21  Bruno Haible  <bruno@clisp.org>
13432
13433         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13434         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13435         invocation from here...
13436         * modules/obstack-printf (configure.ac): ... to here.
13437         * modules/obstack-printf-posix (configure.ac): ... and here.
13438
13439 2011-05-21  Bruno Haible  <bruno@clisp.org>
13440
13441         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13442         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13443         from here...
13444         * modules/nl_langinfo (configure.ac): ... to here.
13445
13446 2011-05-21  Bruno Haible  <bruno@clisp.org>
13447
13448         nanosleep: Move AC_LIBOBJ invocations to module description.
13449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13450         gl_PREREQ_NANOSLEEP invocations from here...
13451         * modules/nanosleep (configure.ac): ... to here.
13452
13453 2011-05-21  Bruno Haible  <bruno@clisp.org>
13454
13455         mountlist: Move AC_LIBOBJ invocations to module description.
13456         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13457         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13458         * modules/mountlist (configure.ac): ... to here.
13459
13460 2011-05-21  Bruno Haible  <bruno@clisp.org>
13461
13462         mktime: Respect rules for use of AC_LIBOBJ.
13463         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13464         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13465         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13466         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13467         * modules/mktime (configure.ac): ... to here.
13468         * modules/mktime-internal (configure.ac): ... and here.
13469         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13470
13471 2011-05-21  Bruno Haible  <bruno@clisp.org>
13472
13473         mkstemps: Move AC_LIBOBJ invocations to module description.
13474         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13475         here...
13476         * modules/mkstemps (configure.ac): ... to here.
13477
13478 2011-05-21  Bruno Haible  <bruno@clisp.org>
13479
13480         mkstemp: Move AC_LIBOBJ invocations to module description.
13481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13482         gl_PREREQ_MKSTEMP invocations from here...
13483         * modules/mkstemp (configure.ac): ... to here.
13484
13485 2011-05-21  Bruno Haible  <bruno@clisp.org>
13486
13487         mkostemps: Move AC_LIBOBJ invocations to module description.
13488         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13489         here...
13490         * modules/mkostemps (configure.ac): ... to here.
13491
13492 2011-05-21  Bruno Haible  <bruno@clisp.org>
13493
13494         mkostemp: Move AC_LIBOBJ invocations to module description.
13495         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13496         gl_PREREQ_MKOSTEMP invocations from here...
13497         * modules/mkostemp (configure.ac): ... to here.
13498
13499 2011-05-21  Bruno Haible  <bruno@clisp.org>
13500
13501         mknod: Move AC_LIBOBJ invocations to module description.
13502         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13503         * modules/mknod (configure.ac): ... to here.
13504
13505 2011-05-21  Bruno Haible  <bruno@clisp.org>
13506
13507         mkfifoat: Move AC_LIBOBJ invocations to module description.
13508         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13509         here...
13510         * modules/mkfifoat (configure.ac): ... to here.
13511
13512 2011-05-21  Bruno Haible  <bruno@clisp.org>
13513
13514         mkfifo: Respect rules for use of AC_LIBOBJ.
13515         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13516         here...
13517         * modules/mkfifo (configure.ac): ... to here.
13518
13519 2011-05-21  Bruno Haible  <bruno@clisp.org>
13520
13521         mkdtemp: Move AC_LIBOBJ invocations to module description.
13522         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13523         invocations from here...
13524         * modules/mkdtemp (configure.ac): ... to here.
13525
13526 2011-05-21  Bruno Haible  <bruno@clisp.org>
13527
13528         mkdir: Move AC_LIBOBJ invocations to module description.
13529         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13530         * modules/mkdir (configure.ac): ... to here.
13531
13532 2011-05-21  Bruno Haible  <bruno@clisp.org>
13533
13534         memset: Move AC_LIBOBJ invocations to module description.
13535         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13537         here...
13538         * modules/memset (configure.ac): ... to here.
13539
13540 2011-05-21  Bruno Haible  <bruno@clisp.org>
13541
13542         memrchr: Move AC_LIBOBJ invocations to module description.
13543         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13545         here...
13546         * modules/memrchr (configure.ac): ... to here.
13547
13548 2011-05-21  Bruno Haible  <bruno@clisp.org>
13549
13550         mempcpy: Move AC_LIBOBJ invocations to module description.
13551         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13553         here...
13554         * modules/mempcpy (configure.ac): ... to here.
13555
13556 2011-05-21  Bruno Haible  <bruno@clisp.org>
13557
13558         memmove: Move AC_LIBOBJ invocations to module description.
13559         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13561         here...
13562         * modules/memmove (configure.ac): ... to here.
13563
13564 2011-05-21  Bruno Haible  <bruno@clisp.org>
13565
13566         memmem*: Move AC_LIBOBJ invocations to module description.
13567         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13568         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13569         here...
13570         (gl_FUNC_MEMMEM): ... and here...
13571         * modules/memmem-simple (configure.ac): ... to here.
13572         * modules/memmem (configure.ac): ... and here.
13573
13574 2011-05-21  Bruno Haible  <bruno@clisp.org>
13575
13576         memcpy: Move AC_LIBOBJ invocations to module description.
13577         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13579         here...
13580         * modules/memcpy (configure.ac): ... to here.
13581
13582 2011-05-21  Bruno Haible  <bruno@clisp.org>
13583
13584         memcmp: Simplify autoconf macro.
13585         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13586         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13587         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13588
13589 2011-05-21  Bruno Haible  <bruno@clisp.org>
13590
13591         memcmp: Move AC_LIBOBJ invocations to module description.
13592         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13593         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13594         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13595         * modules/memcmp (configure.ac): ... to here.
13596         (Depends-on): Update conditions.
13597
13598 2011-05-21  Bruno Haible  <bruno@clisp.org>
13599
13600         memchr: Respect rules for use of AC_LIBOBJ.
13601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13602         invocations from here...
13603         * modules/memchr (configure.ac): ... to here.
13604
13605 2011-05-21  Bruno Haible  <bruno@clisp.org>
13606
13607         mbtowc: Move AC_LIBOBJ invocations to module description.
13608         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13609         invocations from here...
13610         * modules/mbtowc (configure.ac): ... to here.
13611
13612 2011-05-21  Bruno Haible  <bruno@clisp.org>
13613
13614         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13615         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13616         gl_PREREQ_MBSRTOWCS invocations from here...
13617         * modules/mbsrtowcs (configure.ac): ... to here.
13618
13619 2011-05-21  Bruno Haible  <bruno@clisp.org>
13620
13621         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13622         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13623         gl_PREREQ_MBSNRTOWCS invocations from here...
13624         * modules/mbsnrtowcs (configure.ac): ... to here.
13625
13626 2011-05-21  Bruno Haible  <bruno@clisp.org>
13627
13628         mbsinit: Move AC_LIBOBJ invocations to module description.
13629         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13630         invocations from here...
13631         * modules/mbsinit (configure.ac): ... to here.
13632
13633 2011-05-21  Bruno Haible  <bruno@clisp.org>
13634
13635         mbrlen: Move AC_LIBOBJ invocations to module description.
13636         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13637         invocations from here...
13638         * modules/mbrlen (configure.ac): ... to here.
13639
13640 2011-05-21  Bruno Haible  <bruno@clisp.org>
13641
13642         mbrtowc: Respect rules for use of AC_LIBOBJ.
13643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13644         invocations from here...
13645         * modules/mbrtowc (configure.ac): ... to here.
13646
13647 2011-05-21  Bruno Haible  <bruno@clisp.org>
13648
13649         malloc-*: Move AC_LIBOBJ invocations to module description.
13650         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13651         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13652         AC_LIBOBJ invocations from here...
13653         * modules/malloc-gnu (configure.ac): ... to here.
13654         * modules/malloc-posix (configure.ac): ... and here.
13655
13656 2011-05-21  Bruno Haible  <bruno@clisp.org>
13657
13658         lstat, openat: Respect rules for use of AC_LIBOBJ.
13659         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13661         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13662         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13663         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13664         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13665         here.
13666         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13667
13668 2011-05-21  Bruno Haible  <bruno@clisp.org>
13669
13670         lseek: Move AC_LIBOBJ invocations to module description.
13671         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13672         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13673         * modules/lseek (configure.ac): ... to here.
13674
13675 2011-05-21  Bruno Haible  <bruno@clisp.org>
13676
13677         linkat: Move AC_LIBOBJ invocations to module description.
13678         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13679         here...
13680         * modules/linkat (configure.ac): ... to here.
13681
13682 2011-05-21  Bruno Haible  <bruno@clisp.org>
13683
13684         link: Respect rules for use of AC_LIBOBJ.
13685         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13686         * modules/link (configure.ac): ... to here.
13687
13688 2011-05-21  Bruno Haible  <bruno@clisp.org>
13689
13690         lchown: Move AC_LIBOBJ invocations to module description.
13691         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13692         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13693         * modules/lchown (configure.ac): ... to here.
13694
13695 2011-05-21  Bruno Haible  <bruno@clisp.org>
13696
13697         iswctype: Move AC_LIBOBJ invocations to module description.
13698         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13699         here...
13700         * modules/iswctype (configure.ac): ... to here.
13701
13702 2011-05-21  Bruno Haible  <bruno@clisp.org>
13703
13704         iswblank: Move AC_LIBOBJ invocations to module description.
13705         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13706         here...
13707         * modules/iswblank (configure.ac): ... to here.
13708
13709 2011-05-21  Bruno Haible  <bruno@clisp.org>
13710
13711         atanl: Move AC_LIBOBJ invocations to module description.
13712         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13713         * modules/atanl (configure.ac): ... to here.
13714
13715 2011-05-21  Bruno Haible  <bruno@clisp.org>
13716
13717         acosl: Move AC_LIBOBJ invocations to module description.
13718         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13719         * modules/acosl (configure.ac): ... to here.
13720
13721 2011-05-21  Bruno Haible  <bruno@clisp.org>
13722
13723         asinl: Respect rules for use of AC_LIBOBJ.
13724         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13725         * modules/asinl (configure.ac): ... to here.
13726
13727 2011-05-21  Bruno Haible  <bruno@clisp.org>
13728
13729         tanl: Move AC_LIBOBJ invocations to module description.
13730         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13731         * modules/tanl (configure.ac): ... to here.
13732
13733 2011-05-21  Bruno Haible  <bruno@clisp.org>
13734
13735         cosl: Move AC_LIBOBJ invocations to module description.
13736         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13737         * modules/cosl (configure.ac): ... to here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         sinl: Move AC_LIBOBJ invocations to module description.
13742         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13743         * modules/sinl (configure.ac): ... to here.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         logl: Move AC_LIBOBJ invocations to module description.
13748         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13749         * modules/logl (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         expl: Move AC_LIBOBJ invocations to module description.
13754         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13755         * modules/expl (configure.ac): ... to here.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         roundl: Move AC_LIBOBJ invocations to module description.
13760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13761         * modules/roundl (configure.ac): ... to here.
13762
13763 2011-05-21  Bruno Haible  <bruno@clisp.org>
13764
13765         round: Move AC_LIBOBJ invocations to module description.
13766         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13767         * modules/round (configure.ac): ... to here.
13768
13769 2011-05-21  Bruno Haible  <bruno@clisp.org>
13770
13771         roundf: Move AC_LIBOBJ invocations to module description.
13772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13773         * modules/roundf (configure.ac): ... to here.
13774
13775 2011-05-21  Bruno Haible  <bruno@clisp.org>
13776
13777         truncl: Move AC_LIBOBJ invocations to module description.
13778         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13779         * modules/truncl (configure.ac): ... to here.
13780
13781 2011-05-21  Bruno Haible  <bruno@clisp.org>
13782
13783         trunc: Move AC_LIBOBJ invocations to module description.
13784         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13785         * modules/trunc (configure.ac): ... to here.
13786
13787 2011-05-21  Bruno Haible  <bruno@clisp.org>
13788
13789         truncf: Move AC_LIBOBJ invocations to module description.
13790         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13791         * modules/truncf (configure.ac): ... to here.
13792
13793 2011-05-21  Bruno Haible  <bruno@clisp.org>
13794
13795         ceill: Move AC_LIBOBJ invocations to module description.
13796         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13797         * modules/ceill (configure.ac): ... to here.
13798
13799 2011-05-21  Bruno Haible  <bruno@clisp.org>
13800
13801         ceil: Move AC_LIBOBJ invocations to module description.
13802         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13803         * modules/ceil (configure.ac): ... to here.
13804
13805 2011-05-21  Bruno Haible  <bruno@clisp.org>
13806
13807         ceilf: Move AC_LIBOBJ invocations to module description.
13808         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13809         * modules/ceilf (configure.ac): ... to here.
13810
13811 2011-05-21  Bruno Haible  <bruno@clisp.org>
13812
13813         floorl: Respect rules for use of AC_LIBOBJ.
13814         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13815         * modules/floorl (configure.ac): ... to here.
13816
13817 2011-05-21  Bruno Haible  <bruno@clisp.org>
13818
13819         floor: Respect rules for use of AC_LIBOBJ.
13820         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13821         * modules/floor (configure.ac): ... to here.
13822
13823 2011-05-21  Bruno Haible  <bruno@clisp.org>
13824
13825         floorf: Move AC_LIBOBJ invocations to module description.
13826         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13827         * modules/floorf (configure.ac): ... to here.
13828
13829 2011-05-20  Bruno Haible  <bruno@clisp.org>
13830
13831         sqrtl: Respect rules for use of AC_LIBOBJ.
13832         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13833         * modules/sqrtl (configure.ac): ... to here.
13834
13835 2011-05-20  Bruno Haible  <bruno@clisp.org>
13836
13837         ldexpl: Respect rules for use of AC_LIBOBJ.
13838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13839         * modules/ldexpl (configure.ac): ... to here.
13840
13841 2011-05-20  Bruno Haible  <bruno@clisp.org>
13842
13843         frexpl*: Respect rules for use of AC_LIBOBJ.
13844         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13845         invocation from here...
13846         * modules/frexpl (configure.ac): ... to here.
13847         * modules/frexpl-nolibm (configure.ac): ... and here.
13848
13849 2011-05-20  Bruno Haible  <bruno@clisp.org>
13850
13851         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13852         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13853         invocation from here...
13854         * modules/frexp (configure.ac): ... to here.
13855         * modules/frexp-nolibm (configure.ac): ... and here.
13856
13857 2011-05-20  Bruno Haible  <bruno@clisp.org>
13858
13859         isnan: Respect rules for use of AC_LIBOBJ.
13860         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13861         invocations here.
13862         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13863         REPLACE_ISNAN.
13864         * modules/isnand (configure.ac): Likewise.
13865         * modules/isnanl (configure.ac): Likewise.
13866
13867 2011-05-20  Bruno Haible  <bruno@clisp.org>
13868
13869         isnanl*: Respect rules for use of AC_LIBOBJ.
13870         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13871         invocation from here...
13872         * modules/isnanl (configure.ac): ... to here.
13873         * modules/isnanl-nolibm (configure.ac): ... and here.
13874
13875 2011-05-20  Bruno Haible  <bruno@clisp.org>
13876
13877         isnand*: Move AC_LIBOBJ invocations to module description.
13878         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13879         invocation from here...
13880         * modules/isnand (configure.ac): ... to here.
13881         * modules/isnand-nolibm (configure.ac): ... and here.
13882
13883 2011-05-20  Bruno Haible  <bruno@clisp.org>
13884
13885         isnanf*: Move AC_LIBOBJ invocations to module description.
13886         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13887         invocation from here...
13888         * modules/isnanf (configure.ac): ... to here.
13889         * modules/isnanf-nolibm (configure.ac): ... and here.
13890
13891 2011-05-20  Bruno Haible  <bruno@clisp.org>
13892
13893         isnan*: Separate the AC_LIBOBJ invocations.
13894         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13895         AC_LIBOBJ invocation.
13896         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13897         here.
13898         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13899         AC_LIBOBJ invocation.
13900         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13901         here.
13902         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13903         AC_LIBOBJ invocation.
13904         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13905         here.
13906         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13907
13908 2011-05-08  Bruno Haible  <bruno@clisp.org>
13909
13910         isinf: Move AC_LIBOBJ invocations to module description.
13911         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13912         * modules/isinf (configure.ac): ... to here.
13913
13914 2011-05-08  Bruno Haible  <bruno@clisp.org>
13915
13916         isfinite: Move AC_LIBOBJ invocations to module description.
13917         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13918         * modules/isfinite (configure.ac): ... to here.
13919
13920 2011-05-08  Bruno Haible  <bruno@clisp.org>
13921
13922         isblank: Move AC_LIBOBJ invocations to module description.
13923         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13924         here...
13925         * modules/isblank (configure.ac): ... to here.
13926
13927 2011-05-08  Bruno Haible  <bruno@clisp.org>
13928
13929         isapipe: Move AC_LIBOBJ invocations to module description.
13930         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13931         gl_PREREQ_ISAPIPE invocations from here...
13932         * modules/isapipe (configure.ac): ... to here.
13933         (Depends-on): Update condition.
13934
13935 2011-05-08  Bruno Haible  <bruno@clisp.org>
13936
13937         ioctl: Move AC_LIBOBJ invocations to module description.
13938         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13939         invocations from here...
13940         * modules/ioctl (configure.ac): ... to here.
13941         (Depends-on): Update condition.
13942
13943 2011-05-08  Bruno Haible  <bruno@clisp.org>
13944
13945         imaxdiv: Move AC_LIBOBJ invocations to module description.
13946         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13947         invocations from here...
13948         * modules/imaxdiv (configure.ac): ... to here.
13949
13950 2011-05-08  Bruno Haible  <bruno@clisp.org>
13951
13952         imaxabs: Move AC_LIBOBJ invocations to module description.
13953         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13954         invocations from here...
13955         * modules/imaxabs (configure.ac): ... to here.
13956
13957 2011-05-08  Bruno Haible  <bruno@clisp.org>
13958
13959         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13961         AC_LIBOBJ invocations from here...
13962         * modules/getaddrinfo (configure.ac): ... to here.
13963         (Depends-on): Add conditions.
13964
13965 2011-05-08  Bruno Haible  <bruno@clisp.org>
13966
13967         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13968         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13969         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13970         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13971         (gl_PREREQ_INET_PTON): ... from here.
13972         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13973         gl_PREREQ_INET_PTON here.
13974         (Depends-on): Update condition.
13975
13976 2011-05-08  Bruno Haible  <bruno@clisp.org>
13977
13978         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13979         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13980         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13981         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13982         (gl_PREREQ_INET_NTOP): ... from here.
13983         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13984         gl_PREREQ_INET_NTOP here.
13985         (Depends-on): Update condition.
13986
13987 2011-05-08  Bruno Haible  <bruno@clisp.org>
13988
13989         iconv_open: Move AC_LIBOBJ invocations to module description.
13990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13991         AC_LIBOBJ invocations from here...
13992         * modules/iconv_open (configure.ac): ... to here.
13993
13994 2011-05-08  Bruno Haible  <bruno@clisp.org>
13995
13996         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13997         If module 'iconv_open' is among the main modules and module
13998         'iconv_open-utf' is among the tests dependencies, then
13999         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14000         return the special iconv_t values. Therefore iconv() and iconv_close()
14001         must support these special iconv_t values, already in lib, not only in
14002         tests.
14003         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14005         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14006         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14007         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14008         (Depends-on): Add the dependencies of iconv_open-utf.
14009         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14010         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14011         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14012
14013 2011-05-08  Bruno Haible  <bruno@clisp.org>
14014
14015         group-member: Move AC_LIBOBJ invocations to module description.
14016         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14017         gl_PREREQ_GROUP_MEMBER invocations from here...
14018         * modules/group-member (configure.ac): ... to here.
14019
14020 2011-05-08  Bruno Haible  <bruno@clisp.org>
14021
14022         grantpt: Move AC_LIBOBJ invocations to module description.
14023         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14024         invocations from here...
14025         * modules/grantpt (configure.ac): ... to here.
14026
14027 2011-05-08  Bruno Haible  <bruno@clisp.org>
14028
14029         glob: Move AC_LIBOBJ invocations to module description.
14030         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14031         from here...
14032         * modules/glob (configure.ac): ... to here.
14033
14034 2011-05-08  Bruno Haible  <bruno@clisp.org>
14035
14036         getusershell: Move AC_LIBOBJ invocations to module description.
14037         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14038         Move AC_LIBOBJ invocation from here...
14039         * modules/getusershell (configure.ac): ... to here.
14040         (Depends-on): Update condition.
14041
14042 2011-05-08  Bruno Haible  <bruno@clisp.org>
14043
14044         gettimeofday: Move AC_LIBOBJ invocations to module description.
14045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14046         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14047         gl_PREREQ_GETTIMEOFDAY invocations from here...
14048         * modules/gettimeofday (configure.ac): ... to here.
14049
14050 2011-05-08  Bruno Haible  <bruno@clisp.org>
14051
14052         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14053         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14054         just gl_FUNC_TZSET.
14055         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14056         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14057         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14058         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14059
14060 2011-05-08  Bruno Haible  <bruno@clisp.org>
14061
14062         getsubopt: Move AC_LIBOBJ invocations to module description.
14063         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14064         gl_PREREQ_GETSUBOPT invocations from here...
14065         * modules/getsubopt (configure.ac): ... to here.
14066
14067 2011-05-08  Bruno Haible  <bruno@clisp.org>
14068
14069         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14070         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14071         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14072         * modules/getpass-gnu (configure.ac): ... to here.
14073
14074 2011-05-08  Bruno Haible  <bruno@clisp.org>
14075
14076         getpass: Move AC_LIBOBJ invocations to module description.
14077         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14078         gl_PREREQ_GETPASS invocations from here...
14079         * modules/getpass (configure.ac): ... to here.
14080
14081 2011-05-08  Bruno Haible  <bruno@clisp.org>
14082
14083         getpagesize: Move AC_LIBOBJ invocations to module description.
14084         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14085         from here...
14086         * modules/getpagesize (configure.ac): ... to here.
14087
14088 2011-05-08  Bruno Haible  <bruno@clisp.org>
14089
14090         getopt: Move AC_LIBOBJ invocations to module description.
14091         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14092         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14093         invocations from here...
14094         * modules/getopt-gnu (configure.ac): ... to here.
14095         * modules/getopt-posix (configure.ac): ... and here.
14096         (Depends-on): Update condition.
14097
14098 2011-05-08  Bruno Haible  <bruno@clisp.org>
14099
14100         getopt, argp: Respect rules for use of AC_LIBOBJ.
14101         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14102         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14103         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14104         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14105
14106 2011-05-08  Bruno Haible  <bruno@clisp.org>
14107
14108         getlogin_r: Move AC_LIBOBJ invocations to module description.
14109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14110         gl_PREREQ_GETLOGIN_R invocations from here...
14111         * modules/getlogin_r (configure.ac): ... to here.
14112
14113 2011-05-08  Bruno Haible  <bruno@clisp.org>
14114
14115         getlogin: Move AC_LIBOBJ invocations to module description.
14116         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14117         here...
14118         * modules/getlogin (configure.ac): ... to here.
14119
14120 2011-05-08  Bruno Haible  <bruno@clisp.org>
14121
14122         getloadavg: Move AC_LIBOBJ invocations to module description.
14123         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14124         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14125         * modules/getloadavg (configure.ac): ... to here.
14126
14127 2011-05-08  Bruno Haible  <bruno@clisp.org>
14128
14129         gethrxtime: Move AC_LIBOBJ invocations to module description.
14130         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14131         LIB_GETHRXTIME from here...
14132         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14133         invocations from here...
14134         * modules/gethrxtime (configure.ac): ... to here.
14135
14136 2011-05-08  Bruno Haible  <bruno@clisp.org>
14137
14138         gethostname: Move AC_LIBOBJ invocations to module description.
14139         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14140         gl_PREREQ_GETHOSTNAME invocations from here...
14141         * modules/gethostname (configure.ac): ... to here.
14142
14143 2011-05-08  Bruno Haible  <bruno@clisp.org>
14144
14145         getgroups: Move AC_LIBOBJ invocations to module description.
14146         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14147         here...
14148         * modules/getgroups (configure.ac): ... to here.
14149
14150 2011-05-08  Bruno Haible  <bruno@clisp.org>
14151
14152         getdtablesize: Move AC_LIBOBJ invocations to module description.
14153         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14154         invocation from here...
14155         * modules/getdtablesize (configure.ac): ... to here.
14156
14157 2011-05-08  Bruno Haible  <bruno@clisp.org>
14158
14159         getdomainname: Move AC_LIBOBJ invocations to module description.
14160         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14161         gl_PREREQ_GETDOMAINNAME invocations from here...
14162         * modules/getdomainname (configure.ac): ... to here.
14163
14164 2011-05-08  Bruno Haible  <bruno@clisp.org>
14165
14166         getline: Move AC_LIBOBJ invocations to module description.
14167         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14168         invocations from here...
14169         * modules/getline (configure.ac): ... to here.
14170
14171 2011-05-08  Bruno Haible  <bruno@clisp.org>
14172
14173         getline: Simplify.
14174         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14175         It's already handled through the module dependency.
14176
14177 2011-05-08  Bruno Haible  <bruno@clisp.org>
14178
14179         getdelim: Move AC_LIBOBJ invocations to module description.
14180         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14181         and gl_PREREQ_GETDELIM invocations from here...
14182         * modules/getdelim (configure.ac): ... to here.
14183         (Depends-on): Fix condition.
14184
14185 2011-05-08  Bruno Haible  <bruno@clisp.org>
14186
14187         getcwd: Move AC_LIBOBJ invocations to module description.
14188         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14189         invocations from here...
14190         * modules/getcwd (configure.ac): ... to here.
14191
14192 2011-05-08  Bruno Haible  <bruno@clisp.org>
14193
14194         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14195         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14196         here...
14197         * modules/getcwd-lgpl (configure.ac): ... to here.
14198
14199 2011-05-07  Bruno Haible  <bruno@clisp.org>
14200
14201         crypto/gc: Move AC_LIBOBJ invocations to module description.
14202         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14203         * modules/crypto/gc (configure.ac): ... to here.
14204
14205 2011-05-07  Bruno Haible  <bruno@clisp.org>
14206
14207         fwriting: Move AC_LIBOBJ invocations to module description.
14208         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14209         here...
14210         * modules/fwriting (configure.ac): ... to here.
14211
14212 2011-05-07  Bruno Haible  <bruno@clisp.org>
14213
14214         fwritable: Move AC_LIBOBJ invocations to module description.
14215         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14216         here...
14217         * modules/fwritable (configure.ac): ... to here.
14218
14219 2011-05-07  Bruno Haible  <bruno@clisp.org>
14220
14221         futimens: Move AC_LIBOBJ invocations to module description.
14222         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14223         here...
14224         * modules/futimens (configure.ac): ... to here.
14225
14226 2011-05-07  Bruno Haible  <bruno@clisp.org>
14227
14228         ftruncate: Move AC_LIBOBJ invocations to module description.
14229         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14230         gl_PREREQ_FTRUNCATE invocations from here...
14231         * modules/ftruncate (configure.ac): ... to here.
14232
14233 2011-05-07  Bruno Haible  <bruno@clisp.org>
14234
14235         fsync: Move AC_LIBOBJ invocations to module description.
14236         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14237         invocations from here...
14238         * modules/fsync (configure.ac): ... to here.
14239
14240 2011-05-07  Bruno Haible  <bruno@clisp.org>
14241
14242         fsusage: Move AC_LIBOBJ invocations to module description.
14243         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14244         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14245         * modules/fsusage (configure.ac): ... to here.
14246
14247 2011-05-07  Bruno Haible  <bruno@clisp.org>
14248
14249         freopen: Move AC_LIBOBJ invocations to module description.
14250         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14251         invocations from here...
14252         * modules/freopen (configure.ac): ... to here.
14253
14254 2011-05-07  Bruno Haible  <bruno@clisp.org>
14255
14256         free: Move AC_LIBOBJ invocations to module description.
14257         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14258         invocations from here...
14259         * modules/free (configure.ac): ... to here.
14260
14261 2011-05-07  Bruno Haible  <bruno@clisp.org>
14262
14263         freadable: Move AC_LIBOBJ invocations to module description.
14264         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14265         here...
14266         * modules/freadable (configure.ac): ... to here.
14267
14268 2011-05-07  Bruno Haible  <bruno@clisp.org>
14269
14270         fpurge: Move AC_LIBOBJ invocations to module description.
14271         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14272         invocations from here...
14273         * modules/fpurge (configure.ac): ... to here.
14274
14275 2011-05-07  Bruno Haible  <bruno@clisp.org>
14276
14277         fpending: Move AC_LIBOBJ invocations to module description.
14278         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14279         gl_FUNC_FPENDING.
14280         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14281         invocations from here...
14282         * modules/fpending (configure.ac): ... to here.
14283
14284 2011-05-07  Bruno Haible  <bruno@clisp.org>
14285
14286         fopen: Move AC_LIBOBJ invocations to module description.
14287         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14288         invocations from here...
14289         * modules/fopen (configure.ac): ... to here.
14290
14291 2011-05-07  Bruno Haible  <bruno@clisp.org>
14292
14293         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14294         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14295         gl_FUNC_FNMATCH_POSIX.
14296         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14297         invocations from here...
14298         * modules/fnmatch (configure.ac): ... to here.
14299         * modules/fnmatch-gnu (configure.ac): ... and here.
14300
14301 2011-05-07  Bruno Haible  <bruno@clisp.org>
14302
14303         flock: Move AC_LIBOBJ invocations to module description.
14304         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14305         invocations from here...
14306         * modules/flock (configure.ac): ... to here.
14307
14308 2011-05-07  Bruno Haible  <bruno@clisp.org>
14309
14310         fileblocks: Move AC_LIBOBJ invocations to module description.
14311         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14312         gl_PREREQ_FILEBLOCKS invocations from here...
14313         * modules/fileblocks (configure.ac): ... to here.
14314
14315 2011-05-06  Bruno Haible  <bruno@clisp.org>
14316
14317         fflush: Move AC_LIBOBJ invocations to module description.
14318         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14319         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14320         invocations from here...
14321         * modules/fflush (configure.ac): ... to here.
14322
14323 2011-05-06  Bruno Haible  <bruno@clisp.org>
14324
14325         fdopendir: Move AC_LIBOBJ invocations to module description.
14326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14327         here...
14328         * modules/fdopendir (configure.ac): ... to here.
14329         (Depends-on): Improve conditions.
14330
14331 2011-05-06  Bruno Haible  <bruno@clisp.org>
14332
14333         _Exit: Move AC_LIBOBJ invocations to module description.
14334         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14335         invocations from here...
14336         * modules/_Exit (configure.ac): ... to here.
14337
14338 2011-05-21  Bruno Haible  <bruno@clisp.org>
14339
14340         euidaccess: Respect rules for use of AC_LIBOBJ.
14341         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14343         from here...
14344         * modules/euidaccess (configure.ac): ... to here.
14345
14346 2011-05-06  Bruno Haible  <bruno@clisp.org>
14347
14348         error: Move AC_LIBOBJ invocations to module description.
14349         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14350         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14351         invocations from here...
14352         * modules/error (configure.ac): ... to here.
14353
14354 2011-05-06  Bruno Haible  <bruno@clisp.org>
14355
14356         duplocale: Move AC_LIBOBJ invocations to module description.
14357         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14358         gl_PREREQ_DUPLOCALE invocations from here...
14359         * modules/duplocale (configure.ac): ... to here.
14360
14361 2011-05-05  Bruno Haible  <bruno@clisp.org>
14362
14363         dirfd: Move AC_LIBOBJ invocations to module description.
14364         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14365         gl_FUNC_DIRFD.
14366         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14367         here...
14368         * modules/dirfd (configure.ac): ... to here.
14369         (Depends-on): Fix condition.
14370
14371 2011-05-05  Bruno Haible  <bruno@clisp.org>
14372
14373         chown: Respect rules for use of AC_LIBOBJ.
14374         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14375         * modules/chown (configure.ac): ... to here.
14376
14377 2011-05-05  Bruno Haible  <bruno@clisp.org>
14378
14379         chdir-long: Move AC_LIBOBJ invocations to module description.
14380         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14381         gl_PREREQ_CHDIR_LONG invocations from here...
14382         * modules/chdir-long (configure.ac): ... to here.
14383
14384 2011-05-05  Bruno Haible  <bruno@clisp.org>
14385
14386         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14387         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14388         from here...
14389         * modules/canonicalize-lgpl (configure.ac): ... to here.
14390
14391 2011-05-05  Bruno Haible  <bruno@clisp.org>
14392
14393         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14394         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14395         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14396         REPLACE_CALLOC.
14397         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14398         * modules/calloc-gnu (configure.ac): Likewise.
14399
14400 2011-05-05  Bruno Haible  <bruno@clisp.org>
14401
14402         btowc: Move AC_LIBOBJ invocations to module description.
14403         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14404         invocations from here...
14405         * modules/btowc (configure.ac): ... to here.
14406
14407 2011-05-21  Bruno Haible  <bruno@clisp.org>
14408
14409         atexit: Move AC_LIBOBJ invocations to module description.
14410         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14411         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14412         here...
14413         * modules/atexit (configure.ac): ... to here.
14414
14415 2011-05-05  Bruno Haible  <bruno@clisp.org>
14416
14417         atoll: Move AC_LIBOBJ invocations to module description.
14418         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14419         invocations from here...
14420         * modules/atoll (configure.ac): ... to here.
14421
14422 2011-05-05  Bruno Haible  <bruno@clisp.org>
14423
14424         argz: Move AC_LIBOBJ invocations to module description.
14425         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14426         * modules/argz (configure.ac): ... to here.
14427
14428 2011-05-05  Bruno Haible  <bruno@clisp.org>
14429
14430         alphasort: Move AC_LIBOBJ invocations to module description.
14431         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14432         gl_PREREQ_ALPHASORT invocations from here...
14433         * modules/alphasort (configure.ac): ... to here.
14434
14435 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14436
14437         verify: new macro verify_expr; verify_true deprecated
14438         * NEWS: Mention this.
14439         * doc/verify.texi (Compile-time Assertions): Document this.
14440         * lib/verify.h (verify_true): Deprecate.
14441         (verify_expr): New macro.
14442         * tests/test-verify.c (function): Test verify_expr.
14443
14444 2011-06-14  Jim Meyering  <meyering@redhat.com>
14445
14446         init.sh: give more portable redirection-related advice in a comment
14447         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14448         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14449         for lots of discussion.  Stefano Lattarini suggested the solution
14450         of putting "9>&2" after the command.  Reported by Bruno Haible.
14451
14452 2011-06-13  Bruno Haible  <bruno@clisp.org>
14453
14454         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14455         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14456         'none'.
14457
14458 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14459
14460         ftoastr: use strtof only if HAVE_STRTOF
14461         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14463         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14464         * modules/ftoastr (configure.ac): Check for strtof.
14465
14466 2011-06-13  Bruno Haible  <bruno@clisp.org>
14467
14468         gnulib-tool: Addendum to 2011-06-08 commit.
14469         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14470         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14471
14472 2011-06-13  Bruno Haible  <bruno@clisp.org>
14473
14474         fseeko: Provide a non-inline replacement of fseek().
14475         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14476         * modules/fseeko (Depends-on): Add fseek.
14477         * modules/fseek (License): Change to LGPLv2+.
14478
14479 2011-06-13  Bruno Haible  <bruno@clisp.org>
14480
14481         ftello: Provide a non-inline replacement of ftell().
14482         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14483         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14484         not have ftello() (such as on mingw).
14485         * modules/ftello (Depends-on): Add ftell.
14486         * modules/ftell (License): Change to LGPLv2+.
14487
14488 2011-05-07  Bruno Haible  <bruno@clisp.org>
14489
14490         ftell: Move AC_LIBOBJ invocations to module description.
14491         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14492         * modules/ftell (configure.ac): ... to here.
14493
14494 2011-05-07  Bruno Haible  <bruno@clisp.org>
14495
14496         ftello: Respect rules for use of AC_LIBOBJ.
14497         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14498         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14499         here...
14500         * modules/ftello (configure.ac): ... to here.
14501
14502 2011-05-07  Bruno Haible  <bruno@clisp.org>
14503
14504         fseeko: Simplify.
14505         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14506         (gl_FUNC_FSEEKO): Inline it here.
14507
14508 2011-05-07  Bruno Haible  <bruno@clisp.org>
14509
14510         fseek: Move AC_LIBOBJ invocations to module description.
14511         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14512         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14513         * modules/fseek (configure.ac): ... to here.
14514
14515 2011-05-07  Bruno Haible  <bruno@clisp.org>
14516
14517         fseek: Respect rules for use of AC_LIBOBJ.
14518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14519         here...
14520         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14521
14522 2011-05-07  Bruno Haible  <bruno@clisp.org>
14523
14524         fseeko: Respect rules for use of AC_LIBOBJ.
14525         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14526         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14527         here...
14528         * modules/fseeko (configure.ac): ... to here.
14529
14530 2011-06-13  Bruno Haible  <bruno@clisp.org>
14531
14532         gnulib-tool: Allow comments in the 'Depends-on' section.
14533         * doc/gnulib.texi (Module description): Mention comment syntax in the
14534         Depends-on section.
14535         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14536
14537 2011-06-13  Bruno Haible  <bruno@clisp.org>
14538
14539         file-set.h: guard __attibute__ use, now that it's not always defined
14540         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14541         versions that support it.  This fixes a coreutils build failure with
14542         the vendor cc on HP-UX 11.31.
14543
14544 2011-06-12  Bruno Haible  <bruno@clisp.org>
14545
14546         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14547         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14548         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14549         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14550         (acl, aclsort): New declarations.
14551         (aclv_nontrivial): New declaration.
14552         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14553         (file_has_acl): Read also the second kind of HP-UX ACLs.
14554         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14555         kind of HP-UX ACLs if the first kind fails.
14556         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14557         second kind of HP-UX ACLs.
14558         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14559         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14560         agree.
14561         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14562         hpuxjfs.
14563         Handle hpuxjfs.
14564         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14565         hpuxjfs.
14566         Handle hpuxjfs.
14567         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14568         (func_test_same_acls): Use both lsacl and getacl.
14569         Handle hpuxjfs.
14570         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14571         (func_test_same_acls): Use both lsacl and getacl.
14572         Handle hpuxjfs.
14573
14574 2011-06-12  Bruno Haible  <bruno@clisp.org>
14575
14576         acl: Complete the 2010-08-10 fix.
14577         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14578         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14579         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14580         explicitly.
14581         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14582         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14583
14584 2011-06-12  Bruno Haible  <bruno@clisp.org>
14585
14586         spawn-pipe tests: Comments.
14587         * tests/test-spawn-pipe-child.c (main): Update comment.
14588         Reported by James Youngman <jay@gnu.org>.
14589
14590 2011-06-11  James Youngman  <jay@gnu.org>
14591
14592         New module 'stat-size'.
14593         * modules/stat-size: New module.  Provides macros for accessing
14594         file size information in instances of struct stat.  Depends on the
14595         fileblocks module because it calls st_blocks.
14596         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14597         * doc/gnulib.texi: Include stat-size.texi.
14598         * doc/stat-size.texi: Documentation for this module.
14599         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14600         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14601         AC_STRUCT_ST_BLOCKS.
14602
14603 2011-06-09  Bruno Haible  <bruno@clisp.org>
14604
14605         thread: Support pthreads-win32.
14606         * lib/glthread/thread.h (gl_thread_self): Define differently on
14607         pthreads-win32.
14608         (gl_null_thread): New declaration.
14609         (gl_thread_self_pointer): New macro.
14610         * lib/glthread/thread.c (gl_null_thread): New constant.
14611         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14612         gl_thread_self.
14613         * tests/test-tls.c: Likewise.
14614         Suggested by Paul Eggert. Reported by Eric Blake.
14615
14616 2011-06-09  Bruno Haible  <bruno@clisp.org>
14617
14618         thread: Fix confusion between NULL and 0.
14619         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14620         Reported by Paul Eggert.
14621
14622 2011-06-09  Bruno Haible  <bruno@clisp.org>
14623
14624         spawn-pipe tests: Avoid test failure on HP-UX 11.
14625         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14626         is closed.
14627
14628 2011-06-09  Bruno Haible  <bruno@clisp.org>
14629
14630         acl tests: Fix compilation error on HP-UX 11.
14631         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14632
14633 2011-06-09  Bruno Haible  <bruno@clisp.org>
14634
14635         rmdir: Avoid test failure on HP-UX 10.20.
14636         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14637         EEXIST.
14638
14639 2011-06-08  Eric Blake  <eblake@redhat.com>
14640
14641         perror: fix test on mingw
14642         * modules/perror-tests (Depends-on): Add dup2.
14643
14644         strerror_r-posix: fix on MacOS
14645         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14647         logic bug.
14648         * lib/strerror_r.c (strerror_r): Fix the bug.
14649         * lib/strerror.c (strerror): Likewise.
14650         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14651         problem.
14652         * doc/posix-functions/strerror.texi (strerror): Likewise.
14653         * doc/posix-functions/perror.texi (perror): Likewise.
14654         * tests/test-strerror.c (main): Enhance test.
14655         * tests/test-strerror_r.c (main): Likewise.
14656
14657 2011-06-08  Bruno Haible  <bruno@clisp.org>
14658
14659         gnulib-tool: Better isolation between different gnulib-tool invocations.
14660         * gnulib-tool: New option --witness-c-macro.
14661         (witness_c_macro): New variable.
14662         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14663         AM_CPPFLAGS define it as a C macro.
14664         (func_emit_tests_Makefile_am): Likewise.
14665         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14666         read it from there.
14667         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14668         m4_define, not AC_DEFUN.
14669         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14670         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14671         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14672         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14673         s|...|...|, to substitute the values of the GNULIB_* module indicator
14674         variables.
14675         * modules/dirent (Makefile.am): Likewise.
14676         * modules/fcntl-h (Makefile.am): Likewise.
14677         * modules/iconv-h (Makefile.am): Likewise.
14678         * modules/langinfo (Makefile.am): Likewise.
14679         * modules/locale (Makefile.am): Likewise.
14680         * modules/math (Makefile.am): Likewise.
14681         * modules/netdb (Makefile.am): Likewise.
14682         * modules/poll-h (Makefile.am): Likewise.
14683         * modules/pty (Makefile.am): Likewise.
14684         * modules/search (Makefile.am): Likewise.
14685         * modules/signal (Makefile.am): Likewise.
14686         * modules/spawn (Makefile.am): Likewise.
14687         * modules/stdio (Makefile.am): Likewise.
14688         * modules/stdlib (Makefile.am): Likewise.
14689         * modules/string (Makefile.am): Likewise.
14690         * modules/sys_ioctl (Makefile.am): Likewise.
14691         * modules/sys_select (Makefile.am): Likewise.
14692         * modules/sys_socket (Makefile.am): Likewise.
14693         * modules/sys_stat (Makefile.am): Likewise.
14694         * modules/sys_times (Makefile.am): Likewise.
14695         * modules/sys_utsname (Makefile.am): Likewise.
14696         * modules/sys_wait (Makefile.am): Likewise.
14697         * modules/termios (Makefile.am): Likewise.
14698         * modules/time (Makefile.am): Likewise.
14699         * modules/unistd (Makefile.am): Likewise.
14700         * modules/wchar (Makefile.am): Likewise.
14701
14702 2011-06-08  Eric Blake  <eblake@redhat.com>
14703
14704         strerror: simplify replacement
14705         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14706         * modules/strerror (configure.ac): No prereqs needed here...
14707         * modules/strerror-override (configure.ac): ...but this needs it.
14708         (Files): Add file for needed prereq macro.
14709
14710 2011-06-08  Bruno Haible  <bruno@clisp.org>
14711
14712         strerror_r-posix: Tweaks.
14713         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14714         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14715         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14716         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14717         (gl_FUNC_STRERROR_R): ... to here.
14718         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14719
14720 2011-06-07  Eric Blake  <eblake@redhat.com>
14721
14722         perror: document fixed bugs
14723         * doc/posix-functions/perror.texi (perror): Document recent
14724         patches.
14725
14726 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         stat-time: get_stat_birthtime failure is better-defined
14729         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14730         return a timestamp whose tv_sec and tv_nsec values are both -1.
14731         Previously, the spec said only that the tv_nsec value was negative.
14732         This upward-compatible change simplifies GNU tar a bit.
14733
14734 2011-06-07  Eric Blake  <eblake@redhat.com>
14735
14736         strerror_r-posix: work around cygwin 1.7.9
14737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14738         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14739         bug without replacing strerror_r.
14740         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14741         strerror_r is buggy, but without requiring strerror_r compilation.
14742         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14743
14744         test-perror: relax test to ignore cygwin bug
14745         * tests/test-perror2.c (main): Relax test on requiring detection
14746         of stream errors, and use unbuffered stream.
14747         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14748         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14749         * doc/posix-functions/fputc.texi (fputc): Likewise.
14750         * doc/posix-functions/fputs.texi (fputs): Likewise.
14751         * doc/posix-functions/fputws.texi (fputws): Likewise.
14752         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14753         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14754         * doc/posix-functions/getopt.texi (getopt): Likewise.
14755         * doc/posix-functions/perror.texi (perror): Likewise.
14756         * doc/posix-functions/printf.texi (printf): Likewise.
14757         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14758         * doc/posix-functions/psignal.texi (psignal): Likewise.
14759         * doc/posix-functions/putc.texi (putc): Likewise.
14760         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14761         Likewise.
14762         * doc/posix-functions/putchar.texi (putchar): Likewise.
14763         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14764         Likewise.
14765         * doc/posix-functions/puts.texi (puts): Likewise.
14766         * doc/posix-functions/putwc.texi (putwc): Likewise.
14767         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14768         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14769         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14770         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14771         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14772         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14773         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14774         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14775
14776 2011-05-22  Bruno Haible  <bruno@clisp.org>
14777
14778         strerror: Move AC_LIBOBJ invocations to module description.
14779         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14780         gl_PREREQ_STRERROR invocations from here...
14781         * modules/strerror (configure.ac): ... to here.
14782
14783 2011-05-21  Bruno Haible  <bruno@clisp.org>
14784
14785         perror: Use common idiom.
14786         * modules/perror (configure.ac): Reorder statements.
14787
14788 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14789
14790         tests: fix usage message in 'mktempd_'
14791         * tests/init.sh (mktempd_): In the usage message, use literal
14792         'mktempd_', not '$ME' (which is even undefined), as the name of
14793         the subroutine.
14794
14795 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14796
14797         tests init: new function 'fatal_', for hard errors
14798         Before this patch, the only way offered by tests/init.sh to
14799         properly signal a hard error was the `framework_failure_'
14800         function.  But the error message issued by that function,
14801         as its name would suggest, refers to a set-up failure in the
14802         testsuite, while hard errors can obviously also be due to
14803         other reasons.  The best way to fix this inconsistency is to
14804         introduce a new function with a more general error message.
14805         * tests/init.sh (fatal_): New function.
14806
14807 2011-06-06  Eric Blake  <eblake@redhat.com>
14808
14809         canonicalize-lgpl: use common idiom
14810         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14811         over newer POSIX -Rf.
14812         Reported by Bruno Haible.
14813
14814         canonicalize-lgpl: work around AIX realpath bug
14815         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14816         * doc/posix-functions/realpath.texi (realpath): Document it.
14817         Reported by Bruno Haible.
14818
14819         strerror: work around FreeBSD bug
14820         * lib/strerror.c (strerror): Special case 0.
14821         Reported by Bruno Haible.
14822
14823         strerror-override: avoid bloating errno module
14824         * modules/errno (Files, configure.ac): Move replacement strings...
14825         * modules/strerror-override: ...to new module.
14826         * modules/strerror (Depends-on): Add strerror-override.
14827         * modules/strerror_r-posix (Depends-on): Likewise.
14828         * MODULES.html.sh: Document new module.
14829         Reported by Bruno Haible.
14830
14831 2011-06-06  Bruno Haible  <bruno@clisp.org>
14832
14833         spawn-pipe tests: Rename program.
14834         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14835         * tests/test-spawn-pipe-child.c: Update comment.
14836         * tests/test-spawn-pipe.sh: Update.
14837         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14838
14839         spawn-pipe tests: Link the child program only against libc.
14840         * tests/test-spawn-pipe-child.c: New file, extracted from
14841         tests/test-spawn-pipe.c.
14842         (main): Expect only one argument.
14843         (is_open): New function, copied from tests/test-pipe.c.
14844         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14845         (child_main): Remove function.
14846         (test_pipe): Pass only one argument to the child program.
14847         (main): Remove child process code. Expect the child program's name as
14848         first argument.
14849         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14850         argument.
14851         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14852         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14853         test-spawn-pipe-child against no libraries.
14854
14855 2011-06-06  Bruno Haible  <bruno@clisp.org>
14856
14857         careadlinkat: Avoid mismatch between ssize_t and int.
14858         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14859         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14860
14861 2011-06-06  Jim Meyering  <meyering@redhat.com>
14862
14863         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14864         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14865         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14866
14867 2011-06-05  Bruno Haible  <bruno@clisp.org>
14868
14869         ansi-c++-opt: Interoperability with libtool.
14870         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14871         set the variable to "no", not to ":".
14872         * NEWS: Mention the change.
14873
14874 2011-06-05  Bruno Haible  <bruno@clisp.org>
14875
14876         acl: Fix test failure on AIX 7.
14877         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14878         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14879
14880 2011-06-05  Bruno Haible  <bruno@clisp.org>
14881
14882         pipe-filter-ii: Fix test failure on AIX and IRIX.
14883         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14884         with EAGAIN, retry with a smaller buffer size.
14885
14886 2011-06-05  Bruno Haible  <bruno@clisp.org>
14887
14888         localename: Fix link dependencies.
14889         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14890         * modules/localename-tests (Makefile.am): Link test-localename with
14891         $(LIBTHREAD).
14892
14893 2011-06-05  Bruno Haible  <bruno@clisp.org>
14894
14895         error: Avoid gcc warning.
14896         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14897
14898 2011-06-05  Bruno Haible  <bruno@clisp.org>
14899
14900         unsetenv: Avoid gcc warning.
14901         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14902
14903 2011-06-05  Bruno Haible  <bruno@clisp.org>
14904
14905         setenv: Avoid gcc warning.
14906         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14907
14908 2011-06-05  Bruno Haible  <bruno@clisp.org>
14909
14910         sys_select: Ensure memset is declared also on AIX 7.
14911         * lib/sys_select.in.h: Include <string.h> also on AIX.
14912         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14913         self-contained also on AIX 7.1.
14914
14915 2011-06-04  Jim Meyering  <meyering@redhat.com>
14916
14917         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14918         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14919         function name, "error".
14920         (_gl_translatable_diag_func_re): New configurable variable.
14921
14922 2011-06-04  Bruno Haible  <bruno@clisp.org>
14923
14924         getopt: Avoid gcc warning.
14925         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14926
14927 2011-06-04  Bruno Haible  <bruno@clisp.org>
14928
14929         strerror_r: Fix comments.
14930         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14931         commit.
14932
14933 2011-06-04  Bruno Haible  <bruno@clisp.org>
14934
14935         perror: Fix compilation error.
14936         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14937         Undefine fprintf, not sprintf.
14938         * modules/perror (Depends-on): Remove intprops, verify.
14939
14940 2011-06-04  Bruno Haible  <bruno@clisp.org>
14941
14942         setlocale: Enable replacement on Cygwin 1.5.
14943         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14944         Cygwin 1.5.x.
14945         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14946         LC_CTYPE category also exists on Cygwin 1.5.x.
14947
14948 2011-06-04  Bruno Haible  <bruno@clisp.org>
14949
14950         strerror-override: Don't disable symbol renamings.
14951         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14952         * lib/strerror-override.c: Include config.h.
14953         (strerror_override): Don't undefine.
14954
14955 2011-06-03  Bruno Haible  <bruno@clisp.org>
14956
14957         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14958         * lib/localename.h: Update copyright header.
14959         * lib/localename.c: Likewise.
14960         * lib/relocatable.h: Likewise.
14961         * lib/relocatable.c: Likewise.
14962
14963 2011-06-02  Bruno Haible  <bruno@clisp.org>
14964
14965         doc: Fix a module name.
14966         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14967
14968 2011-06-02  Bruno Haible  <bruno@clisp.org>
14969
14970         pipe2: Remove dependency on 'nonblocking' module.
14971         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14972         O_NONBLOCK is defined by gnulib.
14973         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14974         is zero.
14975         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14976         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14977         defined by gnulib.
14978         (get_nonblocking_flag): New function.
14979         (main): Test O_NONBLOCK flag only if it is nonzero.
14980         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14981
14982 2011-06-03  Jim Meyering  <meyering@redhat.com>
14983
14984         maint: three new prohibit-header-without-use rules
14985         Prohibit use of cloexec.h, posixver.h, same.h without use.
14986         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14987         (sc_prohibit_posixver_without_use): Likewise.
14988         (sc_prohibit_same_without_use): Likewise.
14989
14990 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14991
14992         allocator: 'die' routine is now given requested size
14993         * lib/allocator.h (struct allocator.die): New size arg.
14994         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14995         If the actual problem is an ssize_t limitation, not a size_t or
14996         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14997
14998 2011-06-01  Eric Blake  <eblake@redhat.com>
14999
15000         strerror: drop strerror_r dependency
15001         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15002         * lib/strerror-override.c (strerror_override): ...to new file.
15003         * lib/strerror-override.h: Add prototype.
15004         * lib/strerror-impl.h: Delete.
15005         * lib/strerror.c (strerror): New implementation.
15006         * modules/errno (Files): Add new files.
15007         (configure.ac): Compile new file as appropriate.
15008         * modules/strerror (Files): Drop unused file.
15009         (Depends-on): Drop strerror_r-posix.
15010         * MODULES.html.sh: Document strerror_r-posix.
15011         Requested by Sam Steingold.
15012
15013         perror: call strerror_r directly
15014         * modules/perror (Files): Drop strerror-impl.h.
15015         * lib/perror.c (perror): Use our own stack buffer, rather than
15016         calling a wrapper that uses static storage.
15017         * doc/posix-functions/perror.texi (perror): Document a limitation
15018         of our replacement.
15019
15020         strerror_r: fix includes for FreeBSD
15021         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15022         since we use abort on some platforms.
15023         Reported by Matthias Bolte.
15024
15025 2011-05-31  Bruno Haible  <bruno@clisp.org>
15026
15027         Fix link errors in tests: openat-die uses gettext-h.
15028         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15029         against $(LIBINTL).
15030         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15031         against $(LIBINTL).
15032         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15033         $(LIBINTL).
15034         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15035         against $(LIBINTL).
15036         * modules/linkat-tests (Makefile.am): Link test-linkat against
15037         $(LIBINTL).
15038         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15039         $(LIBINTL).
15040         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15041         against $(LIBINTL).
15042         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15043         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15044         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15045         $(LIBINTL).
15046         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15047         $(LIBINTL).
15048         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15049         $(LIBINTL).
15050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15051
15052 2011-05-31  Bruno Haible  <bruno@clisp.org>
15053
15054         Fix link errors in tests: wait-process uses gettext-h.
15055         * modules/nonblocking-pipe-tests (Makefile.am): Set
15056         test_nonblocking_pipe_main_LDADD.
15057         * modules/nonblocking-socket-tests (Makefile.am): Link
15058         test-nonblocking-socket-main against $(LIBINTL).
15059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15060
15061 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15062
15063         assert-h: work around 'verify' incompatibility
15064         * lib/verify.h: Use @...@ directives, not ifdef.
15065         * modules/assert-h (assert.h): Implement the directives.
15066         (assert.h): Substitute the symbol-prefix more consistently.
15067
15068 2011-05-29  Jim Meyering  <meyering@redhat.com>
15069
15070         trim: remove three superfluous assignments
15071         * lib/trim.c (trim2): Remove three superfluous assignments
15072         and correct brace positioning.
15073
15074 2011-05-29  Bruno Haible  <bruno@clisp.org>
15075
15076         wctype-h: Avoid namespace pollution on Solaris 2.6.
15077         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15078         identifiers.
15079         * doc/posix-headers/wctype.texi: Mention the problem.
15080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15081
15082 2011-05-28  Jim Meyering  <meyering@redhat.com>
15083
15084         parse-datetime.y: accommodate -Wstrict-overflow
15085         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15086         placate -Wstrict-overflow.
15087
15088         trim: avoid a warning from -O2 -Wstrict-overflow
15089         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15090
15091 2011-05-29  Bruno Haible  <bruno@clisp.org>
15092
15093         gnulib-tool: Fix bug in yesterday's commit.
15094         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15095         twice.
15096
15097 2011-05-29  Bruno Haible  <bruno@clisp.org>
15098
15099         Allow multiple gnulib generated include files to be combined.
15100         * gnulib-tool (func_compute_include_guard_prefix): New function.
15101         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15102         ${gl_include_guard_prefix} references.
15103         (func_import, func_create_testdir): Invoke
15104         func_compute_include_guard_prefix.
15105         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15106         * lib/ctype.in.h: Likewise.
15107         * lib/dirent.in.h: Likewise.
15108         * lib/errno.in.h: Likewise.
15109         * lib/fcntl.in.h: Likewise.
15110         * lib/float.in.h: Likewise.
15111         * lib/getopt.in.h: Likewise.
15112         * lib/iconv.in.h: Likewise.
15113         * lib/langinfo.in.h: Likewise.
15114         * lib/locale.in.h: Likewise.
15115         * lib/math.in.h: Likewise.
15116         * lib/netdb.in.h: Likewise.
15117         * lib/netinet_in.in.h: Likewise.
15118         * lib/poll.in.h: Likewise.
15119         * lib/pthread.in.h: Likewise.
15120         * lib/pty.in.h: Likewise.
15121         * lib/sched.in.h: Likewise.
15122         * lib/se-selinux.in.h: Likewise.
15123         * lib/search.in.h: Likewise.
15124         * lib/signal.in.h: Likewise.
15125         * lib/spawn.in.h: Likewise.
15126         * lib/stdarg.in.h: Likewise.
15127         * lib/stddef.in.h: Likewise.
15128         * lib/stdint.in.h: Likewise.
15129         * lib/stdio.in.h: Likewise.
15130         * lib/stdlib.in.h: Likewise.
15131         * lib/string.in.h: Likewise.
15132         * lib/strings.in.h: Likewise.
15133         * lib/sys_file.in.h: Likewise.
15134         * lib/sys_ioctl.in.h: Likewise.
15135         * lib/sys_select.in.h: Likewise.
15136         * lib/sys_socket.in.h: Likewise.
15137         * lib/sys_stat.in.h: Likewise.
15138         * lib/sys_time.in.h: Likewise.
15139         * lib/sys_times.in.h: Likewise.
15140         * lib/sys_uio.in.h: Likewise.
15141         * lib/sys_utsname.in.h: Likewise.
15142         * lib/sys_wait.in.h: Likewise.
15143         * lib/sysexits.in.h: Likewise.
15144         * lib/termios.in.h: Likewise.
15145         * lib/time.in.h: Likewise.
15146         * lib/unistd.in.h: Likewise.
15147         * lib/wchar.in.h: Likewise.
15148         * lib/wctype.in.h: Likewise.
15149         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15150         * modules/ctype (Makefile.am): Likewise.
15151         * modules/dirent (Makefile.am): Likewise.
15152         * modules/errno (Makefile.am): Likewise.
15153         * modules/fcntl-h (Makefile.am): Likewise.
15154         * modules/float (Makefile.am): Likewise.
15155         * modules/getopt-posix (Makefile.am): Likewise.
15156         * modules/iconv-h (Makefile.am): Likewise.
15157         * modules/langinfo (Makefile.am): Likewise.
15158         * modules/locale (Makefile.am): Likewise.
15159         * modules/math (Makefile.am): Likewise.
15160         * modules/netdb (Makefile.am): Likewise.
15161         * modules/netinet_in (Makefile.am): Likewise.
15162         * modules/poll-h (Makefile.am): Likewise.
15163         * modules/pthread (Makefile.am): Likewise.
15164         * modules/pty (Makefile.am): Likewise.
15165         * modules/sched (Makefile.am): Likewise.
15166         * modules/search (Makefile.am): Likewise.
15167         * modules/selinux-h (Makefile.am): Likewise.
15168         * modules/signal (Makefile.am): Likewise.
15169         * modules/spawn (Makefile.am): Likewise.
15170         * modules/stdarg (Makefile.am): Likewise.
15171         * modules/stddef (Makefile.am): Likewise.
15172         * modules/stdint (Makefile.am): Likewise.
15173         * modules/stdio (Makefile.am): Likewise.
15174         * modules/stdlib (Makefile.am): Likewise.
15175         * modules/string (Makefile.am): Likewise.
15176         * modules/strings (Makefile.am): Likewise.
15177         * modules/sys_file (Makefile.am): Likewise.
15178         * modules/sys_ioctl (Makefile.am): Likewise.
15179         * modules/sys_select (Makefile.am): Likewise.
15180         * modules/sys_socket (Makefile.am): Likewise.
15181         * modules/sys_stat (Makefile.am): Likewise.
15182         * modules/sys_time (Makefile.am): Likewise.
15183         * modules/sys_times (Makefile.am): Likewise.
15184         * modules/sys_uio (Makefile.am): Likewise.
15185         * modules/sys_utsname (Makefile.am): Likewise.
15186         * modules/sys_wait (Makefile.am): Likewise.
15187         * modules/sysexits (Makefile.am): Likewise.
15188         * modules/termios (Makefile.am): Likewise.
15189         * modules/time (Makefile.am): Likewise.
15190         * modules/unistd (Makefile.am): Likewise.
15191         * modules/wchar (Makefile.am): Likewise.
15192         * modules/wctype-h (Makefile.am): Likewise.
15193         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15194
15195 2011-05-29  Bruno Haible  <bruno@clisp.org>
15196
15197         assert-h: Allow multiple gnulib generated replacements to coexist.
15198         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15199
15200 2011-05-29  Bruno Haible  <bruno@clisp.org>
15201
15202         argp: Allow coexistence with strerror_r-posix module.
15203         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15204         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15205         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15206         not the glibc signature.
15207
15208 2011-05-28  Bruno Haible  <bruno@clisp.org>
15209
15210         gnulib-tool: Alternative structure of testdirs, similar to --import.
15211         * gnulib-tool: New option --single-configure.
15212         (func_usage): Document it.
15213         (single_configure): New variable.
15214         (func_modules_transitive_closure_separately,
15215         func_modules_transitive_closure_separately,
15216         func_determine_use_libtests, func_modules_add_dummy_separately,
15217         func_modules_to_filelist_separately): New functions, extracted from
15218         func_import.
15219         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15220         (func_import): Use the new functions.
15221         (func_create_testdir): Set final_modules. Handle $single_configure =
15222         true case.
15223
15224 2011-05-28  Bruno Haible  <bruno@clisp.org>
15225
15226         getloadavg: Remove an unreliable safety check.
15227         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15228         getloadavg.c is in place.
15229         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15230         Reported by Sam Steingold <sds@gnu.org>.
15231
15232 2011-05-28  Bruno Haible  <bruno@clisp.org>
15233
15234         doc: Cleanup yet another file produced by texinfo.tex.
15235         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15236
15237 2011-05-28  Bruno Haible  <bruno@clisp.org>
15238
15239         Finish the conditional dependencies mechanism.
15240         * gnulib-tool: New option --no-conditional-dependencies.
15241         (func_usage): Document it. Don't mark --conditional-dependencies as
15242         experimental.
15243         (cond_dependencies): The possible values can now be true, false, empty.
15244         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15245         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15246         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15247
15248 2011-05-28  Bruno Haible  <bruno@clisp.org>
15249
15250         doc: Use a recent texinfo.tex.
15251         * doc/Makefile (tex_opts): New variable.
15252         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15253
15254 2011-05-28  Jim Meyering  <meyering@redhat.com>
15255
15256         intprops.h: adjust comment to match code change
15257         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15258         only once, it *may* have side effects.  Also fix an unrelated typo.
15259         (_GL_INT_SIGNED): Likewise.
15260
15261 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15262
15263         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15264
15265 2011-05-26  Bruno Haible  <bruno@clisp.org>
15266
15267         mbsrchr: Avoid collision with system function on Interix.
15268         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15269         Reported by Markus Duft <mduft@gentoo.org>.
15270
15271 2011-05-15  James Youngman  <jay@gnu.org>
15272
15273         getopt: for ambiguous options, enumerate the possibilities.
15274         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15275         the ambiguous options when an ambiguous prefix is given. This was
15276         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15277         glibc change was
15278         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15279
15280 2011-05-25  Eric Blake  <eblake@redhat.com>
15281
15282         getcwd: work around mingw bug
15283         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15284         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15285         Reported by Matthias Bolte.
15286
15287 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15288
15289         test-intprops: disable -Wtype-limits diagnostics
15290         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15291         diagnostics.  Otherwise, the integer overflow macros generate many
15292         diagnostics.  Reported by Jim Meyering in
15293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15294
15295         intprops: shorten, to pacify gcc -Woverlength-strings
15296         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15297         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15298         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15299         likely to run afoul of C compiler limits for string constant lengths.
15300         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15301
15302 2011-05-24  Eric Blake  <eblake@redhat.com>
15303
15304         docs: document recently fixed glibc printf bug
15305         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15306         * doc/posix-functions/printf.texi (printf): Likewise.
15307         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15308         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15309
15310         closein-tests: convert to init.sh
15311         * modules/closein-tests (Files): Add init.sh
15312         * tests/test-closein.sh Use it.
15313
15314         yesno-tests: convert to init.sh
15315         * modules/yesno-tests (Files): Add init.sh.
15316         * tests/test-yesno.sh: Use it.
15317
15318         atexit-tests: ensure reliable exit status
15319         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15320         Reported by Bruno Haible.
15321
15322 2011-05-24  Bruno Haible  <bruno@clisp.org>
15323
15324         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15326         gl_PREREQ_STRERROR_R invocations from here...
15327         * modules/strerror_r-posix (configure.ac): ... to here.
15328
15329 2011-05-24  Eric Blake  <eblake@redhat.com>
15330
15331         strerror_r: fix missing header
15332         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15333
15334         strerror_r: fix AIX test failures
15335         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15336         ERANGE failure.
15337
15338         strerror_r: fix Solaris test failures
15339         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15340         failures.
15341         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15342
15343         strerror_r: enforce POSIX recommendations
15344         * lib/strerror_r.c (safe_copy): New helper method.
15345         (strerror_r): Guarantee a non-empty string.
15346         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15347         recent POSIX rulings and to match our strerror guarantees.
15348         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15349
15350 2011-05-24  Jim Meyering  <meyering@redhat.com>
15351
15352         test-perror2.c: avoid warning about unused variable
15353         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15354
15355 2011-05-24  Eric Blake  <eblake@redhat.com>
15356
15357         perror: avoid spurious test failure on HP-UX
15358         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15359
15360         tests: fix logic bug in init.sh
15361         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15362         shell.
15363
15364 2011-05-24  Jim Meyering  <meyering@redhat.com>
15365
15366         utimensat: do not reference an out-of-scope buffer
15367         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15368         declared in an inner scope, yet "times" would be dereferenced outside
15369         the scope in which "ts" was valid.
15370         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15371         of ts[2] "out/up", so that the use of aliased "times" (via
15372         "times = ts;") does not end up referencing an out-of-scope "ts"
15373
15374         opendir-safer.c: don't clobber errno; don't close negative FD
15375         * lib/opendir-safer.c (opendir_safer):
15376         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15377         file descriptor, and more importantly, don't clobber the
15378         offending errno value with EINVAL.  Before, upon failure
15379         of dup_safer, we would pass the negative file descriptor to
15380         fdopendir, which would clobber errno.
15381
15382 2011-05-23  Bruno Haible  <bruno@clisp.org>
15383
15384         idcache: Fix module description.
15385         * modules/idcache (Include): Set to "idcache.h".
15386
15387 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15388
15389         gnulib-tool: fix portability problem with MacOS sed
15390         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15391         before the "}".  Problem reported by Leo in
15392         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15393         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15394         sed_extract_condition1, sed_extract_condition2.
15395
15396 2011-05-23  Bruno Haible  <bruno@clisp.org>
15397
15398         hash: Simplify autoconf macro.
15399         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15400
15401 2011-05-23  Bruno Haible  <bruno@clisp.org>
15402
15403         getugroups: Fix module description.
15404         * modules/getugroups (Include): Set to "getugroups.h".
15405
15406 2011-05-23  Bruno Haible  <bruno@clisp.org>
15407
15408         linkat: Simplify autoconf macro.
15409         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15410
15411 2011-05-23  Bruno Haible  <bruno@clisp.org>
15412             Eric Blake  <eblake@redhat.com>
15413
15414         linkat, renameat: Update dependencies.
15415         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15416         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15417         symlinkat.
15418
15419 2011-05-23  Jim Meyering  <meyering@redhat.com>
15420
15421         maint.mk: more tight_scope improvements
15422         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15423         (_gl_TS_headers): Define only in if-0'd block.
15424         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15425         sometimes we must *not* use it.  Adjust uses accordingly.
15426         (sc_tight_scope): Use much simpler grep-based test to determine
15427         whether we skip this rule.
15428
15429         maint.mk: generalize/improve the tight-scope rule
15430         * top/maint.mk: Emit a warning when the test is skipped.
15431         (_gl_TS_dir): Add $(srcdir)/ prefix.
15432         (_gl_TS_function_match): Simplify, rather than trying
15433         to enumerate common types.  Otherwise, it would fail to match an
15434         "extern unsigned char const *" declaration in idutils.
15435         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15436         a way to support use of that type of macro.
15437         (_gl_TS_var_match): Simplify regexp.
15438         (_gl_TS_obj_files): New configurable variable.
15439         (_gl_TS_headers): Likewise.
15440
15441 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         verify: fix bug when gnulib <assert.h> is also included
15444         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15445         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15446         Perhaps there's a better way, but this fixes the immediate problem.
15447         Problem reported by Bruno Haible in
15448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15449
15450 2011-05-22  Bruno Haible  <bruno@clisp.org>
15451
15452         xgetcwd: Simplify autoconf macro.
15453         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15454
15455 2011-05-22  Bruno Haible  <bruno@clisp.org>
15456
15457         New module 'mktime-internal'.
15458         * modules/mktime-internal: New file.
15459         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15460         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15461         mktime_internal as a C macro if libc has __mktime_internal.
15462         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15463         conditions.
15464         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15465
15466 2011-05-22  Bruno Haible  <bruno@clisp.org>
15467
15468         timegm: Correct mktime replacement statements.
15469         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15470         defining mktime as a C macro. This completes a 2009-07-28 commit.
15471
15472 2011-05-22  Bruno Haible  <bruno@clisp.org>
15473
15474         timegm: Simplify autoconf macro.
15475         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15476
15477 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15478
15479         clock-time: change to LGPLv2+.
15480         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15481         BSD-like but we have no mark for that; this is good enough for now.
15482
15483 2011-05-21  Bruno Haible  <bruno@clisp.org>
15484
15485         strerror_r: Fix comments.
15486         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15487
15488 2011-05-21  Bruno Haible  <bruno@clisp.org>
15489
15490         relocatable-prog-wrapper: Fix possible link error.
15491         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15492         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15493         (gl_FUNC_SETENV): ... to here.
15494         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15495         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15496
15497 2011-05-21  Bruno Haible  <bruno@clisp.org>
15498
15499         relocatable-prog-wrapper: Assume strerror() exists.
15500         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15501         m4/strerror.m4.
15502         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15503         * lib/relocwrapper.c: Remove mention of strerror module.
15504         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15506         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15507         C macro.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         select: Simplify replacement idiom.
15512         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15513         Win32 platforms.
15514         * lib/sys_select.in.h (select): Simplify accordingly.
15515         * modules/select (Depends-on): Likewise.
15516
15517 2011-05-21  Bruno Haible  <bruno@clisp.org>
15518
15519         mkdir-p: Simplify autoconf macro.
15520         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15521         gl_FUNC_LCHOWN.
15522
15523 2011-05-21  Eric Blake  <eblake@redhat.com>
15524
15525         strerror_r: avoid clobbering strerror on cygwin
15526         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15527         fall back instead to sys_errlist.
15528         * modules/strerror (configure.ac): Add witness.
15529         * tests/test-strerror_r.c (main): Enhance test.
15530         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15531         * tests/test-perror2.c (main): Free memory before exit.
15532
15533 2011-05-21  Bruno Haible  <bruno@clisp.org>
15534
15535         mkdtemp: Use gnulib naming conventions.
15536         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15537         * modules/mkdtemp (configure.ac): Update.
15538
15539 2011-05-20  Eric Blake  <eblake@redhat.com>
15540
15541         strerror_r: avoid corrupting errno on Solaris
15542         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15543         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15544
15545         strerror_r: avoid compiler warning
15546         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15547
15548         strerror_r: simplify AIX code
15549         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15550
15551         test-perror: avoid spurious failure on FreeBSD
15552         * modules/perror-tests (Depends-on): Add strerror, now that
15553         strerror_r no longer pulls it in.
15554
15555 2011-05-20  Bruno Haible  <bruno@clisp.org>
15556
15557         strerror_r-posix: Remove unused dependencies.
15558         * modules/strerror_r-posix (Depends-on): Remove strerror.
15559         Reported by Eric Blake.
15560
15561 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         intprops: remove assumption about A|B representation
15564         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15565         is a valid integer if both A and B are.  Although this is true for
15566         all known practical hosts, the C standard doesn't guarantee it,
15567         and the code need not assume it.  Also, this change may work around
15568         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15570
15571 2011-05-20  Eric Blake  <eblake@redhat.com>
15572
15573         perror: work around FreeBSD bug
15574         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15575         is broken.  Move AC_LIBOBJ...
15576         * modules/perror (configure.ac): Here.
15577         * doc/posix-functions/perror.texi (perror): Document this.
15578         * tests/test-perror2.c (main): Enhance test.
15579
15580         test-perror: check for strerror interactions
15581         * tests/macros.h (STREQ): Add macro.
15582         * modules/perror-tests (Files): Add second test.
15583         * tests/test-perror2.c (main): New file.
15584         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15585
15586         test-perror: rewrite to use init script
15587         * modules/perror-tests (Files): Add init.sh.
15588         * tests/test-perror.sh: Use temporary directory.
15589
15590 2011-05-20  Jim Meyering  <meyering@redhat.com>
15591
15592         maint: replace misused "a" with "an"
15593         * doc/intprops.texi: "a integer"
15594         * doc/regex.texi: "a explanation"
15595         * lib/alignof.h: "a object"
15596         * lib/argmatch.h: "a explanation"
15597         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15598         * lib/stdint.in.h: "a integer"
15599         * lib/userspec.c: "a owner"
15600         * doc/gnulib.texi: Fix "a idea", and reword.
15601
15602 2011-05-19  Jim Meyering  <meyering@redhat.com>
15603
15604         maint: correct misuse of "a" and "an"
15605         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15606         * lib/argp-help.c: "an docum...": s/an/a/
15607         * lib/argp-parse.c: "An vector": s/An/A/
15608         * lib/execute.c: "an native": s/an/a/
15609         * lib/spawn-pipe.c: Likewise.
15610         * lib/gc.h: "an Gc_rc": s/an/a/
15611         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15612         * lib/fts.c: "an stat.st_dev": s/an/a/
15613
15614 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         intprops-tests: work around HP-UX 11.23 cc bug with constants
15617         * tests/test-intprops.c (VERIFY): New macro.
15618         (main): Use it, instead of verify, to work around the compiler bug; see
15619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15620
15621         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15622         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15623         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15624         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15625         (_GL_REMAINDER_OVERFLOW): Use it.
15626
15627         intprops-tests: revert unsigned part of previous change
15628         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15629         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15630         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15632
15633 2011-05-19  Bruno Haible  <bruno@clisp.org>
15634
15635         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15636         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15637         strerror_r() returned without filling the buffer.
15638         Reported by Eric Blake.
15639
15640 2011-05-19  Eric Blake  <eblake@redhat.com>
15641
15642         strerror_r: guarantee unchanged errno
15643         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15644         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15645         failure.
15646         * tests/test-strerror_r.c (main): Enhance test.
15647
15648 2011-05-19  Bruno Haible  <bruno@clisp.org>
15649
15650         strerror_r: Reorder #if blocks.
15651         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15652         for consistency with the previous commit.
15653
15654 2011-05-19  Bruno Haible  <bruno@clisp.org>
15655
15656         perror: Avoid clobbering the strerror buffer when possible.
15657         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15658         * lib/strerror.c: Include it.
15659         * modules/strerror (Files): Add lib/strerror-impl.h.
15660         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15661         (my_strerror): New function, defined through lib/strerror-impl.h.
15662         (perror): Use it instead of strerror.
15663         * modules/perror (Files): Add lib/strerror-impl.h.
15664         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15665
15666 2011-05-19  Eric Blake  <eblake@redhat.com>
15667
15668         strerror_r: fix on newer cygwin
15669         * lib/strerror_r.c (strerror_r): Cygwin now has
15670         __xpg_strerror_r, use it.
15671
15672 2011-05-19  Bruno Haible  <bruno@clisp.org>
15673
15674         strerror_r: Avoid clobbering the strerror buffer when possible.
15675         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15676         (sys_nerr, sys_errlist): New declarations.
15677         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15678         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15679         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15680
15681 2011-05-19  Bruno Haible  <bruno@clisp.org>
15682
15683         strerror_r: Fix test failure on mingw.
15684         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15685         EXTEND_STRERROR_R.
15686         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15687         macros from errno.in.h instead.
15688
15689 2011-05-19  Eric Blake  <eblake@redhat.com>
15690
15691         strerror: relax test for Solaris
15692         * tests/test-strerror.c (main): Permit Solaris behavior.
15693         * tests/test-strerror_r.c (main): Likewise.
15694
15695         strerror: enforce POSIX ruling on strerror(0)
15696         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15697         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15698         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15699         * doc/posix-functions/strerror.texi (strerror): Document it.
15700         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15701         * tests/test-strerror.c (main): Strengthen test.
15702         * tests/test-strerror_r.c (main): Likewise.
15703
15704 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15705
15706         intprop-tests: port to older and more-pedantic compilers
15707         * modules/intprops-tests (Files): Add tests/macros.h.
15708         * tests/test-intprops.c: Include macros.h.
15709         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15710         it's no longer documented to expand to an integer constant expression.
15711         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15712         argument is floating point, as it's no longer documented to expand
15713         to an integer constant expression in that case.
15714         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15715         compiler bugs reported by Bruno Haible.  See
15716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15717         (U0, U1): New constants, to work around the same bugs.  Also,
15718         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15719
15720         intprops: work around C compiler bugs
15721         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15722         bug in Sun C 5.11 2010/08/13 and other compilers; see
15723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15724
15725         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15726         * doc/intprops.texi (Integer Type Determination): Fix
15727         documentation for TYPE_IS_INTEGER: it returns an constant
15728         expression, not an integer constant expression.  Fix doc for
15729         TYPE_SIGNED: it returns an integer constant expression only if its
15730         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15731         hardly worth documented that way....)
15732
15733 2011-05-18  Bruno Haible  <bruno@clisp.org>
15734
15735         strerror_r: Avoid clobbering the strerror buffer when possible.
15736         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15737         Handle gnulib defined errno values here. When strerror() returns NULL
15738         or an empty string, return EINVAL.
15739         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15740         gnulib defined errno values here.
15741         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15742
15743 2011-05-18  Eric Blake  <eblake@redhat.com>
15744
15745         fnmatch: avoid compiler warning
15746         * lib/fnmatch_loop.c (FCT): Use correct type.
15747         Reported by Matthias Bolte.
15748
15749 2011-05-13  Jim Meyering  <meyering@redhat.com>
15750
15751         maint.mk: three new prohibit_<HDR>_without_use rules
15752         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15753         (sc_prohibit_stdio-safer_without_use): Likewise.
15754         (sc_prohibit_xfreopen_without_use): Likewise.
15755
15756 2011-05-17  Jim Meyering  <meyering@redhat.com>
15757
15758         announce-gen: fail if the NEWS delta is empty
15759         If there's nothing noteworthy in NEWS, then either you forgot
15760         or you shouldn't be releasing.
15761         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15762
15763 2011-05-17  Pádraig Brady <P@draigBrady.com>
15764
15765         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15766         reserved symbols starting with double underscore from the check.
15767
15768 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         intprops: add doc
15771         * doc/intprops.texi: New file, documenting intprops.
15772         * doc/gnulib.texi (Particular Modules): Include it.
15773
15774         verify: add doc to gnulib manual and fix example
15775         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15776         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15777         (Compile-time Assertions): Fix example so it can't overflow.
15778
15779 2011-05-17  Jim Meyering  <meyering@redhat.com>
15780
15781         warnings.m4: don't usurp save_CPPFLAGS variable name
15782         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15783
15784         doc: fix typo
15785         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15786
15787 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15788             Bruno Haible  <bruno@clisp.org>
15789
15790         doc: Tweak recent change.
15791         * README (Portability guidelines): Tweak new text.
15792         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15793         Interix 6.1.
15794
15795 2011-05-16  Eric Blake  <eblake@redhat.com>
15796
15797         inttypes: avoid autoconf warning
15798         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15799         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15800
15801 2011-05-16  Sam Steingold <sds@gnu.org>
15802         and Eric Blake  <eblake@redhat.com>
15803
15804         vc-list-files: accept multiple directory operands
15805         * build-aux/vc-list-files: Iterate over all remaining operands.
15806
15807 2011-05-16  Bruno Haible  <bruno@clisp.org>
15808
15809         Fix confusion regarding deprecated modules.
15810         * modules/calloc (Status, Notice): Mark module as deprecated, not
15811         obsolete.
15812         * modules/fnmatch-posix (Status, Notice): Likewise.
15813         * modules/getdate (Status, Notice): Likewise.
15814         * modules/getopt (Status, Notice): Likewise.
15815         * modules/malloc (Status, Notice): Likewise.
15816         * modules/pipe (Status, Notice): Likewise.
15817         * modules/realloc (Status, Notice): Likewise.
15818         * modules/rename-dest-slash (Status, Notice): Likewise.
15819         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15820         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15821         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15822         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15823         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15824
15825 2011-05-16  Bruno Haible  <bruno@clisp.org>
15826
15827         doc: List the target platforms.
15828         * doc/gnulib-intro.texi (Target Platforms): New section.
15829         * doc/gnulib.texi (Introduction): Update menu.
15830         * README (Portability guidelines): Refer to the new section. Update
15831         statement about oldest supported environment. Remove rationale why
15832         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15833         unportable C89 function.
15834         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15835         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15836
15837 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15840
15841 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15842
15843         intprops-tests: new module
15844         * modules/intprops-tests, tests/test-intprops.c: New files.
15845
15846         intprops: add safe, portable integer overflow checking
15847         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15848         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15849         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15850         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15851         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15852         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15853         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15854         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15855         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15856         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15857         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15858
15859 2011-05-12  James Youngman  <jay@gnu.org>
15860
15861         Add a test for glibc's Bugzilla bug #12378.
15862         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15863         doesn't allow the literal matching of a lone "[" (which is
15864         required by POSIX).
15865         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15866
15867 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15868
15869         Sync glibc change fixing Bugzilla bug #12378.
15870         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15871         beginning and fall back to matching as normal character if the
15872         string ends before the matching ']' is found.  This is what POSIX
15873         requires.
15874
15875 2011-05-13  Eric Blake  <eblake@redhat.com>
15876
15877         getcwd-lgpl: relax test for FreeBSD
15878         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15879         issue.
15880         * tests/test-getcwd-lgpl.c (main): Relax test.
15881         Reported by Matthias Bolte.
15882
15883 2011-05-11  Eric Blake  <eblake@redhat.com>
15884
15885         test-fflush: silence compiler warning
15886         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15887
15888 2011-05-11  Bruno Haible  <bruno@clisp.org>
15889
15890         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15891         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15892         * modules/canonicalize (Depends-on): Add 'nocrash'.
15893         * modules/canonicalize-lgpl (Depends-on): Likewise.
15894         * doc/posix-functions/realpath.texi: Update platforms list.
15895         Reported by Ryan Schmidt <ryandesign@macports.org>.
15896
15897 2011-05-11  Bruno Haible  <bruno@clisp.org>
15898
15899         group-member: Declare function in <unistd.h>.
15900         * lib/unistd.in.h (group_member): New declaration.
15901         * lib/group-member.h: Remove file.
15902         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15903         * tests/test-unistd-c++.cc: Check signature of group_member.
15904         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15905         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15906         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15907         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15908         HAVE_GROUP_MEMBER.
15909         * modules/group-member (Files): Remove lib/group-member.h.
15910         (Depends-on): Add unistd. Specify conditions.
15911         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15912         (Include): Change to <unistd.h>.
15913         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15914         HAVE_GROUP_MEMBER.
15915         * NEWS: Mention the change.
15916         * lib/euidaccess.c: Don't include group-member.h.
15917
15918 2011-05-11  Bruno Haible  <bruno@clisp.org>
15919
15920         group-member: Document module.
15921         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15922         module.
15923
15924 2011-05-11  Bruno Haible  <bruno@clisp.org>
15925
15926         fclose: Fix mistake earlier today.
15927         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15928
15929 2011-05-11  Eric Blake  <eblake@redhat.com>
15930
15931         fclose: preserve fflush errors
15932         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15933         Reported by Jim Meyering.
15934
15935         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15936         * build-aux/bootstrap (check_versions): When no specific version
15937         is required, merely check that the app produces an exit status
15938         that indicates its existence.
15939
15940         maint.mk: drop redundant check
15941         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15942         the same but better.
15943
15944 2011-05-11  Bruno Haible  <bruno@clisp.org>
15945
15946         fclose: Fix possible link error.
15947         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15948         unregister_shadow_fd. Improve comments.
15949         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15950         Eric Blake.
15951
15952 2011-05-11  Jim Meyering  <meyering@redhat.com>
15953
15954         maint.mk: improve "can not" detection and generalize rule name
15955         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15956         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15957         Use the same technique as in sc_prohibit_doubled_word, so that
15958         we recognize "can not" also when the words are separated by a newline.
15959         Suggested by Eric Blake.
15960         (perl_filename_lineno_text_): Define.  Factored out of...
15961         (prohibit_doubled_word_): ...here.  Use the new definition.
15962         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15963         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15964         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15965
15966 2011-05-10  Eric Blake  <eblake@redhat.com>
15967
15968         fclose: avoid double close race when possible
15969         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15970         all but WINDOWS_SOCKETS.
15971
15972 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15973
15974         openat: correct new comment
15975         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15976
15977 2011-05-10  Jim Meyering  <meyering@redhat.com>
15978
15979         openat: add comments
15980         * lib/openat-proc.c (openat_proc_name): Add comments,
15981         mostly from Eric Blake.
15982
15983 2011-05-09  Eric Blake  <eblake@redhat.com>
15984
15985         openat: reduce syscalls in first probe of /proc
15986         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15987         be a directory.  Simplify the probe for .. bugs.
15988         * modules/openat (Depends-on): Drop same-inode.
15989         Reported by Bastien ROUCARIES.
15990
15991 2011-05-09  Jim Meyering  <meyering@redhat.com>
15992
15993         maint.mk: change semantics/name of tight_scope variables
15994         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15995         Rename variables to align with semantics that make them more useful.
15996
15997         maint.mk: tweak new rule's name not to impinge
15998         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15999         (sc_tight_scope): Use new rule name rather than $@-0.
16000
16001         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16002         * top/maint.mk (sc_tight_scope): New rule.
16003         (sc_tight_scope-0): New rule, ifdef'd out.
16004         (_gl_TS_dir): Default.
16005         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16006         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16007
16008 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16009
16010         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16011         Haible <bruno@clisp.org>.
16012
16013 2011-05-08  Bruno Haible  <bruno@clisp.org>
16014
16015         Comments.
16016         * m4/isnanf.m4: Add comment.
16017         * m4/isnanl.m4: Likewise.
16018
16019 2011-05-08  Bruno Haible  <bruno@clisp.org>
16020
16021         glob: Remove obsolete macro.
16022         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16023
16024 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16025
16026         intprops: Sun C 5.11 supports __typeof__
16027         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16028         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16029         which is new.
16030         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16031
16032         intprops: switch to usual gnulib indenting and naming
16033         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16034         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16035
16036         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16037
16038 2011-05-08  Jim Meyering  <meyering@redhat.com>
16039
16040         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16041         * top/maint.mk (release-prep): Use make's --no-print-directory
16042         option when generating the announcement.  This eliminates the
16043         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16044         generated announcement template.
16045
16046 2011-05-08  Bruno Haible  <bruno@clisp.org>
16047
16048         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16049         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16050         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16051
16052 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16053
16054         ignore-value, verify: Omit include files from lib_SOURCES.
16055         * modules/ignore-value, modules/verify (Makefile.am):
16056         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16057         that leads Automake to duplicate use of am__objects_... variables
16058         in Makefile.in.  See
16059         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16060
16061 2011-05-07  Bruno Haible  <bruno@clisp.org>
16062
16063         fclose: Simplify autoconf macro.
16064         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16065         defined.
16066
16067 2011-05-07  Bruno Haible  <bruno@clisp.org>
16068
16069         canonicalize-lgpl: Fix autoconf macro ordering bug.
16070         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16071         gl_STDLIB_H_DEFAULTS.
16072
16073 2011-05-06  Eric Blake  <eblake@redhat.com>
16074
16075         maintainer-makefile: make sc_po_check easier to tune
16076         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16077         to probe for strings, such as an alternate location for gnulib.
16078
16079         fclose: guarantee behavior on seekable stdin
16080         * modules/fclose (Depends-on): Add fflush.
16081         * doc/posix-functions/fclose.texi (fclose): Document this.
16082         * tests/test-fclose.c (main): Make test for this unconditional.
16083
16084 2011-05-06  Bruno Haible  <bruno@clisp.org>
16085
16086         fflush, fpurge: Relicense under LGPLv2+.
16087         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16088         * modules/fpurge (License): Likewise.
16089         With permission from Eric Blake and Jim Meyering.
16090         Suggested by Eric Blake.
16091
16092 2011-05-06  Karl Berry  <karl@gnu.org>
16093
16094         * MODULES.html.sh (func_all_modules): remove exit.
16095
16096 2011-05-06  Jim Meyering  <meyering@redhat.com>
16097
16098         maint.mk: use info-gnu@ as the default only for a stable release
16099         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16100         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16101         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16103
16104 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16105
16106         assert-h: new module, which supports C1X-style static_assert
16107         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16108         * lib/verify.h: Revamp so that this can be copied into assert.h,
16109         while retaining the ability to use it standalone as before.
16110         Rename private identifiers so as not to encroach on the
16111         standard C namespace, since this is now used by assert.h.
16112         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16113         the old verify_true.
16114         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16115         the old verify_true.  Use _GL_VERIFY_TYPE.
16116         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16117         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16118         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16119         defined when this file is copied into the replacement assert.h.
16120         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16121         and _Static_assert is not built in.
16122         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16123         defined, and use the new macros mentioned above.
16124         * doc/posix-headers/assert.texi: Document this.
16125
16126 2011-05-05  Bruno Haible  <bruno@clisp.org>
16127
16128         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16129         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16130         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16131         gl_REPLACE_FCLOSE here.
16132         * modules/fflush (Depends-on): Remove fclose.
16133         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16134         combination with module 'fclose'.
16135
16136 2011-05-05  Bruno Haible  <bruno@clisp.org>
16137
16138         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16139         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16140         gl_FUNC_FFLUSH.
16141         (gl_FUNC_FFLUSH): Use it.
16142         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16144         gl_REPLACE_FSEEKO here.
16145
16146 2011-05-05  Bruno Haible  <bruno@clisp.org>
16147
16148         tzset: Relicense under LGPL.
16149         * modules/tzset (License): Change to LGPL.
16150         No agreement needed; it's a no-op.
16151
16152         strtoimax, strtoumax: Relicense under LGPL.
16153         * modules/strtoimax (License): Change to LGPL.
16154         * modules/strtoumax (License): Likewise.
16155         With permission from Jim Meyering, Paul Eggert:
16156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16158
16159         getgroups: Relicense under LGPL.
16160         * modules/getgroups (License): Change to LGPL.
16161         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16165
16166         nanosleep: Relicense under LGPL.
16167         * modules/nanosleep (License): Change to LGPL.
16168         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16169         Haible:
16170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16174
16175         futimens: Relicense under LGPL.
16176         * modules/futimens (License): Change to LGPL.
16177         With permission from Eric Blake:
16178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16179
16180         fflush: Relicense under LGPL.
16181         * modules/fflush (License): Change to LGPL.
16182         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16186
16187         tmpfile: Relicense under LGPL.
16188         * modules/tmpfile (License): Change to LGPL.
16189         With permission from Ben Pfaff:
16190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16191
16192         isfinite: Relicense under LGPL.
16193         * modules/isfinite (License): Change to LGPL.
16194         With permission from Ben Pfaff, Bruno Haible:
16195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16197
16198         acosl..tanl: Relicense under LGPL.
16199         * modules/acosl (License): Change to LGPL.
16200         * modules/asinl (License): Likewise.
16201         * modules/atanl (License): Likewise.
16202         * modules/cosl (License): Likewise.
16203         * modules/expl (License): Likewise.
16204         * modules/logl (License): Likewise.
16205         * modules/sinl (License): Likewise.
16206         * modules/sqrtl (License): Likewise.
16207         * modules/tanl (License): Likewise.
16208         Source code originally from glibc and Paolo Bonzini. Agreements:
16209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16211
16212 2011-05-05  Bruno Haible  <bruno@clisp.org>
16213
16214         signal: Define sighandler_t.
16215         * lib/signal.in.h (sighandler_t): New type.
16216         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16217         whether sighandler_t is defined.
16218         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16219         * modules/signal (Depends-on): Add extensions.
16220         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16221         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16222         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16223
16224 2011-05-05  Eric Blake  <eblake@redhat.com>
16225
16226         maint: remove useless REPLACE_*_H macros
16227         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16228         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16229         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16230         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16231         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16232         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16233         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16234         * m4/btowc.m4: Update callers.
16235         * m4/dirfd.m4: Likewise.
16236         * m4/duplocale.m4: Likewise.
16237         * m4/fchdir.m4: Likewise.
16238         * m4/fdopendir.m4: Likewise.
16239         * m4/inet_ntop.m4: Likewise.
16240         * m4/inet_pton.m4: Likewise.
16241         * m4/ioctl.m4: Likewise.
16242         * m4/mbrlen.m4: Likewise.
16243         * m4/mbrtowc.m4: Likewise.
16244         * m4/mbsinit.m4: Likewise.
16245         * m4/mbsnrtowcs.m4: Likewise.
16246         * m4/mbsrtowcs.m4: Likewise.
16247         * m4/poll.m4: Likewise.
16248         * m4/setlocale.m4: Likewise.
16249         * m4/wcrtomb.m4: Likewise.
16250         * m4/wcsnrtombs.m4: Likewise.
16251         * m4/wcsrtombs.m4: Likewise.
16252         * m4/wctob.m4: Likewise.
16253         * m4/wcwidth.m4: Likewise.
16254         * modules/posix_spawn: Likewise.
16255         * modules/posix_spawn_file_actions_addclose: Likewise.
16256         * modules/posix_spawn_file_actions_adddup2: Likewise.
16257         * modules/posix_spawn_file_actions_addopen: Likewise.
16258         * modules/posix_spawn_file_actions_destroy: Likewise.
16259         * modules/posix_spawn_file_actions_init: Likewise.
16260         * modules/posix_spawnattr_destroy: Likewise.
16261         * modules/posix_spawnattr_getflags: Likewise.
16262         * modules/posix_spawnattr_getpgroup: Likewise.
16263         * modules/posix_spawnattr_getschedparam: Likewise.
16264         * modules/posix_spawnattr_getschedpolicy: Likewise.
16265         * modules/posix_spawnattr_getsigdefault: Likewise.
16266         * modules/posix_spawnattr_getsigmask: Likewise.
16267         * modules/posix_spawnattr_init: Likewise.
16268         * modules/posix_spawnattr_setflags: Likewise.
16269         * modules/posix_spawnattr_setpgroup: Likewise.
16270         * modules/posix_spawnattr_setschedparam: Likewise.
16271         * modules/posix_spawnattr_setschedpolicy: Likewise.
16272         * modules/posix_spawnattr_setsigdefault: Likewise.
16273         * modules/posix_spawnattr_setsigmask: Likewise.
16274         * modules/posix_spawnp: Likewise.
16275
16276 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16277
16278         Add option to do-release-commit-and-tag to specify branch.
16279         * build-aux/do-release-commit-and-tag: Add --branch.
16280
16281 2011-05-03  Bruno Haible  <bruno@clisp.org>
16282
16283         Avoid unnecessary compilation units, through conditional dependencies.
16284         * modules/accept (Depends-on): Add conditions to the dependencies.
16285         * modules/acosl (Depends-on): Likewise.
16286         * modules/argz (Depends-on): Likewise.
16287         * modules/asinl (Depends-on): Likewise.
16288         * modules/atanl (Depends-on): Likewise.
16289         * modules/atoll (Depends-on): Likewise.
16290         * modules/bind (Depends-on): Likewise.
16291         * modules/btowc (Depends-on): Likewise.
16292         * modules/canonicalize-lgpl (Depends-on): Likewise.
16293         * modules/ceil (Depends-on): Likewise.
16294         * modules/ceilf (Depends-on): Likewise.
16295         * modules/ceill (Depends-on): Likewise.
16296         * modules/chdir-long (Depends-on): Likewise.
16297         * modules/chown (Depends-on): Likewise.
16298         * modules/close (Depends-on): Likewise.
16299         * modules/connect (Depends-on): Likewise.
16300         * modules/cosl (Depends-on): Likewise.
16301         * modules/dirfd (Depends-on): Likewise.
16302         * modules/dprintf (Depends-on): Likewise.
16303         * modules/dprintf-posix (Depends-on): Likewise.
16304         * modules/error (Depends-on): Likewise.
16305         * modules/euidaccess (Depends-on): Likewise.
16306         * modules/expl (Depends-on): Likewise.
16307         * modules/faccessat (Depends-on): Likewise.
16308         * modules/fchdir (Depends-on): Likewise.
16309         * modules/fclose (Depends-on): Likewise.
16310         * modules/fcntl (Depends-on): Likewise.
16311         * modules/fdopendir (Depends-on): Likewise.
16312         * modules/fflush (Depends-on): Likewise.
16313         * modules/floor (Depends-on): Likewise.
16314         * modules/floorf (Depends-on): Likewise.
16315         * modules/floorl (Depends-on): Likewise.
16316         * modules/fnmatch (Depends-on): Likewise.
16317         * modules/fopen (Depends-on): Likewise.
16318         * modules/fprintf-posix (Depends-on): Likewise.
16319         * modules/frexp (Depends-on): Likewise.
16320         * modules/frexp-nolibm (Depends-on): Likewise.
16321         * modules/frexpl (Depends-on): Likewise.
16322         * modules/frexpl-nolibm (Depends-on): Likewise.
16323         * modules/fseek (Depends-on): Likewise.
16324         * modules/fsusage (Depends-on): Likewise.
16325         * modules/ftell (Depends-on): Likewise.
16326         * modules/ftello (Depends-on): Likewise.
16327         * modules/futimens (Depends-on): Likewise.
16328         * modules/getcwd (Depends-on): Likewise.
16329         * modules/getcwd-lgpl (Depends-on): Likewise.
16330         * modules/getdelim (Depends-on): Likewise.
16331         * modules/getdomainname (Depends-on): Likewise.
16332         * modules/getgroups (Depends-on): Likewise.
16333         * modules/gethostname (Depends-on): Likewise.
16334         * modules/getline (Depends-on): Likewise.
16335         * modules/getlogin_r (Depends-on): Likewise.
16336         * modules/getopt-posix (Depends-on): Likewise.
16337         * modules/getpeername (Depends-on): Likewise.
16338         * modules/getsockname (Depends-on): Likewise.
16339         * modules/getsockopt (Depends-on): Likewise.
16340         * modules/getsubopt (Depends-on): Likewise.
16341         * modules/getusershell (Depends-on): Likewise.
16342         * modules/glob (Depends-on): Likewise.
16343         * modules/grantpt (Depends-on): Likewise.
16344         * modules/iconv_open (Depends-on): Likewise.
16345         * modules/iconv_open-utf (Depends-on): Likewise.
16346         * modules/inet_ntop (Depends-on): Likewise.
16347         * modules/inet_pton (Depends-on): Likewise.
16348         * modules/ioctl (Depends-on): Likewise.
16349         * modules/isapipe (Depends-on): Likewise.
16350         * modules/isfinite (Depends-on): Likewise.
16351         * modules/isinf (Depends-on): Likewise.
16352         * modules/lchown (Depends-on): Likewise.
16353         * modules/ldexpl (Depends-on): Likewise.
16354         * modules/link (Depends-on): Likewise.
16355         * modules/linkat (Depends-on): Likewise.
16356         * modules/listen (Depends-on): Likewise.
16357         * modules/logl (Depends-on): Likewise.
16358         * modules/lstat (Depends-on): Likewise.
16359         * modules/mbrlen (Depends-on): Likewise.
16360         * modules/mbrtowc (Depends-on): Likewise.
16361         * modules/mbsinit (Depends-on): Likewise.
16362         * modules/mbsnrtowcs (Depends-on): Likewise.
16363         * modules/mbsrtowcs (Depends-on): Likewise.
16364         * modules/mbtowc (Depends-on): Likewise.
16365         * modules/memcmp (Depends-on): Likewise.
16366         * modules/mkdir (Depends-on): Likewise.
16367         * modules/mkdtemp (Depends-on): Likewise.
16368         * modules/mkfifo (Depends-on): Likewise.
16369         * modules/mkfifoat (Depends-on): Likewise.
16370         * modules/mknod (Depends-on): Likewise.
16371         * modules/mkostemp (Depends-on): Likewise.
16372         * modules/mkostemps (Depends-on): Likewise.
16373         * modules/mkstemp (Depends-on): Likewise.
16374         * modules/mkstemps (Depends-on): Likewise.
16375         * modules/mktime (Depends-on): Likewise.
16376         * modules/nanosleep (Depends-on): Likewise.
16377         * modules/open (Depends-on): Likewise.
16378         * modules/openat (Depends-on): Likewise.
16379         * modules/perror (Depends-on): Likewise.
16380         * modules/poll (Depends-on): Likewise.
16381         * modules/popen (Depends-on): Likewise.
16382         * modules/posix_spawn (Depends-on): Likewise.
16383         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16384         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16385         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16386         * modules/posix_spawnp (Depends-on): Likewise.
16387         * modules/pread (Depends-on): Likewise.
16388         * modules/printf-posix (Depends-on): Likewise.
16389         * modules/ptsname (Depends-on): Likewise.
16390         * modules/putenv (Depends-on): Likewise.
16391         * modules/pwrite (Depends-on): Likewise.
16392         * modules/readline (Depends-on): Likewise.
16393         * modules/readlink (Depends-on): Likewise.
16394         * modules/readlinkat (Depends-on): Likewise.
16395         * modules/recv (Depends-on): Likewise.
16396         * modules/recvfrom (Depends-on): Likewise.
16397         * modules/regex (Depends-on): Likewise.
16398         * modules/remove (Depends-on): Likewise.
16399         * modules/rename (Depends-on): Likewise.
16400         * modules/renameat (Depends-on): Likewise.
16401         * modules/rmdir (Depends-on): Likewise.
16402         * modules/round (Depends-on): Likewise.
16403         * modules/roundf (Depends-on): Likewise.
16404         * modules/roundl (Depends-on): Likewise.
16405         * modules/rpmatch (Depends-on): Likewise.
16406         * modules/select (Depends-on): Likewise.
16407         * modules/send (Depends-on): Likewise.
16408         * modules/sendto (Depends-on): Likewise.
16409         * modules/setenv (Depends-on): Likewise.
16410         * modules/setlocale (Depends-on): Likewise.
16411         * modules/setsockopt (Depends-on): Likewise.
16412         * modules/shutdown (Depends-on): Likewise.
16413         * modules/sigaction (Depends-on): Likewise.
16414         * modules/signbit (Depends-on): Likewise.
16415         * modules/sigprocmask (Depends-on): Likewise.
16416         * modules/sinl (Depends-on): Likewise.
16417         * modules/sleep (Depends-on): Likewise.
16418         * modules/snprintf (Depends-on): Likewise.
16419         * modules/snprintf-posix (Depends-on): Likewise.
16420         * modules/socket (Depends-on): Likewise.
16421         * modules/sprintf-posix (Depends-on): Likewise.
16422         * modules/sqrtl (Depends-on): Likewise.
16423         * modules/stat (Depends-on): Likewise.
16424         * modules/strchrnul (Depends-on): Likewise.
16425         * modules/strdup-posix (Depends-on): Likewise.
16426         * modules/strerror (Depends-on): Likewise.
16427         * modules/strerror_r-posix (Depends-on): Likewise.
16428         * modules/strndup (Depends-on): Likewise.
16429         * modules/strnlen (Depends-on): Likewise.
16430         * modules/strptime (Depends-on): Likewise.
16431         * modules/strsep (Depends-on): Likewise.
16432         * modules/strsignal (Depends-on): Likewise.
16433         * modules/strstr-simple (Depends-on): Likewise.
16434         * modules/strtod (Depends-on): Likewise.
16435         * modules/strtoimax (Depends-on): Likewise.
16436         * modules/strtok_r (Depends-on): Likewise.
16437         * modules/strtoumax (Depends-on): Likewise.
16438         * modules/symlink (Depends-on): Likewise.
16439         * modules/symlinkat (Depends-on): Likewise.
16440         * modules/tanl (Depends-on): Likewise.
16441         * modules/tcgetsid (Depends-on): Likewise.
16442         * modules/tmpfile (Depends-on): Likewise.
16443         * modules/trunc (Depends-on): Likewise.
16444         * modules/truncf (Depends-on): Likewise.
16445         * modules/truncl (Depends-on): Likewise.
16446         * modules/uname (Depends-on): Likewise.
16447         * modules/unlink (Depends-on): Likewise.
16448         * modules/unlockpt (Depends-on): Likewise.
16449         * modules/unsetenv (Depends-on): Likewise.
16450         * modules/usleep (Depends-on): Likewise.
16451         * modules/utimensat (Depends-on): Likewise.
16452         * modules/vasprintf (Depends-on): Likewise.
16453         * modules/vdprintf (Depends-on): Likewise.
16454         * modules/vdprintf-posix (Depends-on): Likewise.
16455         * modules/vfprintf-posix (Depends-on): Likewise.
16456         * modules/vprintf-posix (Depends-on): Likewise.
16457         * modules/vsnprintf (Depends-on): Likewise.
16458         * modules/vsnprintf-posix (Depends-on): Likewise.
16459         * modules/vsprintf-posix (Depends-on): Likewise.
16460         * modules/wcrtomb (Depends-on): Likewise.
16461         * modules/wcscasecmp (Depends-on): Likewise.
16462         * modules/wcscspn (Depends-on): Likewise.
16463         * modules/wcsdup (Depends-on): Likewise.
16464         * modules/wcsncasecmp (Depends-on): Likewise.
16465         * modules/wcsnrtombs (Depends-on): Likewise.
16466         * modules/wcspbrk (Depends-on): Likewise.
16467         * modules/wcsrtombs (Depends-on): Likewise.
16468         * modules/wcsspn (Depends-on): Likewise.
16469         * modules/wcsstr (Depends-on): Likewise.
16470         * modules/wcstok (Depends-on): Likewise.
16471         * modules/wcswidth (Depends-on): Likewise.
16472         * modules/wctob (Depends-on): Likewise.
16473         * modules/wctomb (Depends-on): Likewise.
16474         * modules/wctype (Depends-on): Likewise.
16475         * modules/wcwidth (Depends-on): Likewise.
16476         * modules/write (Depends-on): Likewise.
16477
16478 2011-05-03  Bruno Haible  <bruno@clisp.org>
16479
16480         Support for conditional dependencies.
16481         * doc/gnulib.texi (Module description): Document the syntax of
16482         conditional dependencies.
16483         * gnulib-tool: New option --conditional-dependencies.
16484         (func_usage): Document it.
16485         (cond_dependencies): New variable.
16486         (func_get_automake_snippet_conditional,
16487         func_get_automake_snippet_unconditional): New functions, extracted from
16488         func_get_automake_snippet.
16489         (func_get_automake_snippet): Use them.
16490         (sed_first_32_chars): New variable.
16491         (func_module_shellfunc_name): New function.
16492         (func_module_shellvar_name): New function.
16493         (func_module_conditional_name): New function.
16494         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16495         func_cond_module_condition): New functions.
16496         (func_modules_transitive_closure): Add support for conditional
16497         dependencies.
16498         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16499         conditional automake snippet in an automake conditional.
16500         (func_emit_autoconf_snippets): Emit shell functions that contain the
16501         code for conditional modules.
16502         (func_import, func_create_testdir): Update specification.
16503
16504 2011-05-03  Eric Blake  <eblake@redhat.com>
16505
16506         test-getaddrinfo: report error information
16507         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16508
16509 2011-05-03  Jim Meyering  <meyering@redhat.com>
16510
16511         bootstrap: avoid build failure when $GZIP is set
16512         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16513         program name.  If defined at all, it is supposed to list gzip options.
16514         Reported by Alan Curry in http://debbugs.gnu.org/8609
16515
16516 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16517
16518         readme-release: new module with release instructions
16519         * modules/readme-release: New module.
16520         * top/README-release: New file, from coreutils, grep, diffutils.
16521         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16522
16523 2011-05-02  Eric Blake  <eblake@redhat.com>
16524
16525         fflush: also replace fclose when fixing fflush
16526         * modules/fflush (Depends-on): Add fclose.
16527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16528         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16529         memstreams with no backing fd.
16530         * doc/posix-functions/fclose.texi (fclose): Document the use of
16531         fflush module to fix the bug.
16532         * tests/test-fclose.c (main): Relax test when fclose is used in
16533         isolation.
16534
16535         fclose: add some tests
16536         * modules/fclose-tests: New test module.
16537         * tests/test-fclose.c: New file.
16538         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16539
16540         fclose: reduced dependencies
16541         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16542         simpler lseek.
16543         * lib/fclose.c (rpl_fclose): Likewise.
16544         Reported by Simon Josefsson.
16545
16546         exit: drop remaining clients
16547         * modules/argmatch (Depends-on): Replace exit with stdlib.
16548         * modules/copy-file (Depends-on): Likewise.
16549         * modules/execute (Depends-on): Likewise.
16550         * modules/exitfail (Depends-on): Likewise.
16551         * modules/obstack (Depends-on): Likewise.
16552         * modules/pagealign_alloc (Depends-on): Likewise.
16553         * modules/pipe-filter-gi (Depends-on): Likewise.
16554         * modules/pipe-filter-ii (Depends-on): Likewise.
16555         * modules/savewd (Depends-on): Likewise.
16556         * modules/spawn-pipe (Depends-on): Likewise.
16557         * modules/wait-process (Depends-on): Likewise.
16558         * modules/xsetenv (Depends-on): Likewise.
16559         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16560         * modules/git-merge-changelog (Depends-on): Likewise.
16561         * modules/long-options (Depends-on): Likewise.
16562         * modules/pt_chown (Depends-on): Likewise.
16563         * modules/sysexits (Depends-on): Likewise.
16564
16565         freading: relax license from LGPLv3+ to LGPLv2+
16566         * modules/freading (License): Relax LGPL version.
16567
16568 2011-05-02  Bruno Haible  <bruno@clisp.org>
16569
16570         fchdir: Remove unused dependencies.
16571         * modules/fchdir (Depends-on): Remove include_next.
16572
16573 2011-05-02  Bruno Haible  <bruno@clisp.org>
16574
16575         gnulib-tool: Refactor.
16576         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16577         from func_emit_autoconf_snippets.
16578         (func_emit_autoconf_snippets): Use it.
16579
16580 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16581
16582         * NEWS: Document removal of 'exit'.
16583         * modules/exit: Remove file.
16584
16585 2011-05-01  Bruno Haible  <bruno@clisp.org>
16586
16587         Update DEPENDENCIES.
16588         * DEPENDENCIES (gettext): Recommend the newest release.
16589         Reported by Simon Josefsson.
16590
16591 2011-05-01  Bruno Haible  <bruno@clisp.org>
16592
16593         gnulib-tool: Reduce code duplication.
16594         * gnulib-tool (func_emit_autoconf_snippets): New function.
16595         (func_import, func_create_testdir): Use it.
16596
16597 2011-04-30  Eric Blake  <eblake@redhat.com>
16598
16599         fclose: don't fail on non-seekable input stream
16600         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16601         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16602         since fflush is allowed to fail in that case.
16603
16604 2011-04-30  Bruno Haible  <bruno@clisp.org>
16605
16606         dup3: cleanup
16607         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16608
16609 2011-04-30  Bruno Haible  <bruno@clisp.org>
16610
16611         netdb: Make it work in C++ mode.
16612         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16613         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16614         module.
16615         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16616         gl_MODULE_INDICATOR_FOR_TESTS.
16617         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16618         * modules/netdb-c++-tests: New file.
16619         * tests/test-netdb-c++.cc: New file.
16620
16621 2011-04-30  Bruno Haible  <bruno@clisp.org>
16622
16623         New modules 'vfscanf', 'vscanf'.
16624         * modules/vfscanf: New file.
16625         * modules/vscanf: New file.
16626         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16627         here.
16628         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16629         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16630
16631 2011-04-30  Bruno Haible  <bruno@clisp.org>
16632
16633         passfd: Add comments.
16634         * lib/passfd.c: Add comments about platforms.
16635
16636 2011-04-30  Bruno Haible  <bruno@clisp.org>
16637
16638         sys_uio: Make <sys/uio.h> self-contained.
16639         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16640         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16641
16642 2011-04-30  Bruno Haible  <bruno@clisp.org>
16643
16644         sys_socket: Ensure 'struct iovec' definition.
16645         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16646         <sys/socket.h>.
16647         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16648
16649 2011-04-30  Bruno Haible  <bruno@clisp.org>
16650
16651         sys_uio: Protect definition of 'struct iovec'.
16652         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16653         it as a C struct.
16654
16655 2011-04-30  Bruno Haible  <bruno@clisp.org>
16656
16657         manywarnings: fix indentation
16658         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16659
16660 2011-04-30  Pádraig Brady <P@draigBrady.com>
16661
16662         manywarnings: add -Wno-missing-field-initializers if needed.
16663         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16664         option if it's needed to allow initialization with { 0, }
16665
16666 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16667
16668         announce-gen: cosmetic improvement
16669         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16670
16671 2011-04-29  Jim Meyering  <meyering@redhat.com>
16672
16673         vc-list-files: indent with spaces, not TABs
16674         * build-aux/vc-list-files: Convert leading TABs to spaces,
16675         to match the style of most other files in gnulib.
16676
16677         announce-gen: indent with spaces, not TABs
16678         * build-aux/announce-gen: Convert all TABs to spaces, to match
16679         the style of most other files in gnulib.
16680
16681 2011-04-29  Eric Blake  <eblake@redhat.com>
16682
16683         quotearg: avoid uninitialized variable use
16684         * lib/quotearg.c (quoting_options_from_style): Initialize
16685         remaining fields, and ensure that custom styles are only used via
16686         quoting_options rather than quoting_style.
16687
16688 2011-04-29  Jim Meyering  <meyering@redhat.com>
16689
16690         maint.mk: remove unused VC-tag variable
16691         * top/maint.mk (VC-tag): Remove unused variable.
16692
16693 2011-04-29  Bruno Haible  <bruno@clisp.org>
16694
16695         netdb: fix gai_strerror replacements
16696         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16697         * modules/netdb: Substitute it.
16698
16699 2011-04-29  Jim Meyering  <meyering@redhat.com>
16700
16701         test-getcwd.c: avoid new set-but-not-used warning
16702         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16703         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16704         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16705         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16706
16707         test-hash.c: avoid a new shadowing warning
16708         * tests/test-hash.c (main): Don't shadow "dup".
16709
16710 2011-04-28  Eric Blake  <eblake@redhat.com>
16711
16712         getaddrinfo: fix gai_strerror signature
16713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16714         and work around mingw with UNICODE defined.
16715         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16716         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16717         * modules/netdb (Makefile.am): Substitute it.
16718         * lib/netdb.in.h (gai_strerror): Declare replacement.
16719         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16720         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16721         the fix.
16722
16723         getsockopt: avoid compiler warning
16724         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16725         Reported by Matthias Bolte.
16726
16727         tests: drop unused link dependency
16728         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16729         * modules/dirent-safer-tests (Makefile.am): Likewise.
16730         * modules/fdopendir-tests (Makefile.am): Likewise.
16731         * modules/mkfifoat-tests (Makefile.am): Likewise.
16732         * modules/openat-safer-tests (Makefile.am): Likewise.
16733         * modules/openat-tests (Makefile.am): Likewise.
16734         * modules/readlinkat-tests (Makefile.am): Likewise.
16735         * modules/symlinkat-tests (Makefile.am): Likewise.
16736         * modules/linkat-tests (Makefile.am): Likewise.
16737         (Depends-on): Switch to filenamecat-lgpl.
16738         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16739         LIBINTL.
16740         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16741         * tests/test-linkat.c (main): Don't require xalloc.
16742
16743         hash, mgetgroups: drop xalloc dependency
16744         * lib/hash.c (includes): Adjust includes.
16745         * lib/mgetgroups.c (includes): Likewise.
16746         (xgetgroups): Move...
16747         * lib/xgetgroups.c: ...to new file.
16748         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16749         * modules/xgetgroups: New file, split from...
16750         * modules/mgetgroups: ...here.
16751         (Depends-on): Add xalloc-oversized.
16752         * modules/hash (Depends-on): Likewise.
16753         * modules/hash-tests (Depends-on): Drop xalloc.
16754         (test_hash_LDADD): Drop unused library.
16755         * tests/test-hash.c (main): Break xalloc dependency.
16756         (includes): Drop unused include.
16757
16758         xalloc-oversized: new module
16759         * modules/xalloc-oversized: New module.
16760         * modules/xalloc (Depends-on): Add it.
16761         * lib/xalloc.h (xalloc_oversized): Move...
16762         * lib/xalloc-oversized.h: ...into new file.
16763
16764         utimecmp: drop dependency on xmalloc
16765         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16766         due to memory pressure.
16767         * modules/utimecmp (Depends-on): Drop xalloc.
16768
16769 2011-04-27  Eric Blake  <eblake@redhat.com>
16770
16771         getcwd: fix mingw bugs
16772         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16773         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16774         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16775
16776 2011-04-27  Bruno Haible  <bruno@clisp.org>
16777
16778         mkstemps: Ensure declaration on MacOS X 10.5.
16779         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16780         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16781         MacOS X.
16782
16783 2011-04-27  Bruno Haible  <bruno@clisp.org>
16784
16785         mkstemp: More documentation.
16786         * doc/posix-functions/mkstemp.texi: Document header file problem on
16787         MacOS X.
16788
16789 2011-04-27  Bruno Haible  <bruno@clisp.org>
16790
16791         mkstemp: Tweak configure message when cross-compiling.
16792         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16793         result as a guess.
16794
16795 2011-04-27  Bruno Haible  <bruno@clisp.org>
16796
16797         clean-temp: Clarify what it does.
16798         * lib/clean-temp.h: Add more comments.
16799         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16800         module.
16801         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16802         * doc/glibc-functions/mkstemps.texi: Likewise.
16803         * doc/glibc-functions/mkostemps.texi: Likewise.
16804
16805 2011-04-27  Eric Blake  <eblake@redhat.com>
16806
16807         fchdir: avoid extra chdir and fix test
16808         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16809         getcwd-lgpl.
16810         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16811         have to be canonical.
16812         (canonicalize_file_name): Drop unused macro.
16813         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16814
16815         filenamecat-lgpl: fix licence
16816         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16817         when it was first created.
16818
16819         linkat, renameat: add missing dependency
16820         * modules/linkat (Depends-on): Require getcwd-lgpl.
16821         * modules/renameat (Depends-on): Likewise.
16822
16823         tests: reduce dependencies
16824         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16825         * tests/test-renameat.c (main): Likewise.
16826         * modules/linkat-tests (Depends-on): Relax dependency.
16827         * modules/renameat-tests (Depends-on): Likewise.
16828         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16829         dependency explicit.
16830
16831         save-cwd: reduce default dependency
16832         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16833         * lib/save-cwd.c: Update comments.
16834         * NEWS: Document the semantic change.
16835
16836         getcwd: enhance tests
16837         * tests/test-getcwd-lgpl.c: New file, taken from...
16838         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16839         repeat long path stress tests from m4 probe.
16840         * modules/getcwd-lgpl-tests: New module.
16841         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16842         * m4/getcwd-abort-bug.m4: Update comment.
16843         * m4/getcwd-path-max.m4: Likewise.
16844
16845         getcwd-lgpl: new module
16846         * modules/getcwd-lgpl: New module.
16847         * lib/getcwd-lgpl.c: New file.
16848         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16849         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16850         * modules/getcwd (configure.ac): Set C witness.
16851         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16852
16853         getcwd: tweak comments
16854         * m4/getcwd-abort-bug.m4: Fix comments.
16855         * m4/getcwd-path-max.m4: Likewise.
16856         * m4/getcwd.m4: Likewise.
16857
16858 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16859         and Eric Blake  <eblake@redhat.com>
16860
16861         mkstemp: replace if system version uses wrong permissions
16862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16863         read/write mode bits set in file created by mkstemp.
16864         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16865
16866 2011-04-27  Eric Blake  <eblake@redhat.com>
16867
16868         passfd: avoid compiler warning
16869         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16870         Reported by Laine Stump.
16871
16872 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16873
16874         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16875         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16876
16877 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16878         and Eric Blake  <eblake@redhat.com>
16879
16880         mkstemp: mention clean-temp module
16881         * lib/mkstemp.c: Add comment.
16882         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16883
16884 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16885
16886         inttypes: also provide default values for 32-bit tests
16887         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16888         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16889
16890 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16891
16892         strtoumax: remove dependency on strtoimax
16893         This is like the strtoull change of yesterday.
16894         * modules/strtoumax (Files): Add lib/strtoimax.c.
16895         (Depends-on): Remove strtoimax and add verify.
16896
16897         inttypes-incomplete: new module
16898         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16899         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16900         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16901         of gl_INTTYPES_H.
16902         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16903         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16904         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16905         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16906         * modules/strtoumax, modules/xstrtol (Depends-on):
16907         Depend on inttypes-incomplete, not inttypes.
16908         * modules/inttypes-incomplete: New module, containing the contents
16909         of the old modules/inttypes module, except that the Files: section
16910         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16911         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16912         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16913         (Depends-on): Depend only on inttypes-incomplete.
16914         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16915
16916         inttypes: omit now-redundant strtoimax and strtoumax work
16917         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16918         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16919
16920         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16921         This supports apps that need pointers to strtoimax and strtoumax,
16922         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16923         nonexistent functions.  See
16924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16925         et seq.
16926         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16927         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16928         a macro.
16929         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16930
16931 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16932
16933         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16934
16935 2011-04-25  Bruno Haible  <bruno@clisp.org>
16936
16937         strtol, strtoul: Mark modules as obsolete.
16938         * modules/strtol (Status, Notice): New sections.
16939         * modules/strtoul (Status, Notice): New sections.
16940
16941 2011-04-25  Bruno Haible  <bruno@clisp.org>
16942
16943         strtod: Remove check for strtod, unless supporting old platforms.
16944         * modules/strtod-obsolete: New file.
16945         * m4/strtod-obsolete.m4: New file.
16946         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16947         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16948         * modules/strtod (Depends-on): Add strtod-obsolete.
16949         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16950
16951 2011-04-25  Bruno Haible  <bruno@clisp.org>
16952
16953         strcase: Make module obsolete.
16954         * modules/strcase (Status, Notice): New sections.
16955
16956 2011-04-25  Bruno Haible  <bruno@clisp.org>
16957
16958         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16959         * modules/dup2-obsolete: New file.
16960         * m4/dup2-obsolete.m4: New file.
16961         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16962         gl_FUNC_DUP2_OBSOLETE is not also defined.
16963         * modules/dup2 (Depends-on): Add dup2-obsolete.
16964         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16965
16966 2011-04-25  Bruno Haible  <bruno@clisp.org>
16967
16968         strnlen: Avoid memchr related link error on old obsolete platforms.
16969         * modules/memchr-obsolete: New file.
16970         * m4/memchr-obsolete.m4: New file.
16971         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16972         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16973         * modules/memchr (Depends-on): Add memchr-obsolete.
16974         * modules/strnlen (Depends-on): Likewise.
16975         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16976
16977 2011-04-25  Jim Meyering  <meyering@redhat.com>
16978
16979         maint.mk: makefile_at_at_check extend and clean up
16980         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16981         in addition to */Makefile.am.
16982         Exempt legitimate uses of @VAR@ notation, e.g.,
16983         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16984         Remove obsolete coreutils-specific comment.
16985         Prompted by discussion here:
16986         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16987
16988 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16989
16990         strtoul: remove dependency on strtol
16991         This is so that 'configure' need not check for strtol merely because
16992         the application needs strtoul.
16993         * modules/strtoul (Files): Add lib/strtol.c.
16994         (Depends-on): Remove strtol.
16995
16996         strtoull: remove dependency on strtoul
16997         This is like the strtoll change.
16998         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16999         (Depends-on): Remove strtoul.
17000
17001         strtoll: remove dependency on strtol
17002         This is so that 'configure' need not check for strtol merely because
17003         the application needs strtoll.
17004         * modules/strtoll (Files): Add lib/strtol.c.
17005         (Depends-on): Remove strtol.
17006
17007 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17008
17009         inttypes: Move some configure check to module 'imaxdiv'.
17010         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17011         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17012         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17013
17014 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17015
17016         inttypes: Move some configure check to module 'imaxabs'.
17017         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17018         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17019         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17020
17021 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17022
17023         inttypes: Remove configure tests that are not needed since 2009-12-31.
17024         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17025         gl_cv_header_working_inttypes_h.
17026
17027 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17028
17029         * modules/strnlen (Depends-on): Remove memchr.
17030         The strnlen implementation doesn't need the memchr module's fixes; see
17031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17032
17033         strtol: remove dependency on wchar
17034         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17035         * modules/strtol (Depends-on): Remove wchar.
17036
17037 2011-04-21  Eric Blake  <eblake@redhat.com>
17038
17039         passfd: fix test regression on Linux
17040         * modules/passfd-tests (configure.ac): Correct socketpair check.
17041
17042         passfd: speed up configure and drop unused code
17043         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17044         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17045         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17046         Instead of probing at configure for unix_scm_rights_bsd44_way,
17047         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17048         check to a struct member probe.
17049         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17050         (sendfd, recvfd): Update preprocessor checks.
17051         * modules/passfd (Files): Reflect rename, and drop unused file.
17052         (Depends-on): Drop unused dependency.
17053
17054         passfd: allow compilation on mingw
17055         * modules/sys_socket (Depends-on): Add sys_uio.
17056         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17057         iovec and a minimal struct msghdr.
17058         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17059         * tests/test-sys_socket.c (main): Enhance test.
17060         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17061         guaranteed to provide what we need.
17062         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17063         * modules/passfd-tests (Depends-on): Add sys_wait.
17064         * tests/test-passfd.c (main): Skip test on mingw, for now.
17065         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17066         partial 'struct msghdr' implementation.
17067
17068         sys_uio: new module
17069         * modules/sys_uio: New module.
17070         * modules/sys_uio-tests: Likewise.
17071         * lib/sys_uio.in.h: New file.
17072         * m4/sys_uio_h.m4: Likewise.
17073         * tests/test-sys_uio.c: Likewise.
17074         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17075         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17076
17077 2011-04-20  Jim Meyering  <meyering@redhat.com>
17078
17079         useless-if-before-free: avoid false-positive
17080         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17081         disjunct so that it too requires a terminating ";".  Without that,
17082         this script would identify as useless one statement from gcc that
17083         was not:
17084           if (aligned_ptr)
17085             free (((void **) aligned_ptr) [-1]);
17086
17087 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17088
17089         doc: update users.txt.
17090         * users.txt: Add barcode.
17091
17092 2011-04-19  Bruno Haible  <bruno@clisp.org>
17093
17094         ioctl: Remove link dependency on native Windows.
17095         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17096         (gl_close_fn, gl_ioctl_fn): New types.
17097         (struct fd_hook): Renamed from struct close_hook. Change type of
17098         private_close_fn field. Add private_ioctl_fn field.
17099         (close_hook_fn): Add parameter for primary close method.
17100         (execute_close_hooks, execute_all_close_hooks): Likewise.
17101         (ioctl_hook_fn): New type.
17102         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17103         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17104         argument.
17105         (unregister_fd_hook): Renamed from unregister_close_hook.
17106         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17107         Don't include <unistd.h>.
17108         (close): Remove undef.
17109         (anchor): Update.
17110         (execute_close_hooks): Add argument for primary close method.
17111         (execute_all_close_hooks): Likewise.
17112         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17113         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17114         argument. Allow each argument to be NULL.
17115         (unregister_fd_hook): Renamed from unregister_close_hook.
17116         * lib/close.c (rpl_close): Pass 'close' function pointer to
17117         execute_all_close_hooks.
17118         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17119         (primary_ioctl): New function.
17120         (ioctl): Don't call ioctlsocket here. Instead, call
17121         execute_all_ioctl_hooks.
17122         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17123         close method.
17124         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17125         (fd_sockets_hook): Renamed from close_sockets_hook.
17126         (gl_sockets_startup, gl_sockets_cleanup): Update.
17127         * modules/fd-hook: Renamed from modules/close-hook. Update.
17128         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17129         * modules/sockets (Depends-on): Likewise.
17130         * modules/ioctl (Depends-on): Add fd-hook.
17131         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17132         GNULIB_SOCKET.
17133
17134 2011-04-19  Bruno Haible  <bruno@clisp.org>
17135
17136         Move the support of O_NONBLOCK in open() to the 'open' module.
17137         * modules/nonblocking (Depends-on): Remove 'open'.
17138         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17139         gl_cv_have_open_O_NONBLOCK.
17140         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17141         O_NONBLOCK support.
17142         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17143
17144 2011-04-17  Bruno Haible  <bruno@clisp.org>
17145
17146         pipe2: Simplify code.
17147         * lib/pipe2.c (pipe2): Reduce code duplication.
17148
17149 2011-04-17  Bruno Haible  <bruno@clisp.org>
17150
17151         nonblocking: Add comment.
17152         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17153
17154 2011-04-17  Bruno Haible  <bruno@clisp.org>
17155
17156         nonblocking: Add tests for sockets.
17157         * tests/test-nonblocking-socket.sh: New file.
17158         * tests/test-nonblocking-socket-main.c: New file.
17159         * tests/test-nonblocking-socket-child.c: New file.
17160         * tests/test-nonblocking-socket.h: New file.
17161         * tests/socket-server.h: New file.
17162         * tests/socket-client.h: New file.
17163         * modules/nonblocking-socket-tests: New file.
17164         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17165
17166 2011-04-17  Bruno Haible  <bruno@clisp.org>
17167
17168         nonblocking: Add tests for pipes.
17169         * tests/test-nonblocking-pipe.sh: New file.
17170         * tests/test-nonblocking-pipe-main.c: New file.
17171         * tests/test-nonblocking-pipe-child.c: New file.
17172         * tests/test-nonblocking-pipe.h: New file.
17173         * tests/test-nonblocking-writer.h: New file.
17174         * tests/test-nonblocking-reader.h: New file.
17175         * tests/test-nonblocking-misc.h: New file.
17176         * modules/nonblocking-pipe-tests: New file.
17177         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17178
17179 2011-04-16  Bruno Haible  <bruno@clisp.org>
17180
17181         gettext: Clarify the needed programmer actions.
17182         * modules/gettext (Notice): New field.
17183         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17184
17185 2011-04-16  Bruno Haible  <bruno@clisp.org>
17186
17187         strchrnul: Tweak last commit.
17188         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17189         bug.
17190         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17191         as in _GL_FUNCDECL_SYS.
17192         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17193         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17194
17195 2011-04-15  Eric Blake  <eblake@redhat.com>
17196
17197         strchrnul: work around cygwin bug
17198         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17199         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17201         * modules/string (Makefile.am): Substitute it.
17202         * lib/string.in.h (strchrnul): Use it.
17203
17204 2011-04-15  Bruno Haible  <bruno@clisp.org>
17205
17206         Don't require lib/stdio-write.c when only module 'stdio' is used.
17207         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17208         invocation.
17209         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17210
17211 2011-04-14  Bruno Haible  <bruno@clisp.org>
17212
17213         Support non-blocking pipe I/O in read() on native Windows.
17214         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17215         (read): New declaration.
17216         * lib/read.c: New file.
17217         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17218         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17219         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17220         vscanf): New declarations.
17221         * lib/stdio-read.c: New file.
17222         * m4/read.m4: New file.
17223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17224         REPLACE_READ.
17225         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17226         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17227         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17228         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17229         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17230         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17231         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17232         * modules/read: New file.
17233         * modules/nonblocking (Files): Add lib/stdio-read.c.
17234         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17235         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17236         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17237         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17238         * modules/pread (Depends-on): Add read.
17239         * modules/safe-read (Depends-on): Likewise.
17240         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17241         gets, scanf, vfscanf, vscanf): Verify signatures.
17242         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17243         problem with non-blocking pipes.
17244         * doc/posix-functions/fgetc.texi: Likewise.
17245         * doc/posix-functions/fgets.texi: Likewise.
17246         * doc/posix-functions/fread.texi: Likewise.
17247         * doc/posix-functions/fscanf.texi: Likewise.
17248         * doc/posix-functions/getc.texi: Likewise.
17249         * doc/posix-functions/getchar.texi: Likewise.
17250         * doc/posix-functions/gets.texi: Likewise.
17251         * doc/posix-functions/scanf.texi: Likewise.
17252         * doc/posix-functions/vfscanf.texi: Likewise.
17253         * doc/posix-functions/vscanf.texi: Likewise.
17254
17255 2011-04-14  Bruno Haible  <bruno@clisp.org>
17256
17257         Support non-blocking pipe I/O in write() on native Windows.
17258         * lib/write.c (rpl_write): Split a write request that failed merely
17259         because the byte count was larger than the pipe buffer's size.
17260         * doc/posix-functions/write.texi: Mention the problem with large byte
17261         counts.
17262
17263 2011-04-14  Bruno Haible  <bruno@clisp.org>
17264
17265         wchar: Ensure that wchar_t gets defined on uClibc.
17266         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17267         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17268
17269 2011-04-13  Bruno Haible  <bruno@clisp.org>
17270
17271         safe-write, full-read: Avoid unnecessary compilation units.
17272         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17273         (Depends-on): Remove safe-read. Add ssize_t.
17274         * modules/full-read (Files): Add lib/full-write.c.
17275         (Depends-on): Add full-write.
17276
17277 2011-04-13  Bruno Haible  <bruno@clisp.org>
17278
17279         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17280         * modules/pwrite (Depends-on): Add 'write'.
17281
17282 2011-04-13  Bruno Haible  <bruno@clisp.org>
17283
17284         Support non-blocking pipe I/O in write() on native Windows.
17285         * lib/unistd.in.h (write): Enable replacement also if
17286         GNULIB_UNISTD_H_NONBLOCKING is 1.
17287         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17288         (rpl_write): When failing to write on a non-blocking pipe, change
17289         errno from ENOSPC to EAGAIN.
17290         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17291         putchar, puts, vfprintf, vprintf): Enable replacement also if
17292         GNULIB_STDIO_H_NONBLOCKING is 1.
17293         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17294         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17295         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17296         CALL_WITH_SIGPIPE_EMULATION.
17297         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17298         * m4/nonblocking.m4: New file.
17299         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17300         for non-blocking I/O support.
17301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17302         GNULIB_UNISTD_H_NONBLOCKING.
17303         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17304         required for non-blocking I/O support.
17305         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17306         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17307         lib/stdio-write.c, m4/asm-underscore.m4.
17308         (Depends-on): Add stdio, unistd.
17309         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17310         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17311         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17312         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17313         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17314         problem with non-blocking pipes.
17315         * doc/posix-functions/fputc.texi: Likewise.
17316         * doc/posix-functions/fputs.texi: Likewise.
17317         * doc/posix-functions/fwrite.texi: Likewise.
17318         * doc/posix-functions/printf.texi: Likewise.
17319         * doc/posix-functions/putc.texi: Likewise.
17320         * doc/posix-functions/putchar.texi: Likewise.
17321         * doc/posix-functions/puts.texi: Likewise.
17322         * doc/posix-functions/vfprintf.texi: Likewise.
17323         * doc/posix-functions/vprintf.texi: Likewise.
17324         * doc/posix-functions/write.texi: Likewise.
17325
17326 2011-04-10  Jim Meyering  <meyering@redhat.com>
17327
17328         maint.mk: prohibit doubled words
17329         Detect them also when they're separated by a newline.
17330         There are 3 ways to customize it:
17331           - disable the test on a per file basis, as usual with rules using
17332             $(VC_LIST_EXCEPT)
17333           - replace the default doubled-word-selecting regexp (affects all files)
17334           - ignore a particular file-vs-doubled-word match
17335         I nearly used that last one to ignore the "is is" match in
17336         coreutils' NEWS file, since the text was "ls -is is ..."
17337         To do that, I would have added this line to cfg.mk:
17338           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17339         but it would have ignored any "is is" match in NEWS.
17340         Low probability, but still...
17341         Instead, I changed the text, slightly:
17342           -  ls -is is now consistent with ls -lis in ignoring values returned
17343           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17344         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17345         (prohibit_doubled_word_): Define.
17346         (sc_prohibit_doubled_word): New rule.
17347         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17348
17349 2011-04-10  Jim Meyering  <meyering@redhat.com>
17350
17351         maint: fix doubled-word typo in comment
17352         * m4/gethostname.m4: s/is is/it is/
17353         * m4/getdomainname.m4: Likewise.
17354
17355 2011-04-10  Jim Meyering  <meyering@redhat.com>
17356
17357         maint: remove doubled word: s/it it/it/
17358         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17359
17360 2011-04-10  Jim Meyering  <meyering@redhat.com>
17361
17362         maint.mk: remove useless semicolon and backslash
17363         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17364         semicolon and backslash.
17365
17366 2011-04-10  Bruno Haible  <bruno@clisp.org>
17367
17368         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17369         * modules/stdint-tests (Depends-on): Add wchar.
17370
17371 2011-04-10  Jim Meyering  <meyering@redhat.com>
17372
17373         maint: remove doubled words in comments, e.g., s/a a/a/
17374         * lib/strptime.c (day_of_the_week): s/the the/the/
17375         * tests/test-chown.h (test_chown): s/a a/a/
17376
17377         test-chown.h: correct a cast
17378         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17379         when the destination is a stat.st_gid.
17380
17381 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17382
17383         getaddrinfo: Fix test for sa_len member.
17384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17385         include <sys/types.h> before <sys/socket.h>.
17386
17387 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17388
17389         maint: change "can not" to "cannot"
17390         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17391         boundaries.
17392
17393 2011-04-09  Jim Meyering  <meyering@redhat.com>
17394
17395         maint: change "a a" to "a"
17396         * tests/test-lchown.h (test_lchown): s/a a/a/
17397
17398         maint.mk: prohibit \<the the\>
17399         * top/maint.mk (sc_prohibit_the_the): New rule.
17400
17401         maint: fix "the the" in comment
17402         * lib/count-one-bits.h: s/the the/the/
17403
17404         maint: change "can not" to "cannot"
17405         But do not change the occurrences in maintain.texi or in
17406         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17407         * doc/gnulib-tool.texi: s/can not/cannot/
17408         * doc/posix-functions/accept.texi (accept): Likewise.
17409         * doc/posix-functions/socket.texi (socket): Likewise.
17410         * lib/mbrtowc.c: Likewise.
17411
17412         maint.mk: prohibit use of "can not"
17413         * top/maint.mk (sc_prohibit_can_not): New rule.
17414         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17415
17416 2011-04-09  Bruno Haible  <bruno@clisp.org>
17417
17418         careadlinkat: Guard against misuse of careadlinkatcwd.
17419         * lib/careadlinkat.c: Include <stdlib.h>.
17420         (careadlinkatcwd): Check that the fd argument is as expected.
17421
17422 2011-04-09  Bruno Haible  <bruno@clisp.org>
17423
17424         careadlinkat: Use common coding style.
17425         * lib/careadlinkat.c: Move gnulib includes after system includes.
17426
17427 2011-04-09  Bruno Haible  <bruno@clisp.org>
17428
17429         careadlinkat: Clarify specification.
17430         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17431         (careadlinkatcwd): Add comment.
17432         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17433
17434 2011-04-09  Bruno Haible  <bruno@clisp.org>
17435
17436         areadlinkat: Avoid link error on many platforms.
17437         * modules/areadlinkat (Depends-on): Add areadlink.
17438
17439 2011-04-09  Bruno Haible  <bruno@clisp.org>
17440
17441         allocator, careadlinkat: Fix double-inclusion guard.
17442         * lib/allocator.h: Fix double-inclusion guard.
17443         * lib/careadlinkat.h: Likewise.
17444
17445 2011-04-09  Bruno Haible  <bruno@clisp.org>
17446
17447         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17448         * lib/relocwrapper.c: Update dependencies hierarchy.
17449         * build-aux/install-reloc: Update list of files to be compiled.
17450         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17451         lib/allocator.[hc].
17452
17453 2011-04-08  Eric Blake  <eblake@redhat.com>
17454
17455         strftime: silence gnulib-tool warning
17456         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17457
17458 2011-04-08  Bruno Haible  <bruno@clisp.org>
17459
17460         verify: Fix syntax error with GCC 4.6 in C++ mode.
17461         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17462         (HAVE_STATIC_ASSERT): New macro.
17463         (verify_true, verify): Use 'static_assert' if it is supported and
17464         '_Static_assert' is not supported.
17465
17466 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17467
17468         allocator: New module.
17469         * modules/allocator, lib/allocator.c: New files.
17470         * lib/allocator.h (stdlib_allocator): New decl.
17471         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17472         Remove.  Do not include <stdlib.h>.
17473         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17474         * modules/careadlinkat (Files): Remove lib/allocator.h.
17475         (Depends-on): Add allocator.
17476
17477         stdlib: let modules use system malloc, realloc
17478         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17479         if !_GL_USE_STDLIB_ALLOC.
17480         (malloc, realloc): Limit this change to a smaller scope.
17481
17482         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17483         (malloc, realloc): Don't #undef; no longer needed.
17484         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17485         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17486         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17487         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17488         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17489         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17490         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17491         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17492
17493         careadlinkat: rename members to avoid problem
17494         * lib/allocator.h (struct allocator): Rename members from
17495         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17496         and realloc are #define'd.  Reported by Eric Blake in
17497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17498         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17499
17500 2011-04-08  Eric Blake  <eblake@redhat.com>
17501
17502         nonblocking: reduce dependency
17503         * tests/test-nonblocking.c: Only test sockets when in use.
17504         * modules/nonblocking-tests (Depends-on): Drop socket.
17505         (Makefile.am): Link even if sockets are not present.
17506         * modules/pipe2-tests (Makefile.am): Likewise.
17507         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17508
17509         pipe2: fix O_NONBLOCK support on mingw
17510         * modules/pipe2 (Depends-on): Add nonblocking.
17511         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17512         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17513         * tests/test-nonblocking.c (main): Likewise.
17514         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17515
17516         fcntl-h: fix O_ACCMODE on cygwin
17517         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17518         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17519
17520         pipe-filter: drop O_NONBLOCK workarounds
17521         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17522         * modules/pipe-filter-ii (Depends-on): Likewise.
17523         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17524
17525         nonblocking: provide O_NONBLOCK for mingw
17526         * modules/nonblocking (Depends-on): Add open.
17527         (configure.ac): Set new witness macro.
17528         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17529         * modules/fcntl-h (Makefile.am): Substitute it.
17530         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17531         nonblocking module is in use.
17532         * lib/nonblocking.c: Adjust portability test.
17533         * lib/open.c (open): Don't let native open see gnulib flag.
17534         * tests/test-fcntl-h.c (main): Enhance test.
17535         * tests/test-open.h (test_open): Likewise.
17536         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17537
17538         careadlinkat: fix compilation error on mingw
17539         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17540         within struct allocator.
17541
17542 2011-04-06  Eric Blake  <eblake@redhat.com>
17543
17544         binary-io: relicense under LGPLv2+
17545         * modules/binary-io (License): Relax to LGPLv2+.
17546         Requested for libvirt, and required by pipe2.
17547
17548 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17549
17550         verify: use _Static_assert if available
17551         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17552         (verify_true, verify): Use it if available.  This generates better
17553         diagnostics with GCC 4.6.0 and later.
17554
17555 2011-04-05  Bruno Haible  <bruno@clisp.org>
17556
17557         Remove leftover generated .h files after config.status changed.
17558
17559         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17560         GL_GENERATE_ALLOCA_H.
17561         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17562         GL_GENERATE_ALLOCA_H evaluates to false.
17563
17564         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17565         GL_GENERATE_ARGZ_H.
17566         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17567         evaluates to false.
17568
17569         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17570         GL_GENERATE_BYTESWAP_H.
17571         * modules/byteswap (Makefile.am): Remove byteswap.h if
17572         GL_GENERATE_BYTESWAP_H evaluates to false.
17573
17574         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17575         GL_GENERATE_ERRNO_H.
17576         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17577         evaluates to false.
17578
17579         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17580         GL_GENERATE_FLOAT_H.
17581         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17582         evaluates to false.
17583
17584         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17585         GL_GENERATE_FNMATCH_H.
17586         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17587         GL_GENERATE_FNMATCH_H evaluates to false.
17588
17589         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17590         GL_GENERATE_GLOB_H.
17591         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17592         evaluates to false.
17593
17594         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17595         automake conditional GL_GENERATE_ICONV_H.
17596         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17597         evaluates to false.
17598
17599         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17600         GL_GENERATE_NETINET_IN_H.
17601         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17602         GL_GENERATE_NETINET_IN_H evaluates to false.
17603
17604         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17605         conditional GL_GENERATE_PTHREAD_H.
17606         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17607         * modules/pthread (Makefile.am): Remove pthread.h if
17608         GL_GENERATE_PTHREAD_H evaluates to false.
17609
17610         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17611         GL_GENERATE_SCHED_H.
17612         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17613         evaluates to false.
17614
17615         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17616         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17617         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17618         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17619
17620         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17621         GL_GENERATE_STDARG_H.
17622         * modules/stdarg (Makefile.am): Remove stdarg.h if
17623         GL_GENERATE_STDARG_H evaluates to false.
17624
17625         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17626         GL_GENERATE_STDBOOL_H.
17627         * modules/stdbool (Makefile.am): Remove stdbool.h if
17628         GL_GENERATE_STDBOOL_H evaluates to false.
17629
17630         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17631         conditional GL_GENERATE_STDDEF_H.
17632         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17633         * modules/stddef (Makefile.am): Remove stddef.h if
17634         GL_GENERATE_STDDEF_H evaluates to false.
17635
17636         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17637         GL_GENERATE_STDINT_H.
17638         * modules/stdint (Makefile.am): Remove stdint.h if
17639         GL_GENERATE_STDINT_H evaluates to false.
17640
17641         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17642         GL_GENERATE_SYSEXITS_H.
17643         * modules/sysexits (Makefile.am): Remove sysexits.h if
17644         GL_GENERATE_SYSEXITS_H evaluates to false.
17645
17646         Reported by Karl Berry and Ralf Wildenhues.
17647
17648 2011-04-05  Bruno Haible  <bruno@clisp.org>
17649
17650         Ensure to rebuild generated .h files when config.status has changed.
17651         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17652         config.status.
17653         * modules/ctype (Makefile.am): Likewise.
17654         * modules/dirent (Makefile.am): Likewise.
17655         * modules/errno (Makefile.am): Likewise.
17656         * modules/fcntl-h (Makefile.am): Likewise.
17657         * modules/float (Makefile.am): Likewise.
17658         * modules/getopt-posix (Makefile.am): Likewise.
17659         * modules/glob (Makefile.am): Likewise.
17660         * modules/iconv-h (Makefile.am): Likewise.
17661         * modules/inttypes (Makefile.am): Likewise.
17662         * modules/langinfo (Makefile.am): Likewise.
17663         * modules/locale (Makefile.am): Likewise.
17664         * modules/math (Makefile.am): Likewise.
17665         * modules/netdb (Makefile.am): Likewise.
17666         * modules/netinet_in (Makefile.am): Likewise.
17667         * modules/poll-h (Makefile.am): Likewise.
17668         * modules/pthread (Makefile.am): Likewise.
17669         * modules/pty (Makefile.am): Likewise.
17670         * modules/sched (Makefile.am): Likewise.
17671         * modules/search (Makefile.am): Likewise.
17672         * modules/selinux-h (Makefile.am): Likewise.
17673         * modules/signal (Makefile.am): Likewise.
17674         * modules/spawn (Makefile.am): Likewise.
17675         * modules/stdarg (Makefile.am): Likewise.
17676         * modules/stdbool (Makefile.am): Likewise.
17677         * modules/stddef (Makefile.am): Likewise.
17678         * modules/stdint (Makefile.am): Likewise.
17679         * modules/stdio (Makefile.am): Likewise.
17680         * modules/stdlib (Makefile.am): Likewise.
17681         * modules/string (Makefile.am): Likewise.
17682         * modules/strings (Makefile.am): Likewise.
17683         * modules/sys_file (Makefile.am): Likewise.
17684         * modules/sys_ioctl (Makefile.am): Likewise.
17685         * modules/sys_select (Makefile.am): Likewise.
17686         * modules/sys_socket (Makefile.am): Likewise.
17687         * modules/sys_stat (Makefile.am): Likewise.
17688         * modules/sys_time (Makefile.am): Likewise.
17689         * modules/sys_times (Makefile.am): Likewise.
17690         * modules/sys_utsname (Makefile.am): Likewise.
17691         * modules/sys_wait (Makefile.am): Likewise.
17692         * modules/sysexits (Makefile.am): Likewise.
17693         * modules/termios (Makefile.am): Likewise.
17694         * modules/time (Makefile.am): Likewise.
17695         * modules/unistd (Makefile.am): Likewise.
17696         * modules/wchar (Makefile.am): Likewise.
17697         * modules/wctype-h (Makefile.am): Likewise.
17698         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17699
17700 2011-04-05  Bruno Haible  <bruno@clisp.org>
17701
17702         pipe2: Relicense under LGPLv2+.
17703         * modules/pipe2 (License): Change to LGPLv2+.
17704         Requested by Eric Blake, for libvirt.
17705
17706 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17707
17708         bootstrap: compute gnulib_extra_files after updating build_aux
17709         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17710         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17711
17712 2011-04-05  Eric Blake  <eblake@redhat.com>
17713
17714         bootstrap: preserve git whitelist item sorting
17715         * build-aux/bootstrap (sort_patterns): New function.
17716         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17717
17718 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17719
17720         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17721         sc_space_tab check.
17722
17723 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17724
17725         areadlink, areadlinkat: rewrite in terms of careadlinkat
17726         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17727         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17728         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17729         (malloc, realloc): Remove #undefs.
17730         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17731         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17732         readlink, ssize_t, stdint, unistd.
17733         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17734         areadlink, stdint.
17735
17736         careadlinkat: new module
17737         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17738         * modules/careadlinkat: New files, written by me with
17739         a review and feedback from Ben Pfaff in
17740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17741
17742 2011-04-01  Bruno Haible  <bruno@clisp.org>
17743
17744         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17745         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17746         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17747         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17748         Reported by Bruce Korb <bruce.korb@gmail.com>.
17749
17750 2011-04-01  Bruno Haible  <bruno@clisp.org>
17751
17752         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17753         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17754         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17755         * modules/wcpcpy (Depends-on): Add extensions.
17756         * modules/wcpncpy (Depends-on): Likewise.
17757         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17758         systems.
17759         * doc/posix-functions/wcpncpy.texi: Likewise.
17760         * doc/posix-functions/wcwidth.texi: Likewise.
17761
17762 2011-03-31  Eric Blake  <eblake@redhat.com>
17763
17764         nonblocking: fix mingw test failures
17765         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17766         non-blocking flag on regular file.
17767         (get_nonblocking_flag): Set errno on invalid fd.
17768         * tests/test-nonblocking.c (main): Avoid test failure on
17769         directories if fchdir is not active.
17770         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17771
17772 2011-03-31  Bruno Haible  <bruno@clisp.org>
17773
17774         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17775         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17776         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17777         Reported by Simon Josefsson <simon@josefsson.org>.
17778
17779 2011-03-31  Bruno Haible  <bruno@clisp.org>
17780         and Eric Blake  <eblake@redhat.com>
17781
17782         nonblocking: new module
17783         * modules/nonblocking: New module.
17784         * modules/nonblocking-tests: Likewise.
17785         * lib/nonblocking.h: New file.
17786         * lib/nonblocking.c: Likewise.
17787         * tests/test-nonblocking.c: New test.
17788         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17789
17790 2011-03-30  Bruno Haible  <bruno@clisp.org>
17791
17792         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17793         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17794         instead of 'printf' format for GCC >= 4.4.
17795         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17796         (fprintf, printf, vfprintf, vprintf): Declare with
17797         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17798         the system's vfprintf() function.
17799         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17800
17801 2011-03-30  Eric Blake  <eblake@redhat.com>
17802
17803         passfd: fix scoping bug
17804         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17805         before sendmsg/recvmsg.
17806
17807         passfd: standardize coding conventions
17808         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17809         can be learned at compile time.
17810         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17811         ifdefs.
17812         (sendfd, recvfd): Follow gnulib code conventions.
17813
17814         passfd: fix incorrect sendmsg arguments
17815         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17816         incorrect msg_controllen value.
17817         * modules/passfd-tests (Depends-on): Check for alarm.
17818         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17819         Reported by Bastien ROUCARIES.
17820
17821 2011-03-30  Bruno Haible  <bruno@clisp.org>
17822
17823         c-strcasestr: Relicense under LGPLv2+.
17824         * modules/c-strcasestr (License): Change to LGPLv2+.
17825         Requested by Eric Blake, for libvirt.
17826
17827 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17828
17829         * users.txt: Add libidn2.  Fix libtasn1 link.
17830
17831 2011-03-30  Jim Meyering  <meyering@redhat.com>
17832
17833         tests: readlink* ("",... fails with EINVAL on newer kernels
17834         readlink and readlinkat have typically failed with ENOENT for
17835         the invalid, empty file name,  "".  However, with the advent
17836         of linux-2.6.39, they fail with EINVAL.
17837         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17838         when operating on the empty file name.
17839         * tests/test-readlink.h (test_readlink): Likewise.
17840
17841 2011-03-29  Bruno Haible  <bruno@clisp.org>
17842
17843         Relicense some modules under LGPLv2+, for libidn2.
17844         * modules/array-mergesort (License): Change to LGPLv2+.
17845         * modules/c-strcaseeq (License): Likewise.
17846         * modules/striconveh (License): Likewise.
17847         * modules/striconveha (License): Likewise.
17848         * modules/uniconv/base (License): Likewise.
17849         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17850         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17851         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17852         * modules/unictype/base (License): Likewise.
17853         * modules/unictype/bidiclass-of (License): Likewise.
17854         * modules/unictype/category-M (License): Likewise.
17855         * modules/unictype/category-none (License): Likewise.
17856         * modules/unictype/category-of (License): Likewise.
17857         * modules/unictype/category-test (License): Likewise.
17858         * modules/unictype/category-test-withtable (License): Likewise.
17859         * modules/unictype/combining-class (License): Likewise.
17860         * modules/unictype/joiningtype-of (License): Likewise.
17861         * modules/unictype/scripts (License): Likewise.
17862         * modules/uninorm/base (License): Likewise.
17863         * modules/uninorm/canonical-decomposition (License): Likewise.
17864         * modules/uninorm/composition (License): Likewise.
17865         * modules/uninorm/decompose-internal (License): Likewise.
17866         * modules/uninorm/decomposition-table (License): Likewise.
17867         * modules/uninorm/nfc (License): Likewise.
17868         * modules/uninorm/nfd (License): Likewise.
17869         * modules/uninorm/u32-normalize (License): Likewise.
17870         * modules/unistr/base (License): Likewise.
17871         * modules/unistr/u32-cpy (License): Likewise.
17872         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17873         * modules/unistr/u32-to-u8 (License): Likewise.
17874         * modules/unistr/u32-uctomb (License): Likewise.
17875         * modules/unistr/u8-check (License): Likewise.
17876         * modules/unistr/u8-mblen (License): Likewise.
17877         * modules/unistr/u8-mbtouc (License): Likewise.
17878         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17879         * modules/unistr/u8-mbtoucr (License): Likewise.
17880         * modules/unistr/u8-prev (License): Likewise.
17881         * modules/unistr/u8-strlen (License): Likewise.
17882         * modules/unistr/u8-to-u32 (License): Likewise.
17883         * modules/unistr/u8-uctomb (License): Likewise.
17884         * modules/unitypes (License): Likewise.
17885         Requested by Simon Josefsson.
17886
17887 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17888
17889         lib-symbol-visibility: Add a notice.
17890         * modules/lib-symbol-visibility (Notice): New field.
17891
17892 2011-03-29  Bruno Haible  <bruno@clisp.org>
17893
17894         getaddrinfo: Doc fix.
17895         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17896         section "fixed in Gnulib".
17897
17898 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17899
17900         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17901         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17902
17903 2011-03-26  Bruno Haible  <bruno@clisp.org>
17904
17905         unictype/property-byname: Reduce the number of load-time relocations.
17906         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17907         (UC_PROPERTY_INDEX_*): New enumeration values.
17908         (uc_property_byname): Convert an index from the lookup table to an
17909         uc_property_t.
17910         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17911         values.
17912
17913 2011-03-26  Bruno Haible  <bruno@clisp.org>
17914
17915         unictype/property-byname: Allow omitted word separators and aliases.
17916         * lib/unictype/pr_byname.gperf: Add property names without word
17917         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17918         for 'space'.
17919
17920 2011-03-26  Bruno Haible  <bruno@clisp.org>
17921
17922         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17923         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17924         also hyphens to space.
17925         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17926         without spaces.
17927         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17928
17929 2011-03-26  Bruno Haible  <bruno@clisp.org>
17930
17931         unictype/joiningtype-byname: Recognize long names as well.
17932         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17933         a long name.
17934         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17935         unictype/joiningtype_byname.h.
17936         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17937         * lib/unictype/joiningtype_byname.gperf: New file.
17938         * modules/unictype/joiningtype-byname (Files): Add
17939         lib/unictype/joiningtype_byname.gperf.
17940         (Depends-on): Add gperf.
17941         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17942         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17943         long names.
17944
17945         Tests for module 'unictype/joiningtype-longname'.
17946         * modules/unictype/joiningtype-longname-tests: New file.
17947         * tests/unictype/test-joiningtype_longname.c: New file.
17948
17949         New module 'unictype/joiningtype-longname'.
17950         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17951         * lib/unictype/joiningtype_longname.c: New file.
17952         * modules/unictype/joiningtype-longname: New file.
17953         * modules/unictype/joiningtype-all (Depends-on): Add
17954         unictype/joiningtype-longname.
17955
17956 2011-03-26  Bruno Haible  <bruno@clisp.org>
17957
17958         unictype/bidiclass-byname: Recognize long names as well.
17959         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17960         name.
17961         * lib/unictype/bidi_byname.c: Include <string.h>,
17962         unictype/bidi_byname.h.
17963         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17964         * lib/unictype/bidi_byname.gperf: New file.
17965         * modules/unictype/bidiclass-byname (Files): Add
17966         lib/unictype/bidi_byname.gperf.
17967         (Depends-on): Add gperf.
17968         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17969         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17970         long names.
17971
17972         Tests for module 'unictype/bidiclass-longname'.
17973         * modules/unictype/bidiclass-longname-tests: New file.
17974         * tests/unictype/test-bidi_longname.c: New file.
17975
17976         New module 'unictype/bidiclass-longname'.
17977         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17978         * lib/unictype/bidi_longname.c: New file.
17979         * modules/unictype/bidiclass-longname: New file.
17980         * modules/unictype/bidiclass-all (Depends-on): Add
17981         unictype/bidiclass-longname.
17982
17983 2011-03-26  Bruno Haible  <bruno@clisp.org>
17984
17985         unictype/bidi*: Rename modules.
17986         * modules/unictype/bidiclass-all: Renamed from
17987         modules/unictype/bidicategory-all.
17988         * modules/unictype/bidiclass-name: Renamed from
17989         modules/unictype/bidiclass-name.
17990         (Description): Update.
17991         * modules/unictype/bidiclass-name-tests: Renamed from
17992         modules/unictype/bidicategory-name-tests.
17993         * modules/unictype/bidiclass-byname: Renamed from
17994         modules/unictype/bidicategory-byname.
17995         (Description): Update.
17996         * modules/unictype/bidiclass-byname-tests: Renamed from
17997         modules/unictype/bidicategory-byname-tests.
17998         * modules/unictype/bidiclass-of: Renamed from
17999         modules/unictype/bidicategory-of.
18000         (Description): Update.
18001         * modules/unictype/bidiclass-of-tests: Renamed from
18002         modules/unictype/bidicategory-of-tests.
18003         * modules/unictype/bidiclass-test: Renamed from
18004         modules/unictype/bidicategory-test.
18005         (Description): Update.
18006         * modules/unictype/bidiclass-test-tests: Renamed from
18007         modules/unictype/bidicategory-test-tests.
18008         * modules/unictype/bidicategory-all: New file, a simple redirection.
18009         * modules/unictype/bidicategory-name: Likewise.
18010         * modules/unictype/bidicategory-byname: Likewise.
18011         * modules/unictype/bidicategory-of: Likewise.
18012         * modules/unictype/bidicategory-test: Likewise.
18013         * modules/unictype/property-bidi-* (Dependencies): Update.
18014         * lib/unictype/bidi_*.c: Update comment.
18015
18016 2011-03-26  Bruno Haible  <bruno@clisp.org>
18017
18018         unictype/bidi*: Rename functions, part 2.
18019         * modules/unictype/bidicategory-name (configure.ac): Update required
18020         libunistring version.
18021         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18022
18023 2011-03-25  Bruno Haible  <bruno@clisp.org>
18024
18025         New module 'unictype/combining-class-all'.
18026         * modules/unictype/combining-class-all: New file.
18027
18028         Tests for module 'unictype/combining-class-byname'.
18029         * modules/unictype/combining-class-byname-tests: New file.
18030         * tests/unictype/test-combiningclass_byname.c: New file.
18031
18032         New module 'unictype/combining-class-byname'.
18033         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18034         * lib/unictype/combiningclass_byname.c: New file.
18035         * lib/unictype/combiningclass_byname.gperf: New file.
18036         * modules/unictype/combining-class-byname: New file.
18037
18038         Tests for module 'unictype/combining-class-longname'.
18039         * modules/unictype/combining-class-longname-tests: New file.
18040         * tests/unictype/test-combiningclass_longname.c: New file.
18041
18042         New module 'unictype/combining-class-longname'.
18043         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18044         * lib/unictype/combiningclass_longname.c: New file.
18045         * modules/unictype/combining-class-longname: New file.
18046
18047         Tests for module 'unictype/combining-class-name'.
18048         * modules/unictype/combining-class-name-tests: New file.
18049         * tests/unictype/test-combiningclass_name.c: New file.
18050
18051         New module 'unictype/combining-class-name'.
18052         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18053         * lib/unictype/combiningclass_name.c: New file.
18054         * modules/unictype/combining-class-name: New file.
18055
18056 2011-03-25  Bruno Haible  <bruno@clisp.org>
18057
18058         unictype/combining-class: Rename source files.
18059         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18060         of unictype/combining.h.
18061         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18062         Update.
18063         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18064         * modules/unictype/combining-class (Description): Fix.
18065         (Files, Makefile.am): Update.
18066         * tests/unictype/test-combiningclass.c: Renamed from
18067         tests/unictype/test-combining.c.
18068         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18069
18070 2011-03-25  Bruno Haible  <bruno@clisp.org>
18071
18072         unictype: Update list of canonical combining classes.
18073         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18074
18075 2011-03-25  Bruno Haible  <bruno@clisp.org>
18076
18077         unictype/category-byname: Recognize long names as well.
18078         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18079         a long name.
18080         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18081         unictype/categ_byname.h.
18082         (UC_CATEGORY_INDEX_*): New enumeration values.
18083         (uc_general_category_byname): Use uc_general_category_lookup and
18084         convert from index to value.
18085         * lib/unictype/categ_byname.gperf: New file.
18086         * modules/unictype/category-byname (Files): Add
18087         lib/unictype/categ_byname.gperf.
18088         (Depends-on): Add gperf.
18089         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18090         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18091         long names.
18092
18093         Tests for module 'unictype/category-longname'.
18094         * modules/unictype/category-longname-tests: New file.
18095         * tests/unictype/test-categ_longname.c: New file.
18096
18097         New module 'unictype/category-longname'.
18098         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18099         * lib/unictype/categ_longname.c: New file.
18100         * modules/unictype/category-longname: New file.
18101         * modules/unictype/category-all (Depends-on): Add it.
18102
18103 2011-03-25  Bruno Haible  <bruno@clisp.org>
18104
18105         Tests for module 'unictype/category-LC'.
18106         * modules/unictype/category-LC-tests: New file.
18107         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18108
18109         New module 'unictype/category-LC'.
18110         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18111         (UC_CATEGORY_LC): New declaration.
18112         (UC_CASED_LETTER): New macro.
18113         * lib/gen-uni-tables.c (is_category_LC): New function.
18114         (output_categories): Also handle category LC.
18115         (UC_CATEGORY_MASK_LC): New enumeration value.
18116         (general_category_byname): Also handle category LC.
18117         * lib/unictype/categ_LC.c: New file.
18118         * lib/unictype/categ_LC.h: New file, automatically generated.
18119         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18120         category LC.
18121         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18122         * modules/unictype/category-LC: New file.
18123         * modules/unictype/category-byname (Depends-on): Add
18124         unictype/category-LC.
18125         * modules/unictype/category-all (Depends-on): Likewise.
18126
18127 2011-03-25  Eric Blake  <eblake@redhat.com>
18128
18129         xmalloc: revert yesterday's regression
18130         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18131         realloc's underlying behavior (allowing allocation of zero-size
18132         objects, especially if malloc-gnu is also in use).
18133
18134 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18135
18136         maint.mk: add missing version to VC-tag
18137         * top/maint.mk: git tag was missing actual tag name; add it.
18138
18139         valgrind: do leak checking, and exit with code 1 on error (not 0)
18140         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18141         to VALGRIND.
18142
18143 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18144
18145         posix-modules: say what it does.
18146         * posix-modules: Add a line to the --help output saying what it does.
18147
18148 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18149
18150         xmalloc: Do not leak if underlying realloc is C99 compatible.
18151         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18152         This avoids a leak on C99-based systems.  See
18153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18154
18155 2011-03-24  Eric Blake  <eblake@redhat.com>
18156
18157         realloc: document portability problem
18158         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18159         passing 0 size to realloc.
18160
18161 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18162
18163         doc: update users.txt
18164         * users.txt: Add cvsps, tmpwatch
18165
18166 2011-03-23  Matt Rice  <ratmice@gmail.com>
18167
18168         doc: update users.txt
18169         * users.txt: Add gdb.
18170
18171 2011-03-23  Jim Meyering  <meyering@redhat.com>
18172
18173         doc: update users.txt
18174         Looking through matches up to the following URL (there are still
18175         several more pages), I found several projects that use gnulib:
18176         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18177         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18178         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18179
18180 2011-03-22  Bruno Haible  <bruno@clisp.org>
18181
18182         unictype/bidi*: Rename functions.
18183         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18184         uc_bidi_class, uc_is_bidi_class): New declarations.
18185         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18186         uc_bidi_category_byname.
18187         (uc_bidi_category_byname): New function.
18188         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18189         u_bidi_category_name.
18190         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18191         (uc_bidi_category_name): New function.
18192         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18193         uc_bidi_category.
18194         (uc_bidi_category): New function.
18195         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18196         uc_is_bidi_category. Invoke uc_bidi_class.
18197         (uc_is_bidi_category): New function.
18198         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18199         instead of uc_bidi_category_byname.
18200         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18201         instead of uc_bidi_category_name.
18202         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18203         uc_bidi_category.
18204         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18205         instead of uc_is_bidi_category.
18206
18207 2011-03-21  Bruno Haible  <bruno@clisp.org>
18208
18209         New module 'unictype/joininggroup-all'.
18210         * modules/unictype/joininggroup-all: New file.
18211
18212         Tests for module 'unictype/joininggroup-of'.
18213         * modules/unictype/joininggroup-of-tests: New file.
18214         * tests/unictype/test-joininggroup_of.c: New file.
18215         * tests/unictype/test-joininggroup_of.h: New file, automatically
18216         generated by gen-uni-tables.
18217
18218         New module 'unictype/joininggroup-of'.
18219         * modules/unictype/joininggroup-of: New file.
18220         * lib/unictype/joininggroup_of.c: New file.
18221         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18222         gen-uni-tables.
18223
18224         Tests for module 'unictype/joininggroup-byname'.
18225         * modules/unictype/joininggroup-byname-tests: New file.
18226         * tests/unictype/test-joininggroup_byname.c: New file.
18227
18228         New module 'unictype/joininggroup-byname'.
18229         * modules/unictype/joininggroup-byname: New file.
18230         * lib/unictype/joininggroup_byname.c: New file.
18231         * lib/unictype/joininggroup_byname.gperf: New file.
18232
18233         Tests for module 'unictype/joininggroup-name'.
18234         * modules/unictype/joininggroup-name-tests: New file.
18235         * tests/unictype/test-joininggroup_name.c: New file.
18236
18237         New module 'unictype/joininggroup-name'.
18238         * modules/unictype/joininggroup-name: New file.
18239         * lib/unictype/joininggroup_name.c: New file.
18240         * lib/unictype/joininggroup_name.h: New file.
18241
18242         New module 'unictype/joiningtype-all'.
18243         * modules/unictype/joiningtype-all: New file.
18244
18245         Tests for module 'unictype/joiningtype-of'.
18246         * modules/unictype/joiningtype-of-tests: New file.
18247         * tests/unictype/test-joiningtype_of.c: New file.
18248         * tests/unictype/test-joiningtype_of.h: New file, automatically
18249         generated by gen-uni-tables.
18250
18251         New module 'unictype/joiningtype-of'.
18252         * modules/unictype/joiningtype-of: New file.
18253         * lib/unictype/joiningtype_of.c: New file.
18254         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18255         gen-uni-tables.
18256
18257         Tests for module 'unictype/joiningtype-byname'.
18258         * modules/unictype/joiningtype-byname-tests: New file.
18259         * tests/unictype/test-joiningtype_byname.c: New file.
18260
18261         New module 'unictype/joiningtype-byname'.
18262         * modules/unictype/joiningtype-byname: New file.
18263         * lib/unictype/joiningtype_byname.c: New file.
18264
18265         Tests for module 'unictype/joiningtype-name'.
18266         * modules/unictype/joiningtype-name-tests: New file.
18267         * tests/unictype/test-joiningtype_name.c: New file.
18268
18269         New module 'unictype/joiningtype-name'.
18270         * modules/unictype/joiningtype-name: New file.
18271         * lib/unictype/joiningtype_name.c: New file.
18272
18273         unictype: Add support for Arabic shaping properties.
18274         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18275         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18276         declarations.
18277         (UC_JOINING_GROUP_*): New enumeration values.
18278         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18279         declarations.
18280         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18281         (unicode_joining_type): New variable.
18282         (UC_JOINING_GROUP_*): New enumeration values.
18283         (unicode_joining_group): New variable.
18284         (fill_arabicshaping, joining_type_as_c_identifier,
18285         output_joining_type_test, output_joining_type,
18286         joining_group_as_c_identifier, output_joining_group_test,
18287         output_joining_group): New functions.
18288         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18289         fill_arabicshaping and output_joining_type_test, output_joining_type,
18290         output_joining_group_test, output_joining_group.
18291         Reported by Simon Josefsson.
18292
18293 2011-03-21  Jim Meyering  <meyering@redhat.com>
18294
18295         strftime: fix a bug in yesterday's change
18296         * lib/strftime.c (add): Accommodate width's initial value of -1.
18297         Otherwise, nstrftime would copy uninitialized data into
18298         the result buffer.
18299
18300 2011-03-21  Jim Meyering  <meyering@redhat.com>
18301
18302         tests: add strftime-tests module
18303         * tests/test-strftime.c: New file.
18304         * modules/strftime-tests: New module.
18305
18306 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18307
18308         strftime: don't assume a byte count fits in 'int'
18309         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18310         found this problem by static analysis, using gcc -Wstrict-overflow
18311         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18312         on an integer overflow having undefined behavior, but it turns out
18313         that the argument is a size, which might not fit in 'int' anyway,
18314
18315 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18316
18317         stdio: don't require ignore_value around fwrite
18318
18319         This patch works around libc bug 11959
18320         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18321         Without this patch, applications must often write
18322         ignore_value (fwrite (...)) even though the ignore_value is
18323         not helpful here.  It's common to write many objects, using
18324         fwrite/printf/etc., and then use ferror to detect output error.
18325
18326         I considered making this patch optional, but decided against it,
18327         because libc is obviously being inconsistent here: there is no
18328         reason libc should insist that user code must inspect fwrite
18329         return's value without also insisting that it inspect printf's,
18330         putchar's, etc.  If user code wants to have a strict style where
18331         all these functions' values are checked (so that ferror need not
18332         be checked), we could add support for that style in a new gnulib
18333         module, but in the meantime it's better to be consistent and to
18334         support common usage.
18335
18336         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18337         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18338         that we are compiling in checking mode, and if not C++, and
18339         if not already wrapping fwrite for some other reason.
18340         (fwrite): #define to rpl_fwrite if the latter is defined.
18341
18342 2011-03-20  Bruno Haible  <bruno@clisp.org>
18343
18344         verror: Fix compilation error introduced on 2011-02-13.
18345         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18346         instead of __attribute__.
18347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18348
18349 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18350             Bruno Haible  <bruno@clisp.org>
18351
18352         socklen: do not depend on sys_socket
18353         While trying to modify Emacs to use gnulib's socklen module,
18354         I discovered a circular dependency: socklen depends on sys_socket
18355         and vice versa.  Emacs can use socklen, but it does not need
18356         sys_socket because it has its own substitute for sys/socket.h.
18357         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18358         gl_TYPE_SOCKLEN_T.
18359         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18360         gl_PREREQ_SYS_H_SOCKET.
18361         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18362         gl_PREREQ_SYS_H_SOCKET.
18363         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18364         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18365         * modules/socklen (Depends-on): Do not depend on sys_socket.
18366         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18367
18368 2011-03-20  Jim Meyering  <meyering@redhat.com>
18369
18370         maint.mk: sort file names *after* new transformation
18371         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18372         prefix would have led to an unwarranted failure in GNU parted.
18373         Sort after that transformation.
18374
18375 2011-03-19  Jim Meyering  <meyering@redhat.com>
18376
18377         maint.mk: fix po-file syntax-check rule
18378         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18379         Patch by Bruno Haible.
18380
18381 2011-03-19  Bruno Haible  <bruno@clisp.org>
18382
18383         socklen: Update comment.
18384         * m4/socklen.m4: Update comment about platforms.
18385
18386 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18387             Bruno Haible  <bruno@clisp.org>
18388
18389         inet_ntop, inet_pton: Simplify.
18390         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18391         documented to provide socklen_t and we already depend on sys_socket.
18392         * modules/inet_pton (Depends-on): Likewise.
18393         * lib/arpa_inet.in.h: Adjust comment.
18394
18395 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18396             Bruno Haible  <bruno@clisp.org>
18397
18398         netdb: Simplify.
18399         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18400         documented to provide socklen_t and we already depend on sys_socket.
18401         * lib/netdb.in.h: Adjust comment.
18402
18403 2011-03-19  Bruno Haible  <bruno@clisp.org>
18404
18405         sys_socket, netdb: Document problem with socklen_t.
18406         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18407         platforms.
18408         * doc/posix-headers/netdb.texi: Likewise.
18409
18410 2011-03-18  Eric Blake  <eblake@redhat.com>
18411
18412         maint.mk: let po check work in VPATH build
18413         * top/maint.mk (po_file): Allow cfg.mk override.
18414         (sc_po_check): Allow VPATH use.
18415         Reported by Jiri Denemark.
18416
18417 2011-03-16  Jim Meyering  <meyering@redhat.com>
18418
18419         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18420         Before, you would have had to create one .x-sc_ file per rule in order
18421         to exempt offending files.  Now, you may instead use a Make variable --
18422         usually defined in cfg.mk -- whose name identifies the affected rule.
18423         * top/maint.mk (_sc_excl): Define.
18424         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18425         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18426
18427 2011-03-13  Bruno Haible  <bruno@clisp.org>
18428
18429         ignore-value tests: Avoid warnings.
18430         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18431         empty for gcc < 3.4.
18432
18433 2011-03-13  Bruno Haible  <bruno@clisp.org>
18434
18435         passfd: Fix link error on Solaris.
18436         * modules/passfd (Description): Correct.
18437         (Depends-on): Add socketlib.
18438         (Link): New section.
18439         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18440
18441 2011-03-13  Bruno Haible  <bruno@clisp.org>
18442
18443         passfd: Fix link error on AIX 5.2.
18444         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18445
18446 2011-03-13  Bruno Haible  <bruno@clisp.org>
18447
18448         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18449         * lib/sys_socket.in.h: Include <stddef.h>.
18450         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18451         CMSG_FIRSTHDR. Remove unused variable.
18452
18453 2011-03-13  Bruno Haible  <bruno@clisp.org>
18454
18455         passfd: Fix compilation error on OpenBSD.
18456         * lib/passfd.c: Include <sys/uio.h>.
18457
18458 2011-03-13  Bruno Haible  <bruno@clisp.org>
18459
18460         passfd test: Fix warnings.
18461         * tests/test-passfd.c: Include <sys/wait.h>.
18462         (main): Fix typo.
18463
18464 2011-03-13  Bruno Haible  <bruno@clisp.org>
18465
18466         passfd module, part 4, tweaks.
18467         * tests/test-passfd.c: Reorder includes.
18468         (main): Fix perror and printf calls.
18469
18470 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18471
18472         passfd module, part 4.
18473         * modules/passfd-tests: New file.
18474         * tests/test-passfd.c: New file.
18475
18476 2011-03-13  Jim Meyering  <meyering@redhat.com>
18477
18478         Makefile: rely on GNU make; derive syntax-check rule names
18479         Rather than requiring that each sc_ rule be listed as a dependent
18480         of "check", use features of GNU make to derive the list.
18481         * Makefile (syntax-check-rules): Define.
18482         (check): Depend on the new variable, not the hard-coded list.
18483
18484 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18485             Bruno Haible  <bruno@clisp.org>
18486
18487         passfd module, part 3.
18488         * lib/passfd.h (recvfd): Add a flags argument.
18489         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18490         (recvfd): Add a flags argument.
18491         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18492         exists.
18493         * modules/passfd (Depends-on): Add cloexec.
18494         Suggested by Eric Blake.
18495
18496 2011-03-13  Bruno Haible  <bruno@clisp.org>
18497
18498         passfd module, part 2, tweaks.
18499         * modules/passfd (Files): Reorder.
18500         (Depends-on): Remove errno.
18501         (Include): Remove <sys/socket.h>, <sys/un.h>.
18502         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18503         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18504         specification header. Include <sys/socket.h> always. Don't include
18505         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18506         (sendfd): Clarify that it sets errno when it fails.
18507         (recvfd): Fix specification.
18508
18509 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18510
18511         passfd module, part 2.
18512         * modules/passfd: New file.
18513         * lib/passfd.h: New file.
18514         * lib/passfd.c: New file.
18515
18516 2011-03-12  Bruno Haible  <bruno@clisp.org>
18517
18518         wcswidth, mbswidth: Avoid integer overflow.
18519         * lib/wcswidth.c: Include <limits.h>.
18520         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18521         * lib/mbswidth.c: Include <limits.h>.
18522         (mbsnwidth): Avoid 'int' overflow.
18523         Reported by Jim Meyering.
18524
18525 2011-03-12  Bruno Haible  <bruno@clisp.org>
18526
18527         futimens, utimensat: Avoid endless recursion on Solaris 10.
18528         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18529         Solaris.
18530         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18531         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18532
18533 2011-03-11  Jim Meyering  <meyering@redhat.com>
18534
18535         maint.mk: relax a regexp to accommodate other formatting styles
18536         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18537         between "ngettext" and the following "(".
18538
18539 2011-03-11  Pádraig Brady <P@draigBrady.com>
18540
18541         maint.mk: suppress a false positive warning
18542         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18543         diagnostics are marked with ngettext.
18544
18545 2011-03-10  Eric Blake  <eblake@redhat.com>
18546
18547         wchar: add explicit dependencies, for Tru64
18548         * modules/mbmemcasecoll (Depends-on): Add wchar.
18549         * modules/mbtowc (Depends-on): Likewise.
18550         * modules/vasnprintf (Depends-on): Likewise.
18551         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18552         * modules/wctomb (Depends-on): Likewise.
18553         Reported by Peter O'Gorman.
18554
18555 2011-03-08  Bruno Haible  <bruno@clisp.org>
18556
18557         passfd module, part 1, tweaks.
18558         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18559         Improve indentation. Improve AC_MSG_CHECKING messages.
18560         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18561         gl_SOCKET_FAMILIES.
18562
18563 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18564
18565         passfd module, part 1.
18566         * m4/afunix.m4: New file.
18567         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18568         sockets.
18569
18570 2011-03-08  Bruno Haible  <bruno@clisp.org>
18571
18572         regex-quote: New API.
18573         * lib/regex-quote.h: Include <stdbool.h>.
18574         (struct regex_quote_spec): New type.
18575         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18576         New declarations.
18577         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18578         'const struct regex_quote_spec *' argument.
18579         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18580         (pcre_special): New constant.
18581         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18582         New functions.
18583         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18584         'const struct regex_quote_spec *' argument.
18585         * modules/regex-quote (Depends-on): Add stdbool.
18586         * tests/test-regex-quote.c (check): Update for new API. Add test for
18587         anchored results.
18588         * NEWS: Mention the API change.
18589         Reported by Reuben Thomas and Eric Blake.
18590
18591 2011-03-06  Bruno Haible  <bruno@clisp.org>
18592
18593         regex-quote: Fix creation of POSIX extended regular expressions.
18594         * lib/regex-quote.c (ere_special): Add grouping and alternation
18595         operators.
18596
18597 2011-03-05  Bruno Haible  <bruno@clisp.org>
18598
18599         doc: Improve doc regarding autopoint vs. gnulib.
18600         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18601         disable autopoint while running autoreconf.
18602         Suggested by Ralf Wildenhues.
18603
18604 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18605
18606         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18607         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18608
18609 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18610
18611         parse-duration: remove xalloc.h dependency
18612         * lib/parse-duration.c (parse_period): handle NULL return from
18613         strdup instead of calling xstrdup().
18614         * modules/parse-duration: remove "xalloc" dependency
18615
18616 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18617
18618         bootstrap: honor m4_base when running aclocal
18619         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18620
18621 2011-03-02  Jim Meyering  <meyering@redhat.com>
18622
18623         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18624         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18625         on request from Matt Booth.
18626
18627 2011-03-01  Eric Blake  <eblake@redhat.com>
18628
18629         test-link: work on Hurd
18630         * tests/test-link.h (test_link): Hurd rejects linking directories
18631         with EISDIR instead of the POSIX-mandated EPERM.
18632
18633 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18634
18635         stdio: simplify by moving files to printf-posix, sigpipe
18636         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18637         since this symbol is needed only if printf is replaced.
18638         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18639         Require gl_ASM_SYMBOL_PREFIX.
18640         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18641         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18642         (Depends-on): Add 'raise'.
18643         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18644         * modules/stdio (Files): Remove lib/stdio-write.c,
18645         m4/asm-underscore.m4.
18646         (Depends-on): Remove 'raise'.
18647
18648         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18649         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18650         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18651         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18652
18653 2011-02-28  Bruno Haible  <bruno@clisp.org>
18654
18655         localcharset: Assume ANSI C behaviour of free().
18656         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18657         calling free().
18658         Suggested by Simon Josefsson <simon@josefsson.org>.
18659
18660 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18661             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18662             Bruno Haible  <bruno@clisp.org>  (tiny change)
18663
18664         On Cygwin, use /proc file system instead of win32 API.
18665         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18666         Win32 file names.
18667         (DllMain): Simplify by removing Cygwin specific code.
18668         (find_shared_library_fullname): Use Linux specific implementation also
18669         for Cygwin.
18670         (get_shared_library_fullname): Update accordingly.
18671         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18672         Win32 file names.
18673         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18674         Cygwin specific code.
18675
18676 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18677             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18678
18679         Fix OpenMP flag detection for various Fortran compilers.
18680         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18681         OpenMP-conditional compilation construct, to force compile
18682         failure with missing OpenMP flag.
18683         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18684
18685 2011-02-25  Eric Blake  <eblake@redhat.com>
18686
18687         strstr: expand test coverage
18688         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18689         compilation.
18690         * tests/test-memmem.c (main): Duplicate tests.
18691         * tests/test-strcasestr.c (main): Likewise.
18692         * tests/test-c-strcasestr.c (main): Likewise.
18693
18694 2011-02-25  Jim Meyering  <meyering@redhat.com>
18695
18696         maint.mk: detect missing-NL-at-EOF, too
18697         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18698         it also detects when a file lacks a newline at EOF.
18699         (require_exactly_one_NL_at_EOF_): Renamed from
18700         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18701         since people may well have .x-sc_... file names tied to the
18702         existing name.  Suggested by Eric Blake.
18703
18704 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18705
18706         dirname: move m4/dos.m4 functionality into lib/dosname.h
18707
18708         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18709         extracts symbols from it, puts them into config.h; but it's much
18710         easier to use the symbols directly.  filename.h already does this,
18711         but it disagrees with dos.m4 in some respects.  This patch
18712         introduces a different include file dosname.h that packages up
18713         dos.m4, and then later we can work on merging filename.h and
18714         dosname.h.  Applications that need only the easy-to-configure
18715         symbols should consider including dosname.h rather than dirname.h.
18716         * NEWS: Mention incompatible changes.
18717         * m4/dos.m4: Remove.
18718         * lib/dosname.h, modules/dosname: New files.
18719         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18720         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18721         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18722         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18723         Include dosname.h, not dirname.h.
18724         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18725         Include dosname.h, for definitions of symbols like ISSLASH
18726         that used to be in config.h.
18727         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18728         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18729         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18730         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18731         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18732         * modules/rmdir (Files): Likewise.
18733         * modules/stat (Files): Likewise.
18734         * modules/unlink (Files): Likewise.
18735         * modules/dirname-lgpl (Depends-on): Add dosname.
18736         * modules/lstat (Depends-on): Likewise.
18737         * modules/openat (Depends-on): Likewise.
18738         * modules/rmdir (Depends-on): Likewise.
18739         * modules/savewd (Depends-on): Likewise.
18740         * modules/stat (Depends-on): Likewise.
18741         * modules/unlink (Depends-on): Likewise.
18742         * modules/openat (Depends-on): Remove dirname-lgpl.
18743         * modules/savewd (Depends-on): Likewise.
18744         * tests/test-dirname.c: Do not use removed symbols like
18745         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18746         the remaining symbols, e.g., ISSLASH ('\\').
18747
18748 2011-02-25  Eric Blake  <eblake@redhat.com>
18749
18750         strstr: revert patches that introduced bug and pessimization
18751         * lib/str-two-way.h: Add another reference.
18752         (two_way_short_needle, two_way_long_needle): Revert changes from
18753         2011-02-24; they pessimize search speed.
18754         (critical_factorization): Partially revert changes from
18755         2010-06-22; they violate the requirement that the left half of the
18756         needle be smaller than the period of the needle.
18757
18758 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18759
18760         filenamecat: remove unnecessary dependency on dirname-lgpl
18761         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18762         is no direct dependency, just an indirect one via filenamecat-lgpl.
18763
18764         remove: remove unnecessary use of m4/dos.m4
18765         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18766         * modules/remove (FILES): Remove m4/dos.m4.
18767
18768         * lib/openat-proc.c: Don't include dirname.h; not needed.
18769
18770         backupfile: remove unnecessary use of m4/dos.m4
18771         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18772         of its symbols are used by the backupfile code.  backupfile.c does
18773         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18774         for the rare case of programs that want all their backup file
18775         names to live within 8+3 limits, and dos.m4 doesn't address that.
18776         * modules/backupfile (Files): Remove m4/dos.m4.
18777
18778 2011-02-24  Jim Meyering  <meyering@redhat.com>
18779
18780         strstr: fix a bug whereby strstr would mistakenly return NULL
18781         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18782         in period calculation.
18783         (two_way_long_needle): Likewise.
18784         The original problem was reported by Mike Stump in
18785         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18786         Ralf Wildenhues provided the short needle and haystack.
18787         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18788         Add a more involved test to trigger the bug in two_way_long_needle.
18789
18790 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18791
18792         gnulib-tool: remove use of bold display in help screen
18793         * gnulib-tool (func_usage): Do not use bold display anymore in the
18794         help screen.  That was just meant to be a temporary emphasis for a
18795         backward-incompatible change.
18796
18797 2011-02-23  Bruno Haible  <bruno@clisp.org>
18798
18799         Fix misindentation of preprocessor directives.
18800         * lib/argp-namefrob.h: Reindent preprocessor directives.
18801         * lib/getopt_int.h (struct _getopt_data): Likewise.
18802         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18803         * lib/vasnprintf.c (decode_long_double): Likewise.
18804         * tests/test-argmatch.c: Insert blank lines, for clarity.
18805         * tests/test-exclude.c: Likewise.
18806
18807 2011-02-22  Bruno Haible  <bruno@clisp.org>
18808
18809         ioctl: Fix for MacOS X in 64-bit mode.
18810         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18811         value.
18812         Suggested by Eric Blake.
18813         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18814
18815 2011-02-22  Jim Meyering  <meyering@redhat.com>
18816
18817         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18818         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18819         in lib/.
18820
18821 2011-02-22  Eric Blake  <eblake@redhat.com>
18822
18823         maint: avoid any CDPATH issue
18824         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18825
18826         maint: adjust cpp indentation for my modules, as well
18827         * Makefile (sc_cpp_indent_check): Add my name.
18828         * lib/fbufmode.c: Filter through cppi.
18829         * lib/fpurge.c: Likewise.
18830         * lib/freadable.c: Likewise.
18831         * lib/freading.c: Likewise.
18832         * lib/fwritable.c: Likewise.
18833         * lib/fwriting.c: Likewise.
18834         * lib/sigaction.c: Likewise.
18835
18836 2011-02-22  Jim Meyering  <meyering@redhat.com>
18837
18838         maint: adjust cpp indentation to reflect nesting depth
18839         I.e., in a block of code that begins with an unnested "#if",
18840         put one space between the "#" in column 1 and following token.
18841         For example,
18842         -#include <sys/vfs.h>
18843         +# include <sys/vfs.h>
18844         Do this only in .c files that are part of a module I maintain.
18845         * lib/linkat.c: Filter through cppi.
18846         * lib/nanosleep.c: Likewise.
18847         * lib/openat.c: Likewise.
18848         * lib/openat-die.c: Likewise.
18849         * lib/dup3.c: Likewise.
18850         * lib/fchownat.c: Likewise.
18851         * lib/flock.c: Likewise.
18852         * lib/fsync.c: Likewise.
18853         * lib/fts.c: Likewise.
18854         * lib/getpass.c: Likewise.
18855         * lib/gettimeofday.c: Likewise.
18856         * lib/userspec.c: Likewise.
18857         * Makefile (sc_cpp_indent_check): New rule, to check this.
18858
18859 2011-02-22  Bruno Haible  <bruno@clisp.org>
18860
18861         New module 'wctomb'.
18862         * lib/stdlib.in.h (wctomb): New declaration.
18863         * lib/wctomb.c: New file.
18864         * lib/wctomb-impl.h: New file.
18865         * m4/wctomb.m4: New file.
18866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18867         REPLACE_WCTOMB.
18868         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18869         REPLACE_WCTOMB.
18870         * modules/wctomb: New file.
18871         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18872         * doc/posix-functions/wctomb.texi: Mention the new module.
18873         * modules/wctob (Depends-on): Add wctomb.
18874
18875 2011-02-22  Bruno Haible  <bruno@clisp.org>
18876
18877         New module 'mbtowc'.
18878         * lib/stdlib.in.h (mbtowc): New declaration.
18879         * lib/mbtowc.c: New file.
18880         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18881         * m4/mbtowc.m4: New file.
18882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18883         REPLACE_MBTOWC.
18884         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18885         REPLACE_MBTOWC.
18886         * modules/mbtowc: New file.
18887         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18888         * doc/posix-functions/mbtowc.texi: Mention the new module.
18889         * modules/btowc (Depends-on): Add mbtowc.
18890
18891 2011-02-22  Bruno Haible  <bruno@clisp.org>
18892
18893         wcrtomb: Add more tests for native Windows platforms.
18894         * tests/test-wcrtomb-w32-1.sh: New file.
18895         * tests/test-wcrtomb-w32-2.sh: New file.
18896         * tests/test-wcrtomb-w32-3.sh: New file.
18897         * tests/test-wcrtomb-w32-4.sh: New file.
18898         * tests/test-wcrtomb-w32-5.sh: New file.
18899         * tests/test-wcrtomb-w32.c: New file.
18900         * modules/wcrtomb-tests (Files): Add them.
18901         (Makefile.am): Arrange to run these tests.
18902         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18903         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18904
18905 2011-02-20  Bruno Haible  <bruno@clisp.org>
18906
18907         wcrtomb: Enhance test.
18908         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18909
18910 2011-02-20  Bruno Haible  <bruno@clisp.org>
18911
18912         mbrtowc: Tiny optimization.
18913         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18914
18915 2011-02-20  Jim Meyering  <meyering@redhat.com>
18916
18917         test-exclude.c: remove unmatched #endif
18918         * tests/test-exclude.c: Remove stray #endif, left over from
18919         the change of a week ago.
18920
18921 2011-02-19  Jim Meyering  <meyering@redhat.com>
18922
18923         git-version-gen: skip "-dirty" check when appropriate
18924         * build-aux/git-version-gen: Don't run any git commands when the
18925         version string comes from .tarball-version.  Prior to this, we
18926         would run git update-index --refresh even from a just-unpacked
18927         tarball directory, and that could affect a .git/ directory in a
18928         parent of the build directory.  Reported by Mike Frysinger.
18929
18930 2011-02-19  Bruno Haible  <bruno@clisp.org>
18931
18932         unictype/property-byname: Reduce the size of the 'data' segment.
18933         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18934
18935 2011-02-19  Bruno Haible  <bruno@clisp.org>
18936
18937         unictype/scripts: Reduce the size of the 'data' segment.
18938         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18939         '%pic'.
18940         * lib/unictype/scripts_byname.gperf: Regenerated.
18941
18942 2011-02-19  Bruno Haible  <bruno@clisp.org>
18943
18944         stdint: Update documentation.
18945         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18946
18947 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18948
18949         stdint: omit redundant check for wchar.h
18950         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18951         always tests whether wchar.h exists, so remove the now-redundant test.
18952
18953 2011-02-18  Bruno Haible  <bruno@clisp.org>
18954
18955         stdint: Cut dependency to module 'wchar'.
18956         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18957         include the necessary prerequisites.
18958         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18959         * modules/stdint (Depends-on): Remove wchar.
18960         (Makefile.am): Substitute HAVE_WCHAR_H.
18961         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18962
18963 2011-02-18  Eric Blake  <eblake@redhat.com>
18964
18965         longlong: skip, rather than fail, on cross-compilation
18966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18967         when cross-compiling; regression from 2011-02-16.
18968
18969 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18970
18971         * NEWS: Mention 2011-02-08 change to stdlib.
18972
18973 2011-02-17  Bruno Haible  <bruno@clisp.org>
18974
18975         getloadavg: Add comments about platforms.
18976         * m4/getloadavg.m4: Add comment.
18977         * lib/getloadavg.c: Likewise.
18978
18979 2011-02-17  Bruno Haible  <bruno@clisp.org>
18980
18981         getloadavg: Fix link error on Solaris 2.6.
18982         * modules/getloadavg (Link): New section.
18983         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18984         linking test-getloadavg.
18985         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18986         getloadavg.
18987
18988 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18989
18990         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18991         It was 'int', but this doesn't match the IRIX 6.5 manual.
18992         Suggested by Bruno Haible in
18993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18994
18995 2011-02-17  Bruno Haible  <bruno@clisp.org>
18996
18997         havelib: Fix comments.
18998         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18999         change.
19000
19001 2011-02-17  Bruno Haible  <bruno@clisp.org>
19002
19003         havelib: Update config.rpath.
19004         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19005
19006 2011-02-17  Bruno Haible  <bruno@clisp.org>
19007
19008         getloadavg test: Add some plausibility checks.
19009         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19010         is improbable.
19011
19012 2011-02-16  Eric Blake  <eblake@redhat.com>
19013
19014         maintainer-makefile: make syntax-check a no-op from tarballs
19015         * top/maint.mk (no-vc-detected): New rule.
19016         (local-checks-available): Use it to avoid hanging if someone tries
19017         'make syntax-check' from a tarball.  Also append to any non-syntax
19018         checks already defined in cfg.mk.
19019
19020 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19021
19022         longlong: tune, particularly for common case of c99
19023
19024         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19025         or running anything if c99, or if unsigned long long int does not
19026         work.  In either case, we know the answer without further tests.
19027         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19028         it at most once, and use its results for both long long int and
19029         unsigned long long int.  This is more likely to be efficient in
19030         the common case where the program wants to check for both long
19031         long int and unsigned long long int.
19032         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19033         since the answer is already known.
19034
19035 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19036
19037         getloadavg: set errno
19038         * lib/getloadavg.c: Set errno when returning -1.  If no other
19039         error number looks appropriate, set it to ENOSYS if the getloadavg
19040         looks like it can't possibly ever work, ENOTSUP otherwise.
19041         Suggested by Bruno Haible in
19042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19043
19044         getloadavg: trim unused parts and speed up 'configure'
19045         * NEWS: Document this.
19046         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19047         always compiled if getloadavg is absent.
19048         Move test code to ...
19049         * tests/test-getloadavg.c: New file, containing previous
19050         contents of test from lib/getloadavg.c.  It also contains
19051         suggestions by Bruno Haible in
19052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19053         * modules/getloadavg-tests: New file.
19054         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19055         Do tests in the same order as they're needed for getloadavg.c.
19056         Omit setgid-related tests that generate symbols KMEM_GROUP,
19057         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19058         Do only the tests that are needed to see whether the system has
19059         getloadavg, moving the other tests into ...
19060         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19061         NLIST_NAME_UNION; nobody should be using it.  Do not define
19062         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19063         relevant, as the user of this module shouldn't care how getloadavg
19064         is implemented.
19065
19066         getloadavg: omit unused var
19067         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19068
19069 2011-02-15  Jim Meyering  <meyering@redhat.com>
19070
19071         doc: update users.txt
19072         * users.txt: Update iwhd's URL.
19073
19074 2011-02-13  Bruno Haible  <bruno@clisp.org>
19075
19076         Consistent macro naming for macros that use GCC __attribute__.
19077         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19078         _ATTRIBUTE_NONNULL_.
19079         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19080         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19081         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19082         ATTRIBUTE_DEPRECATED.
19083         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19084         ATTRIBUTE_NORETURN.
19085         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19086         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19087         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19088         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19089         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19090         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19091         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19092         ATTRIBUTE_SENTINEL.
19093         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19094         ATTRIBUTE_RETURN_CHECK.
19095         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19096         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19097         ATTRIBUTE_NORETURN.
19098         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19099         Reported by Paul Eggert.
19100
19101 2011-02-13  Bruno Haible  <bruno@clisp.org>
19102
19103         Don't interfere with a program's definition of __attribute__.
19104         * lib/argp.h (__attribute__): Remove definition.
19105         (_GL_ATTRIBUTE_FORMAT): New macro.
19106         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19107         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19108         (_GL_ATTRIBUTE_FORMAT): New macro.
19109         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19110         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19111         GCC 3 or newer.
19112         * lib/error.h (__attribute__): Remove definition.
19113         (_GL_ATTRIBUTE_FORMAT): New macro.
19114         (error, error_at_line): Use it.
19115         * lib/hash.h (__attribute__): Remove definition.
19116         (ATTRIBUTE_WUR): Update definition. Define always.
19117         * lib/openat.h (__attribute__): Remove definition.
19118         (ATTRIBUTE_NORETURN): Update definition. Define always.
19119         * lib/sigpipe-die.h (__attribute__): Remove definition.
19120         (ATTRIBUTE_NORETURN): Update definition. Define always.
19121         * lib/vasnprintf.h (__attribute__): Remove definition.
19122         (_GL_ATTRIBUTE_FORMAT): New macro.
19123         (asnprintf, vasnprintf): Use it.
19124         * lib/xalloc.h (__attribute__): Remove definition.
19125         (ATTRIBUTE_NORETURN): Update definition. Define always.
19126         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19127         * lib/xmemdup0.h (__attribute__): Remove definition.
19128         (ATTRIBUTE_NORETURN): Update definition. Define always.
19129         * lib/xprintf.h (__attribute__): Remove definition.
19130         (_GL_ATTRIBUTE_FORMAT): New macro.
19131         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19132         * lib/xstrtol.h (__attribute__): Remove definition.
19133         (ATTRIBUTE_NORETURN): Update definition. Define always.
19134         * lib/xvasprintf.h (__attribute__): Remove definition.
19135         (_GL_ATTRIBUTE_FORMAT): New macro.
19136         (xasprintf, xvasprintf): Use it.
19137         * tests/test-argmatch.c (__attribute__): Remove definition.
19138         (ATTRIBUTE_NORETURN): Update definition. Define always.
19139         * tests/test-exclude.c (__attribute__): Remove definition.
19140         (ATTRIBUTE_NORETURN): Update definition. Define always.
19141         Reported by Paul Eggert.
19142
19143 2011-02-13  Bruno Haible  <bruno@clisp.org>
19144
19145         mbrtowc: Add more tests for native Windows platforms.
19146         * tests/test-mbrtowc-w32-1.sh: New file.
19147         * tests/test-mbrtowc-w32-2.sh: New file.
19148         * tests/test-mbrtowc-w32-3.sh: New file.
19149         * tests/test-mbrtowc-w32-4.sh: New file.
19150         * tests/test-mbrtowc-w32-5.sh: New file.
19151         * tests/test-mbrtowc-w32.c: New file.
19152         * modules/mbrtowc-tests (Files): Add them.
19153         (Makefile.am): Arrange to run these tests.
19154         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19155         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19156
19157 2011-02-13  Bruno Haible  <bruno@clisp.org>
19158
19159         mbrtowc: Work around native Windows bug.
19160         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19161         guess when no suitable locale for testing was found.
19162         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19163
19164 2011-02-13  Bruno Haible  <bruno@clisp.org>
19165
19166         mbsinit: Work around mingw bug.
19167         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19168         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19169         Windows.
19170         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19171
19172 2011-02-13  Bruno Haible  <bruno@clisp.org>
19173
19174         mbsinit: Don't crash for a NULL argument.
19175         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19176         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19177
19178 2011-02-13  Bruno Haible  <bruno@clisp.org>
19179
19180         Don't interfere with a program's definition of __attribute__.
19181         * lib/stdio.in.h (__attribute__): Remove definition.
19182         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19183         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19184         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19185         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19186         * lib/string.in.h (__attribute__): Remove definition.
19187         Reported by Paul Eggert.
19188
19189 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19190
19191         stdlib: don't get in the way of non-GCC __attribute__
19192         See thread starting at
19193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19194         Revert previous stdlib change, installing the following instead:
19195         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19196         to get in the way of a non-GCC compiler that supports __attribute__.
19197         (_GL_ATTRIBUTE_RETURN): New macro.
19198         (_Exit): Use it instead of __attribute__.
19199
19200 2011-02-12  Bruno Haible  <bruno@clisp.org>
19201
19202         quotearg test: Avoid test failure on mingw.
19203         * tests/test-quotearg.sh: Convert the locale identifier from native
19204         Windows syntax to Unix syntax.
19205
19206 2011-02-12  Bruno Haible  <bruno@clisp.org>
19207
19208         setlocale: Prefer gnulib's override over libintl's override.
19209         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19210         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19211         GNULIB_defined_setlocale is set.
19212
19213 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         stdlib: support non-GCC __attribute__
19216
19217         Fix a serious and tricky problem encountered when attempting to
19218         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19219         5.5, but it crashed due to memory corruption on Solaris 10 with
19220         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19221         bits that are otherwise zero.  This tagging is optional inside
19222         Emacs but is preferred and is used when __attribute__ ((__aligned
19223         (8))) works, as it does with both recent-enough GCC and with Sun C
19224         5.11.  However, Sun C 5.11 is not GCC and does not #define
19225         __GNUC__ and __GNUC_MINOR__.
19226
19227         When I added the getloadavg module to Emacs, it brought in
19228         stdlib.in.h, which contained this fragment:
19229
19230            #ifndef __attribute__
19231            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19232            #  define __attribute__(Spec)   /* empty */
19233            # endif
19234            #endif
19235
19236         When files that include <stdlib.h> were compiled with Sun C 5.11,
19237         the above code disabled __attribute__ ((__aligned (8))), which
19238         caused variables to not be properly aligned, which eventually led
19239         to the pointer corruption mentioned above.  (This was a bit hard
19240         to diagnose, unfortunately.)
19241
19242         Several "#define __attribute__(X) /* empty */" code snippets need
19243         to be eradicated from Gnulib to work with non-GCC compilers that
19244         support __attribute__.  The Autoconf way to do this is to test for
19245         each kind of attribute that we want support for, and selectively
19246         enable that in source code.
19247
19248         Fix this problem just for stdlib.h, by adding a test for the
19249         __noreturn__ attribute, and change stdlib.in.h to use that test
19250         when needed.  This technique can be easily generalized to the
19251         other *.in.h files and attributes, and a similar technique can be
19252         used for *.h and *.c files.  This patch is enough to solve the
19253         problem for Emacs + getloadavg, and I thought I'd publish it for
19254         feedback before undertaking further, similar fixes in other
19255         modules.
19256
19257         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19258         because it's not needed for stdlib.h.  It merely substitutes the
19259         value directly into stdlib.h.  We may well need to #define it, or
19260         similar symbols, for other modules, but it's nice to also have an
19261         option to not #define it for applications like Emacs that do not
19262         need it.
19263
19264         * lib/stdlib.in.h (__attribute__): Do not #define.
19265         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19266         be defined only if the _Exit module is also used.
19267         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19269         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19270         platforms.
19271         * modules/_Exit (Files): Add m4/attribute.m4.
19272         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19273         * m4/attribute.m4: New file.
19274
19275 2011-02-12  Bruno Haible  <bruno@clisp.org>
19276
19277         wcsrtombs: Work around bug on native Windows.
19278         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19279         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19280         instead of len.
19281         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19282
19283 2011-02-12  Bruno Haible  <bruno@clisp.org>
19284
19285         mbsrtowcs: Work around bug on native Windows.
19286         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19287         against mingw bug.
19288         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19289
19290 2011-02-12  Bruno Haible  <bruno@clisp.org>
19291
19292         Avoid setlocale bugs in tests.
19293         * modules/btowc (Dependencies): Add setlocale.
19294         * modules/c-strcase (Dependencies): Likewise.
19295         * modules/mbmemcasecmp (Dependencies): Likewise.
19296         * modules/mbmemcasecoll (Dependencies): Likewise.
19297         * modules/mbrtowc (Dependencies): Likewise.
19298         * modules/mbscasecmp (Dependencies): Likewise.
19299         * modules/mbscasestr (Dependencies): Likewise.
19300         * modules/mbschr (Dependencies): Likewise.
19301         * modules/mbscspn (Dependencies): Likewise.
19302         * modules/mbsinit (Dependencies): Likewise.
19303         * modules/mbsncasecmp (Dependencies): Likewise.
19304         * modules/mbsnrtowcs (Dependencies): Likewise.
19305         * modules/mbspbrk (Dependencies): Likewise.
19306         * modules/mbspcasecmp (Dependencies): Likewise.
19307         * modules/mbsrchr (Dependencies): Likewise.
19308         * modules/mbsrtowcs (Dependencies): Likewise.
19309         * modules/mbsspn (Dependencies): Likewise.
19310         * modules/mbsstr (Dependencies): Likewise.
19311         * modules/nl_langinfo (Dependencies): Likewise.
19312         * modules/quotearg (Dependencies): Likewise.
19313         * modules/unicase/locale-language (Dependencies): Likewise.
19314         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19315         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19316         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19317         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19318         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19319         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19320         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19321         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19322         * modules/vasnprintf-posix (Dependencies): Likewise.
19323         * modules/wcrtomb (Dependencies): Likewise.
19324         * modules/wcsnrtombs (Dependencies): Likewise.
19325         * modules/wcsrtombs (Dependencies): Likewise.
19326
19327 2011-02-12  Bruno Haible  <bruno@clisp.org>
19328
19329         setlocale: Workaround native Windows bug.
19330         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19331         succeeds but sets LC_CTYPE to "C", report a failure.
19332         * tests/test-setlocale2.sh: New file.
19333         * tests/test-setlocale2.c: New file.
19334         * modules/setlocale-tests (Files): Add the new files.
19335         (Makefile.am): Enable test-setlocale2.sh test.
19336         * doc/posix-functions/setlocale.texi: Mention workaround.
19337
19338 2011-02-11  Bruno Haible  <bruno@clisp.org>
19339
19340         Tests for module 'setlocale'.
19341         * modules/setlocale-tests: New file.
19342         * tests/test-setlocale1.sh: New file.
19343         * tests/test-setlocale1.c: New file.
19344
19345         New module 'setlocale'.
19346         * lib/locale.in.h (setlocale): New declaration.
19347         * lib/setlocale.c: New file, based on
19348         gettext/gettext-runtime/intl/setlocale.c.
19349         * m4/setlocale.m4: New file.
19350         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19351         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19352         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19353         REPLACE_SETLOCALE.
19354         * modules/setlocale: New file.
19355         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19356         * doc/posix-functions/setlocale.texi: Mention the new module.
19357
19358 2011-02-11  Bruno Haible  <bruno@clisp.org>
19359
19360         Prepare for locale dependent tests on mingw.
19361         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19362         because it has the wrong locale encoding.
19363         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19364         French_France.1252 instead of "fr".
19365         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19366         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19367         because it has the wrong locale encoding.
19368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19369         native Windows, try Turkish_Turkey.65001.
19370         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19371         Chinese_China.54936.
19372
19373         Prepare for locale dependent tests on mingw.
19374         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19375         differently.
19376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19377         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19378         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19380
19381 2011-02-11  Eric Blake  <eblake@redhat.com>
19382
19383         strptime: avoid compiler warnings
19384         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19385         compiler warnings about dead code.
19386         Reported by Daniel P. Berrange.
19387
19388 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19389
19390         doc: update users.txt
19391         * users.txt: Add rcs.
19392
19393 2011-02-10  John W. Eaton  <jwe@gnu.org>
19394
19395         doc: update users.txt
19396         * users.txt: Add octave.
19397
19398 2011-02-10  Jim Meyering  <meyering@redhat.com>
19399
19400         doc: update users.txt
19401         * users.txt: Add iwhd.
19402
19403 2011-02-09  Bruno Haible  <bruno@clisp.org>
19404
19405         gnulib-tool: Make copyright notice adjustment more robust.
19406         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19407         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19408         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19409         License".
19410         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19411
19412 2011-02-06  Bruno Haible  <bruno@clisp.org>
19413
19414         New module 'towctrans'.
19415         * modules/towctrans: New file.
19416         * lib/wctype.in.h (towctrans): New declaration.
19417         * lib/towctrans.c: New file.
19418         * lib/towctrans-impl.h: New file.
19419         * m4/towctrans.m4: New file.
19420         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19421         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19422         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19423         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19424         * doc/posix-functions/towctrans.texi: Mention the new module.
19425
19426 2011-02-06  Bruno Haible  <bruno@clisp.org>
19427
19428         New module 'wctrans'.
19429         * modules/wctrans: New file.
19430         * lib/wctype.in.h (wctrans): New declaration.
19431         * lib/wctrans.c: New file.
19432         * lib/wctrans-impl.h: New file.
19433         * m4/wctrans.m4: New file.
19434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19435         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19436         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19437         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19438         * doc/posix-functions/wctrans.texi: Mention the new module.
19439
19440 2011-02-06  Bruno Haible  <bruno@clisp.org>
19441
19442         New module 'iswctype'.
19443         * modules/iswctype: New file.
19444         * lib/wctype.in.h (iswctype): New declaration.
19445         * lib/iswctype.c: New file.
19446         * lib/iswctype-impl.h: New file.
19447         * m4/iswctype.m4: New file.
19448         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19449         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19450         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19451         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19452         * doc/posix-functions/iswctype.texi: Mention the new module and the
19453         HP-UX 11.00 problem.
19454
19455 2011-02-06  Bruno Haible  <bruno@clisp.org>
19456
19457         New module 'wctype'.
19458         * modules/wctype: Change to represent the wctype() substitute.
19459         * lib/wctype.in.h (wctype): New declaration.
19460         * lib/wctype.c: New file.
19461         * lib/wctype-impl.h: New file.
19462         * m4/wctype.m4: New file.
19463         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19464         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19465         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19466         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19467         * doc/posix-functions/wctype.texi: Mention the new module and the
19468         HP-UX 11.00 problem.
19469
19470 2011-02-06  Bruno Haible  <bruno@clisp.org>
19471
19472         wctype-h: Ensure wctype_t and wctrans_t are defined.
19473         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19474         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19475         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19476         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19477         HAVE_WCTRANS_T.
19478         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19479
19480 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         flock: fix license typo
19483
19484         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19485         omitted.
19486
19487 2011-02-08  Bruno Haible  <bruno@clisp.org>
19488
19489         Split large sed scripts, for HP-UX sed.
19490         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19491         to avoid HP-UX limit of 99 commands, in the near future.
19492         * modules/stdlib (Makefile.am): Likewise.
19493         * modules/unistd (Makefile.am): Likewise.
19494         * modules/wchar (Makefile.am): Likewise.
19495         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19496         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19498
19499 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19500             Bruno Haible  <bruno@clisp.org>
19501
19502         stdlib: improve random_r modularization
19503         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19504         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19505         you also need the random_r module to get this material right.
19506         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19507         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19508         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19509
19510 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         stdlib: don't depend on stdint
19513         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19514         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19515         be independent of whether stdint.h is needed.
19516         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19517         here, instead of ...
19518         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19519         struct random_data should be using the random_r module, not just
19520         the stdlib module (which wouldn't make sense: what package needs
19521         just struct random_data without also needing random_r?).
19522         * modules/stdlib (Depends-on): Remove stdint.
19523
19524         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19525         See the thread rooted at
19526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19527         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19528         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19529         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19530         __VMS)); previously it was always included (via fcntl--.h).
19531         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19532         hand; this is good enough for load averages.  Also, do not use
19533         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19534         flags directly if available and don't bother otherwise.  (Packages
19535         that need the extra reliability should use the modules that define
19536         these flags on older platforms that lack them.)
19537         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19538         fcntl-safer.
19539
19540 2011-02-08  Jim Meyering  <meyering@redhat.com>
19541
19542         di-set.h, ino-map.h: add multiple-inclusion guard
19543         Technically, the guard is required only for ino-map.h, due to its
19544         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19545         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19546         * lib/ino-map.h: Likewise.
19547
19548 2011-02-06  Bruno Haible  <bruno@clisp.org>
19549
19550         iswblank: Ensure declaration on glibc systems.
19551         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19552         * modules/iswblank (Dependencies): Add 'extensions'.
19553         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19554
19555 2011-02-06  Bruno Haible  <bruno@clisp.org>
19556
19557         New module 'iswblank'.
19558         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19559         * modules/iswblank: New file.
19560         * modules/wctype-h (Files): Remove lib/iswblank.c.
19561         (Makefile.am): Substitute GNULIB_ISWBLANK.
19562         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19563         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19564         (gl_WCTYPE_H_DEFAULTS): New macro.
19565         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19566         * modules/iswblank-tests: New file.
19567         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19568         * tests/test-wctype-h.c (main): Remove iswblank tests.
19569         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19570         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19571         of 'wctype-h'.
19572         * NEWS: Mention the change.
19573         * modules/mbchar (Depends-on): Add iswblank.
19574
19575 2011-02-08  Bruno Haible  <bruno@clisp.org>
19576
19577         di-set tests: Refactor.
19578         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19579         unnecessary includes.
19580         (ASSERT): Remove macro.
19581         (main): Make C90 compliant by avoiding variable declaration after
19582         statement.
19583         * modules/di-set-tests (Files): Add tests/macros.h.
19584
19585 2011-02-08  Bruno Haible  <bruno@clisp.org>
19586
19587         ino-map tests: Refactor.
19588         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19589         unnecessary includes.
19590         (ASSERT): Remove macro.
19591         (main): Make C90 compliant by avoiding variable declaration after
19592         statement.
19593         * modules/ino-map-tests (Files): Add tests/macros.h.
19594
19595 2011-02-08  Jim Meyering  <meyering@redhat.com>
19596
19597         di-set: add "const" to a cast
19598         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19599         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19600
19601 2011-02-06  Bruno Haible  <bruno@clisp.org>
19602
19603         Rename module 'wctype' to 'wctype-h'.
19604         * modules/wctype-h: Renamed from modules/wctype.
19605         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19606         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19607         (Files, Depends-on, Makefile.am): Update.
19608         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19609         (Files, Makefile.am): Update.
19610         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19611         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19612         * doc/posix-headers/wctype.texi: Update.
19613         * doc/posix-functions/iswalnum.texi: Update.
19614         * doc/posix-functions/iswalpha.texi: Update.
19615         * doc/posix-functions/iswblank.texi: Update.
19616         * doc/posix-functions/iswcntrl.texi: Update.
19617         * doc/posix-functions/iswdigit.texi: Update.
19618         * doc/posix-functions/iswgraph.texi: Update.
19619         * doc/posix-functions/iswlower.texi: Update.
19620         * doc/posix-functions/iswprint.texi: Update.
19621         * doc/posix-functions/iswpunct.texi: Update.
19622         * doc/posix-functions/iswspace.texi: Update.
19623         * doc/posix-functions/iswupper.texi: Update.
19624         * doc/posix-functions/iswxdigit.texi: Update.
19625         * doc/posix-functions/towlower.texi: Update.
19626         * doc/posix-functions/towupper.texi: Update.
19627         * NEWS: Mention the change.
19628         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19629         * modules/mbchar (Dependencies): Likewise.
19630         * modules/mbswidth (Dependencies): Likewise.
19631         * modules/quotearg (Dependencies): Likewise.
19632         * modules/regex (Dependencies): Likewise.
19633         * modules/wcscasecmp (Dependencies): Likewise.
19634         * modules/wcsncasecmp (Dependencies): Likewise.
19635         * modules/wcwidth (Dependencies): Likewise.
19636
19637 2011-02-06  Bruno Haible  <bruno@clisp.org>
19638
19639         New module 'wcswidth'.
19640         * modules/wcswidth: New file.
19641         * lib/wchar.in.h (wcswidth): New declaration.
19642         * lib/wcswidth.c: New file.
19643         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19644         * m4/wcswidth.m4: New file.
19645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19647         REPLACE_WCSWIDTH.
19648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19649         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19650         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19651         * doc/posix-functions/wcswidth.texi: Mention the new module.
19652
19653 2011-02-06  Bruno Haible  <bruno@clisp.org>
19654
19655         New module 'wcstok'.
19656         * modules/wcstok: New file.
19657         * lib/wchar.in.h (wcstok): New declaration.
19658         * lib/wcstok.c: New file.
19659         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19660         * m4/wcstok.m4: New file.
19661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19664         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19665         * doc/posix-functions/wcstok.texi: Mention the new module.
19666
19667 2011-02-06  Bruno Haible  <bruno@clisp.org>
19668
19669         New module 'wcsstr'.
19670         * modules/wcsstr: New file.
19671         * lib/wchar.in.h (wcsstr): New declaration.
19672         * lib/wcsstr.c: New file.
19673         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19674         * m4/wcsstr.m4: New file.
19675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19678         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19679         * doc/posix-functions/wcsstr.texi: Mention the new module.
19680
19681 2011-02-06  Bruno Haible  <bruno@clisp.org>
19682
19683         New module 'wcspbrk'.
19684         * modules/wcspbrk: New file.
19685         * lib/wchar.in.h (wcspbrk): New declaration.
19686         * lib/wcspbrk.c: New file.
19687         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19688         * m4/wcspbrk.m4: New file.
19689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19692         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19693         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19694
19695 2011-02-06  Bruno Haible  <bruno@clisp.org>
19696
19697         New module 'wcsspn'.
19698         * modules/wcsspn: New file.
19699         * lib/wchar.in.h (wcsspn): New declaration.
19700         * lib/wcsspn.c: New file.
19701         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19702         * m4/wcsspn.m4: New file.
19703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19706         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19707         * doc/posix-functions/wcsspn.texi: Mention the new module.
19708
19709 2011-02-06  Bruno Haible  <bruno@clisp.org>
19710
19711         New module 'wcscspn'.
19712         * modules/wcscspn: New file.
19713         * lib/wchar.in.h (wcscspn): New declaration.
19714         * lib/wcscspn.c: New file.
19715         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19716         * m4/wcscspn.m4: New file.
19717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19720         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19721         * doc/posix-functions/wcscspn.texi: Mention the new module.
19722
19723 2011-02-06  Bruno Haible  <bruno@clisp.org>
19724
19725         New module 'wcsrchr'.
19726         * modules/wcsrchr: New file.
19727         * lib/wchar.in.h (wcsrchr): New declaration.
19728         * lib/wcsrchr.c: New file.
19729         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19730         * m4/wcsrchr.m4: New file.
19731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19734         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19735         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19736
19737 2011-02-06  Bruno Haible  <bruno@clisp.org>
19738
19739         New module 'wcschr'.
19740         * modules/wcschr: New file.
19741         * lib/wchar.in.h (wcschr): New declaration.
19742         * lib/wcschr.c: New file.
19743         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19744         * m4/wcschr.m4: New file.
19745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19748         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19749         * doc/posix-functions/wcschr.texi: Mention the new module.
19750
19751 2011-02-06  Bruno Haible  <bruno@clisp.org>
19752
19753         New module 'wcsdup'.
19754         * modules/wcsdup: New file.
19755         * lib/wchar.in.h (wcsdup): New declaration.
19756         * lib/wcsdup.c: New file.
19757         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19758         * m4/wcsdup.m4: New file.
19759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19762         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19763         * doc/posix-functions/wcsdup.texi: Mention the new module.
19764
19765 2011-02-06  Bruno Haible  <bruno@clisp.org>
19766
19767         New module 'wcsxfrm'.
19768         * modules/wcsxfrm: New file.
19769         * lib/wchar.in.h (wcsxfrm): New declaration.
19770         * lib/wcsxfrm.c: New file.
19771         * lib/wcsxfrm-impl.h: New file.
19772         * m4/wcsxfrm.m4: New file.
19773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19776         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19777         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19778
19779 2011-02-06  Bruno Haible  <bruno@clisp.org>
19780
19781         New module 'wcscoll'.
19782         * modules/wcscoll: New file.
19783         * lib/wchar.in.h (wcscoll): New declaration.
19784         * lib/wcscoll.c: New file.
19785         * lib/wcscoll-impl.h: New file.
19786         * m4/wcscoll.m4: New file.
19787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19790         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19791         * doc/posix-functions/wcscoll.texi: Mention the new module.
19792
19793 2011-02-06  Bruno Haible  <bruno@clisp.org>
19794
19795         New module 'wcsncasecmp'.
19796         * modules/wcsncasecmp: New file.
19797         * lib/wchar.in.h (wcsncasecmp): New declaration.
19798         * lib/wcsncasecmp.c: New file.
19799         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19800         * m4/wcsncasecmp.m4: New file.
19801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19804         HAVE_WCSNCASECMP.
19805         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19806         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19807
19808 2011-02-06  Bruno Haible  <bruno@clisp.org>
19809
19810         New module 'wcscasecmp'.
19811         * modules/wcscasecmp: New file.
19812         * lib/wchar.in.h (wcscasecmp): New declaration.
19813         * lib/wcscasecmp.c: New file.
19814         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19815         * m4/wcscasecmp.m4: New file.
19816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19819         HAVE_WCSCASECMP.
19820         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19821         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19822
19823 2011-02-05  Bruno Haible  <bruno@clisp.org>
19824
19825         New module 'wcsncmp'.
19826         * modules/wcsncmp: New file.
19827         * lib/wchar.in.h (wcsncmp): New declaration.
19828         * lib/wcsncmp.c: New file.
19829         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19830         * m4/wcsncmp.m4: New file.
19831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19834         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19835         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19836
19837 2011-02-05  Bruno Haible  <bruno@clisp.org>
19838
19839         New module 'wcscmp'.
19840         * modules/wcscmp: New file.
19841         * lib/wchar.in.h (wcscmp): New declaration.
19842         * lib/wcscmp.c: New file.
19843         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19844         * m4/wcscmp.m4: New file.
19845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19848         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19849         * doc/posix-functions/wcscmp.texi: Mention the new module.
19850
19851 2011-02-05  Bruno Haible  <bruno@clisp.org>
19852
19853         New module 'wcsncat'.
19854         * modules/wcsncat: New file.
19855         * lib/wchar.in.h (wcsncat): New declaration.
19856         * lib/wcsncat.c: New file.
19857         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19858         * m4/wcsncat.m4: New file.
19859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19862         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19863         * doc/posix-functions/wcsncat.texi: Mention the new module.
19864
19865 2011-02-05  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'wcscat'.
19868         * modules/wcscat: New file.
19869         * lib/wchar.in.h (wcscat): New declaration.
19870         * lib/wcscat.c: New file.
19871         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19872         * m4/wcscat.m4: New file.
19873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19876         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19877         * doc/posix-functions/wcscat.texi: Mention the new module.
19878
19879 2011-02-05  Bruno Haible  <bruno@clisp.org>
19880
19881         New module 'wcpncpy'.
19882         * modules/wcpncpy: New file.
19883         * lib/wchar.in.h (wcpncpy): New declaration.
19884         * lib/wcpncpy.c: New file.
19885         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19886         * m4/wcpncpy.m4: New file.
19887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19889         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19890         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19891         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19892
19893 2011-02-05  Bruno Haible  <bruno@clisp.org>
19894
19895         New module 'wcsncpy'.
19896         * modules/wcsncpy: New file.
19897         * lib/wchar.in.h (wcsncpy): New declaration.
19898         * lib/wcsncpy.c: New file.
19899         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19900         * m4/wcsncpy.m4: New file.
19901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19904         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19905         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19906
19907 2011-02-05  Bruno Haible  <bruno@clisp.org>
19908
19909         New module 'wcpcpy'.
19910         * modules/wcpcpy: New file.
19911         * lib/wchar.in.h (wcpcpy): New declaration.
19912         * lib/wcpcpy.c: New file.
19913         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19914         * m4/wcpcpy.m4: New file.
19915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19917         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19918         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19919         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19920
19921 2011-02-05  Bruno Haible  <bruno@clisp.org>
19922
19923         New module 'wcscpy'.
19924         * modules/wcscpy: New file.
19925         * lib/wchar.in.h (wcscpy): New declaration.
19926         * lib/wcscpy.c: New file.
19927         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19928         * m4/wcscpy.m4: New file.
19929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19932         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19933         * doc/posix-functions/wcscpy.texi: Mention the new module.
19934
19935 2011-02-05  Bruno Haible  <bruno@clisp.org>
19936
19937         New module 'wcsnlen'.
19938         * modules/wcsnlen: New file.
19939         * lib/wchar.in.h (wcsnlen): New declaration.
19940         * lib/wcsnlen.c: New file.
19941         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19942         * m4/wcsnlen.m4: New file.
19943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19946         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19947         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19948
19949 2011-02-05  Bruno Haible  <bruno@clisp.org>
19950
19951         New module 'wcslen'.
19952         * modules/wcslen: New file.
19953         * lib/wchar.in.h (wcslen): New declaration.
19954         * lib/wcslen.c: New file.
19955         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19956         * m4/wcslen.m4: New file.
19957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19960         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19961         * doc/posix-functions/wcslen.texi: Mention the new module.
19962
19963 2011-02-05  Bruno Haible  <bruno@clisp.org>
19964
19965         New module 'wmemset'.
19966         * modules/wmemset: New file.
19967         * lib/wchar.in.h (wmemset): New declaration.
19968         * lib/wmemset.c: New file.
19969         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19970         * m4/wmemset.m4: New file.
19971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19973         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19974         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19975         * doc/posix-functions/wmemset.texi: Mention the new module.
19976
19977 2011-02-05  Bruno Haible  <bruno@clisp.org>
19978
19979         New module 'wmemmove'.
19980         * modules/wmemmove: New file.
19981         * lib/wchar.in.h (wmemmove): New declaration.
19982         * lib/wmemmove.c: New file.
19983         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19984         * m4/wmemmove.m4: New file.
19985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19987         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19988         HAVE_WMEMMOVE.
19989         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19990         * doc/posix-functions/wmemmove.texi: Mention the new module.
19991
19992 2011-02-05  Bruno Haible  <bruno@clisp.org>
19993
19994         New module 'wmemcpy'.
19995         * modules/wmemcpy: New file.
19996         * lib/wchar.in.h (wmemcpy): New declaration.
19997         * lib/wmemcpy.c: New file.
19998         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19999         * m4/wmemcpy.m4: New file.
20000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20002         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20003         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20004         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20005
20006 2011-02-05  Bruno Haible  <bruno@clisp.org>
20007
20008         New module 'wmemcmp'.
20009         * modules/wmemcmp: New file.
20010         * lib/wchar.in.h (wmemcmp): New declaration.
20011         * lib/wmemcmp.c: New file.
20012         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20013         * m4/wmemcmp.m4: New file.
20014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20016         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20017         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20018         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20019
20020 2011-02-07  Jim Meyering  <meyering@redhat.com>
20021
20022         di-set, ino-map: new modules, from coreutils
20023         * lib/di-set.c: New file.
20024         * lib/di-set.h: Likewise.
20025         * lib/ino-map.c: Likewise.
20026         * lib/ino-map.h: Likewise.
20027         * modules/di-set: Likewise.
20028         * modules/di-set-tests: Likewise.
20029         * modules/ino-map: Likewise.
20030         * modules/ino-map-tests: Likewise.
20031         * tests/test-di-set.c: Likewise.
20032         * tests/test-ino-map.c: Likewise.
20033
20034 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         getloadavg: merge minor changes from Emacs
20037
20038         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20039         (getloadavg): Use memset, not bzero.
20040
20041         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20042         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20043         clash (bug#86).
20044
20045 2010-11-14  Bruno Haible  <bruno@clisp.org>
20046
20047         Allow multiple gnulib generated replacements to coexist.
20048         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20049         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20050         * lib/langinfo.in.h (nl_item): Likewise.
20051         * lib/math.in.h (_NaN, NAN): Likewise.
20052         * lib/netdb.in.h (struct addrinfo): Likewise.
20053         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20054         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20055         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20056         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20057         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20058         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20059         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20060         pthread_mutexattr_init, pthread_mutexattr_settype,
20061         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20062         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20063         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20064         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20065         * lib/sched.in.h (struct sched_param): Likewise.
20066         * lib/se-selinux.in.h (security_class_t, security_context_t,
20067         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20068         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20069         lsetfilecon, fsetfilecon, security_check_context,
20070         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20071         Likewise.
20072         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20073         Likewise.
20074         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20075         _gl_function_taking_int_returning_void_t, union sigval,
20076         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20077         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20078         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20079         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20080         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20081         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20082         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20083         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20084         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20085         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20086         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20087         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20088         socklen_t, rpl_fd_isset): Likewise.
20089         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20090         * lib/sys_time.in.h (struct timeval): Likewise.
20091         * lib/sys_times.in.h (struct tms): Likewise.
20092         * lib/sys_utsname.in.h (struct utsname):
20093         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20094         * lib/unistd.in.h (getpagesize): Likewise.
20095         * lib/wchar.in.h (mbstate_t): Likewise.
20096         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20097         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20098         towlower, towupper): Likewise.
20099         Reported by Sam Steingold <sds@gnu.org>.
20100
20101 2011-02-05  Eric Blake  <eblake@redhat.com>
20102
20103         unsetenv: work around Haiku issues
20104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20105         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20106
20107 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20108
20109         libposix: avoid calling error() within libposix
20110         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20111         is defined.
20112
20113 2011-02-05  Eric Blake  <eblake@redhat.com>
20114
20115         strerror_r-posix: port to cygwin
20116         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20117         implementation.
20118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20119         * tests/test-strerror_r.c (main): Fix test.
20120         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20121         issue.
20122
20123 2011-02-05  Bruno Haible  <bruno@clisp.org>
20124
20125         New module 'wmemchr'.
20126         * modules/wmemchr: New file.
20127         * lib/wchar.in.h (wmemchr): New declaration.
20128         * lib/wmemchr.c: New file.
20129         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20130         * m4/wmemchr.m4: New file.
20131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20133         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20134         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20135         * doc/posix-functions/wmemchr.texi: Mention the new module.
20136
20137 2011-02-04  Eric Blake  <eblake@redhat.com>
20138
20139         fdopendir: detect FreeBSD bug
20140         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20141         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20142
20143 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         stdbool: do not define HAVE_STDBOOL_H
20146         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20147         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20148         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20149         imported from the latest Autoconf git.  It was motivated by Emacs,
20150         which uses gnulib but does not need HAVE_STDBOOL_H.
20151
20152 2011-02-04  Bruno Haible  <bruno@clisp.org>
20153
20154         wcsnrtombs: Prepare for new module wwcsnrtombs.
20155         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20156         * lib/wcsnrtombs.c: Include it.
20157         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20158
20159         wcsrtombs: Prepare for new module wwcsrtombs.
20160         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20161         * lib/wcsrtombs.c: Include it.
20162         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20163
20164         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20165         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20166         * lib/mbsnrtowcs.c: Include it.
20167         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20168
20169         mbsrtowcs: Prepare for new module mbsrtowwcs.
20170         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20171         * lib/mbsrtowcs.c: Include it.
20172         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20173
20174 2011-02-04  Bruno Haible  <bruno@clisp.org>
20175
20176         vasnprintf: Reduce use of malloc for small format strings.
20177         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20178         (arguments): Add room for the first 7 arguments.
20179         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20180         (char_directives, u8_directives, u16_directives, u32_directives): Add
20181         room for the first 7 directives.
20182         * lib/printf-parse.c: Include <string.h>.
20183         (PRINTF_PARSE): Change memory handling code so that it uses the first
20184         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20185         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20186         Reported by Pádraig Brady <P@draigbrady.com>.
20187
20188 2011-01-31  Eric Blake  <eblake@redhat.com>
20189
20190         dup2: work around Haiku bug
20191         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20192         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20193         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20194         * tests/test-dup2.c (main): Enhance test.
20195
20196 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20197
20198         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20199         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20200         declared by eglibc 2.11.2.
20201         * lib/stdio.in.h: Likewise.
20202
20203 2011-01-31  Eric Blake  <eblake@redhat.com>
20204
20205         ignore-value: add missing test dependency
20206         * tests/test-ignore-value.c: Revert previous change; stdio.h
20207         provides off_t.
20208         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20209
20210 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20211
20212         mktime: clarify long_int width checking
20213         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20214         the top level, to make it clearer that the assumption about
20215         long_int width is being checked.  See
20216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20217
20218 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20219
20220         ignore-value: Fix self-test.
20221         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20222
20223 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20224
20225         TYPE_MAXIMUM: avoid theoretically undefined behavior
20226         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20227         negative number, which the C Standard says has undefined behavior.
20228         In practice this is not a problem, but might as well do it by the book.
20229         Reported by Rich Felker and Eric Blake; see
20230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20231         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20232         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20234         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20235         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20236         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20237
20238         mktime: #undef mktime before #defining it
20239         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20240
20241         mktime: systematically normalize tm_isdst comparisons
20242         * lib/mktime.c (isdst_differ): New function.
20243         (__mktime_internal): Use it systematically for all isdst comparisons.
20244         This completes the fix for libc BZ #6723, and removes the need for
20245         normalizing tm_isdst.  See
20246         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20247         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20248
20249         mktime: fix some integer overflow issues and sidestep the rest
20250
20251         This was prompted by a bug report by Benjamin Lindner for MinGW
20252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20253         His bug is due to signed integer overflow (0 - INT_MIN), and I
20254         I scanned through mktime.c looking for other integer overflow
20255         problems, fixing all the bugs I found.
20256
20257         Although the C Standard says the resulting code is still not safe
20258         in the presence of integer overflow, in practice it should be good
20259         enough for all real-world two's-complement implementations, except
20260         for debugging environments that deliberately trap on integer
20261         overflow (e.g., gcc -ftrapv).
20262
20263         * lib/mktime.c (WRAPV): New macro.
20264         (SHR): Also check that long_int and time_t shift right in the
20265         usual way, before using the fast-but-unportable method.
20266         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20267         used.  The code already assumed two's complement, so there's
20268         no need to test for alternatives.  All uses removed.
20269         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20270         the C standard.  Problem reported by Rich Felker in
20271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20272         (twos_complement_arithmetic): Also check long_int and time_t.
20273         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20274         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20275         (__mktime_internal): Avoid integer overflow with unary subtraction
20276         in two instances where -1 - X is an adequate replacement for -X,
20277         since the calculations are approximate.
20278
20279 2011-01-29  Eric Blake  <eblake@redhat.com>
20280
20281         mktime: avoid infinite loop
20282         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20283         type; behavior is still undefined but portable to all known targets.
20284         Reported by Rich Felker.
20285
20286 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20287
20288         rename, unlink, same-inode: Relicense.
20289         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20290         * modules/unlink (License): Likewise.
20291         * modules/same-inode (License): Likewise.
20292
20293 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20294
20295         mktime: avoid problems on NetBSD 5 / i386
20296         * lib/mktime.c (long_int): New type.  This works around a problem
20297         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20298         but time_t is 64 bits, and where I expect the existing code is
20299         wrong in some cases.
20300         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20301         (ydhms_diff): Bring back the compile-time check for wide-enough
20302         year and yday.
20303
20304         mktime: fix misspelling in comment
20305         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20306         This merges all recent glibc changes of importance.
20307
20308 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20309
20310         move-if-change: cope with concurrent mv of identical file.
20311         * build-aux/move-if-change (CMPPROG): Accept environment
20312         variable as an override for `cmp'.
20313         (usage): Document CMPPROG.
20314         Adjust comparison to drop stdout.  Cope with failure of mv if
20315         the target file exists and is identical to the source, for
20316         parallel builds.
20317         Report from H.J. Lu against binutils in PR binutils/12283.
20318
20319 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20320
20321         * users.txt: Mention sharutils.
20322
20323 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20324
20325         * users.txt: Mention OATH Toolkit.
20326
20327 2011-01-27  Bruno Haible  <bruno@clisp.org>
20328
20329         Prepare for supporting FreeBSD 10.
20330         * build-aux/config.libpath: Remove handling of freebsd1*.
20331
20332 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20333
20334         Prepare for supporting FreeBSD 10.
20335         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20336         match FreeBSD 10.0.
20337
20338 2011-01-27  Bruno Haible  <bruno@clisp.org>
20339
20340         vma-iter, get-rusage-as: Add OpenBSD support.
20341         * modules/vma-iter (configure.ac): Test for mquery.
20342         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20343         * lib/vma-iter.c: Include <sys/mman.h>.
20344         (vma_iterate): Add an implementation based on mquery().
20345         * lib/resource-ext.h (get_rusage_as): Update comments.
20346         * lib/get-rusage-as.c: Likewise.
20347         * lib/get-rusage-data.c: Likewise.
20348
20349 2011-01-26  Karl Berry  <karl@gnu.org>
20350
20351         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20352         variables to make it easier to override the makeinfo program used.
20353
20354 2011-01-26  Eric Blake  <eblake@redhat.com>
20355
20356         fcntl: work around Haiku F_DUPFD bugs
20357         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20358         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20359         cloexec bit on duplication.
20360         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20361
20362 2011-01-26  Bruno Haible  <bruno@clisp.org>
20363
20364         Enable memory leak tests on AIX.
20365         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20366         * tests/test-fprintf-posix3.c (main): Likewise.
20367
20368 2011-01-26  Bruno Haible  <bruno@clisp.org>
20369
20370         Tests for module 'get-rusage-data'.
20371         * modules/get-rusage-data-tests: New file.
20372         * tests/test-get-rusage-data.c: New file.
20373
20374         New module 'get-rusage-data'.
20375         * lib/resource-ext.h (get_rusage_data): New declaration.
20376         * lib/get-rusage-data.c: New file.
20377         * modules/get-rusage-data: New file.
20378
20379 2011-01-25  Bruno Haible  <bruno@clisp.org>
20380
20381         get-rusage-as: Allow for easier testing.
20382         * lib/resource-ext.h (get_rusage_as): Add comment.
20383         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20384         (main): New function for interactive testing.
20385
20386 2011-01-25  Bruno Haible  <bruno@clisp.org>
20387
20388         vma-iter: Treat Haiku like BeOS.
20389         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20390         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20391
20392 2011-01-25  Eric Blake  <eblake@redhat.com>
20393
20394         c-stack: fix regression on cygwin when libsigsegv is present
20395         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20396
20397 2011-01-24  Bruno Haible  <bruno@clisp.org>
20398
20399         vma-iter: Avoid empty intervals.
20400         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20401         on an empty interval.
20402
20403 2011-01-24  Jim Meyering  <meyering@redhat.com>
20404
20405         u64: remove unnecessary #include
20406         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20407
20408 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20411         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20412
20413 2011-01-23  Bruno Haible  <bruno@clisp.org>
20414
20415         New module 'vma-iter'.
20416         * lib/vma-iter.h: New file.
20417         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20418         * modules/vma-iter: New file.
20419         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20420         for get_rusage_as_via_iterator.
20421         (vma_iterate_callback): New function.
20422         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20423         * modules/get-rusage-as (Depends-on): Add vma-iter.
20424
20425 2011-01-23  Bruno Haible  <bruno@clisp.org>
20426
20427         uninorm: Tweak includes.
20428         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20429         Reported by Jim Meyering.
20430
20431 2011-01-23  Bruno Haible  <bruno@clisp.org>
20432
20433         get-rusage-as: Improve on NetBSD.
20434         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20435         /proc, like on FreeBSD.
20436
20437 2011-01-23  Jim Meyering  <meyering@redhat.com>
20438
20439         xreadlink.h: remove unnecessary #include
20440         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20441
20442         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20443         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20444
20445 2011-01-23  Bruno Haible  <bruno@clisp.org>
20446
20447         get-rusage-as: Fix bug.
20448         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20449         original limit when aborting the first loop.
20450
20451 2011-01-23  Bruno Haible  <bruno@clisp.org>
20452
20453         wctype: Ensure valid C syntax.
20454         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20455         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20456
20457 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20461         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20462         as they are needed only for configure's test case.
20463         This removes two unnecessary symbols from config.h.
20464
20465         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20466         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20468         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20469         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20470         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20471         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20472         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20473         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20474         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20475         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20476         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20477         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20479         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20480         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20481         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20482         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20483
20484 2011-01-21  Eric Blake  <eblake@redhat.com>
20485
20486         maintainer-makefile: work with older git for submodule check
20487         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20488         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20489         Reported by Matthias Bolte.
20490
20491         bootstrap: minor portability fixes
20492         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20493         (usage): Omit leading capital and trailing . on help phrases, per
20494         GNU Coding Standards.
20495         (check_versions, top level): Prefix messages with script name.
20496
20497 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20498
20499         bootstrap: support --no-git option
20500         * build-aux/bootstrap: Add --no-git option, to be used when
20501         --gnulib-srcdir points to the exact desired checkout.
20502
20503 2011-01-21  Eric Blake  <eblake@redhat.com>
20504
20505         strerror_r-posix: work with glibc 2.13
20506         * lib/strerror_r.c (strerror_r): Fix return type.
20507
20508 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20509             Bruno Haible  <bruno@clisp.org>
20510
20511         uN_strstr: New unit tests.
20512         * modules/unistr/u8-strstr-tests: New file.
20513         * modules/unistr/u16-strstr-tests: New file.
20514         * modules/unistr/u32-strstr-tests: New file.
20515         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20516         * tests/unistr/test-u8-strstr.c: New file.
20517         * tests/unistr/test-u16-strstr.c: New file.
20518         * tests/unistr/test-u32-strstr.c: New file.
20519
20520 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20521             Bruno Haible  <bruno@clisp.org>
20522
20523         Make uN_strstr functions O(n) worst-case.
20524         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20525         16-bit and 32-bit unit cases, use the unibyte algorithm from
20526         lib/mbsstr.c.
20527         * lib/unistr/u8-strstr.c: Include <string.h>.
20528         (UNIT_IS_UINT8_T): New macro.
20529         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20530         (U_STRLEN, U_STRNLEN): New macros.
20531         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20532         (U_STRLEN, U_STRNLEN): New macros.
20533         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20534         (configure.ac): Update required libunistring version.
20535         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20536         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20537         malloca.
20538         (configure.ac): Update required libunistring version.
20539         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20540         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20541         malloca.
20542         (configure.ac): Update required libunistring version.
20543
20544 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20545             Bruno Haible  <bruno@clisp.org>
20546
20547         Prepare for faster uN_strstr functions.
20548         * lib/str-kmp.h: Support definable UNITs.
20549         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20550         needle_len argument.
20551         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20552         * lib/mbscasestr.c (mbscasestr): Likewise.
20553
20554 2011-01-21  Pádraig Brady <P@draigBrady.com>
20555
20556         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20557         * tests/test-malloca.c (main): Unset the environment variable
20558         to greatly speed up the test.
20559         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20560         * modules/malloca-tests: Depend on unsetenv.
20561
20562 2011-01-21  Pádraig Brady <P@draigBrady.com>
20563
20564         ignore-value: remove stdint dependency
20565         * lib/ignore-value.h: Remove <stdint.h>
20566         * modules/ignore-value: Remove stdint dependency.
20567
20568 2011-01-21  Jim Meyering  <meyering@redhat.com>
20569
20570         maint.mk: adjust variable name to be consistent with other gl_ vars
20571         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20572         to be lower case.
20573
20574 2011-01-20  Jim Meyering  <meyering@redhat.com>
20575
20576         maint.mk: make "check" depend on public-submodule-commit by default
20577         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20578
20579 2011-01-20  Bruno Haible  <bruno@clisp.org>
20580
20581         mbfile, mbiter: Complete change from 2008-12-21.
20582         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20583         * m4/mbiter.m4 (gl_MBITER): Likewise.
20584
20585 2011-01-20  Jim Meyering  <meyering@redhat.com>
20586
20587         init.sh: insert space between each function name and "()"
20588         * tests/init.sh: Make it a little easier to see that a function's
20589         name is "warn_", and not "warn" when looking at the first part of
20590         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20591
20592 2011-01-20  Jim Meyering  <meyering@redhat.com>
20593
20594         mountlist: clean up code formatting
20595         * lib/mountlist.c (read_file_system_list): Split a long line,
20596         correct bracing style, use NULL in place of "(struct statfs *)0",
20597         don't parenthesize return value, add spaces around "=" and after
20598         ";-in-for-stmt".
20599
20600 2011-01-14  Markus Duft <mduft@gentoo.org>
20601
20602         mountlist: add support for Interix
20603         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20604         Apply statvfs to all entries of /dev/fs.
20605         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20606         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20607
20608 2011-01-20  Jim Meyering  <meyering@redhat.com>
20609
20610         maint.mk: improve the public-submodule-commit rule
20611         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20612         to suppress printing of its commands... unless V=1.
20613         Add git submodule's --quiet option to suppress printing of e.g.,
20614         "Entering gnulib" output.
20615         "cd" into $(srcdir) before running git submodule.
20616
20617 2011-01-20  Bruno Haible  <bruno@clisp.org>
20618
20619         include_next: Fix bug introduced on 2011-01-18.
20620         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20621         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20622         ac_cv_header_... variable if the second argument is not 'check'.
20623         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20624         gl_NEXT_HEADERS_INTERNAL.
20625
20626 2011-01-20  Bruno Haible  <bruno@clisp.org>
20627
20628         Allow the user to avoid the GNULIB_TEST_* macros.
20629         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20630         Suggested by Paul Eggert.
20631
20632 2011-01-14  Jim Meyering  <meyering@redhat.com>
20633
20634         bootstrap: avoid failure when there is no .gitmodules file
20635         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20636         has been assigned to, even when its value is the empty string.
20637         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20638         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20639         Reported by John W. Eaton <jwe@gnu.org>.
20640
20641 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         assume <ctype.h>, ..., <time.h> exist
20644         For years gnulib has been assuming the existence of the headers
20645         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20646         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20647         them, since they don't appear to be needed.
20648         * README (Portability guidelines): Document this.
20649         * lib/flock.c: Assume <fcntl.h> exists.
20650         * lib/regex_internal.h: Assume <locale.h> exists.
20651         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20652         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20653         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20654         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20655         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20656         * m4/regex.m4 (gl_REGEX): Likewise.
20657         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20658         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20659         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20660         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20661         * tests/test-argp.c: Likewise.
20662         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20663
20664         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20665         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20666         AA_APPLE_UNIVERSAL_BUILD.  See
20667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20668         * NEWS: Document this.
20669
20670 2011-01-19  Eric Blake  <eblake@redhat.com>
20671
20672         c-stack: assume stack overflow if SA_SIGINFO unsupported
20673         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20674         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20675         sigaction will work.
20676         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20677         behavior match Linux.
20678         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20679
20680         stdbool-tests: accomodate Haiku
20681         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20682
20683         binary-io: fix O_TEXT on Haiku
20684         * modules/binary-io (Depends-on): Add fcntl-h.
20685         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20686         than blindly undefining O_TEXT.
20687         Reported by Scott McCreary.
20688
20689 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20690
20691         include_next: do not check for standard headers like stddef.h
20692
20693         I found this problem when modifying Emacs to use gnulib.
20694         I noticed that it added HAVE_STDDEF_H to config.h, even though
20695         gnulib always assumes <stddef.h> exists as per README and this
20696         symbol is unnecessary.
20697         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20698         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20699         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20700         faster for headers like stddef.h that are known to exist.
20701         (gl_CHECK_NEXT_HEADERS): Use it.
20702         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20703         rather than gl_CHECK_NEXT_HEADERS.
20704         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20705         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20706
20707 2011-01-18  Eric Blake  <eblake@redhat.com>
20708
20709         ansi-c++-opt: skip C++ dependency style if C++ is unused
20710         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20711         tests when we know C++ compilation is not desired.
20712         Reported by Scott McCreary.
20713
20714 2011-01-18  Bruno Haible  <bruno@clisp.org>
20715
20716         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20717         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20718         (main): Perform test also when getrlimit and setrlimit don't exist or
20719         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20720         limiting the address space size using setrlimit, compare the address
20721         space size before and after the the test.
20722         * tests/test-dprintf-posix2.c: Likewise.
20723         * tests/test-fprintf-posix3.sh: Update skip messages.
20724         * tests/test-dprintf-posix2.sh: Likewise.
20725         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20726         * modules/dprintf-posix-tests (Depends-on): Likewise.
20727         Reported by Bruce Korb <bkorb@gnu.org> and
20728         Gary V. Vaughan <gary@gnu.org>.
20729
20730 2011-01-18  Bruno Haible  <bruno@clisp.org>
20731
20732         get-rusage-as: Improvement for Cygwin.
20733         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20734         areas that are merely reserved.
20735
20736 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20737
20738         strftime: remove dependencies on multibyte modules
20739
20740         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20741         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20742         only if __osf__ is defined, and I suspect OSF doesn't need these
20743         other modules.  If my guess is wrong, we'll need to come up with a
20744         variant of strftime that doesn't need the multibyte modules.
20745
20746         I discovered this problem when attempting modify Emacs to use the
20747         strftime module.  With the previous gnulib, this caused Emacs to
20748         need 31 new files, ranging from lib/config.charset to
20749         m4/wint_t.m4.  This was overkill and I expect would be offputting
20750         to the Emacs maintainers.  After this change, only 6 new files are
20751         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20752         stdbool.m4, and tm_gmtoff.m4.
20753
20754         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20755         Suggested by Bruno Haible in
20756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20758         and do not check for wchar.h.
20759         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20760         (Depends-on): Remove mbrlen, mbsinit, wchar.
20761
20762 2011-01-18  Bruno Haible  <bruno@clisp.org>
20763
20764         Tests for module 'get-rusage-as'.
20765         * modules/get-rusage-as-tests: New file.
20766         * tests/test-get-rusage-as.c: New file.
20767
20768         New module 'get-rusage-as'.
20769         * modules/get-rusage-as: New file.
20770         * lib/resource-ext.h: New file.
20771         * lib/get-rusage-as.c: New file.
20772
20773 2011-01-17  Eric Blake  <eblake@redhat.com>
20774
20775         sigaction: relax license from LGPLv3+ to LGPLv2+
20776         * modules/sigaction (License): Relax to LGPLv2+.
20777
20778 2011-01-14  Bruno Haible  <bruno@clisp.org>
20779
20780         filemode: Make function declarations usable in C++ mode.
20781         * lib/filemode.h: Enclose function declarations in extern "C" block.
20782         Reported by John W. Eaton <jwe@gnu.org>.
20783
20784 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20785
20786         save-cwd: no longer include "xgetcwd.h"
20787         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20788         This avoids a compilation failure in projects that use save-cwd
20789         without also using the xgetcwd module.
20790
20791 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20792
20793         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20794         This is so that a program like Emacs, which needs only dtoastr,
20795         does not have to bother with distributing and compiling ftoastr
20796         and ldtoastr.
20797         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20798         * modules/dtoastr, modules/ldtoastr: New files.
20799         * modules/ftoastr: Now works just for 'float'.
20800         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20801         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20802         dtoastr.c, ldtoastr.c.
20803
20804 2011-01-11  Jim Meyering  <meyering@redhat.com>
20805
20806         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20807         There is no need to work around the lack of the fchdir function,
20808         since gnulib can now provide a replacement when required.
20809         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20810         * modules/save-cwd (Depends-on): Add fchdir.
20811
20812 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20813
20814         openat, save-cwd: avoid xmalloc
20815
20816         This removes a direct (but undocumented) dependency of openat on
20817         xalloc, along with an indirect dependency via save-cwd.  It also
20818         removes a dependency of save-cwd on xgetcwd, and thereby
20819         indirectly on xalloc.  This change causes the openat substitute
20820         to fall back on save_cwd when memory is tight, and for save_cwd to
20821         fail instead of dying when memory is tight, but that's good enough.
20822         Problem and initial idea for fix reported by Bastien Roucaries in
20823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20824
20825         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20826         xalloc.h (for xmalloc).
20827         (openat_proc_name): Use malloc, not xmalloc.
20828         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20829         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20830
20831         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20832         This avoids heap allocation for file names whose lengths are in
20833         the range 512..1023, with the upper bound increasing to at most
20834         4031 depending on the platform's PATH_MAX.  (We do not want
20835         pathmax.h here as it might supply a non-constant PATH_MAX.)
20836         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20837         Perhaps they should be moved to malloca.h?
20838         (OPENAT_BUFFER_SIZE): Use them.
20839
20840 2011-01-10  Bruno Haible  <bruno@clisp.org>
20841
20842         doc: Update users.txt.
20843         * users.txt: Add recutils.
20844
20845 2011-01-09  Karl Berry  <karl@gnu.org>
20846
20847         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20848
20849         * doc/configmake.texi: New file.
20850         * doc/gnulib.texi: Include it.
20851         * modules/configmake: Move documentation from here.
20852
20853 2011-01-09  Bruno Haible  <bruno@clisp.org>
20854
20855         Update to Unicode 6.0.0.
20856         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20857         (get_lbp): Update for Unicode 6.0.0.
20858         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20859         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20860         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20861         U+11001, U+11038..U+11046. Remove U+06DE.
20862         (uc_width): Fix bounds of planes.
20863         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20864         lib/uniwidth/width.c.
20865         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20866         trailing whitespace removed.
20867         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20868         without comments, but with the original copyright notice.
20869         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20870         * lib/unicase/ignorable.h: Likewise.
20871         * lib/unicase/tocasefold.h: Likewise.
20872         * lib/unicase/tolower.h: Likewise.
20873         * lib/unicase/totitle.h: Likewise.
20874         * lib/unicase/toupper.h: Likewise.
20875         * lib/unictype/bidi_of.h: Likewise.
20876         * lib/unictype/blocks.h: Likewise.
20877         * lib/unictype/categ_C.h: Likewise.
20878         * lib/unictype/categ_Cn.h: Likewise.
20879         * lib/unictype/categ_L.h: Likewise.
20880         * lib/unictype/categ_Ll.h: Likewise.
20881         * lib/unictype/categ_Lm.h: Likewise.
20882         * lib/unictype/categ_Lo.h: Likewise.
20883         * lib/unictype/categ_Lu.h: Likewise.
20884         * lib/unictype/categ_M.h: Likewise.
20885         * lib/unictype/categ_Mc.h: Likewise.
20886         * lib/unictype/categ_Me.h: Likewise.
20887         * lib/unictype/categ_Mn.h: Likewise.
20888         * lib/unictype/categ_N.h: Likewise.
20889         * lib/unictype/categ_Nd.h: Likewise.
20890         * lib/unictype/categ_No.h: Likewise.
20891         * lib/unictype/categ_P.h: Likewise.
20892         * lib/unictype/categ_Po.h: Likewise.
20893         * lib/unictype/categ_S.h: Likewise.
20894         * lib/unictype/categ_Sc.h: Likewise.
20895         * lib/unictype/categ_Sk.h: Likewise.
20896         * lib/unictype/categ_Sm.h: Likewise.
20897         * lib/unictype/categ_So.h: Likewise.
20898         * lib/unictype/categ_of.h: Likewise.
20899         * lib/unictype/combining.h: Likewise.
20900         * lib/unictype/ctype_alnum.h: Likewise.
20901         * lib/unictype/ctype_alpha.h: Likewise.
20902         * lib/unictype/ctype_graph.h: Likewise.
20903         * lib/unictype/ctype_lower.h: Likewise.
20904         * lib/unictype/ctype_print.h: Likewise.
20905         * lib/unictype/ctype_punct.h: Likewise.
20906         * lib/unictype/ctype_upper.h: Likewise.
20907         * lib/unictype/decdigit.h: Likewise.
20908         * lib/unictype/digit.h: Likewise.
20909         * lib/unictype/numeric.h: Likewise.
20910         * lib/unictype/pr_alphabetic.h: Likewise.
20911         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20912         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20913         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20914         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20915         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20916         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20917         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20918         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20919         * lib/unictype/pr_case_ignorable.h: Likewise.
20920         * lib/unictype/pr_cased.h: Likewise.
20921         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20922         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20923         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20924         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20925         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20926         * lib/unictype/pr_combining.h: Likewise.
20927         * lib/unictype/pr_composite.h: Likewise.
20928         * lib/unictype/pr_currency_symbol.h: Likewise.
20929         * lib/unictype/pr_decimal_digit.h: Likewise.
20930         * lib/unictype/pr_deprecated.h: Likewise.
20931         * lib/unictype/pr_format_control.h: Likewise.
20932         * lib/unictype/pr_grapheme_base.h: Likewise.
20933         * lib/unictype/pr_grapheme_extend.h: Likewise.
20934         * lib/unictype/pr_grapheme_link.h: Likewise.
20935         * lib/unictype/pr_id_continue.h: Likewise.
20936         * lib/unictype/pr_id_start.h: Likewise.
20937         * lib/unictype/pr_ideographic.h: Likewise.
20938         * lib/unictype/pr_lowercase.h: Likewise.
20939         * lib/unictype/pr_math.h: Likewise.
20940         * lib/unictype/pr_numeric.h: Likewise.
20941         * lib/unictype/pr_other_alphabetic.h: Likewise.
20942         * lib/unictype/pr_other_id_continue.h: Likewise.
20943         * lib/unictype/pr_other_math.h: Likewise.
20944         * lib/unictype/pr_punctuation.h: Likewise.
20945         * lib/unictype/pr_sentence_terminal.h: Likewise.
20946         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20947         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20948         * lib/unictype/pr_unified_ideograph.h: Likewise.
20949         * lib/unictype/pr_uppercase.h: Likewise.
20950         * lib/unictype/pr_xid_continue.h: Likewise.
20951         * lib/unictype/pr_xid_start.h: Likewise.
20952         * lib/unictype/scripts.h: Likewise.
20953         * lib/unictype/scripts_byname.gperf: Likewise.
20954         * lib/unictype/sy_java_ident.h: Likewise.
20955         * lib/unigbrk/gbrkprop.h: Likewise.
20956         * lib/unilbrk/lbrkprop1.h: Likewise.
20957         * lib/unilbrk/lbrkprop2.h: Likewise.
20958         * lib/uninorm/decomposition-table2.h: Likewise.
20959         * lib/uniwbrk/wbrkprop.h: Likewise.
20960         * tests/unicase/test-cased.c: Likewise.
20961         * tests/unicase/test-ignorable.c: Likewise.
20962         * tests/unicase/test-uc_tolower.c: Likewise.
20963         * tests/unicase/test-uc_totitle.c: Likewise.
20964         * tests/unicase/test-uc_toupper.c: Likewise.
20965         * tests/unictype/test-categ_C.c: Likewise.
20966         * tests/unictype/test-categ_Cn.c: Likewise.
20967         * tests/unictype/test-categ_L.c: Likewise.
20968         * tests/unictype/test-categ_Ll.c: Likewise.
20969         * tests/unictype/test-categ_Lm.c: Likewise.
20970         * tests/unictype/test-categ_Lo.c: Likewise.
20971         * tests/unictype/test-categ_Lu.c: Likewise.
20972         * tests/unictype/test-categ_M.c: Likewise.
20973         * tests/unictype/test-categ_Mc.c: Likewise.
20974         * tests/unictype/test-categ_Me.c: Likewise.
20975         * tests/unictype/test-categ_Mn.c: Likewise.
20976         * tests/unictype/test-categ_N.c: Likewise.
20977         * tests/unictype/test-categ_Nd.c: Likewise.
20978         * tests/unictype/test-categ_No.c: Likewise.
20979         * tests/unictype/test-categ_P.c: Likewise.
20980         * tests/unictype/test-categ_Po.c: Likewise.
20981         * tests/unictype/test-categ_S.c: Likewise.
20982         * tests/unictype/test-categ_Sc.c: Likewise.
20983         * tests/unictype/test-categ_Sk.c: Likewise.
20984         * tests/unictype/test-categ_Sm.c: Likewise.
20985         * tests/unictype/test-categ_So.c: Likewise.
20986         * tests/unictype/test-ctype_alnum.c: Likewise.
20987         * tests/unictype/test-ctype_alpha.c: Likewise.
20988         * tests/unictype/test-ctype_graph.c: Likewise.
20989         * tests/unictype/test-ctype_lower.c: Likewise.
20990         * tests/unictype/test-ctype_print.c: Likewise.
20991         * tests/unictype/test-ctype_punct.c: Likewise.
20992         * tests/unictype/test-ctype_upper.c: Likewise.
20993         * tests/unictype/test-decdigit.h: Likewise.
20994         * tests/unictype/test-digit.h: Likewise.
20995         * tests/unictype/test-numeric.h: Likewise.
20996         * tests/unictype/test-pr_alphabetic.c: Likewise.
20997         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20998         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20999         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21000         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21001         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21002         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21003         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21004         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21005         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21006         * tests/unictype/test-pr_cased.c: Likewise.
21007         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21008         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21009         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21010         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21011         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21012         * tests/unictype/test-pr_combining.c: Likewise.
21013         * tests/unictype/test-pr_composite.c: Likewise.
21014         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21015         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21016         * tests/unictype/test-pr_deprecated.c: Likewise.
21017         * tests/unictype/test-pr_format_control.c: Likewise.
21018         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21019         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21020         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21021         * tests/unictype/test-pr_id_continue.c: Likewise.
21022         * tests/unictype/test-pr_id_start.c: Likewise.
21023         * tests/unictype/test-pr_ideographic.c: Likewise.
21024         * tests/unictype/test-pr_lowercase.c: Likewise.
21025         * tests/unictype/test-pr_math.c: Likewise.
21026         * tests/unictype/test-pr_numeric.c: Likewise.
21027         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21028         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21029         * tests/unictype/test-pr_other_math.c: Likewise.
21030         * tests/unictype/test-pr_punctuation.c: Likewise.
21031         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21032         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21033         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21034         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21035         * tests/unictype/test-pr_uppercase.c: Likewise.
21036         * tests/unictype/test-pr_xid_continue.c: Likewise.
21037         * tests/unictype/test-pr_xid_start.c: Likewise.
21038         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21039         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21040         changes.
21041         * lib/unictype/categ_Cc.h: Likewise.
21042         * lib/unictype/categ_Cf.h: Likewise.
21043         * lib/unictype/categ_Co.h: Likewise.
21044         * lib/unictype/categ_Cs.h: Likewise.
21045         * lib/unictype/categ_Lt.h: Likewise.
21046         * lib/unictype/categ_Nl.h: Likewise.
21047         * lib/unictype/categ_Pc.h: Likewise.
21048         * lib/unictype/categ_Pd.h: Likewise.
21049         * lib/unictype/categ_Pe.h: Likewise.
21050         * lib/unictype/categ_Pf.h: Likewise.
21051         * lib/unictype/categ_Pi.h: Likewise.
21052         * lib/unictype/categ_Ps.h: Likewise.
21053         * lib/unictype/categ_Z.h: Likewise.
21054         * lib/unictype/categ_Zl.h: Likewise.
21055         * lib/unictype/categ_Zp.h: Likewise.
21056         * lib/unictype/categ_Zs.h: Likewise.
21057         * lib/unictype/ctype_blank.h: Likewise.
21058         * lib/unictype/ctype_cntrl.h: Likewise.
21059         * lib/unictype/ctype_digit.h: Likewise.
21060         * lib/unictype/ctype_space.h: Likewise.
21061         * lib/unictype/ctype_xdigit.h: Likewise.
21062         * lib/unictype/mirror.h: Likewise.
21063         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21064         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21065         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21066         * lib/unictype/pr_bidi_control.h: Likewise.
21067         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21068         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21069         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21070         * lib/unictype/pr_bidi_pdf.h: Likewise.
21071         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21072         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21073         * lib/unictype/pr_dash.h: Likewise.
21074         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21075         * lib/unictype/pr_diacritic.h: Likewise.
21076         * lib/unictype/pr_extender.h: Likewise.
21077         * lib/unictype/pr_hex_digit.h: Likewise.
21078         * lib/unictype/pr_hyphen.h: Likewise.
21079         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21080         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21081         * lib/unictype/pr_ignorable_control.h: Likewise.
21082         * lib/unictype/pr_iso_control.h: Likewise.
21083         * lib/unictype/pr_join_control.h: Likewise.
21084         * lib/unictype/pr_left_of_pair.h: Likewise.
21085         * lib/unictype/pr_line_separator.h: Likewise.
21086         * lib/unictype/pr_logical_order_exception.h: Likewise.
21087         * lib/unictype/pr_non_break.h: Likewise.
21088         * lib/unictype/pr_not_a_character.h: Likewise.
21089         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21090         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21091         * lib/unictype/pr_other_id_start.h: Likewise.
21092         * lib/unictype/pr_other_lowercase.h: Likewise.
21093         * lib/unictype/pr_other_uppercase.h: Likewise.
21094         * lib/unictype/pr_paired_punctuation.h: Likewise.
21095         * lib/unictype/pr_paragraph_separator.h: Likewise.
21096         * lib/unictype/pr_pattern_syntax.h: Likewise.
21097         * lib/unictype/pr_pattern_white_space.h: Likewise.
21098         * lib/unictype/pr_private_use.h: Likewise.
21099         * lib/unictype/pr_quotation_mark.h: Likewise.
21100         * lib/unictype/pr_radical.h: Likewise.
21101         * lib/unictype/pr_soft_dotted.h: Likewise.
21102         * lib/unictype/pr_space.h: Likewise.
21103         * lib/unictype/pr_titlecase.h: Likewise.
21104         * lib/unictype/pr_variation_selector.h: Likewise.
21105         * lib/unictype/pr_white_space.h: Likewise.
21106         * lib/unictype/pr_zero_width.h: Likewise.
21107         * lib/unictype/sy_c_ident.h: Likewise.
21108         * lib/unictype/sy_c_whitespace.h: Likewise.
21109         * lib/unictype/sy_java_whitespace.h: Likewise.
21110         * lib/uninorm/composition-table.gperf: Likewise.
21111         * lib/uninorm/decomposition-table1.h: Likewise.
21112         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21113         LB8.
21114         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21115         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21116         * modules/unictype/*: Bump version number of expected libunistring
21117         version.
21118
21119 2011-01-09  Bruno Haible  <bruno@clisp.org>
21120
21121         Update to Unicode 5.2.0.
21122         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21123         trailing whitespace removed.
21124
21125 2011-01-09  Bruno Haible  <bruno@clisp.org>
21126
21127         New Unicode character properties, from Unicode 5.2.0.
21128         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21129         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21130         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21131         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21132         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21133         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21134         uc_is_property_cased, uc_is_property_case_ignorable,
21135         uc_is_property_changes_when_lowercased,
21136         uc_is_property_changes_when_uppercased,
21137         uc_is_property_changes_when_titlecased,
21138         uc_is_property_changes_when_casefolded,
21139         uc_is_property_changes_when_casemapped): New declarations.
21140         * lib/unictype/pr_byname.gperf: Add the new properties.
21141         * modules/unictype/property-byname (Depends-on): Depend on the new
21142         properties modules.
21143         * modules/unictype/property-all (Depends-on): Likewise.
21144         * MODULES.html.sh (Unicode string functions): Add
21145         unictype/property-case-ignorable, unictype/property-cased,
21146         unictype/property-changes-when-casefolded,
21147         unictype/property-changes-when-casemapped,
21148         unictype/property-changes-when-lowercased,
21149         unictype/property-changes-when-titlecased,
21150         unictype/property-changes-when-uppercased.
21151
21152         New module 'unictype/property-changes-when-casemapped'.
21153         * modules/unictype/property-changes-when-casemapped: New file.
21154         * lib/unictype/pr_changes_when_casemapped.c: New file.
21155         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21156         generated by gen-uni-tables.
21157         * modules/unictype/property-changes-when-casemapped-tests: New file.
21158         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21159         automatically generated by gen-uni-tables.
21160
21161         New module 'unictype/property-changes-when-casefolded'.
21162         * modules/unictype/property-changes-when-casefolded: New file.
21163         * lib/unictype/pr_changes_when_casefolded.c: New file.
21164         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21165         generated by gen-uni-tables.
21166         * modules/unictype/property-changes-when-casefolded-tests: New file.
21167         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21168         automatically generated by gen-uni-tables.
21169
21170         New module 'unictype/property-changes-when-titlecased'.
21171         * modules/unictype/property-changes-when-titlecased: New file.
21172         * lib/unictype/pr_changes_when_titlecased.c: New file.
21173         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21174         generated by gen-uni-tables.
21175         * modules/unictype/property-changes-when-titlecased-tests: New file.
21176         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21177         automatically generated by gen-uni-tables.
21178
21179         New module 'unictype/property-changes-when-uppercased'.
21180         * modules/unictype/property-changes-when-uppercased: New file.
21181         * lib/unictype/pr_changes_when_uppercased.c: New file.
21182         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21183         generated by gen-uni-tables.
21184         * modules/unictype/property-changes-when-uppercased-tests: New file.
21185         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21186         automatically generated by gen-uni-tables.
21187
21188         New module 'unictype/property-changes-when-lowercased'.
21189         * modules/unictype/property-changes-when-lowercased: New file.
21190         * lib/unictype/pr_changes_when_lowercased.c: New file.
21191         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21192         generated by gen-uni-tables.
21193         * modules/unictype/property-changes-when-lowercased-tests: New file.
21194         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21195         automatically generated by gen-uni-tables.
21196
21197         New module 'unictype/property-case-ignorable'.
21198         * modules/unictype/property-case-ignorable: New file.
21199         * lib/unictype/pr_case_ignorable.c: New file.
21200         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21201         by gen-uni-tables.
21202         * modules/unictype/property-case-ignorable-tests: New file.
21203         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21204         generated by gen-uni-tables.
21205
21206         New module 'unictype/property-cased'.
21207         * modules/unictype/property-cased: New file.
21208         * lib/unictype/pr_cased.c: New file.
21209         * lib/unictype/pr_cased.h: New file, automatically generated by
21210         gen-uni-tables.
21211         * modules/unictype/property-cased-tests: New file.
21212         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21213         gen-uni-tables.
21214
21215 2011-01-09  Bruno Haible  <bruno@clisp.org>
21216
21217         Update to Unicode 5.2.0.
21218         * lib/gen-uni-tables.c (output_predicate, output_category,
21219         output_combclass, output_bidi_category, output_decimal_digit_test,
21220         output_decimal_digit, output_digit_test, output_digit,
21221         output_numeric_test, output_numeric, output_mirror, output_scripts,
21222         output_scripts_byname, output_blocks, output_ident_category): Fix
21223         comment header.
21224         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21225         get_wbp.
21226         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21227         items.
21228         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21229         Changes_When_Lowercased, Changes_When_Uppercased,
21230         Changes_When_Titlecased, Changes_When_Casefolded,
21231         Changes_When_Casemapped.
21232         (is_property_alphabetic, is_property_default_ignorable_code_point):
21233         Update for Unicode 5.2.0.
21234         (is_property_cased, is_property_case_ignorable,
21235         is_property_changes_when_lowercased,
21236         is_property_changes_when_uppercased,
21237         is_property_changes_when_titlecased,
21238         is_property_changes_when_casefolded,
21239         is_property_changes_when_casemapped): New functions.
21240         (output_properties): Output also the properties cased, case_ignorable,
21241         changes_when_lowercased, changes_when_uppercased,
21242         changes_when_titlecased, changes_when_casefolded,
21243         changes_when_casemapped.
21244         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21245         Unicode TR#11 revision 17 -> 19.
21246         (LBP_CP): New enumeration value.
21247         (LBP_*): Adjust values accordingly.
21248         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21249         TR#14 revision 22 -> 24.
21250         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21251         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21252         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21253         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21254         is_WBP_MIDLETTER.
21255         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21256         the code1 and code2 of each composition rule.
21257         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21258         * lib/unicase/ignorable.h: Likewise.
21259         * lib/unicase/tocasefold.h: Likewise.
21260         * lib/unicase/tolower.h: Likewise.
21261         * lib/unicase/totitle.h: Likewise.
21262         * lib/unicase/toupper.h: Likewise.
21263         * lib/unictype/bidi_of.h: Likewise.
21264         * lib/unictype/blocks.h: Likewise.
21265         * lib/unictype/categ_C.h: Likewise.
21266         * lib/unictype/categ_Cf.h: Likewise.
21267         * lib/unictype/categ_Cn.h: Likewise.
21268         * lib/unictype/categ_L.h: Likewise.
21269         * lib/unictype/categ_Ll.h: Likewise.
21270         * lib/unictype/categ_Lm.h: Likewise.
21271         * lib/unictype/categ_Lo.h: Likewise.
21272         * lib/unictype/categ_Lu.h: Likewise.
21273         * lib/unictype/categ_M.h: Likewise.
21274         * lib/unictype/categ_Mc.h: Likewise.
21275         * lib/unictype/categ_Mn.h: Likewise.
21276         * lib/unictype/categ_N.h: Likewise.
21277         * lib/unictype/categ_Nd.h: Likewise.
21278         * lib/unictype/categ_Nl.h: Likewise.
21279         * lib/unictype/categ_No.h: Likewise.
21280         * lib/unictype/categ_P.h: Likewise.
21281         * lib/unictype/categ_Pd.h: Likewise.
21282         * lib/unictype/categ_Po.h: Likewise.
21283         * lib/unictype/categ_S.h: Likewise.
21284         * lib/unictype/categ_Sc.h: Likewise.
21285         * lib/unictype/categ_So.h: Likewise.
21286         * lib/unictype/categ_of.h: Likewise.
21287         * lib/unictype/combining.h: Likewise.
21288         * lib/unictype/ctype_alnum.h: Likewise.
21289         * lib/unictype/ctype_alpha.h: Likewise.
21290         * lib/unictype/ctype_graph.h: Likewise.
21291         * lib/unictype/ctype_lower.h: Likewise.
21292         * lib/unictype/ctype_print.h: Likewise.
21293         * lib/unictype/ctype_punct.h: Likewise.
21294         * lib/unictype/ctype_upper.h: Likewise.
21295         * lib/unictype/decdigit.h: Likewise.
21296         * lib/unictype/digit.h: Likewise.
21297         * lib/unictype/numeric.h: Likewise.
21298         * lib/unictype/pr_alphabetic.h: Likewise.
21299         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21300         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21301         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21302         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21303         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21304         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21305         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21306         * lib/unictype/pr_combining.h: Likewise.
21307         * lib/unictype/pr_composite.h: Likewise.
21308         * lib/unictype/pr_currency_symbol.h: Likewise.
21309         * lib/unictype/pr_dash.h: Likewise.
21310         * lib/unictype/pr_decimal_digit.h: Likewise.
21311         * lib/unictype/pr_deprecated.h: Likewise.
21312         * lib/unictype/pr_diacritic.h: Likewise.
21313         * lib/unictype/pr_extender.h: Likewise.
21314         * lib/unictype/pr_grapheme_base.h: Likewise.
21315         * lib/unictype/pr_grapheme_extend.h: Likewise.
21316         * lib/unictype/pr_grapheme_link.h: Likewise.
21317         * lib/unictype/pr_id_continue.h: Likewise.
21318         * lib/unictype/pr_id_start.h: Likewise.
21319         * lib/unictype/pr_ideographic.h: Likewise.
21320         * lib/unictype/pr_ignorable_control.h: Likewise.
21321         * lib/unictype/pr_logical_order_exception.h: Likewise.
21322         * lib/unictype/pr_lowercase.h: Likewise.
21323         * lib/unictype/pr_numeric.h: Likewise.
21324         * lib/unictype/pr_other_alphabetic.h: Likewise.
21325         * lib/unictype/pr_punctuation.h: Likewise.
21326         * lib/unictype/pr_sentence_terminal.h: Likewise.
21327         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21328         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21329         * lib/unictype/pr_unified_ideograph.h: Likewise.
21330         * lib/unictype/pr_uppercase.h: Likewise.
21331         * lib/unictype/pr_xid_continue.h: Likewise.
21332         * lib/unictype/pr_xid_start.h: Likewise.
21333         * lib/unictype/pr_zero_width.h: Likewise.
21334         * lib/unictype/scripts.h: Likewise.
21335         * lib/unictype/scripts_byname.gperf: Likewise.
21336         * lib/unictype/sy_java_ident.h: Likewise.
21337         * lib/unigbrk/gbrkprop.h: Likewise.
21338         * lib/unilbrk/lbrkprop1.h: Likewise.
21339         * lib/unilbrk/lbrkprop2.h: Likewise.
21340         * lib/unilbrk/lbrktables.h: Likewise.
21341         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21342         LBP_CP. Implement rule LB30.
21343         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21344         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21345         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21346         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21347         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21348         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21349         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21350         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21351         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21352         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21353         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21354         bits instead of 16 bits in the code1 and code2 of each composition
21355         rule.
21356         (uc_composition): Update for Unicode 5.2.0.
21357         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21358         * lib/uninorm/decomposition-table2.h: Likewise.
21359         * lib/uniwbrk/wbrkprop.h: Likewise.
21360         * tests/unicase/test-cased.c: Likewise.
21361         * tests/unicase/test-ignorable.c: Likewise.
21362         * tests/unicase/test-uc_tolower.c: Likewise.
21363         * tests/unicase/test-uc_totitle.c: Likewise.
21364         * tests/unicase/test-uc_toupper.c: Likewise.
21365         * tests/unictype/test-categ_C.c: Likewise.
21366         * tests/unictype/test-categ_Cf.c: Likewise.
21367         * tests/unictype/test-categ_Cn.c: Likewise.
21368         * tests/unictype/test-categ_L.c: Likewise.
21369         * tests/unictype/test-categ_Ll.c: Likewise.
21370         * tests/unictype/test-categ_Lm.c: Likewise.
21371         * tests/unictype/test-categ_Lo.c: Likewise.
21372         * tests/unictype/test-categ_Lu.c: Likewise.
21373         * tests/unictype/test-categ_M.c: Likewise.
21374         * tests/unictype/test-categ_Mc.c: Likewise.
21375         * tests/unictype/test-categ_Mn.c: Likewise.
21376         * tests/unictype/test-categ_N.c: Likewise.
21377         * tests/unictype/test-categ_Nd.c: Likewise.
21378         * tests/unictype/test-categ_Nl.c: Likewise.
21379         * tests/unictype/test-categ_No.c: Likewise.
21380         * tests/unictype/test-categ_P.c: Likewise.
21381         * tests/unictype/test-categ_Pd.c: Likewise.
21382         * tests/unictype/test-categ_Po.c: Likewise.
21383         * tests/unictype/test-categ_S.c: Likewise.
21384         * tests/unictype/test-categ_Sc.c: Likewise.
21385         * tests/unictype/test-categ_So.c: Likewise.
21386         * tests/unictype/test-ctype_alnum.c: Likewise.
21387         * tests/unictype/test-ctype_alpha.c: Likewise.
21388         * tests/unictype/test-ctype_graph.c: Likewise.
21389         * tests/unictype/test-ctype_lower.c: Likewise.
21390         * tests/unictype/test-ctype_print.c: Likewise.
21391         * tests/unictype/test-ctype_punct.c: Likewise.
21392         * tests/unictype/test-ctype_upper.c: Likewise.
21393         * tests/unictype/test-decdigit.h: Likewise.
21394         * tests/unictype/test-digit.h: Likewise.
21395         * tests/unictype/test-numeric.h: Likewise.
21396         * tests/unictype/test-pr_alphabetic.c: Likewise.
21397         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21398         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21399         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21400         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21401         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21402         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21403         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21404         * tests/unictype/test-pr_combining.c: Likewise.
21405         * tests/unictype/test-pr_composite.c: Likewise.
21406         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21407         * tests/unictype/test-pr_dash.c: Likewise.
21408         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21409         * tests/unictype/test-pr_deprecated.c: Likewise.
21410         * tests/unictype/test-pr_diacritic.c: Likewise.
21411         * tests/unictype/test-pr_extender.c: Likewise.
21412         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21413         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21414         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21415         * tests/unictype/test-pr_id_continue.c: Likewise.
21416         * tests/unictype/test-pr_id_start.c: Likewise.
21417         * tests/unictype/test-pr_ideographic.c: Likewise.
21418         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21419         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21420         * tests/unictype/test-pr_lowercase.c: Likewise.
21421         * tests/unictype/test-pr_numeric.c: Likewise.
21422         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21423         * tests/unictype/test-pr_punctuation.c: Likewise.
21424         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21425         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21426         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21427         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21428         * tests/unictype/test-pr_uppercase.c: Likewise.
21429         * tests/unictype/test-pr_xid_continue.c: Likewise.
21430         * tests/unictype/test-pr_xid_start.c: Likewise.
21431         * tests/unictype/test-pr_zero_width.c: Likewise.
21432         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21433         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21434         changed behaviour: line breaking is now disallowed between a letter
21435         or '=' and '('.
21436         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21437         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21438         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21439         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21440         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21441         lib/uniwidth/width.c.
21442         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21443         without comments, but with the original copyright notice.
21444         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21445         changes.
21446         * lib/unictype/categ_Cc.h: Likewise.
21447         * lib/unictype/categ_Co.h: Likewise.
21448         * lib/unictype/categ_Cs.h: Likewise.
21449         * lib/unictype/categ_Lt.h: Likewise.
21450         * lib/unictype/categ_Me.h: Likewise.
21451         * lib/unictype/categ_Pc.h: Likewise.
21452         * lib/unictype/categ_Pe.h: Likewise.
21453         * lib/unictype/categ_Pf.h: Likewise.
21454         * lib/unictype/categ_Pi.h: Likewise.
21455         * lib/unictype/categ_Ps.h: Likewise.
21456         * lib/unictype/categ_Sk.h: Likewise.
21457         * lib/unictype/categ_Sm.h: Likewise.
21458         * lib/unictype/categ_Z.h: Likewise.
21459         * lib/unictype/categ_Zl.h: Likewise.
21460         * lib/unictype/categ_Zp.h: Likewise.
21461         * lib/unictype/categ_Zs.h: Likewise.
21462         * lib/unictype/ctype_blank.h: Likewise.
21463         * lib/unictype/ctype_cntrl.h: Likewise.
21464         * lib/unictype/ctype_digit.h: Likewise.
21465         * lib/unictype/ctype_space.h: Likewise.
21466         * lib/unictype/ctype_xdigit.h: Likewise.
21467         * lib/unictype/mirror.h: Likewise.
21468         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21469         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21470         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21471         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21472         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21473         * lib/unictype/pr_bidi_control.h: Likewise.
21474         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21475         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21476         * lib/unictype/pr_bidi_pdf.h: Likewise.
21477         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21478         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21479         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21480         * lib/unictype/pr_format_control.h: Likewise.
21481         * lib/unictype/pr_hex_digit.h: Likewise.
21482         * lib/unictype/pr_hyphen.h: Likewise.
21483         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21484         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21485         * lib/unictype/pr_iso_control.h: Likewise.
21486         * lib/unictype/pr_join_control.h: Likewise.
21487         * lib/unictype/pr_left_of_pair.h: Likewise.
21488         * lib/unictype/pr_line_separator.h: Likewise.
21489         * lib/unictype/pr_math.h: Likewise.
21490         * lib/unictype/pr_non_break.h: Likewise.
21491         * lib/unictype/pr_not_a_character.h: Likewise.
21492         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21493         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21494         * lib/unictype/pr_other_id_continue.h: Likewise.
21495         * lib/unictype/pr_other_id_start.h: Likewise.
21496         * lib/unictype/pr_other_lowercase.h: Likewise.
21497         * lib/unictype/pr_other_math.h: Likewise.
21498         * lib/unictype/pr_other_uppercase.h: Likewise.
21499         * lib/unictype/pr_paired_punctuation.h: Likewise.
21500         * lib/unictype/pr_paragraph_separator.h: Likewise.
21501         * lib/unictype/pr_pattern_syntax.h: Likewise.
21502         * lib/unictype/pr_pattern_white_space.h: Likewise.
21503         * lib/unictype/pr_private_use.h: Likewise.
21504         * lib/unictype/pr_quotation_mark.h: Likewise.
21505         * lib/unictype/pr_radical.h: Likewise.
21506         * lib/unictype/pr_soft_dotted.h: Likewise.
21507         * lib/unictype/pr_space.h: Likewise.
21508         * lib/unictype/pr_titlecase.h: Likewise.
21509         * lib/unictype/pr_variation_selector.h: Likewise.
21510         * lib/unictype/pr_white_space.h: Likewise.
21511         * lib/unictype/sy_c_ident.h: Likewise.
21512         * lib/unictype/sy_c_whitespace.h: Likewise.
21513         * lib/unictype/sy_java_whitespace.h: Likewise.
21514         * modules/uni*/*: Bump version number of expected libunistring version.
21515         Reported by Simon Josefsson.
21516
21517 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21518
21519         useless-if-before-free: fix typo in --help and make the internal,
21520         automatic version date update process work once again.
21521         --help output contained a NUL character instead of the
21522         backslash-zero that was intended.  Also, the "must lie within
21523         the first 8 lines" line is on line 9, and hence not getting
21524         automatically updated.
21525         * build-aux/useless-if-before-free: Fix the former by adding a
21526         backslash, and the latter by condensing the three lines of what-it-does
21527         to a single line, leaving one line of slack for the future.
21528
21529 2011-01-09  Bruno Haible  <bruno@clisp.org>
21530
21531         uniwidth/width: Fix width of U+1D173..U+1D17A.
21532         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21533         symbolic_width, output_width_property_test): New functions.
21534         (main): Invoke output_nonspacing_property, output_width_property_test.
21535         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21536         U+1D173..U+1D17A.
21537         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21538         1.
21539         * modules/uniwidth/*: Bump version number of expected libunistring
21540         version.
21541         * modules/unilbrk/*: Likewise.
21542
21543 2011-01-08  Bruno Haible  <bruno@clisp.org>
21544
21545         uninorm tests: Preserve copyright of Unicode data file.
21546         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21547         Mention modifications.
21548
21549 2011-01-08  Bruno Haible  <bruno@clisp.org>
21550
21551         gen-uni-tables: Prepare for Unicode 5.2.0.
21552         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21553         (debug_output_lbp, output_lbp): Update.
21554
21555 2011-01-08  Bruno Haible  <bruno@clisp.org>
21556
21557         unilbrk: Clarify gen-uni-tables.c code.
21558         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21559         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21560         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21561
21562 2011-01-07  Bruno Haible  <bruno@clisp.org>
21563
21564         strtod: Restore errno when successfully parsing Infinity or NaN.
21565         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21566         restore the original errno.
21567
21568 2011-01-07  Bruno Haible  <bruno@clisp.org>
21569
21570         remove test: Avoid failure on HP-UX 11.
21571         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21572
21573 2011-01-07  Bruno Haible  <bruno@clisp.org>
21574
21575         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21576         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21577         error code.
21578
21579 2011-01-07  Pádraig Brady <P@draigBrady.com>
21580
21581         ignore-value: fixup comments, and add Eric Blake
21582         as an author since he rewrote the macros.
21583         * lib/ignore-value.h (ignore_value):  State that
21584         we now support aggregates.  Also specify exactly
21585         when the GCC warn_unused_result feature was added.
21586
21587 2011-01-06  Eric Blake  <eblake@redhat.com>
21588
21589         ignore-value: support aggregate types
21590         * lib/ignore-value.h (ignore_value): Provide separate gcc
21591         definition.
21592         * modules/ignore-value-tests: New test module.
21593         * tests/test-ignore-value.c: New test.
21594
21595         maint.mk: improve sc_prohibit_strcmp regex
21596         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21597         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21598         definition of STRNEQ.
21599
21600         signal: work around Haiku issue with SIGBUS
21601         * lib/siglist.h: Add comment.
21602         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21603         strsignal's favoring of SIGSEGV.
21604         * tests/test-signal.c (main): Avoid test failure.
21605         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21606         Reported by Scott McCreary.
21607
21608         maint.mk: add pre-release check to ensure submodule commits are public
21609         * top/maint.mk (public-submodule-commit): New rule.
21610         (submodule-checks): New variable.
21611         (alpha beta stable): Depend on the variable.
21612
21613 2011-01-05  Pádraig Brady <P@draigBrady.com>
21614         and Jim Meyering  <meyering@redhat.com>
21615
21616         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21617         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21618         (ATTRIBUTE_DEPRECATED): Define.
21619         (_ignore_case): New function.
21620         (ignore_value): New macro, to replace the old function.
21621         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21622         * modules/ignore-value (Depends-on): Add stdint.
21623
21624 2011-01-04  Eric Blake  <eblake@redhat.com>
21625
21626         doc: regenerate INSTALL
21627         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21628         @firstparagraphindent support, now that autoconf dropped it.
21629         (INSTALL_PRELUDE): Reinstate old macro.
21630         * doc/install.texi: Resync from autoconf.
21631         * doc/INSTALL: Reflect recent autoconf update.
21632         * doc/INSTALL.ISO: Likewise.
21633         * doc/INSTALL.UTF-8: Likewise.
21634         Reported by Karl Berry.
21635
21636 2011-01-04  Bruce Korb  <address@hidden>
21637
21638         git-version-gen: avoid a sub-shell
21639         * build-aux/git-version-gen: Redirect stderr in `...` via
21640         "exec 2>...", rather than via an added sub-shell.
21641
21642 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21643
21644         git-version-gen: use (...) rather than sh -c '...'
21645         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21646         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21647
21648 2011-01-03  Jim Meyering  <meyering@redhat.com>
21649
21650         git-version-gen: convert leading TABs to spaces
21651         * build-aux/git-version-gen: Expand leading TABs.
21652
21653         git-version-gen: handle failed "git rev-list"
21654         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21655         from git and proceeding as if it had succeeded but printed no SHA1
21656         checksums, suppress the diagnostic and handle the failure.
21657         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21658
21659         git-version-gen: include command name in one more diagnostic
21660         * build-aux/git-version-gen: When the required .tarball-version file
21661         was missing or unreadable, you might see the diagnostic from "cat",
21662         but no trace of the name of the invoking script.  Now, you still see
21663         the diagnostic from cat, but also get one from "git-version-gen: ".
21664         Inspired by a patch from Bruce Korb.
21665
21666         update-copyright: adjust test to match changed code
21667         * tests/test-update-copyright.sh: Change test's expected output
21668         to match new actual output.
21669
21670 2011-01-02  Bruno Haible  <bruno@clisp.org>
21671
21672         getlogin_r: Avoid test failure on HP-UX 11.
21673         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21674         ERANGE when the second argument is zero.
21675         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21676         portability problem.
21677
21678 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21679
21680         * build-aux/update-copyright: doc Simon's changes
21681
21682 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21683
21684         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21685         environment variable.
21686
21687 2011-01-02  Bruno Haible  <bruno@clisp.org>
21688
21689         unigbrk: Avoid gcc warnings.
21690         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21691         unused variable.
21692         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21693         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21694         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21695         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21696         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21697         Change type of first argument to 'const char *'.
21698         (main): Remove unused variable.
21699         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21700         type of first argument to 'const char *'.
21701         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21702         Likewise.
21703         (main): Change type of variable 's'.
21704         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21705         to 'int'.
21706
21707 2011-01-02  Bruno Haible  <bruno@clisp.org>
21708
21709         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21710         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21711         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21712         bug.
21713         * lib/pwrite.c: Undo 2010-12-31 patch.
21714         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21715
21716 2011-01-02  Bruno Haible  <bruno@clisp.org>
21717
21718         pread: Fix test whether it works.
21719         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21720
21721 2011-01-02  Bruno Haible  <bruno@clisp.org>
21722
21723         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21724         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21725         ends in "6". Don't require a specific month name. Try also the locale
21726         names found on HP-UX 11 and Solaris 7.
21727
21728 2011-01-02  Bruno Haible  <bruno@clisp.org>
21729
21730         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21731         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21732         C linkage.
21733         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21734
21735 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21736
21737         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21738         for consistency, since the "cluster" term is not used elsewhere.
21739         * lib/unigbrk.in.h: Update name.
21740         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21741         * lib/unigbrk/u16-grapheme-next.c: Update name.
21742         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21743         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21744         * lib/unigbrk/u32-grapheme-next.c: Update name.
21745         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21746         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21747         * lib/unigbrk/u8-grapheme-next.c: Update name.
21748         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21749         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21750         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21751         Suggested by Bruno Haible.
21752
21753 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21754
21755         Remove module 'u8-grapheme-len' as too redundant with
21756         'u8-grapheme-next'.
21757         * modules/unigbrk/u8-grapheme-len: Delete file.
21758         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21759         * lib/unigbrk.in.h: Remove prototype for deleted function.
21760         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21761         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21762
21763         Remove module 'u16-grapheme-len' as too redundant with
21764         'u16-grapheme-next'.
21765         * modules/unigbrk/u16-grapheme-len: Delete file.
21766         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21767         * lib/unigbrk.in.h: Remove prototype for deleted function.
21768         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21769         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21770
21771         Remove module 'u32-grapheme-len' as too redundant with
21772         'u32-grapheme-next'.
21773         * modules/unigbrk/u32-grapheme-len: Delete file.
21774         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21775         * lib/unigbrk.in.h: Remove prototype for deleted function.
21776         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21777         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21778
21779         Suggested by Bruno Haible.
21780
21781 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21782
21783         * unigbrk.in.h: Fix typo: "ben" => "been".
21784         Reported by Bruno Haible.
21785
21786 2011-01-01  Jim Meyering  <meyering@redhat.com>
21787
21788         maint: update almost all copyright ranges to include 2011
21789         Run the new "make update-copyright" rule.
21790
21791 2011-01-01  Jim Meyering  <meyering@redhat.com>
21792
21793         maint: update-copyright: exempt doc/INSTALL*
21794         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21795         since they are generated.  Suggested by Bruno Haible.
21796
21797 2011-01-01  Jim Meyering  <meyering@redhat.com>
21798
21799         maint: refine the update-copyright rule
21800         * Makefile (update-copyright): Also exclude any file that includes
21801         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21802         code that merely generates the comment.
21803
21804 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21805
21806         New module 'u8-grapheme-len'.
21807         * modules/unigbrk/u8-grapheme-len: New file.
21808         * modules/unigbrk/u8-grapheme-len-tests: New file.
21809         * lib/unigbrk.in.h: Add prototype for new function.
21810         * lib/unigbrk/u8-grapheme-len.c: New file.
21811         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21812
21813         New module 'u16-grapheme-len'.
21814         * modules/unigbrk/u16-grapheme-len: New file.
21815         * modules/unigbrk/u16-grapheme-len-tests: New file.
21816         * lib/unigbrk.in.h: Add prototype for new function.
21817         * lib/unigbrk/u16-grapheme-len.c: New file.
21818         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21819
21820         New module 'u32-grapheme-len'.
21821         * modules/unigbrk/u32-grapheme-len: New file.
21822         * modules/unigbrk/u32-grapheme-len-tests: New file.
21823         * lib/unigbrk.in.h: Add prototype for new function.
21824         * lib/unigbrk/u32-grapheme-len.c: New file.
21825         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21826
21827         New module 'u8-grapheme-next'.
21828         * modules/unigbrk/u8-grapheme-next: New file.
21829         * modules/unigbrk/u8-grapheme-next-tests: New file.
21830         * lib/unigbrk.in.h: Add prototype for new function.
21831         * lib/unigbrk/u8-grapheme-next.c: New file.
21832         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21833
21834         New module 'u16-grapheme-next'.
21835         * modules/unigbrk/u16-grapheme-next: New file.
21836         * modules/unigbrk/u16-grapheme-next-tests: New file.
21837         * lib/unigbrk.in.h: Add prototype for new function.
21838         * lib/unigbrk/u16-grapheme-next.c: New file.
21839         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21840
21841         New module 'u32-grapheme-next'.
21842         * modules/unigbrk/u32-grapheme-next: New file.
21843         * modules/unigbrk/u32-grapheme-next-tests: New file.
21844         * lib/unigbrk.in.h: Add prototype for new function.
21845         * lib/unigbrk/u32-grapheme-next.c: New file.
21846         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21847
21848         New module 'u8-grapheme-prev'.
21849         * modules/unigbrk/u8-grapheme-prev: New file.
21850         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21851         * lib/unigbrk.in.h: Add prototype for new function.
21852         * lib/unigbrk/u8-grapheme-prev.c: New file.
21853         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21854
21855         New module 'u16-grapheme-prev'.
21856         * modules/unigbrk/u16-grapheme-prev: New file.
21857         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21858         * lib/unigbrk.in.h: Add prototype for new function.
21859         * lib/unigbrk/u16-grapheme-prev.c: New file.
21860         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21861
21862         New module 'u32-grapheme-prev'.
21863         * modules/unigbrk/u32-grapheme-prev: New file.
21864         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21865         * lib/unigbrk.in.h: Add prototype for new function.
21866         * lib/unigbrk/u32-grapheme-prev.c: New file.
21867         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21868
21869         New module 'u8-grapheme-breaks'.
21870         * modules/unigbrk/u8-grapheme-breaks: New file.
21871         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21872         * lib/unigbrk.in.h: Add prototype for new function.
21873         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21874         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21875
21876         New module 'u16-grapheme-breaks'.
21877         * modules/unigbrk/u16-grapheme-breaks: New file.
21878         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21879         * lib/unigbrk.in.h: Add prototype for new function.
21880         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21881         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21882
21883         New module 'u32-grapheme-breaks'.
21884         * modules/unigbrk/u32-grapheme-breaks: New file.
21885         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21886         * lib/unigbrk.in.h: Add prototype for new function.
21887         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21888         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21889
21890         New module 'ulc-grapheme-breaks'.
21891         * modules/unigbrk/ulc-grapheme-breaks: New file.
21892         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21893         * m4/locale-ar.m4: New file.
21894         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21895         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21896         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21897
21898 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21899
21900         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21901         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21902         modified how this file was generated before I initially submitted
21903         the module, but failed to regenerate it.  This meant that several
21904         of the level2 entries were wrong.
21905         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21906         Remove the division-by-2 that is folded into the table now that
21907         gbrkprop.h has been regenerated properly.  Now -1 entries are
21908         handled correctly.
21909
21910         New module 'unigbrk/uc-gbrk-prop-tests'.
21911         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21912         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21913         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21914         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21915
21916 2011-01-01  Bruno Haible  <bruno@clisp.org>
21917
21918         Avoid use of hexadecimal escapes.
21919         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21920         instead of hexadecimal escapes.
21921
21922 2011-01-01  Jim Meyering  <meyering@redhat.com>
21923
21924         maint: new rule to update copyright year ranges
21925         * Makefile (update-copyright): New rule.
21926
21927         maint: indent with TABs in Makefile
21928         * Makefile: Expand leading sequences of spaces to TABs
21929
21930         version-etc: update the copyright year it reports
21931         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21932
21933 2010-12-31  Bruno Haible  <bruno@clisp.org>
21934
21935         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21936         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21937         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21938         zero.
21939
21940 2010-12-31  Bruno Haible  <bruno@clisp.org>
21941
21942         pwrite: Work around HP-UX 11.11 bug.
21943         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21944         works and set REPLACE_PWRITE if not.
21945         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21946         function.
21947         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21948
21949 2010-12-31  Bruno Haible  <bruno@clisp.org>
21950
21951         pread: Work around HP-UX 11 bugs.
21952         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21953         and set REPLACE_PREAD if not.
21954         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21955
21956 2010-12-31  Eric Blake  <eblake@redhat.com>
21957
21958         nl_langinfo: fix YESEXPR on Irix 6.5
21959         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21960         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21961         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21962         it.
21963
21964 2010-12-31  Bruno Haible  <bruno@clisp.org>
21965
21966         iconv: Document HP-UX 11 bug.
21967         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21968
21969 2010-12-31  Bruno Haible  <bruno@clisp.org>
21970
21971         ldexpl: Fix link error on HP-UX 11.
21972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21973         LDEXPL_LIBM, using $ISNANL_LIBM.
21974
21975 2010-12-31  Eric Blake  <eblake@redhat.com>
21976
21977         ftello: avoid compilation failure with SunStudio c89
21978         * lib/ftello.c (ftello): Use lseek, not llseek.
21979
21980         tests: avoid failing coreutils tests on cygwin
21981         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21982         (create_exe_shims_): Return 0 when skipping.
21983
21984 2010-12-31  Bruno Haible  <bruno@clisp.org>
21985
21986         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21987         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21988
21989 2010-12-31  Bruno Haible  <bruno@clisp.org>
21990
21991         waitpid: Fix link error in C++ mode.
21992         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21993
21994 2010-12-31  Bruno Haible  <bruno@clisp.org>
21995
21996         isnan: Use GCC built-ins when possible.
21997         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21998         __builtin_isnan.
21999         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22000         (isnan): Define using GCC built-ins for GCC >= 4.0.
22001
22002 2010-12-31  Bruno Haible  <bruno@clisp.org>
22003
22004         isnand: Fix mistake.
22005         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22006         __builtin_isnand.
22007
22008 2010-12-31  Bruno Haible  <bruno@clisp.org>
22009
22010         open: Avoid C++ error on HP-UX 11.
22011         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22012
22013 2010-12-31  Bruno Haible  <bruno@clisp.org>
22014
22015         time_r: Add missing declarations on HP-UX 11.
22016         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22017         instead of HAVE_LOCALTIME_R.
22018         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22019         HAVE_LOCALTIME_R always.
22020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22021         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22022         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22023         HAVE_LOCALTIME_R.
22024         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22025         * doc/posix-functions/localtime_r.texi: Likewise.
22026
22027 2010-12-29  Eric Blake  <eblake@redhat.com>
22028
22029         mountlist: tweak previous commit
22030         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22031         Reported by Paul Eggert.
22032
22033         mountlist: fix local drive detection on cygwin
22034         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22035         that works for cygwin.
22036
22037 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22038
22039         ftoastr, snprintf: ftoastr + snprintf module
22040         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22041         since the snprintf module now should be good enough here.
22042         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22043         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22044         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22045         GNULIB_SNPRINTF only for the test directory, and the latter
22046         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22047         seems to suffice by itself.
22048
22049 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22050
22051         alloca: one step towards thread-safety
22052         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22053         need for a static variable.  All callers changed.  This does not
22054         make the alloca replacement thread-safe, but it's one step.
22055
22056         tests: minor indenting change
22057         * tests/init.sh: Sync from coreutils housekeeping patch
22058         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22059         to keep lines within 80 columns.
22060
22061 2010-12-28  Jim Meyering  <meyering@redhat.com>
22062
22063         regex: don't infloop on persistent failing calloc
22064         * lib/regexec.c (build_trtable): Return failure indication upon
22065         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22066         In glibc, this was fixed for version 2.13:
22067         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22068
22069 2010-12-28  Bruno Haible  <bruno@clisp.org>
22070             Paul Eggert <eggert@cs.ucla.edu>
22071
22072         linkat: Make implementation robust against system behaviour variations.
22073         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22074         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22075         way, and to -2 if it needs a generic runtime test.
22076         * lib/linkat.c (solaris_optimized_link_immediate,
22077         solaris_optimized_link_follow): New functions.
22078         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22079         (check_same_link): Use it.
22080
22081 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22082
22083         New module 'unigbrk/base'.
22084         * modules/unigbrk/base: New file.
22085         * lib/unigbrk.in.h: New file.
22086
22087         New module 'unigbrk/uc-gbrk-prop'.
22088         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22089         * modules/unigbrk/uc-gbrk-prop: New file.
22090         * lib/unigbrk/gbrkprop.h: New file.
22091         * lib/unigbrk/uc-gbrk-prop.c: New file.
22092
22093         New module 'unigbrk/uc-is-grapheme-break'.
22094         * modules/unigbrk/uc-is-grapheme-break: New file.
22095         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22096         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22097         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22098         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22099         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22100
22101         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22102
22103 2010-12-27  Bruno Haible  <bruno@clisp.org>
22104
22105         linkat test: Avoid failure on Solaris 11 2010-11.
22106         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22107
22108 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22109
22110         utimens: work around glibc rounding bug on more platforms
22111         * lib/utimens.c (fdutimens): Work around rounding bug even if
22112         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22114
22115 2010-12-27  Bruno Haible  <bruno@clisp.org>
22116
22117         select tests: Improve comments.
22118         * tests/test-select.c (do_select): Add comments.
22119
22120 2010-12-27  Bruno Haible  <bruno@clisp.org>
22121
22122         select tests: Safer way of handling timeout.
22123         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22124         at every invocation.
22125
22126 2010-12-27  Bruno Haible  <bruno@clisp.org>
22127
22128         select tests: Use 'bool' where appropriate.
22129         * tests/test-select.c (connect_to_socket): Change argument type to
22130         'bool'.
22131
22132 2010-12-27  Bruno Haible  <bruno@clisp.org>
22133
22134         select tests: Use existing modules.
22135         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22136         (configure.ac): Don't test for unistd.h.
22137         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22138         declared in <unistd.h>.
22139
22140 2010-12-27  Bruno Haible  <bruno@clisp.org>
22141
22142         mbrtowc: Work around a Solaris 7 bug.
22143         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22144         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22145         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22146         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22147         MBRTOWC_NULL_ARG1_BUG.
22148         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22149         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22150         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22151         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22152
22153 2010-12-27  Jim Meyering  <meyering@redhat.com>
22154
22155         read-file.c: tweak syntax
22156         * lib/read-file.c (fread_file): Remove space after "*" in function
22157         definitions.
22158
22159 2010-12-27  Bruno Haible  <bruno@clisp.org>
22160
22161         times test: Avoid gcc warnings on OSF/1.
22162         * tests/test-times.c (main): Cast printf arguments from clock_t to
22163         'long int'.
22164
22165 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22166
22167         utimens: work around glibc rounding bug on older Linux kernels
22168         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22169         on Linux with a glibc whose utimes might not work, then work
22170         around a longstanding glibc bug involving rounding rather than
22171         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22173
22174 2010-12-26  Bruno Haible  <bruno@clisp.org>
22175
22176         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22177         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22178         _GL_CXXALIAS_SYS.
22179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22180
22181 2010-12-26  Bruno Haible  <bruno@clisp.org>
22182
22183         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22184         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22185         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22186         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22187         looking for the declaration.
22188         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22189         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22190         problem.
22191         * doc/posix-functions/inet_pton.texi: Likewise.
22192
22193 2010-12-26  Bruno Haible  <bruno@clisp.org>
22194
22195         arpa_inet: Use the common idioms with C++ support.
22196         * lib/arpa_inet.in.h: Include c++defs.h.
22197         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22198         support.
22199         * modules/arpa_inet (Depends-on): Add c++defs.
22200         (Makefile.am): Substitute the contents of c++defs.h.
22201         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22202         * modules/arpa_inet-c++-tests: New file.
22203         * tests/test-arpa_inet-c++.cc: New file.
22204
22205 2010-12-25  Bruno Haible  <bruno@clisp.org>
22206
22207         Fix more C++ link errors on Solaris 8.
22208         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22209         $(LIB_EACCESS).
22210         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22211         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22212         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22213         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22214         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22215
22216 2010-12-25  Bruno Haible  <bruno@clisp.org>
22217
22218         printf-posix: Fix link error when a non-GCC compiler is used.
22219         * lib/stdio.in.h (printf): When not using GCC, override printf
22220         correctly.
22221         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22222
22223 2010-12-25  Bruno Haible  <bruno@clisp.org>
22224
22225         strerror_r-posix: Update doc.
22226         * doc/posix-functions/strerror_r.texi: Update doc about the return
22227         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22228
22229 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22230
22231         utimens: simplify the logic of the previous change
22232         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22233         This should not affect whether the test succeeds or fails.
22234
22235         utimens: configure better on hosts with NFS clock skew
22236         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22237         uses the clock of the local host.  It might use the clock of the
22238         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22240
22241 2010-12-25  Bruno Haible  <bruno@clisp.org>
22242
22243         ptsname test: Avoid failure on Solaris.
22244         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22245         open a pseudo-terminal; don't use BSD-style ptys.
22246         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22247
22248 2010-12-25  Bruno Haible  <bruno@clisp.org>
22249
22250         ptsname: Avoid ERANGE failure on some systems.
22251         * lib/ptsname.c (buffer): Increase size.
22252
22253 2010-12-25  Bruno Haible  <bruno@clisp.org>
22254
22255         rename, renameat: Avoid test failures at NFS mounted locations.
22256         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22257         so that subsequent mkdir calls succeed.
22258
22259 2010-12-25  Bruno Haible  <bruno@clisp.org>
22260
22261         iswblank: Fix C++ link error on Solaris 8.
22262         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22263         _GL_FUNCDECL_SYS.
22264
22265 2010-12-25  Bruno Haible  <bruno@clisp.org>
22266
22267         unistd: Fix C++ link error on Solaris 8.
22268         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22269
22270 2010-12-25  Bruno Haible  <bruno@clisp.org>
22271
22272         readlink doc: Mention an old glibc bug.
22273         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22274
22275 2010-12-25  Bruno Haible  <bruno@clisp.org>
22276
22277         fcntl-h: Fix for use of C++ on glibc systems.
22278         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22279         also on glibc systems in C++ mode.
22280         Reported by Gary V. Vaughan <gary@gnu.org>.
22281
22282 2010-12-25  Bruno Haible  <bruno@clisp.org>
22283
22284         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22285         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22286
22287 2010-12-25  Bruno Haible  <bruno@clisp.org>
22288
22289         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22290         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22291         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22292         test whether truncl works according to ISO C 99 with IEC 60559.
22293         * m4/truncl-ieee.m4: New file.
22294         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22295         m4/signbit.m4.
22296         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22297
22298 2010-12-25  Bruno Haible  <bruno@clisp.org>
22299
22300         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22301         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22302         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22303         test whether ceill works according to ISO C 99 with IEC 60559.
22304         * m4/ceill-ieee.m4: New file.
22305         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22306         m4/signbit.m4.
22307         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22308
22309 2010-12-25  Bruno Haible  <bruno@clisp.org>
22310
22311         Ensure all prerequisites of <wchar.h> are included.
22312         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22313         before <wchar.h>.
22314         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22315         gl_MBRLEN_NUL_RETVAL): Likewise.
22316         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22317         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22318         AC_FUNC_MBRTOWC): Likewise.
22319         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22320         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22322         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22323         Likewise.
22324         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22325         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22326         (gl_WCHAR_H): Improve comments.
22327         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22328
22329 2010-12-25  Bruno Haible  <bruno@clisp.org>
22330
22331         strtok_r: Fix C syntax error in autoconf macro.
22332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22333         characters in test program.
22334
22335 2010-12-24  Bruno Haible  <bruno@clisp.org>
22336
22337         ceil, trunc, round: Fix gcc warnings.
22338         * lib/ceil.c (MIN): Undefine before redefining.
22339         * lib/trunc.c (MIN): Likewise.
22340         * lib/round.c (MIN): Likewise.
22341         Include <math.h> first.
22342
22343 2010-12-24  Bruno Haible  <bruno@clisp.org>
22344
22345         select tests: Avoid failures on OSF/1 5.1.
22346         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22347         failure of closing the last socket; it may fail with ECONNRESET.
22348
22349 2010-12-24  Eric Blake  <eblake@redhat.com>
22350
22351         stdint: avoid HP-UX 10.20 preprocessor bug
22352         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22353         than #if.
22354         * tests/test-floor2.c (main): Likewise.
22355         Reported by Peter O'Gorman.
22356
22357         pipe: make obsoletion transition easier
22358         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22359         * modules/pipe (Files): Include revived file.
22360         (Include): Drop reference, to mirror getdate's behavior.
22361
22362 2010-12-24  Bruno Haible  <bruno@clisp.org>
22363
22364         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22365         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22366         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22368
22369 2010-12-24  Bruno Haible  <bruno@clisp.org>
22370
22371         gethostname: Ensure declaration on NonStop Kernel.
22372         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22374
22375 2010-12-24  Bruno Haible  <bruno@clisp.org>
22376
22377         sys_select: Ensure all necessary types on NonStop Kernel.
22378         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22379         include <sys/time.h>.
22380         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22381         NonStop Kernel.
22382         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22383
22384 2010-12-24  Bruno Haible  <bruno@clisp.org>
22385
22386         sys_select: Remove unneeded include.
22387         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22388         have <sys/select.h>.
22389
22390 2010-12-24  Bruno Haible  <bruno@clisp.org>
22391
22392         gethostname: Provide a fallback for HOST_NAME_MAX.
22393         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22394         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22395         instead.
22396         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22397
22398 2010-12-24  Bruno Haible  <bruno@clisp.org>
22399
22400         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22401         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22402         (SA_RESTART): Likewise.
22403         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22404
22405 2010-12-24  Bruno Haible  <bruno@clisp.org>
22406
22407         signal: Define NSIG.
22408         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22409         * tests/test-signal.c (nsig): New variable.
22410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22411
22412 2010-12-24  Bruno Haible  <bruno@clisp.org>
22413
22414         rename, renameat: Avoid test failures on OSF/1 5.1.
22415         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22416         alternative error codes.
22417         * tests/test-renameat.c (main): Likewise.
22418
22419 2010-12-24  Bruno Haible  <bruno@clisp.org>
22420
22421         *printf: Detect large precisions bug on Solaris 10/SPARC.
22422         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22423         by Paul Eggert.
22424         * tests/test-snprintf-posix.h (test_function): Add this test code here
22425         too.
22426         * tests/test-sprintf-posix.h (test_function): Likewise.
22427         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22428         * tests/test-vasprintf-posix.c (test_function): Likewise.
22429         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22430         around by gnulib.
22431         * doc/posix-functions/printf.texi: Likewise.
22432         * doc/posix-functions/snprintf.texi: Likewise.
22433         * doc/posix-functions/sprintf.texi: Likewise.
22434         * doc/posix-functions/vfprintf.texi: Likewise.
22435         * doc/posix-functions/vprintf.texi: Likewise.
22436         * doc/posix-functions/vsnprintf.texi: Likewise.
22437         * doc/posix-functions/vsprintf.texi: Likewise.
22438         * doc/posix-functions/dprintf.texi: Undo last commit.
22439         * doc/posix-functions/vdprintf.texi: Likewise.
22440
22441 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22442
22443         tests: port test-fdutimensat.c to Solaris 8
22444         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22445         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22446         On Solaris 8, it fails with errno == ENOSYS, because there is no
22447         futimens (so it can't use the fd), and there is no lutimens (so it
22448         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22449
22450         vsnprintf: make more consistent with snprintf; doc fixes
22451
22452         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22453         the byte count return problem was promoted from the snprintf-posix
22454         to the snprintf module.
22455         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22456         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22457         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22458         * tests/test-snprintf.c (main): Check the byte count returned.
22459         * tests/test-vsnprintf.c (main): Likewise.
22460
22461 2010-12-23  Eric Blake  <eblake@redhat.com>
22462
22463         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22464         * modules/sigpipe (License): Relax license.
22465
22466 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22467
22468         doc: document Solaris printf bug with large float precisions
22469         * doc/posix-functions/dprintf.texi (dprintf):
22470         * doc/posix-functions/fprintf.texi (fprintf):
22471         * doc/posix-functions/printf.texi (printf):
22472         * doc/posix-functions/snprintf.texi (snprintf):
22473         * doc/posix-functions/sprintf.texi (sprintf):
22474         * doc/posix-functions/vdprintf.texi (vdprintf):
22475         * doc/posix-functions/vfprintf.texi (vfprintf):
22476         * doc/posix-functions/vprintf.texi (vprintf):
22477         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22478         * doc/posix-functions/vsprintf.texi (vsprintf):
22479         Mention that these functions mishandle large floating point
22480         precisions on Solaris 10.  The same bug is also present in Solaris
22481         8, and I assume earlier.  This causes "cd gnulib-tests; make
22482         check" to fail on Solaris 8 (and I assume, later) when building
22483         the latest coreutils, in test-vasprintf-posix's call to
22484         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22485         the wide flavors (e.g., wprintf) so this patch just updates the
22486         documentation for the narrow ones.
22487
22488         test-posixtm.c: add two tests
22489         * tests/test-posixtm.c: Add two tests, to highlight the
22490         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22491         around this bug; this is merely to document it.
22492
22493 2010-12-22  Bruno Haible  <bruno@clisp.org>
22494
22495         getlogin_r: Work around portability problem on OSF/1.
22496         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22497         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22498         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22499         test for a truncated result.
22500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22501         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22502         * modules/getlogin_r (Depends-on): Add memchr.
22503         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22504
22505 2010-12-22  Bruno Haible  <bruno@clisp.org>
22506
22507         ptsname: Avoid test failure on OSF/1 5.1.
22508         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22509         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22510         (same_slave): New function.
22511         (main): Use it to compare ptsname's result with the expected file name.
22512
22513 2010-12-22  Bruno Haible  <bruno@clisp.org>
22514
22515         Port extended stdio modules to HP NonStop Kernel.
22516         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22517         macros.
22518         * lib/fbufmode.c: Update comments.
22519         * lib/fflush.c: Likewise.
22520         * lib/fpurge.c: Likewise.
22521         * lib/freadable.c: Likewise.
22522         * lib/freadahead.c: Likewise.
22523         * lib/freading.c: Likewise.
22524         * lib/freadptr.c: Likewise.
22525         * lib/freadseek.c: Likewise.
22526         * lib/fseeko.c: Likewise.
22527         * lib/fseterr.c: Likewise.
22528         * lib/fwritable.c: Likewise.
22529         * lib/fwriting.c: Likewise.
22530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22531
22532 2010-12-22  Bruno Haible  <bruno@clisp.org>
22533
22534         ttyname_r: Work around bug on OSF/1 5.1.
22535         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22536         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22537         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22538         present.
22539         * lib/ttyname_r.c (ttyname_r): Update comments.
22540
22541 2010-12-22  Bruno Haible  <bruno@clisp.org>
22542
22543         round: Implement result sign according to IEEE 754.
22544         * lib/round.c (MIN, MINUS_ZERO): New macros.
22545         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22546         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22547         * tests/test-round-ieee.c (main): Likewise.
22548         * tests/test-roundl-ieee.c (main): Likewise.
22549
22550         trunc: Implement result sign according to IEEE 754.
22551         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22552         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22553         * tests/test-trunc2.c: Include minus-zero.h.
22554         (MINUS_ZERO): New macro.
22555         (trunc_reference): Keep in sync with lib/trunc.c.
22556         * tests/test-truncf2.c: Include minus-zero.h.
22557         (MINUS_ZERO): New macro.
22558         (truncf_reference): Keep in sync with lib/trunc.c.
22559         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22560         * tests/test-trunc-ieee.c (main): Likewise.
22561         * tests/test-truncl-ieee.c (main): Likewise.
22562
22563         ceil: Implement result sign according to IEEE 754.
22564         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22565         (FUNC): Return -0.0 for -1 < x < 0.
22566         * tests/test-ceil2.c: Include minus-zero.h.
22567         (MINUS_ZERO): New macro.
22568         (ceil_reference): Keep in sync with lib/ceil.c.
22569         * tests/test-ceilf2.c: Include minus-zero.h.
22570         (MINUS_ZERO): New macro.
22571         (ceilf_reference): Keep in sync with lib/ceil.c.
22572         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22573         * tests/test-ceil-ieee.c (main): Likewise.
22574         * tests/test-ceill-ieee.c (main): Likewise.
22575
22576         floor: Implement result sign according to IEEE 754.
22577         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22578         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22579         * tests/test-floorf2.c (floorf_reference): Likewise.
22580         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22581         * tests/test-floor-ieee.c (main): Likewise.
22582         * tests/test-floorl-ieee.c (main): Likewise.
22583
22584 2010-12-22  Bruno Haible  <bruno@clisp.org>
22585
22586         getaddrinfo: Update doc.
22587         * doc/posix-functions/gai_strerror.texi: Return type is also different
22588         on AIX and HP-UX.
22589
22590 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22591
22592         getaddrinfo, inet_ntop: Update doc for Solaris.
22593         * doc/posix-functions/gai_strerror.texi: Return type is also an
22594         issue on Solaris 9 and earlier.
22595         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22596         on Solaris 10 and earlier.
22597
22598 2010-12-21  Bruno Haible  <bruno@clisp.org>
22599
22600         New module 'roundl-ieee'.
22601         * modules/roundl-ieee: New file.
22602         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22603         test whether roundl works according to ISO C 99 with IEC 60559.
22604         * m4/roundl-ieee.m4: New file.
22605         * modules/roundl-ieee-tests: New file.
22606         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22607         * tests/test-roundl.c (main): Remove signbit tests.
22608         * modules/roundl-tests (Depends-on): Remove signbit.
22609         * doc/posix-functions/roundl.texi: Mention the new module.
22610
22611 2010-12-21  Bruno Haible  <bruno@clisp.org>
22612
22613         New module 'truncl-ieee'.
22614         * modules/truncl-ieee: New file.
22615         * modules/truncl-ieee-tests: New file.
22616         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22617         * tests/test-truncl.c (main): Remove signbit tests.
22618         * modules/truncl-tests (Depends-on): Remove signbit.
22619         * doc/posix-functions/truncl.texi: Mention the new module.
22620
22621 2010-12-21  Bruno Haible  <bruno@clisp.org>
22622
22623         New module 'ceill-ieee'.
22624         * modules/ceill-ieee: New file.
22625         * modules/ceill-ieee-tests: New file.
22626         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22627         * tests/test-ceill.c (main): Remove signbit tests.
22628         * modules/ceill-tests (Depends-on): Remove signbit.
22629         * doc/posix-functions/ceill.texi: Mention the new module.
22630
22631 2010-12-21  Bruno Haible  <bruno@clisp.org>
22632
22633         New module 'floorl-ieee'.
22634         * modules/floorl-ieee: New file.
22635         * modules/floorl-ieee-tests: New file.
22636         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22637         * tests/test-floorl.c (main): Remove signbit tests.
22638         * modules/floorl-tests (Depends-on): Remove signbit.
22639         * doc/posix-functions/floorl.texi: Mention the new module.
22640
22641 2010-12-21  Bruno Haible  <bruno@clisp.org>
22642
22643         New module 'round-ieee'.
22644         * modules/round-ieee: New file.
22645         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22646         whether round works according to ISO C 99 with IEC 60559.
22647         * m4/round-ieee.m4: New file.
22648         * modules/round-ieee-tests: New file.
22649         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22650         * tests/test-round1.c (main): Remove signbit tests.
22651         * modules/round-tests (Depends-on): Remove 'signbit'.
22652         * doc/posix-functions/round.texi: Mention the new module.
22653
22654 2010-12-21  Bruno Haible  <bruno@clisp.org>
22655
22656         New module 'trunc-ieee'.
22657         * modules/trunc-ieee: New file.
22658         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22659         whether trunc works according to ISO C 99 with IEC 60559.
22660         * m4/trunc-ieee.m4: New file.
22661         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22663         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22664         * modules/trunc-ieee-tests: New file.
22665         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22666         * tests/test-trunc1.c (main): Remove signbit tests.
22667         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22668         * doc/posix-functions/trunc.texi: Mention the new module.
22669
22670 2010-12-21  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'ceil-ieee'.
22673         * modules/ceil-ieee: New file.
22674         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22675         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22676         ISO C 99 with IEC 60559.
22677         * m4/ceil-ieee.m4: New file.
22678         * modules/ceil (Files): Add lib/ceil.c.
22679         (Depends-on): Add 'float'.
22680         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22681         * lib/math.in.h (ceil): New declaration.
22682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22683         REPLACE_CEIL.
22684         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22685         * modules/ceil-ieee-tests: New file.
22686         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22687         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22688         * doc/posix-functions/ceil.texi: Mention the new module.
22689
22690 2010-12-21  Bruno Haible  <bruno@clisp.org>
22691
22692         New module 'floor-ieee'.
22693         * modules/floor-ieee: New file.
22694         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22695         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22696         ISO C 99 with IEC 60559.
22697         * m4/floor-ieee.m4: New file.
22698         * modules/floor (Files): Add lib/floor.c.
22699         (Depends-on): Add 'float'.
22700         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22701         * lib/math.in.h (floor): New declaration.
22702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22703         REPLACE_FLOOR.
22704         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22705         * modules/floor-ieee-tests: New file.
22706         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22707         * tests/test-math-c++.cc: Check the signature of 'floor'.
22708         * doc/posix-functions/floor.texi: Mention the new module.
22709
22710 2010-12-21  Bruno Haible  <bruno@clisp.org>
22711
22712         New module 'roundf-ieee'.
22713         * modules/roundf-ieee: New file.
22714         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22715         test whether roundf works according to ISO C 99 with IEC 60559.
22716         * m4/roundf-ieee.m4: New file.
22717         * modules/roundf-ieee-tests: New file.
22718         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22719         * tests/test-roundf1.c (main): Remove signbit tests.
22720         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22721         * doc/posix-functions/roundf.texi: Mention the new module.
22722
22723 2010-12-21  Bruno Haible  <bruno@clisp.org>
22724
22725         New module 'truncf-ieee'.
22726         * modules/truncf-ieee: New file.
22727         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22728         test whether truncf works according to ISO C 99 with IEC 60559.
22729         * m4/truncf-ieee.m4: New file.
22730         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22732         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22733         * modules/truncf-ieee-tests: New file.
22734         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22735         * tests/test-truncf1.c (main): Remove signbit tests.
22736         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22737         * doc/posix-functions/truncf.texi: Mention the new module.
22738
22739 2010-12-21  Bruno Haible  <bruno@clisp.org>
22740
22741         New module 'ceilf-ieee'.
22742         * modules/ceilf-ieee: New file.
22743         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22744         test whether ceilf works according to ISO C 99 with IEC 60559.
22745         * m4/ceilf-ieee.m4: New file.
22746         * modules/ceilf-ieee-tests: New file.
22747         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22748         * tests/test-ceilf1.c (main): Remove signbit tests.
22749         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22750         * doc/posix-functions/ceilf.texi: Mention the new module.
22751
22752 2010-12-21  Bruno Haible  <bruno@clisp.org>
22753
22754         New module 'floorf-ieee'.
22755         * modules/floorf-ieee: New file.
22756         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22757         test whether floorf works according to ISO C 99 with IEC 60559.
22758         * m4/floorf-ieee.m4: New file.
22759         * modules/floorf-ieee-tests: New file.
22760         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22761         * tests/test-floorf1.c (main): Remove signbit tests.
22762         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22763         * doc/posix-functions/floorf.texi: Mention the new module.
22764
22765 2010-12-21  Bruno Haible  <bruno@clisp.org>
22766
22767         Support for minus zero in autoconf macros.
22768         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22769         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22770         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22771         * tests/minus-zero.h: Update comments.
22772
22773 2010-12-21  Bruno Haible  <bruno@clisp.org>
22774
22775         Tests for module 'ceil'.
22776         * modules/ceil-tests: New file.
22777         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22778         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22779
22780 2010-12-21  Bruno Haible  <bruno@clisp.org>
22781
22782         Tests for module 'floor'.
22783         * modules/floor-tests: New file.
22784         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22785         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22786
22787 2010-12-21  Bruno Haible  <bruno@clisp.org>
22788
22789         math: Fix indentation.
22790         * lib/math.in.h (floorf): Fix indentation.
22791
22792 2010-12-21  Bruno Haible  <bruno@clisp.org>
22793
22794         Fix cross-compilation guesses on Solaris.
22795         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22796         not match "solaris2.10".
22797         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22798         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22799         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22800
22801 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22802
22803         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22804         This fixes a problem observed with the latest coreutils snapshot
22805         that caused a test to fail on Solaris 8.  src/csplit.c's call
22806         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22807         earlier, instead of returning the number of bytes that would have
22808         been generated; this causes csplit to incorrectly report memory
22809         exhaustion.
22810         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22811         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22812         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22813         comments to match.
22814         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22815         Fix typo in matching older versions of Solaris: "solaris2.10"
22816         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22817         only for guessing while cross-compiling.
22818         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22819
22820 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22821
22822         ftoastr: fix comment again
22823         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22825         Also, simplify example a bit by using flags = 0.
22826
22827 2010-12-20  Bruno Haible  <bruno@clisp.org>
22828
22829         round*, trunc*: Update documentation regarding glibc.
22830         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22831         * doc/posix-functions/round.texi: Likewise.
22832         * doc/posix-functions/roundl.texi: Likewise.
22833         * doc/posix-functions/truncf.texi: Likewise.
22834         * doc/posix-functions/trunc.texi: Likewise.
22835         * doc/posix-functions/truncl.texi: Likewise.
22836
22837 2010-12-20  Bruno Haible  <bruno@clisp.org>
22838
22839         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22840         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22841         * doc/posix-functions/round.texi: Likewise.
22842         * doc/posix-functions/roundl.texi: Likewise.
22843
22844 2010-12-20  Bruno Haible  <bruno@clisp.org>
22845
22846         ttyname_r: Add missing declaration on HP-UX 11.
22847         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22848         HAVE_TTYNAME_R.
22849         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22850         declared. Set HAVE_TTYNAME_R always.
22851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22852         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22853         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22854         HAVE_TTYNAME_R.
22855         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22856
22857 2010-12-20  Bruno Haible  <bruno@clisp.org>
22858
22859         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22860         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22861         * doc/posix-functions/getlogin_r.texi: Likewise.
22862         * tests/test-getlogin.c: Include <errno.h>.
22863         (main): Avoid test failure on HP-UX 11.11.
22864         * tests/test-getlogin_r.c (main): Likewise.
22865
22866 2010-12-20  Bruno Haible  <bruno@clisp.org>
22867
22868         getlogin_r: Add missing declaration on HP-UX 11.
22869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22870         declared also when it exists as a function.
22871         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22872
22873 2010-12-20  Bruno Haible  <bruno@clisp.org>
22874
22875         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22876         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22877         through wcrtomb.
22878
22879 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22880
22881         ftoastr: fix comment
22882         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22884
22885 2010-12-19  Bruno Haible  <bruno@clisp.org>
22886
22887         isnan: Ensure it is a macro.
22888         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22889         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22890         Solaris.
22891
22892 2010-12-19  Bruno Haible  <bruno@clisp.org>
22893
22894         ldexpl test: Fix link error on OSF/1 5.1.
22895         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22896
22897 2010-12-19  Bruno Haible  <bruno@clisp.org>
22898
22899         wctype: Make it work in C++ mode on OSF/1 5.1.
22900         * lib/wctype.in.h (iswblank): Declare but not define here.
22901         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22902         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22903         * modules/wctype (Files): Add lib/iswblank.c.
22904
22905 2010-12-19  Bruno Haible  <bruno@clisp.org>
22906
22907         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22908         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22909         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22910
22911 2010-12-19  Bruno Haible  <bruno@clisp.org>
22912
22913         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22914         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22915         _POSIX_PII_SOCKET.
22916         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22917         * doc/posix-functions/recvfrom.texi: Likewise.
22918         * doc/posix-functions/send.texi: Likewise.
22919         * doc/posix-functions/sendto.texi: Likewise.
22920
22921 2010-12-19  Bruno Haible  <bruno@clisp.org>
22922
22923         tcgetsid: Add missing declaration on OSF/1 5.1.
22924         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22925         HAVE_TCGETSID.
22926         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22927         Don't set HAVE_TCGETSID.
22928         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22929         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22930         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22931         HAVE_TCGETSID.
22932         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22933
22934 2010-12-19  Bruno Haible  <bruno@clisp.org>
22935
22936         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22937         * lib/stdio.in.h: During the include_next statement, let recursive
22938         includes of this file include only the system header file.
22939
22940 2010-12-19  Bruno Haible  <bruno@clisp.org>
22941
22942         iconv_open: Fix regression from 2010-12-04.
22943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22944         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22945
22946 2010-12-19  Bruno Haible  <bruno@clisp.org>
22947
22948         stdbool test: Avoid a gcc warning.
22949         * tests/test-stdbool.c (main): Fail if e1 is false.
22950         Reported by Jim Meyering.
22951
22952 2010-12-19  Jim Meyering  <meyering@redhat.com>
22953
22954         setenv: restore to working order
22955         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22956         mistakenly removed.
22957         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22958         HAVE_SETENV.
22959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22960         HAVE_SETENV.
22961
22962 2010-12-19  Bruno Haible  <bruno@clisp.org>
22963
22964         Document some different function declarations on OSF/1 5.1.
22965         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22966         * doc/posix-functions/inet_ntop.texi: Likewise.
22967         * doc/posix-functions/gethostname.texi: Likewise.
22968         * lib/unistd.in.h (gethostname): Update comment.
22969
22970 2010-12-19  Bruno Haible  <bruno@clisp.org>
22971
22972         doc: Mention vasprintf-posix module.
22973         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22974         the 'vasprintf-posix' module.
22975         * doc/glibc-functions/vasprintf.texi: Likewise.
22976
22977 2010-12-19  Bruno Haible  <bruno@clisp.org>
22978
22979         unsetenv: Add missing declaration on OSF/1 5.1.
22980         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22981         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22982         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22984         not HAVE_UNSETENV.
22985         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22986         HAVE_UNSETENV.
22987         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22988
22989 2010-12-19  Bruno Haible  <bruno@clisp.org>
22990
22991         setenv: Add missing declaration on OSF/1 5.1.
22992         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22993         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22994         declared. Don't set HAVE_SETENV.
22995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22996         not HAVE_SETENV.
22997         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22998         HAVE_SETENV.
22999         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23000
23001 2010-12-19  Bruno Haible  <bruno@clisp.org>
23002
23003         nl_langinfo tests: Avoid gcc warning.
23004         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23005
23006 2010-12-19  Bruno Haible  <bruno@clisp.org>
23007
23008         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23009         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23010         _GL_CXXALIAS_SYS.
23011
23012 2010-12-19  Bruno Haible  <bruno@clisp.org>
23013
23014         stdbool: Relax test.
23015         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23016         address to 'bool' work in static initializer, for compilers other than
23017         GCC.
23018
23019 2010-12-19  Bruno Haible  <bruno@clisp.org>
23020
23021         ftello: Add missing declaration on OSF/1 5.1.
23022         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23023         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23025         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23026         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23027
23028 2010-12-19  Bruno Haible  <bruno@clisp.org>
23029
23030         fseeko: Add missing declaration on OSF/1 5.1.
23031         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23034         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23035         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23036
23037 2010-12-19  Bruno Haible  <bruno@clisp.org>
23038
23039         fchdir: Add missing declaration on OSF/1 5.1.
23040         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23043         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23044         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23045
23046 2010-12-19  Bruno Haible  <bruno@clisp.org>
23047
23048         relocatable-prog-wrapper: Separate from relocatable-prog.
23049         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23050         uninstall-relocwrapper rule here.
23051         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23052         Reported by Ian Beckwith <ianb@erislabs.net>.
23053
23054 2010-12-19  Bruno Haible  <bruno@clisp.org>
23055
23056         unistr/u8-mbsnlen: Add missing dependency.
23057         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23058         Reported by Ian Beckwith <ianb@erislabs.net>.
23059
23060 2010-12-19  Bruno Haible  <bruno@clisp.org>
23061
23062         iconv: Make it possible again to use this module without 'iconv-h'.
23063         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23064         if it is not defined.
23065         Reported by Ian Beckwith <ianb@erislabs.net>.
23066
23067 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23068
23069         acl: port to Solaris 8 when copying from tmpfs to ufs
23070         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23071         error number.  Problem observed on Solaris 8 with latest
23072         coreutils, with "mv A B", where A is on a tmpfs file system and B
23073         is on a ufs file system.  This caused coreutils' mv/part-symlink
23074         test to fail.
23075
23076         tests: set fail=0 at start
23077         * tests/init.sh (setup_): Move fail=0 initialization here ...
23078         (mktempd_): ... from here, so that tests can rely on fail being
23079         set to 0 initially.  This fixes a problem in coreutils; see:
23080         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23081
23082 2010-12-18  Bruno Haible  <bruno@clisp.org>
23083
23084         memmem-simple: Stylistic changes.
23085         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23086         Fix preprocessor directive indentation.
23087
23088 2010-12-15  Pádraig Brady <P@draigBrady.com>
23089
23090         memmem, memmem-simple: reorganize and expand empty needle check
23091         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23092         functional checks to memmem-simple so that one has a fully functional
23093         memmem by using just this module.
23094         Restrict the performance only check to the memmem module.
23095         Also expand the empty needle check to ensure the correct
23096         pointer is returned, not just a non NULL pointer.
23097         * doc/glibc-functions/memmem.texi: Rearrange the portability
23098         documentation to correlate with the rearranged checks.
23099         Clarify exactly how the memmem and memmem-simple modules
23100         relate to each other.
23101
23102 2010-12-15  Pádraig Brady <P@draigBrady.com>
23103             Bruno Haible  <bruno@clisp.org>
23104
23105         Improve cross-compilation guesses for uClibc.
23106         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23107         that uClibc does not have the glibc bug.
23108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23109         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23110
23111 2010-12-14  Eric Blake  <eblake@redhat.com>
23112
23113         configmake: provide fallbacks for oldest supported autotools
23114         * m4/configmake.m4: New file.
23115         * modules/configmake (Files): Ship it.
23116         (configure.ac): Use it to guarantee fallbacks.
23117
23118 2010-12-13  Pádraig Brady <P@draigBrady.com>
23119
23120         read-file: Improve handling of large files
23121         * lib/read-file.c (fread_file): Minimize realloc()s
23122         for regular files, and better manage sizes around SIZE_MAX.
23123
23124 2010-12-13  Eric Blake  <eblake@redhat.com>
23125
23126         cloexec, fcntl: relax license
23127         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23128         consent from all contributors.
23129         * modules/fcntl (License): Likewise.
23130
23131 2010-12-10  Bruno Haible  <bruno@clisp.org>
23132
23133         Tests for module 'pipe-posix'.
23134         * modules/pipe-posix-tests: New file.
23135         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23136
23137 2010-12-10  Bruno Haible  <bruno@clisp.org>
23138
23139         pipe-posix: Make it work in C++ mode.
23140         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23141         (pipe): Use common idiom, not a macro definition.
23142         * lib/pipe.c: New file.
23143         * m4/pipe.m4: New file.
23144         * modules/pipe-posix (Description): Enhance.
23145         (Files): Add lib/pipe.c, m4/pipe.m4.
23146         (configure.ac): Invoke gl_FUNC_PIPE.
23147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23148         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23149         * tests/test-unistd-c++.cc: Check the signature of pipe.
23150
23151 2010-12-10  Bruno Haible  <bruno@clisp.org>
23152
23153         Rename module 'pipe' to 'spawn-pipe'.
23154         * modules/spawn-pipe: New file, renamed from modules/pipe.
23155         (Files, configure.ac, Makefile.am): Update.
23156         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23157         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23158         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23159         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23160         "spawn-pipe.h" instead of "pipe.h".
23161         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23162         to gl_SPAWN_PIPE.
23163         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23164         (Files, Makefile.am): Update.
23165         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23166         Update.
23167         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23168         Include "spawn-pipe.h" instead of "pipe.h".
23169         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23170         * lib/javacomp.c: Likewise.
23171         * lib/javaversion.c: Likewise.
23172         * lib/pipe-filter-gi.c: Likewise.
23173         * lib/pipe-filter-ii.c: Likewise.
23174         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23175         * modules/javacomp (Depends-on): Likewise.
23176         * modules/javaversion (Depends-on): Likewise.
23177         * modules/pipe-filter-gi (Depends-on): Likewise.
23178         * modules/pipe-filter-ii (Depends-on): Likewise.
23179         * MODULES.html.sh (Executing programs): Update.
23180         * NEWS: Mention the change.
23181
23182 2010-12-10  Eric Blake  <eblake@redhat.com>
23183
23184         pipe-posix: new module
23185         * modules/pipe-posix: New file.
23186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23187         (gl_UNISTD_H): Check for declaration.
23188         * modules/unistd (Makefile.am): Substitute it.
23189         * lib/unistd.in.h (pipe): Provide it for mingw.
23190         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23191         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23192
23193 2010-12-07  Bruno Haible  <bruno@clisp.org>
23194
23195         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23196         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23197         u8_strcmp_gnu.
23198         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23199
23200 2010-12-06  Bruno Haible  <bruno@clisp.org>
23201
23202         Update internal documentation.
23203         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23204
23205 2010-12-04  Bruno Haible  <bruno@clisp.org>
23206
23207         Put more information about failed tests into the test return codes.
23208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23209         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23210         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23211         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23212         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23215         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23216         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23219         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23220         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23221         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23222         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23223         returns a bit mask.
23224         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23225         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23226         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23227         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23228         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23229         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23232         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23233         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23234         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23235         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23236         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23237         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23238         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23239         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23240         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23241         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23242         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23243         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23245         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23247         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23248         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23249         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23250         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23251         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23252         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23253         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23254         gl_PRINTF_PRECISION): Likewise.
23255         * m4/regex.m4 (gl_REGEX): Likewise.
23256         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23257         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23258         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23259         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23260         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23262         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23263         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23264         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23265         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23266         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23267         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23268         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23269         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23270         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23271         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23272         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23276         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23277         enumerated value.
23278         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23279
23280 2010-12-04  Bruno Haible  <bruno@clisp.org>
23281
23282         Update for Solaris 11 2010-11.
23283         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23284         Express, released in November 2010.
23285
23286 2010-12-04  Bruno Haible  <bruno@clisp.org>
23287
23288         nproc: Relax license.
23289         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23290         and Paul Eggert.
23291         Requested by Ludovic Courtès <ludo@gnu.org>.
23292
23293 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23294
23295         utimecmp: fine-grained src to nearby coarse-grained dest
23296
23297         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23298         and the source is on a file system with higher-resolution time
23299         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23300         not work, and the time stamps are close together, the algorithm to
23301         determine the exact resolution from the read-back mtime was buggy:
23302         it had a "!=" where it should have had an "==".  This bug has been
23303         in the code ever since it was introduced to gnulib.
23304         Problem reported by Dan Jacobson in
23305         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23306
23307 2010-11-30  Bruno Haible  <bruno@clisp.org>
23308
23309         strerror_r-posix: Fix autoconf test.
23310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23311
23312 2010-11-28  Bruno Haible  <bruno@clisp.org>
23313             Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         Tests for module 'getdomainname'.
23316         * modules/getdomainname-tests: New file.
23317         * tests/test-getdomainname.c: New file, based on
23318         tests/test-gethostname.c.
23319
23320 2010-11-28  Bruno Haible  <bruno@clisp.org>
23321             Paul Eggert  <eggert@cs.ucla.edu>
23322
23323         getdomainname: Use the system function when possible.
23324         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23325         (getdomainname): Replace if needed. Provide the declaration if it is
23326         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23327         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23328         (getdomainname): When the system has getdomainname, call the system
23329         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23330         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23331         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23332         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23333         the function if its second argument is of type 'int' or if it is found
23334         in libnsl.
23335         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23336         <sys/systeminfo.h> and sysinfo().
23337         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23339         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23340         HAVE_GETDOMAINNAME.
23341         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23342         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23343         * doc/glibc-functions/getdomainname.texi: Document the problems with
23344         the getdomainname declaration.
23345
23346 2010-11-28  Bruno Haible  <bruno@clisp.org>
23347
23348         sys_socket: Ensure ss_family field on AIX.
23349         * lib/sys_socket.in.h (ss_family): New macro definition.
23350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23351         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23352         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23353         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23354         * modules/sys_socket (Makefile.am): Substitute
23355         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23356         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23357
23358 2010-11-27  Bruno Haible  <bruno@clisp.org>
23359
23360         readline: Improve configure output.
23361         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23362         "checking for readline..." result understandable.
23363
23364 2010-11-27  Bruno Haible  <bruno@clisp.org>
23365
23366         *printf-posix: Detect a bug on Solaris 10/x86.
23367         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23368         for floating-point output.
23369         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23370         directive.
23371         * tests/test-snprintf-posix.h (test_function): Likewise.
23372         * tests/test-sprintf-posix.h (test_function): Likewise.
23373         * tests/test-vasprintf-posix.c (test_function): Likewise.
23374         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23375         * doc/posix-functions/printf.texi: Likewise.
23376         * doc/posix-functions/snprintf.texi: Likewise.
23377         * doc/posix-functions/sprintf.texi: Likewise.
23378         * doc/posix-functions/vfprintf.texi: Likewise.
23379         * doc/posix-functions/vprintf.texi: Likewise.
23380         * doc/posix-functions/vsnprintf.texi: Likewise.
23381         * doc/posix-functions/vsprintf.texi: Likewise.
23382         * doc/glibc-functions/obstack_printf.texi: Likewise.
23383         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23384
23385 2010-11-27  Bruno Haible  <bruno@clisp.org>
23386
23387         Fix link error when module libunistring-optional is in use.
23388         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23389         * modules/striconveha-tests (Makefile.am): Likewise.
23390
23391 2010-11-27  Bruno Haible  <bruno@clisp.org>
23392
23393         regex: Mention link dependencies.
23394         * modules/regex (Link): New section.
23395         * modules/rpmatch (Link): Likewise.
23396         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23397
23398 2010-11-27  Bruno Haible  <bruno@clisp.org>
23399
23400         ftoastr: Fix compilation error on Solaris.
23401         * lib/ftoastr.c: Include <config.h>.
23402
23403 2010-11-27  Bruno Haible  <bruno@clisp.org>
23404
23405         getloadavg: Update documentation.
23406         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23407
23408 2010-11-27  Bruno Haible  <bruno@clisp.org>
23409
23410         sys_socket: Fix test whether the functions are declared.
23411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23412         not <sys/select.h>.
23413
23414 2010-11-27  Bruno Haible  <bruno@clisp.org>
23415
23416         getpass: Make sure to get system declaration on some platforms.
23417         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23418         gl_USE_SYSTEM_EXTENSIONS.
23419         * modules/getpass (Depends-on): Add extensions.
23420
23421 2010-11-26  Bruno Haible  <bruno@clisp.org>
23422
23423         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23424         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23425         'iconv' module is present.
23426         (ICONV_CONST): New macro.
23427         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23428         ICONV_CONST.
23429         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23430         set ICONV_CONST.
23431         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23432         here.
23433         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23434         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23435         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23436         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23437         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23438         present.
23439
23440 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23441
23442         ftoastr: comment fix
23443         * lib/ftoastr.c: "little" -> "little or no" in comment
23444
23445 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23446
23447         stdint: port to GCC 4.3 + OSX + Octave
23448         On this platform, stdint.h is buggy and defines int64_t to long
23449         long int.  The replacement defined it to long int, causing
23450         problems with C++ style name mangling.  Instead, trust the system
23451         definition if INT64_MAX is defined, and likewise for the unsigned
23452         variant.   Problem reported by Jarno Rajahalme in
23453         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23454         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23455         and don't mess with int64_t and INT64_MAX in this case.
23456         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23457
23458 2010-11-24  Bruno Haible  <bruno@clisp.org>
23459
23460         doc: Corrections regarding MacOS X 10.4 and 10.5.
23461         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23462         MacOS X.
23463         Reported by Simon Josefsson.
23464
23465 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23466
23467         Uninstall ".bin" files installed by relocwrapper.
23468         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23469         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23470         unless it is already there.
23471
23472 2010-11-21  Bruno Haible  <bruno@clisp.org>
23473
23474         Update for NetBSD 5.0.
23475         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23476         NetBSD; the test fails on NetBSD 5.0.
23477         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23478         about NetBSD.
23479
23480 2010-11-21  Bruno Haible  <bruno@clisp.org>
23481
23482         Update for HP-UX 11.23 and HP-UX 11.31.
23483         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23484         HP-UX.
23485
23486 2010-11-21  Bruno Haible  <bruno@clisp.org>
23487
23488         Update for MacOS X 10.5.
23489         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23490         MacOS X; the test fails on MacOS X 10.5.8.
23491         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23492         about MacOS X.
23493
23494 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23495
23496         bootstrap: add bootstrap_sync option.
23497         See discussion at
23498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23499         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23500         * build-aux/bootstrap: Accept --bootstrap-sync to update
23501         bootstrap if it is not identical to the local gnulib's
23502         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23503         enable this by default.  Accept --no-bootstrap-sync to disable
23504         it.
23505
23506 2010-11-20  Bruno Haible  <bruno@clisp.org>
23507
23508         Ensure that <features.h> is included before __GLIBC__ is tested.
23509         * lib/printf-parse.h: Include <features.h>.
23510         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23511         Reported by Mike Frysinger <vapier@gentoo.org>.
23512
23513         Ensure that <features.h> is included before __GLIBC__ is tested.
23514         * lib/wchar.in.h: Include <features.h>.
23515         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23516         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23517         Reported by Mike Frysinger <vapier@gentoo.org>.
23518
23519         Ensure that <features.h> is included before __GLIBC__ is tested.
23520         * lib/arpa_inet.in.h: Include <features.h>.
23521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23522         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23523         Reported by Mike Frysinger <vapier@gentoo.org>.
23524
23525         Ensure that <features.h> is included before __GLIBC__ is tested.
23526         * build-aux/link-warning.h: Include <features.h>.
23527         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23528         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23529         Reported by Mike Frysinger <vapier@gentoo.org>.
23530
23531         Ensure that <features.h> is included before __GLIBC__ is tested.
23532         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23533         Reported by Mike Frysinger <vapier@gentoo.org>.
23534
23535 2010-11-20  Bruno Haible  <bruno@clisp.org>
23536
23537         memmem: Fix autoconf test.
23538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23539
23540 2010-11-20  Bruno Haible  <bruno@clisp.org>
23541
23542         Port to uClibc.
23543         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23544         * lib/fcntl.in.h: Likewise.
23545         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23546         * lib/mbrtowc.c (mbrtowc): Likewise.
23547         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23548         * lib/strerror_r.c: Likewise.
23549         * lib/unistr/u8-strnlen.c: Likewise.
23550         * lib/vasnprintf.c (decimal_point_char): Likewise.
23551         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23552         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23554         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23555         * tests/test-sigaction.c (handler, main): Likewise.
23556         * lib/freading.h: Treat uClibc like a non-glibc platform.
23557         * lib/freading.c: Likewise.
23558         * lib/gettext.h: Likewise.
23559         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23560         Likewise.
23561         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23562         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23563         * lib/propername.c (proper_name_utf8): Likewise.
23564         * lib/spawn.in.h: Likewise.
23565         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23566         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23567         mem_cd_iconveh_internal): Likewise.
23568         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23569         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23570         strstr, strcasestr): Likewise.
23571         * lib/unicodeio.c (unicode_to_mb): Likewise.
23572         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23573         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23574         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23575         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23576         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23577         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23578         * lib/unistr/u8-stpncpy.c: Likewise.
23579         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23580         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23581         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23582         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23583         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23584         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23585         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23588         Likewise.
23589         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23590         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23595         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23596         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23597         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23598         * tests/test-striconveha.c (main): Likewise.
23599         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23600         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23601         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23602         * doc/posix-functions/getline.texi: Likewise.
23603         Reported by Mike Frysinger <vapier@gentoo.org>.
23604
23605 2010-11-20  Bruno Haible  <bruno@clisp.org>
23606
23607         nproc: Fix condition.
23608         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23609         HAVE_PTHREAD_AFFINITY_NP.
23610
23611 2010-11-20  Bruno Haible  <bruno@clisp.org>
23612
23613         Fix a comment.
23614         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23615
23616 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23617
23618         ftoastr: don't assume snprintf
23619         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23620         Implement a subset of snprintf here, by using sprintf safely.
23621         * modules/ftoastr (Depends-on): Remove snprintf.
23622
23623 2010-11-19  Jim Meyering  <meyering@redhat.com>
23624
23625         test-rename.h: fix compilation failure
23626         * tests/test-rename.h (test_rename): Add omitted "}".
23627
23628 2010-11-17  Jim Meyering  <meyering@redhat.com>
23629
23630         maint.mk: add a URL discussing the no-@acronym policy
23631         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23632
23633 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23634
23635         ftoastr: depend on snprintf, improve comments
23636         * lib/ftoastr.c: Also mention Loitsch's draft.
23637         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23638         needed in the current implementation, but it might simplify
23639         speeding up the code later.
23640         * modules/ftoastr: Depend on snprintf; this improves portability.
23641         Suggested by Bruno Haible in the same email.
23642
23643         ftoastr: port to hosts lacking strtof and strtold
23644         Problem reported by Bruno Haible in
23645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23646         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23647         environment and strtold (and presumably strtof) are not available.
23648         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23649         (configure.ac): Require gl_C99_STRTOLD.
23650
23651 2010-11-18  Bruno Haible  <bruno@clisp.org>
23652
23653         c-strtold: Avoid link error on AIX 7.
23654         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23655         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23656         (gl_C_STRTOLD): Test whether strtold_l exists.
23657         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23658
23659 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23660
23661         intprops: new macro INT_BITS_STRLEN_BOUND
23662         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23663         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23664         not exposed.  Also, it uses a slightly tighter bound than before;
23665         though this makes no practical difference, we might as well be as
23666         tight as we easily can.
23667
23668         ftoastr: new module, for lossless conversion of floats to short strings
23669         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23670         * modules/ftoastr: New files.
23671
23672 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23673
23674         bootstrap: port to Solaris sed
23675         * build-aux/bootstrap (get_version): Port to Solaris sed.
23676         See Ralf Wildenhues's note in
23677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23678
23679 2010-11-14  Jim Meyering  <meyering@redhat.com>
23680
23681         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23682         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23683         and move definition closer to sole use.
23684
23685 2010-11-13  Jim Meyering  <meyering@redhat.com>
23686
23687         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23688         Now we require at least autoconf-2.59, which means the work-around
23689         is no longer needed.
23690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23692         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23693         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23694         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23695
23696 2010-11-13  Bruno Haible  <bruno@clisp.org>
23697
23698         rename, renameat: Avoid test failures at NFS mounted locations.
23699         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23700         functions.
23701         (test_rename): Use assert_nonexistent.
23702         * tests/test-rename.c: Include <dirent.h>.
23703         * tests/test-renameat.c: Likewise.
23704         Reported by Gary V. Vaughan <gary@gnu.org>.
23705
23706         rename, renameat: Document Linux bug with NFS
23707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23708         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23709         * doc/posix-functions/renameat.texi: Likewise.
23710         Suggested by Eric Blake.
23711
23712 2010-11-13  Bruno Haible  <bruno@clisp.org>
23713
23714         rename test: Add comments.
23715         * tests/test-rename.h (test_rename): Add structure and comments.
23716
23717 2010-11-13  Eric Blake  <eblake@redhat.com>
23718
23719         maintainer-makefile: cover a few more files
23720         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23721         scripts generated within C files, for libvirt.
23722
23723 2010-11-13  Bruno Haible  <bruno@clisp.org>
23724
23725         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23726         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23727         character, return the number of bytes that belong together, not always
23728         1.
23729         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23730         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23731         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23732         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23733         number of bytes of an invalid character.
23734         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23735         (main): Invoke it.
23736         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23737         results.
23738         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23739         malformed byte sequences.
23740         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23741         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23742         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23743         Reported by Ben Pfaff and Paolo Bonzini.
23744
23745 2010-11-13  Bruno Haible  <bruno@clisp.org>
23746
23747         openat: Work around glibc bug with fchownat() and empty file names.
23748         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23749         (gl_FUNC_FCHOWNAT): Invoke it.
23750         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23751         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23752         Reported by Gary V. Vaughan <gary@gnu.org>.
23753
23754 2010-11-13  Bruno Haible  <bruno@clisp.org>
23755
23756         openat: Ensure autoconf macro ordering.
23757         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23758         gl_USE_SYSTEM_EXTENSIONS.
23759         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23760
23761 2010-11-13  Bruno Haible  <bruno@clisp.org>
23762
23763         Update comments.
23764         * lib/unistr/u8-check.c: Update file name in comments.
23765         * lib/unistr/u8-mblen.c: Likewise.
23766         * lib/unistr/u8-prev.c: Likewise.
23767         * lib/unistr/u8-strmblen.c: Likewise.
23768         * lib/unistr/u8-strmbtouc.c: Likewise.
23769
23770 2010-11-13  Jim Meyering  <meyering@redhat.com>
23771
23772         tests: avoid test failure on Solaris 10 due to lack of PATH export
23773         * tests/test-update-copyright.sh: Don't forget to export PATH.
23774
23775         init.sh: ensure that IFS is defined, just in case...
23776         * tests/init.sh (setup_): Ensure that IFS is defined,
23777         so that saving and restoring it works as expected.  This
23778         appears to be useful at least for an old version of dash
23779         from a long time ago (RH 6).  See here for details:
23780         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23781
23782         maint.mk: tighten "test a == b" check
23783         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23784         test to files that contain something like #!/bin/sh.
23785         Without this, coreutils would get two false positives in
23786         the comments of C source files.
23787
23788 2010-11-12  Eric Blake  <eblake@redhat.com>
23789
23790         bootstrap: fix typo in previous attempt
23791         * build-aux/bootstrap (buildreq): Correct the grouping.
23792         Reported by Paul Eggert.
23793
23794         maintainer-makefile: prohibit test x == x
23795         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23796         Based on a report by Matthias Bolte.
23797
23798         bootstrap: allow FreeBSD gzip
23799         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23800         which has no '.' and goes to stderr.
23801         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23802         Reported by Matthias Bolte.
23803
23804         maintainer-makefile: check for i18n setup
23805         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23806         will likely work.
23807
23808 2010-11-12  Bruno Haible  <bruno@clisp.org>
23809
23810         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23811         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23812         * lib/nanosleep.c (nanosleep): Likewise.
23813
23814 2010-11-11  Bruno Haible  <bruno@clisp.org>
23815
23816         fcntl-h: Fix for use of C++ on glibc systems.
23817         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23818         also on glibc systems in C++ mode.
23819         Reported by Gary V. Vaughan <gary@gnu.org>.
23820
23821 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23822
23823         mknod: avoid false failure with dash
23824         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23825
23826 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23827
23828         unlink: Fix "is it should" typo in diagnostic.
23829         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23831
23832 2010-11-11  Bruno Haible  <bruno@clisp.org>
23833
23834         Tests for module 'strerror_r-posix'.
23835         * modules/strerror_r-posix-tests: New file.
23836         * tests/test-strerror_r.c: New file.
23837         * tests/test-string-c++.cc: Check the signature of strerror_r.
23838
23839         New module 'strerror_r-posix'.
23840         * lib/string.in.h (strerror_r): New declaration.
23841         * lib/strerror_r.c: New file.
23842         * m4/strerror_r.m4: New file.
23843         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23844         of strerror_r.
23845         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23846         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23847         * modules/strerror_r-posix: New file.
23848         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23849         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23850         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23851         portability problems.
23852
23853 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23854
23855         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23856         line is also considered for output. Quoted function name in shell
23857         command, so temporary files for functions like MyClass::operator()
23858         are removed correctly without errors.
23859
23860 2010-11-09  Bruno Haible  <bruno@clisp.org>
23861
23862         * doc/posix-functions/strerror.texi: List more failing platforms.
23863
23864         * doc/posix-functions/strerror.texi: Add a comment.
23865
23866 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23867
23868         fdopendir: fix bug on MacOS X when low on file descriptors
23869
23870         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23871         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23872         All callers changed.
23873         (fdopendir): Invoke save_cwd at the top level, not after using
23874         multiple dup() calls to use up file descriptors.  Then retry
23875         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23876         less than the maximum number of open file descriptors, because
23877         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23878         on Mac OS X 10.6.4 for tar 1.24
23879         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23880         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23881         and for tar 1.25
23882         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23883
23884 2010-11-07  Bruno Haible  <bruno@clisp.org>
23885
23886         vasnprintf: Support I flag on glibc systems.
23887         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23888         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23889         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23890         snprintf function.
23891         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23892         glibc systems.
23893         * tests/test-vasnprintf-posix3.c: New file.
23894         * modules/vasnprintf-posix-tests (Files): Add it.
23895         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23896
23897 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23898
23899         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23900         * MODULES.html.sh: For compiler warnings, use name
23901         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23902
23903 2010-11-05  Eric Blake  <eblake@redhat.com>
23904
23905         ceil, floor: avoid spurious failure with icc
23906         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23907         [denormals-as-zero] when optimizing without -mieee-fp option.
23908         * tests/test-floorf2.c (floorf_reference): Likewise.
23909         * tests/test-ceilf1.c (dummy): New function.
23910         (main): Use it to outsmart icc's optimization.
23911         * tests/test-floorf1.c (dummy, main): Likewise.
23912
23913         tests: require working signbit
23914         * modules/ceilf-tests (Depends-on): Add signbit.
23915         * modules/ceill-tests (Depends-on): Likewise.
23916         * modules/floorf-tests (Depends-on): Likewise.
23917         * modules/floorl-tests (Depends-on): Likewise.
23918         * modules/round-tests (Depends-on): Likewise.
23919         * modules/roundf-tests (Depends-on): Likewise.
23920         * modules/roundl-tests (Depends-on): Likewise.
23921         * modules/trunc-tests (Depends-on): Likewise.
23922         * modules/truncf-tests (Depends-on): Likewise.
23923         * modules/truncl-tests (Depends-on): Likewise.
23924
23925         strtod: work around icc bug
23926         * lib/strtod.c (minus_zero): Define to working value.
23927         (strtod): Use it to avoid icc bug.
23928
23929         copysign: enhance tests
23930         * modules/copysign-tests (Files): Add minus-zero.h.
23931         * tests/test-copysign.c (main): Also test zeros.
23932
23933 2010-11-04  Eric Blake  <eblake@redhat.com>
23934
23935         ceil, floor, round, trunc: enhance tests of -0
23936         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23937         * tests/test-ceill.c (main): Likewise.
23938         * tests/test-floorf1.c (main): Likewise.
23939         * tests/test-floorl.c (main): Likewise.
23940         * tests/test-round1.c (main): Likewise.
23941         * tests/test-roundf1.c (main): Likewise.
23942         * tests/test-roundl.c (main): Likewise.
23943         * tests/test-trunc1.c (main): Likewise.
23944         * tests/test-truncf1.c (main): Likewise.
23945         * tests/test-truncl.c (main): Likewise.
23946
23947 2010-11-04  Eric Blake  <eblake@redhat.com>
23948
23949         frexp, tests: work around ICC bug with -zero
23950         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23951         works with more compilers.
23952         * tests/minus-zero.h: New file.
23953         * modules/ceilf-tests (Files): Include it.
23954         * modules/ceill-tests (Files): Likewise.
23955         * modules/floorf-tests (Files): Likewise.
23956         * modules/floorl-tests (Files): Likewise.
23957         * modules/frexp-nolibm-tests (Files): Likewise.
23958         * modules/frexp-tests (Files): Likewise.
23959         * modules/frexpl-nolibm-tests (Files): Likewise.
23960         * modules/frexpl-tests (Files): Likewise.
23961         * modules/isnan-tests (Files): Likewise.
23962         * modules/isnand-nolibm-tests (Files): Likewise.
23963         * modules/isnand-tests (Files): Likewise.
23964         * modules/isnanf-nolibm-tests (Files): Likewise.
23965         * modules/isnanf-tests (Files): Likewise.
23966         * modules/isnanl-nolibm-tests (Files): Likewise.
23967         * modules/isnanl-tests (Files): Likewise.
23968         * modules/round-tests (Files): Likewise.
23969         * modules/roundf-tests (Files): Likewise.
23970         * modules/roundl-tests (Files): Likewise.
23971         * modules/ldexpl-tests (Files): Likewise.
23972         * modules/signbit-tests (Files): Likewise.
23973         * modules/snprintf-posix-tests (Files): Likewise.
23974         * modules/sprintf-posix-tests (Files): Likewise.
23975         * modules/strtod-tests (Files): Likewise.
23976         * modules/trunc-tests (Files): Likewise.
23977         * modules/truncf-tests (Files): Likewise.
23978         * modules/truncl-tests (Files): Likewise.
23979         * modules/vsnprintf-posix-tests (Files): Likewise.
23980         * modules/vsprintf-posix-tests (Files): Likewise.
23981         * modules/vasnprintf-posix-tests (Files): Likewise.
23982         * modules/vasprintf-posix-tests (Files): Likewise.
23983         * tests/test-ceilf1.c (main): Use it.
23984         * tests/test-ceill.c (main): Likewise.
23985         * tests/test-floorf1.c (main): Likewise.
23986         * tests/test-floorl.c (main): Likewise.
23987         * tests/test-frexp.c (main): Likewise.
23988         * tests/test-frexpl.c (main): Likewise.
23989         * tests/test-isnan.c (main): Likewise.
23990         * tests/test-isnand.h (main): Likewise.
23991         * tests/test-isnanf.h (main): Likewise.
23992         * tests/test-isnanl.h (main): Likewise.
23993         * tests/test-ldexpl.c (main): Likewise.
23994         * tests/test-round.c (main): Likewise.
23995         * tests/test-roundf.c (main): Likewise.
23996         * tests/test-roundl.c (main): Likewise.
23997         * tests/test-signbit.c (test_signbitf, test_signbitd)
23998         (test_signbitl): Likewise.
23999         * tests/test-snprintf-posix.h (test_function): Likewise.
24000         * tests/test-sprintf-posix.h (test_function): Likewise.
24001         * tests/test-strtod.c (main): Likewise.
24002         * tests/test-trunc1.c (main): Likewise.
24003         * tests/test-truncf1.c (main): Likewise.
24004         * tests/test-truncl.c (main): Likewise.
24005
24006         isnanl: work around icc bug
24007         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24008
24009 2010-11-03  Eric Blake  <eblake@redhat.com>
24010
24011         tests: fix compiler warnings
24012         * tests/test-getopt.h (test_getopt): Fix condition.
24013         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24014         * tests/test-pipe2.c (main): Likewise.
24015         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24016
24017         utimens: fix broken m4 test
24018         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24019
24020 2010-10-28  Bruno Haible  <bruno@clisp.org>
24021
24022         posix_spawn*, getdtablesize: Relax license.
24023         * modules/posix_spawn (License): Change to LGPLv2+.
24024         * modules/posix_spawnp (License): Likewise.
24025         * modules/posix_spawn-internal (License): Likewise.
24026         * modules/posix_spawnattr_init (License): Likewise.
24027         * modules/posix_spawnattr_getflags (License): Likewise.
24028         * modules/posix_spawnattr_setflags (License): Likewise.
24029         * modules/posix_spawnattr_getpgroup (License): Likewise.
24030         * modules/posix_spawnattr_setpgroup (License): Likewise.
24031         * modules/posix_spawnattr_getschedparam (License): Likewise.
24032         * modules/posix_spawnattr_setschedparam (License): Likewise.
24033         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24034         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24035         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24036         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24037         * modules/posix_spawnattr_getsigmask (License): Likewise.
24038         * modules/posix_spawnattr_setsigmask (License): Likewise.
24039         * modules/posix_spawnattr_destroy (License): Likewise.
24040         * modules/posix_spawn_file_actions_init (License): Likewise.
24041         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24042         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24043         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24044         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24045         * modules/getdtablesize (License): Likewise.
24046         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24047
24048 2010-10-26  Bruno Haible  <bruno@clisp.org>
24049
24050         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24051         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24052         Cygwin and mingw.
24053         Suggested by Eric Blake.
24054
24055 2010-10-26  Bruno Haible  <bruno@clisp.org>
24056
24057         stdio: Work around compilation error due to renameat() on Solaris 10.
24058         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24059         * lib/renameat.c: Don't include <unistd.h> here.
24060         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24061         Reported by Paul Eggert and Eric Blake.
24062
24063 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24064
24065         renameat: port to Solaris 10, which declares renameat in unistd.h
24066
24067         * lib/renameat.c: Include unistd.h before stdio.h, because
24068         Solaris 10 declares renameat in unistd.h.  Problem encountered
24069         when building GNU tar 1.24 on Solaris 10.
24070
24071 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24072
24073         fdopendir: fix C89 compilation
24074         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24075         compilers.
24076
24077 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24078
24079         inttostr: simplify by removing unnecessary redundancy
24080         * lib/anytostr.c: Don't include verify.h.
24081         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24082         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24083         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24084         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24085         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24086         Likewise.
24087         * modules/inttostr (Depends-on): Remove 'verify'.
24088
24089 2010-10-23  Bruno Haible  <bruno@clisp.org>
24090
24091         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24092         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24093         Reported by Eric Blake.
24094
24095 2010-10-23  Bruno Haible  <bruno@clisp.org>
24096
24097         Tests: Fix LOCALE_JA on MirBSD 10.
24098         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24099         to an UTF-8 locale.
24100         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24101         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24102         Reported by Eric Blake.
24103
24104 2010-10-21  Bruno Haible  <bruno@clisp.org>
24105
24106         nl_langinfo test: Avoid test failure on NetBSD 5.
24107         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24108         Reported by Eric Blake.
24109
24110 2010-10-21  Eric Blake  <eblake@redhat.com>
24111
24112         c-stack: work around libsigsegv 2.8 bug
24113         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24114         overflow on at least PowerPC64.
24115
24116 2010-10-17  Bruno Haible  <bruno@clisp.org>
24117
24118         userspec: Drop redundant file.
24119         * modules/userspec (Files): Remove lib/inttostr.h.
24120
24121 2010-10-17  Bruno Haible  <bruno@clisp.org>
24122
24123         nl_langinfo tests: Silence some warnings.
24124         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24125         Reported by Jim Meyering.
24126
24127 2010-10-17  Bruno Haible  <bruno@clisp.org>
24128
24129         Make use of GCC's attribute __alloc_size__.
24130         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24131         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24132         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24133         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24134         __alloc_size__.
24135         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24136         Suggested by Jim Meyering.
24137
24138 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24139
24140         bootstrap: anchor .gitignore entries.
24141         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24142         with...
24143         (insert_vc_ignore): ... this new function, which prepends `/' to
24144         all .gitignore entries before passing them to
24145         insert_sorted_if_absent.
24146
24147 2010-10-16  Bruno Haible  <bruno@clisp.org>
24148
24149         nextafter: Fix configure check.
24150         * modules/nextafter (configure.ac): Correct expected prototype.
24151
24152 2010-10-16  Bruno Haible  <bruno@clisp.org>
24153
24154         termios: Update documentation.
24155         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24156
24157 2010-10-16  Bruno Haible  <bruno@clisp.org>
24158
24159         tests: Make them compile with TinyCC.
24160         * tests/test-strstr.c (main): Remove parentheses around array
24161         initializer.
24162
24163 2010-10-15  Eric Blake  <eblake@redhat.com>
24164
24165         ignore-value: make header idempotent
24166         * lib/ignore-value.h: Add double-inclusion guards.
24167         Reported by Stefan Berger.
24168
24169 2010-10-15  Jim Meyering  <meyering@redhat.com>
24170
24171         GNUmakefile: handle "stable" target, not "major"
24172         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24173         lists in maint.mk and announce-gen.  Without this, "make stable"
24174         would fail to ensure that $(VERSION) is up to date.
24175
24176 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24177
24178         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24179         & co.
24180
24181 2010-10-14  Bruno Haible  <bruno@clisp.org>
24182
24183         vasnprintf: Don't set errno to 0.
24184         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24185         block that sets it to 0.
24186         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24187
24188 2010-10-14  Bruno Haible  <bruno@clisp.org>
24189
24190         socketlib: Fix.
24191         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24192         gl_PREREQ_SYS_H_WINSOCK2.
24193         Reported by Ian Beckwith <ianb@erislabs.net>.
24194
24195 2010-10-13  Jim Meyering  <meyering@redhat.com>
24196
24197         test-select-stdin.c: avoid warn_unused_result warnings
24198         * tests/test-select-stdin.c: Include "macros.h".
24199         ASSERT that read and fflush succeed.
24200
24201 2010-10-13  Jim Meyering  <meyering@redhat.com>
24202
24203         git-version-gen: do require git-VC'd files in cwd
24204         * build-aux/git-version-gen: Reject a git version string
24205         if there are no commits associated with the current directory.
24206         This avoids an unlikely false-positive (unrelated dir whose parent
24207         repository also contains a tag matching v*), as pointed out
24208         by Giuseppe Scrivano in
24209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24210
24211 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24212
24213         argv-iter: omit nonconforming declaration
24214         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24215         enum arg_iter_err declaration, which doesn't conform to C99.
24216         Solaris 10 cc warns about this.
24217
24218 2010-10-13  Eric Blake  <eblake@redhat.com>
24219
24220         termios: fix compilation on mingw
24221         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24222         (gl_TERMIOS_H): Adjust it on mingw.
24223         * modules/termios (Makefile.am): Substitute new key.
24224         * lib/termios.in.h (includes): Make include_next conditional.
24225         * doc/posix-headers/termios.texi (termios.h): Update
24226         documentation.
24227         Reported by Daniel P. Berrange.
24228
24229 2010-10-13  Jim Meyering  <meyering@redhat.com>
24230
24231         git-version-gen: don't require that .git/ be in the current dir
24232         * build-aux/git-version-gen: Adjust this script so that it works
24233         when run from any working directory beneath the top-level .git/-
24234         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24235         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24236
24237         test-select: avoid warn_unused_result warnings
24238         * tests/test-select.c: Include "macros.h".
24239         ASSERT that each call to read, write, and pipe succeeds.
24240         While not technically required, also check each "close".
24241         * modules/select-tests (Files): Add tests/macros.h.
24242
24243         test-symlinkat: remove declaration of unused local
24244         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24245
24246         test-inttostr: avoid shadowing warnings
24247         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24248         and use malloc rather than the stack for the same reason as
24249         mentioned in the comment justifying the other allocation.
24250
24251 2010-10-11  Bruno Haible  <bruno@clisp.org>
24252
24253         stdlib: Allow multiple gnulib generated replacements to coexist.
24254         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24255         Reported by Sam Steingold <sds@gnu.org>.
24256
24257 2010-10-11  Jim Meyering  <meyering@redhat.com>
24258
24259         fix a documentation typo
24260         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24261
24262 2010-10-11  Eric Blake  <eblake@redhat.com>
24263
24264         futimens: work around Solaris 11 bug
24265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24266         * tests/test-futimens.h (test_futimens): Enhance, rather than
24267         weaken test.
24268         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24269
24270 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24271
24272         Indentation.
24273         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24274         higher-level operators more to the left.
24275
24276 2010-10-11  Jim Meyering  <meyering@redhat.com>
24277
24278         test-futimens: avoid unwarranted test failure on Solaris 5.11
24279         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24280         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24281         because it tries to dereference the NULL name argument.
24282
24283 2010-10-11  Bruno Haible  <bruno@clisp.org>
24284
24285         Indentation.
24286         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24287         indentation.
24288
24289 2010-10-11  Jim Meyering  <meyering@redhat.com>
24290
24291         spawn.in.h: make indentation consistent with parentheses
24292         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24293         Make indentation consistent with parentheses.
24294
24295 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24296
24297         Fix mismatched parens in previous commit
24298         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24299         parens.
24300
24301 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24302
24303         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24304
24305         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24306         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24307         * lib/malloca.c: Include "verify.h".
24308         (verify1): Remove, replacing with a verify call.
24309         * lib/relocwrapper.c (verify1): Likewise.
24310         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24311         Likewise.
24312         * modules/malloca (Depends-on): Add 'verify'.
24313         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24314         * modules/vasnprintf (Depends-on): Add 'verify'.
24315         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24317         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24318         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24319         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24320         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24321         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24322
24323         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24324
24325         Formerly the style was sometimes 2*X - 1, because the C standard
24326         was wrongly thought to disallow ?: in integral constant expressions.
24327         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24328         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24329         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24330         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24331         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24332         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24333         verify that time_t cannot be floating.
24334
24335 2010-10-08  Eric Blake  <eblake@redhat.com>
24336
24337         time: enforce recent POSIX ruling that time_t is integral
24338         * lib/time.in.h (__time_t_must_be_integral): Detect any
24339         problematic systems, allowing the rest of gnulib to assume POSIX.
24340
24341 2010-10-08  Jim Meyering  <meyering@redhat.com>
24342
24343         fdopendir: fix a bug on systems lacking openat and /proc support
24344         OpenBSD 4.7 is one such system.  The most noticeable effect was
24345         failure of any application making nontrivial use of fts: rm, du,
24346         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24347           ./rm: traversal failed: `a': Bad file descriptor
24348         Debugging that, you see that even though FD 6 was closed just
24349         prior to the opendir call in fd_clone_opendir, its resulting
24350         dir->dd_fd was 8, rather than the expected value of 6:
24351
24352         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24353         93                close (fd);
24354         (gdb) n
24355         94                dir = fd_clone_opendir (dupfd);
24356         (gdb) n
24357         95                saved_errno = errno;
24358         (gdb) p dir->dd_fd
24359         $11 = 8
24360
24361         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24362         The problem is that on OpenBSD, fd_clone_opendir has to resort
24363         to using the old-style save/restore CWD mechanism, due to its
24364         lack of openat/proc support, and *that* would steal the FD (6)
24365         that opendir was supposed to use.
24366
24367         The fix is to squirrel away the desired FD so that save_cwd uses a
24368         different one, and then free the dest FD right before calling opendir.
24369         That guarantees opendir will use the required file descriptor.
24370
24371         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24372
24373 2010-10-08  Bruno Haible  <bruno@clisp.org>
24374
24375         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24376         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24377
24378 2010-10-08  Bruno Haible  <bruno@clisp.org>
24379
24380         nanosleep: Make replacement POSIX compliant.
24381         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24382         is out of range.
24383         Reported by Jim Meyering.
24384
24385 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24386
24387         bootstrap: add hook for altering gnulib.mk, for Bison
24388         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24389         the Bison bootstrapping process can rewrite file names and variables
24390         in this file before later parts of 'bootstrap' use the file.
24391         Bison wants to include lib/gnulib.mk from the top-level makefile,
24392         so it needs the file names in this file to be relative to the top
24393         level, not relative to lib; plus it needs variable names to be
24394         rewritten.
24395         (slurp): Use the new function.
24396
24397         bootstrap: reformat for readability
24398         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24399
24400 2010-10-08  Eric Blake  <eblake@redhat.com>
24401
24402         docs: update cygwin progress
24403         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24404         1.7.7.
24405         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24406         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24407         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24408         * doc/posix-functions/carg.texi (carg): Likewise.
24409         * doc/posix-functions/cargf.texi (cargf): Likewise.
24410         * doc/posix-functions/casin.texi (casin): Likewise.
24411         * doc/posix-functions/casinf.texi (casinf): Likewise.
24412         * doc/posix-functions/casinh.texi (casinh): Likewise.
24413         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24414         * doc/posix-functions/catan.texi (catan): Likewise.
24415         * doc/posix-functions/catanf.texi (catanf): Likewise.
24416         * doc/posix-functions/catanh.texi (catanh): Likewise.
24417         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24418         * doc/posix-functions/ccos.texi (ccos): Likewise.
24419         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24420         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24421         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24422         * doc/posix-functions/cexp.texi (cexp): Likewise.
24423         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24424         * doc/posix-functions/cimag.texi (cimag): Likewise.
24425         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24426         * doc/posix-functions/clog.texi (clog): Likewise.
24427         * doc/posix-functions/clogf.texi (clogf): Likewise.
24428         * doc/posix-functions/conj.texi (conj): Likewise.
24429         * doc/posix-functions/conjf.texi (conjf): Likewise.
24430         * doc/posix-functions/cpow.texi (cpow): Likewise.
24431         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24432         * doc/posix-functions/cproj.texi (cproj): Likewise.
24433         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24434         * doc/posix-functions/creal.texi (creal): Likewise.
24435         * doc/posix-functions/crealf.texi (crealf): Likewise.
24436         * doc/posix-functions/csin.texi (csin): Likewise.
24437         * doc/posix-functions/csinf.texi (csinf): Likewise.
24438         * doc/posix-functions/csinh.texi (csinh): Likewise.
24439         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24440         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24441         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24442         * doc/posix-functions/ctan.texi (ctan): Likewise.
24443         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24444         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24445         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24446         * doc/posix-headers/complex.texi (complex.h): Likewise.
24447
24448 2010-10-07  Jim Meyering  <meyering@redhat.com>
24449
24450         parse-datetime: avoid compilation failure on OpenBSD 4.7
24451         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24452         This works around a compilation failure on OpenBSD 4.7:
24453         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24454
24455 2010-10-07  Eric Blake  <eblake@redhat.com>
24456
24457         docs: update cygwin progress
24458         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24459         1.7.6.
24460         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24461         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24462         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24463         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24464         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24465         Likewise.
24466         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24467         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24468         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24469         Likewise.
24470         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24471         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24472         Likewise.
24473         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24474         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24475         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24476         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24477         Likewise.
24478         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24479         Likewise.
24480         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24481
24482         docs: update parse-datetime history
24483         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24484         documentation of this function's history and alternatives.
24485
24486         cygwin: use more robust version check
24487         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24488         exclude an eventual cygwin 1.9.1.
24489         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24491         (gl_FUNC_STRCASESTR): Likewise.
24492         Reported by Bruno Haible.
24493
24494 2010-10-06  Bruno Haible  <bruno@clisp.org>
24495
24496         string, sys_select: Avoid #including large headers unless necessary.
24497         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24498         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24499         OSF/1, BeOS, Haiku.
24500         Reported by Jim Meyering.
24501
24502 2010-10-05  Eric Blake  <eblake@redhat.com>
24503
24504         memmem, strstr, strcasestr: fix bug with long periodic needle
24505         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24506         periodic needle having false positive.
24507         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24508         and cygwin 1.7.7.
24509         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24511         (gl_FUNC_STRCASESTR): Likewise.
24512         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24513         * tests/test-memmem.c (main): Expose the bug.
24514         * tests/test-strcasestr.c (main): Likewise.
24515         * tests/test-strstr.c (main): Likewise.
24516         * tests/test-c-strcasestr.c (main): Likewise.
24517         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24518         * doc/posix-functions/strstr.texi (strstr): Likewise.
24519         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24520         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24521
24522 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24523
24524         parse-datetime: do some more renaming
24525         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24526         parse_datetime, not get_date.  Mention the renaming.
24527         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24528         in comments.
24529         * m4/bison.m4: Likewise.
24530
24531 2010-10-05  Eric Blake  <eblake@redhat.com>
24532
24533         parse-datetime: better name than get_date
24534         * NEWS: Reword the deprecation notice.
24535         * modules/get_date: Rename to modules/parse-datetime.
24536         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24537         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24538         * lib/get_date.y: Rename to lib/parse-datetime.y.
24539         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24540         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24541         * doc/getdate.texi: Provide fallback wrapper.
24542         * lib/getdate.h: Move guts, and wrap...
24543         * lib/parse-datetime.h: ...new file.
24544         * lib/parse-datetime.y (get_date): Rename...
24545         (parse_datetime): ...to this.
24546         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24547         (gl_PARSE_DATETIME): ...to this.
24548         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24549         documentation.
24550         * modules/getdate (Files): Provide fallback docs and header.
24551         (Notice, Depends-on): Update references.
24552         * tests/test-parse-datetime.c: Likewise.
24553         * DEPENDENCIES: Likewise.
24554         * MODULES.html.sh (Date and time <time.h>): Likewise.
24555         * doc/parse-datetime.texi (Date input formats)
24556         (Authors of parse_datetime): Likewise.
24557         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24558         (Include): Likewise.
24559         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24560         * gnulib-tool: Likewise.
24561         * m4/bison.m4 (gl_BISON): Likewise.
24562         Suggested by Bruno Haible.
24563
24564 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24565
24566         more ports to Solaris tr, which needs [] around ranges
24567         * gnulib-tool: Solaris tr needs [] around ranges.
24568         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24569         * tests/test-pipe-filter-gi1.c (main): Likewise.
24570         * tests/test-pipe-filter-ii1.c (main): Likewise.
24571
24572 2010-10-05  Eric Blake  <eblake@redhat.com>
24573
24574         bootstrap: fix Solaris regression
24575         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24576         around ranges.
24577         Reported by Pádraig Brady.
24578
24579         bootstrap: work with pkg-config
24580         * build-aux/bootstrap (check_versions): Also transliterate - in
24581         prerequisite name.
24582         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24583         prerequisites that were already found, to avoid confusion.
24584         Reported by Justin Clift.
24585
24586         faccessat: remove unused wrappers
24587         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24588         presence of these wrappers dragged in -lgen on Solaris.
24589         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24590
24591 2010-10-05  Jim Meyering  <meyering@redhat.com>
24592
24593         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24594         * Makefile (sc_pragma_columns): New syntax-check rule.
24595
24596 2010-10-04  Bruno Haible  <bruno@clisp.org>
24597
24598         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24599         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24600         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24601         Reported by Bruce Korb and Eric Blake.
24602
24603 2010-10-04  Bruno Haible  <bruno@clisp.org>
24604
24605         threadlib: Make option --with-libpth-prefix work.
24606         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24607         use $LIBPTH, not just -lpth.
24608
24609 2010-10-04  Bruno Haible  <bruno@clisp.org>
24610
24611         Avoid line length limitation from HP NonStop system header files.
24612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24613         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24614         * lib/ctype.in.h: Likewise.
24615         * lib/dirent.in.h: Likewise.
24616         * lib/errno.in.h: Likewise.
24617         * lib/fcntl.in.h: Likewise.
24618         * lib/float.in.h: Likewise.
24619         * lib/getopt.in.h: Likewise.
24620         * lib/iconv.in.h: Likewise.
24621         * lib/inttypes.in.h: Likewise.
24622         * lib/langinfo.in.h: Likewise.
24623         * lib/locale.in.h: Likewise.
24624         * lib/math.in.h: Likewise.
24625         * lib/netdb.in.h: Likewise.
24626         * lib/netinet_in.in.h: Likewise.
24627         * lib/poll.in.h: Likewise.
24628         * lib/pthread.in.h: Likewise.
24629         * lib/pty.in.h: Likewise.
24630         * lib/sched.in.h: Likewise.
24631         * lib/se-selinux.in.h: Likewise.
24632         * lib/search.in.h: Likewise.
24633         * lib/signal.in.h: Likewise.
24634         * lib/spawn.in.h: Likewise.
24635         * lib/stdarg.in.h: Likewise.
24636         * lib/stddef.in.h: Likewise.
24637         * lib/stdint.in.h: Likewise.
24638         * lib/stdio.in.h: Likewise.
24639         * lib/stdlib.in.h: Likewise.
24640         * lib/string.in.h: Likewise.
24641         * lib/strings.in.h: Likewise.
24642         * lib/sys_file.in.h: Likewise.
24643         * lib/sys_ioctl.in.h: Likewise.
24644         * lib/sys_select.in.h: Likewise.
24645         * lib/sys_socket.in.h: Likewise.
24646         * lib/sys_stat.in.h: Likewise.
24647         * lib/sys_time.in.h: Likewise.
24648         * lib/sys_times.in.h: Likewise.
24649         * lib/sys_utsname.in.h: Likewise.
24650         * lib/sys_wait.in.h: Likewise.
24651         * lib/sysexits.in.h: Likewise.
24652         * lib/termios.in.h: Likewise.
24653         * lib/time.in.h: Likewise.
24654         * lib/unistd.in.h: Likewise.
24655         * lib/wchar.in.h: Likewise.
24656         * lib/wctype.in.h: Likewise.
24657         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24658         * modules/ctype (Makefile.am): Likewise.
24659         * modules/dirent (Makefile.am): Likewise.
24660         * modules/errno (Makefile.am): Likewise.
24661         * modules/fcntl-h (Makefile.am): Likewise.
24662         * modules/float (Makefile.am): Likewise.
24663         * modules/getopt-posix (Makefile.am): Likewise.
24664         * modules/iconv-h (Makefile.am): Likewise.
24665         * modules/inttypes (Makefile.am): Likewise.
24666         * modules/langinfo (Makefile.am): Likewise.
24667         * modules/locale (Makefile.am): Likewise.
24668         * modules/math (Makefile.am): Likewise.
24669         * modules/netdb (Makefile.am): Likewise.
24670         * modules/netinet_in (Makefile.am): Likewise.
24671         * modules/poll-h (Makefile.am): Likewise.
24672         * modules/pthread (Makefile.am): Likewise.
24673         * modules/pty (Makefile.am): Likewise.
24674         * modules/sched (Makefile.am): Likewise.
24675         * modules/search (Makefile.am): Likewise.
24676         * modules/selinux-h (Makefile.am): Likewise.
24677         * modules/signal (Makefile.am): Likewise.
24678         * modules/spawn (Makefile.am): Likewise.
24679         * modules/stdarg (Makefile.am): Likewise.
24680         * modules/stddef (Makefile.am): Likewise.
24681         * modules/stdint (Makefile.am): Likewise.
24682         * modules/stdio (Makefile.am): Likewise.
24683         * modules/stdlib (Makefile.am): Likewise.
24684         * modules/string (Makefile.am): Likewise.
24685         * modules/strings (Makefile.am): Likewise.
24686         * modules/sys_file (Makefile.am): Likewise.
24687         * modules/sys_ioctl (Makefile.am): Likewise.
24688         * modules/sys_select (Makefile.am): Likewise.
24689         * modules/sys_socket (Makefile.am): Likewise.
24690         * modules/sys_stat (Makefile.am): Likewise.
24691         * modules/sys_time (Makefile.am): Likewise.
24692         * modules/sys_times (Makefile.am): Likewise.
24693         * modules/sys_utsname (Makefile.am): Likewise.
24694         * modules/sys_wait (Makefile.am): Likewise.
24695         * modules/sysexits (Makefile.am): Likewise.
24696         * modules/termios (Makefile.am): Likewise.
24697         * modules/time (Makefile.am): Likewise.
24698         * modules/unistd (Makefile.am): Likewise.
24699         * modules/wchar (Makefile.am): Likewise.
24700         * modules/wctype (Makefile.am): Likewise.
24701
24702 2010-10-04  Bruno Haible  <bruno@clisp.org>
24703
24704         read-file tests: Avoid a test failure on NonStop Kernel.
24705         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24706         a regular file.
24707         Reported by Joachim Schmitz <schmitz@hp.com>.
24708
24709 2010-10-03  Bruno Haible  <bruno@clisp.org>
24710
24711         gnulib-tool: Fixes for --create-testdir with --libtool.
24712         * gnulib-tool (func_get_automake_snippet): Don't augment
24713         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24714         an executable.
24715         (func_create_testdir): Handle module 'alloca' like func_import.
24716         Reported by Bruce Korb <bruce.korb@gmail.com>.
24717
24718 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24719
24720         Avoid some lines longer than 80 characters.
24721         * lib/stdint.in.h: Break long comment lines.
24722         * lib/math.in.h: Likewise.
24723         (_GL_NUM_UINT_WORDS): New macro, for readability.
24724         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24725         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24726         * lib/stdlib.in.h: Likewise.
24727         * lib/spawn.in.h: Likewise.
24728         * lib/sys_socket.in.h: Update an URL.
24729         * lib/sys_stat.in.h: Break long line.
24730
24731 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24732
24733         Improve pmccabe2html.
24734         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24735         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24736         when the sources change. Remove the line in the HTML about "Used
24737         ranges" (which implied that there might be other unused ranges),
24738         rename "Resume" to "Summary" (easier to understand for more users).
24739         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24740         styles, and some unnecessary blank lines.
24741
24742 2010-10-03  Bruno Haible  <bruno@clisp.org>
24743             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24744
24745         acl: Add support for ACLs on NonStop Kernel.
24746         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24747         Check whether the function aclsort() exists.
24748         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24749         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24750         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24751         (acl_nontrivial [HAVE_ACLSORT]: New function.
24752         (file_has_acl): Implement for NonStop Kernel.
24753         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24754         (qset_acl): Implement for NonStop Kernel.
24755         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24756         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24757         (main): Implement for NonStop Kernel.
24758         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24759         Kernel. Handle this flavor.
24760         * tests/test-set-mode-acl.sh: Likewise.
24761         * tests/test-copy-acl.sh: Likewise.
24762         * tests/test-copy-file.sh: Likewise.
24763
24764 2010-10-03  Bruno Haible  <bruno@clisp.org>
24765
24766         Info about ACLs on NonStop Kernel.
24767         * doc/acl-resources.txt: Add info about NonStop Kernel.
24768         References by Joachim Schmitz <schmitz@hp.com>.
24769
24770 2010-10-02  Bruno Haible  <bruno@clisp.org>
24771
24772         Define missing EDQUOT on NonStop Kernel.
24773         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24774         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24775         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24776         missing.
24777         * doc/posix-headers/errno.texi: Mention the NSK bug.
24778         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24779         Reported by Joachim Schmitz <schmitz@hp.com>.
24780
24781 2010-10-02  Bruno Haible  <bruno@clisp.org>
24782
24783         Update doc for POSIX:2008.
24784         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24785         Update URL of POSIX specification.
24786
24787 2010-10-02  Bruno Haible  <bruno@clisp.org>
24788
24789         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24790         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24791         from gnulib, not from Automake.
24792
24793 2010-10-02  Bruno Haible  <bruno@clisp.org>
24794
24795         New module 'system-posix'.
24796         * modules/system-posix: New file.
24797         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24798         module is present.
24799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24800         GNULIB_SYSTEM_POSIX.
24801         * modules/stdlib (Depends-on): Remove sys_wait.
24802         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24803         * doc/posix-functions/system.texi: Mention the new module.
24804         * doc/posix-headers/stdlib.texi: Likewise.
24805         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24806         define test_sys_wait_macros to a no-op.
24807         Reported by Sam Steingold <sds@gnu.org>.
24808
24809 2010-09-30  Bruno Haible  <bruno@clisp.org>
24810
24811         More renaming from 'getdate' to 'get_date'.
24812         * doc/get_date.texi: Renamed from doc/getdate.texi.
24813         * modules/get_date (Files): Update.
24814         * MODULES.html.sh (Date and time <time.h>): Update.
24815         * DEPENDENCIES: Update.
24816         * gnulib-tool: Update comment.
24817         * m4/bison.m4 (gl_BISON): Likewise.
24818         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24819
24820 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24821
24822         bootstrap: support ACLOCAL_FLAGS during aclocal
24823         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24824         can add additional -I dir for third-party .m4 files.
24825
24826 2010-09-30  Eric Blake  <eblake@redhat.com>
24827
24828         bootstrap: use glibtoolize on MacOS
24829         * build-aux/bootstrap (check_versions): Convert libtool into
24830         libtoolize.
24831         (tool search): Move libtool check earlier, and look for
24832         glibtoolize for MacOS.
24833         (gnulib_tool_options): Auto-add --libtool when appropriate.
24834         Reported by Justin Clift.
24835
24836         poll: fix typo that broke test on MacOS
24837         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24838         Reported by Justin Clift.
24839
24840         getdate: rename to get_date
24841         Note: getdate.h is not renamed, to minimize client impact.
24842         * modules/getdate: Mark obsolete.  Move old contents...
24843         * modules/get_date: ...to new module name.
24844         * modules/getdate-tests: Move...
24845         * modules/get_date-tests: ...here.
24846         * m4/getdate.m4: Move...
24847         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24848         * lib/getdate.y: Move...
24849         * lib/get_date.y: ...here.
24850         * tests/test-getdate.c: Move...
24851         * tests/test-get_date.c: ...here.
24852         * doc/posix-functions/getdate.texi (getdate): Update name.
24853         * NEWS: Mention the change.
24854
24855 2010-09-29  Bruno Haible  <bruno@clisp.org>
24856
24857         Separate the module 'waitpid' from the module 'sys_wait'.
24858         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24859         present.
24860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24861         gl_MODULE_INDICATOR_FOR_TESTS.
24862         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24863         * modules/sys_wait (Depends-on): Remove waitpid.
24864         (Makefile.am): Substitute GNULIB_WAITPID.
24865         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24866         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24867         signature only if the 'waitpid' module is present.
24868         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24869         * NEWS: Mention the change.
24870         * modules/grantpt (Depends-on): Add waitpid.
24871         * modules/wait-process (Depends-on): Likewise.
24872
24873 2010-09-29  Bruno Haible  <bruno@clisp.org>
24874
24875         More tests for module 'sys_wait'.
24876         * modules/sys_wait-c++-tests: New file.
24877         * tests/test-sys_wait-c++.cc: New file.
24878         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24879         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24880
24881 2010-09-29  Bruno Haible  <bruno@clisp.org>
24882
24883         New module 'waitpid'.
24884         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24885         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24886         Don't include <process.h>.
24887         (waitpid): Declare only, using modern idiom.
24888         * m4/waitpid.m4: New file.
24889         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24890         * modules/waitpid: New file.
24891         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24892         (Makefile.am): Update.
24893         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24894
24895 2010-09-28  Bruno Haible  <bruno@clisp.org>
24896
24897         poll: Assume ANSI C.
24898         * lib/poll.c (poll): Use an ANSI C declaration.
24899
24900 2010-09-28  Bruno Haible  <bruno@clisp.org>
24901
24902         poll-h: Create poll.h on all platforms.
24903         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24904         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24905         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24906         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24907         (gl_REPLACE_POLL_H): Don't set POLL_H.
24908         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24909         * modules/poll-h (Depends-on): Add include_next.
24910         (Makefile.am): Create poll.h unconditionally. Substitute also
24911         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24912
24913 2010-09-28  Bruno Haible  <bruno@clisp.org>
24914
24915         Tests for module 'poll-h'.
24916         * modules/poll-h-c++-tests: New file.
24917         * tests/test-poll-h-c++.cc: New file.
24918
24919         Tests for module 'poll-h'.
24920         * modules/poll-h-tests: New file.
24921         * tests/test-poll-h.c: New file.
24922
24923 2010-09-28  Bruno Haible  <bruno@clisp.org>
24924
24925         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24926         * modules/poll-h (Depends-on): Add 'extensions'.
24927
24928 2010-09-28  Bruno Haible  <bruno@clisp.org>
24929
24930         New module 'poll-h'.
24931         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24932         (poll): Use modern idiom.
24933         * modules/poll-h: New file.
24934         * modules/poll (Files): Remove lib/poll.in.h.
24935         (Depends-on): Add poll-h.
24936         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24937         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24938         * m4/poll_h.m4: New file.
24939         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24940         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24941         and invoke gl_REPLACE_POLL_H.
24942         * lib/poll.c: Use common idiom.
24943         * tests/test-poll.c: Likewise.
24944         * doc/posix-headers/poll.texi: Mention the poll-h module.
24945         Suggested by Eric Blake.
24946
24947 2010-09-26  Bruno Haible  <bruno@clisp.org>
24948
24949         sys_wait: Implement WSTOPSIG.
24950         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24951         Reported by Simon Josefsson.
24952
24953 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24954
24955         stdlib, sys_wait: Avoid compilation error on mingw.
24956         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24957
24958 2010-09-26  Bruno Haible  <bruno@clisp.org>
24959
24960         stdlib tests: Avoid code duplication.
24961         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24962         * modules/sys_wait-tests (Files): Likewise.
24963         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24964         * tests/test-stdlib.c: Include test-sys_wait.h.
24965         (main): Invoke test_sys_wait_macros.
24966         * tests/test-sys_wait.c: Include test-sys_wait.h.
24967         (main): Invoke test_sys_wait_macros.
24968
24969 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24970
24971         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24972         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24973         sure Windows sockets are working before calling getaddrinfo.
24974         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24975         * doc/gnulib.texi (Windows sockets): Fix typo.
24976
24977 2010-09-25  Bruno Haible  <bruno@clisp.org>
24978
24979         Tests for module 'regex-quote'.
24980         * modules/regex-quote-tests: New file.
24981         * tests/test-regex-quote.c: New file.
24982
24983         New module 'regex-quote'.
24984         * lib/regex-quote.h: New file.
24985         * lib/regex-quote.c: New file.
24986         * modules/regex-quote: New file.
24987         Suggested by Reuben Thomas <rrt@sc3d.org>.
24988
24989 2010-09-24  Bruno Haible  <bruno@clisp.org>
24990
24991         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24992         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24993
24994 2010-09-23  Bruno Haible  <bruno@clisp.org>
24995
24996         setenv: Relax license.
24997         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24998         Blake.
24999         Requested by Eric Blake.
25000
25001 2010-09-22  Bruno Haible  <bruno@clisp.org>
25002
25003         termios: Relax license.
25004         * modules/termios (License): Change to LGPLv2+.
25005         Requested by Eric Blake.
25006
25007 2010-09-22  Bruno Haible  <bruno@clisp.org>
25008
25009         threadlib: Allow the package to change the default to 'no'.
25010         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25011         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25012         Reported by Paul Eggert.
25013
25014 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25015             Bruno Haible  <bruno@clisp.org>
25016
25017         Fix endless loop in mbmemcasecoll.
25018         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25019         byte.
25020         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25021
25022 2010-09-22  Bruno Haible  <bruno@clisp.org>
25023
25024         Tests for module 'memcoll'.
25025         * modules/memcoll-tests: New file.
25026         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25027
25028         memcoll, xmemcoll: Clarify size vs. length.
25029         * modules/memcoll.c (memcoll0): Clarify specification.
25030         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25031         passed to collate_error.
25032
25033 2010-09-22  Bruno Haible  <bruno@clisp.org>
25034
25035         Tests for module 'memcasecmp'.
25036         * modules/memcasecmp-tests: New file.
25037         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25038
25039 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25040
25041         * lib/pthread.in.h: Add split double-inclusion guard, and include
25042         system <pthread.h> if there is one.  Use @@-style as in other
25043         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25044         pthread.h doesn't.
25045         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25046         (pthread_mutexattr_settype, pthread_mutex_trylock):
25047         New static inline functions, if there's no system <pthread.h>.
25048         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25049         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25050         Approximate with mutexes if the system lacks spinlocks, as in
25051         MacOS.
25052         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25053         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25054         @@-style.  Check for spinlocks separately.
25055         (gl_PTHREAD_DEFAULTS): New macro.
25056         * modules/pthread: Redo to use a more typical style for in.h files.
25057
25058 2010-09-21  Eric Blake  <eblake@redhat.com>
25059
25060         net_if: enhance tests
25061         * tests/test-net_if.c (main): Move signature checks earlier.
25062         Print failures to stderr.
25063         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25064         Document the bug that we do not yet fix.
25065
25066 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25067
25068         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25069         about gnulib, not GSS.
25070
25071 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25072
25073         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25074         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25075         for Emacs.
25076         * build-aux/pmccabe2html: Make Makefile.am example code more
25077         cut-and-paste friendly.
25078
25079 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25080
25081         * tests/test-net_if.c: New file.
25082         * modules/net_if-tests: New file.
25083
25084 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25085
25086         pthread: add pthread_spin_destroy
25087         * lib/pthread.in.h (pthread_spin_destroy): New function.
25088
25089 2010-09-19  Bruno Haible  <bruno@clisp.org>
25090
25091         gnulib-tool: Fix --help output.
25092         * gnulib-tool (func_usage): Fix help message.
25093         Reported by Reuben Thomas <rrt@sc3d.org>.
25094
25095 2010-09-18  Jim Meyering  <meyering@redhat.com>
25096
25097         maint.mk: avoid unexpanded \n in two diagnostics
25098         * top/maint.mk (sc_prohibit_always_true_header_tests):
25099         Don't use a literal \n in a halt=... assignment.  It would not be
25100         expanded, and the two \n bytes would appear in the diagnostic output
25101         rather than the desired newline.  Use halt=$$(printf ... instead.
25102         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25103
25104 2010-09-18  Bruno Haible  <bruno@clisp.org>
25105
25106         netinet_in: Doc tweak.
25107         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25108         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25109
25110 2010-09-18  Jim Meyering  <meyering@redhat.com>
25111
25112         init.sh: correct an outdated comment
25113         * tests/init.sh (create_exe_shims_):  s/function/alias/
25114
25115         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25116         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25117         a file named "*.exe" is removed between the glob expansion and the
25118         processing of that oddly named file.
25119
25120 2010-09-17  Eric Blake  <eblake@redhat.com>
25121
25122         mirbsd: add some more support
25123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25124         in BSD family.
25125         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25126         devices as OpenBSD.
25127         * m4/host-os.m4 (mirbsd): Add MirBSD.
25128
25129         tests: fix unportable assumption on sys/wait.h
25130         * tests/test-sys_wait.c (main): Relax test.
25131         * tests/test-stdlib.c (main): Likewise.
25132
25133         init.sh: accomodate directory with no .exes
25134         * tests/init.sh: Accomodate directory containing only scripts.
25135
25136         tests: avoid compiler warning
25137         * tests/test-stdlib.c (main): Use the variable.
25138
25139         fdutimens, fdutimensat: update signature, again
25140         * lib/utimens.h (gl_futimens): Delete, and move signature...
25141         (fdutimens): ...here.
25142         (fdutimensat): Rearrange signature.
25143         (lutimensat): Rename variable for clarity.
25144         * lib/fdutimensat.c (fdutimensat): Update signature.
25145         * lib/utimens.c (fdutimens): Likewise.
25146         (gl_futimens): Delete.
25147         (utimens, lutimens): Update callers.
25148         * lib/futimens.c (futimens): Likewise.
25149         * tests/test-fdutimensat.c: Likewise.
25150         * tests/test-utimens.c: Likewise.
25151         * tests/test-futimens.h: Update comment.
25152         * NEWS: Mention this.
25153         Suggested by Paul Eggert.
25154
25155 2010-09-17  Bruno Haible  <bruno@clisp.org>
25156
25157         Take over the maintenance of some older macros from Autoconf.
25158         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25159         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25160         GNU Autoconf.
25161         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25162         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25163
25164 2010-09-17  Eric Blake  <eblake@redhat.com>
25165
25166         fdutimensat: drop atflag validation
25167         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25168         with valid fd, to close a race scenario where futimens is
25169         unsupported and FILE was replaced by a symlink.
25170         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25171         accordingly.
25172         Suggested by Paul Eggert.
25173
25174 2010-09-16  Bruno Haible  <bruno@clisp.org>
25175
25176         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25177         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25178
25179 2010-09-16  Bruno Haible  <bruno@clisp.org>
25180
25181         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25182         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25183         login_tty exists.
25184         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25185
25186 2010-09-16  Bruno Haible  <bruno@clisp.org>
25187
25188         login_tty: Make the replacement code work on BSD systems.
25189         * lib/login_tty.c: Include <sys/ioctl.h>.
25190         (login_tty): Use ioctl TIOCSCTTY when available.
25191         * modules/login_tty (Depends-on): Add sys_ioctl.
25192         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25193
25194 2010-09-16  Bruno Haible  <bruno@clisp.org>
25195
25196         login_tty: Stricter unit test.
25197         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25198         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25199         and tcgetsid() after login_tty.
25200         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25201
25202 2010-09-16  Bruno Haible  <bruno@clisp.org>
25203
25204         New module 'tcgetsid'.
25205         * lib/tcgetsid.c: New file.
25206         * m4/tcgetsid.m4: New file.
25207         * modules/tcgetsid: New file.
25208         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25209         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25210         GNULIB_TCGETSID, HAVE_TCGETSID.
25211         * lib/termios.in.h: Include <sys/types.h>.
25212         (tcgetsid): New declaration.
25213         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25214         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25215         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25216         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25217
25218 2010-09-16  Bruno Haible  <bruno@clisp.org>
25219
25220         Tests for module 'termios'.
25221         * modules/termios-c++-tests: New file.
25222         * modules/termios-tests: New file.
25223         * tests/test-termios-c++.cc: New file.
25224         * tests/test-termios.c: New file.
25225
25226         New module 'termios'.
25227         * modules/termios: New file.
25228         * lib/termios.in.h: New file.
25229         * m4/termios_h.m4: New file.
25230         * doc/posix-headers/termios.texi: Mention the new module.
25231
25232 2010-09-16  Eric Blake  <eblake@redhat.com>
25233
25234         fdutimensat: add an atflag parameter
25235         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25236         * lib/utimens.h (fdutimensat): Update prototype.
25237         * tests/test-fdutimensat.c: Adjust test to match.
25238         * NEWS: Document the change.
25239         Suggested by Paul Eggert.
25240
25241 2010-09-16  Bruno Haible  <bruno@clisp.org>
25242
25243         Fix typos in comments.
25244         * lib/striconveh.h: Fix typo in comment.
25245         * lib/login_tty.c (login_tty): Likewise.
25246
25247 2010-09-15  Bruno Haible  <bruno@clisp.org>
25248
25249         stdlib: clarify MirBSD WEXITSTATUS bug
25250         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25251         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25252
25253 2010-09-15  Eric Blake  <eblake@redhat.com>
25254
25255         stdlib: work around MirBSD WEXITSTATUS bug
25256         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25257         * modules/stdlib (Depends-on): Add sys_wait.
25258         * tests/test-sys_wait.c (main): Enhance test.
25259         * tests/test-stdlib.c (main): Likewise.
25260         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25261
25262         docs: mention MacOS issue with WEXITSTATUS(constant)
25263         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25264         issue.
25265         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25266
25267         strnlen: add tests
25268         * modules/strnlen-tests: New file.
25269         * tests/test-strnlen.c: Likewise.
25270
25271 2010-09-14  Bruno Haible  <bruno@clisp.org>
25272
25273         unistr/base: Avoid link errors when module 'libunistring' is also used.
25274         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25275         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25276         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25277         Declare also when HAVE_LIBUNISTRING is set.
25278         Reported by Pádraig Brady <P@draigbrady.com>.
25279
25280 2010-09-14  Eric Blake  <eblake@redhat.com>
25281
25282         test-rawmemchr: make more robust
25283         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25284         (Depends-on, configure.ac): Add needed prerequisites to use it.
25285         * modules/memchr-tests (Files, Depends-on, configure.ac):
25286         Likewise, to avoid implicit reliance on memchr module prereqs.
25287         * tests/test-memchr.c (main): Ensure proper masking.
25288         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25289         reads.
25290
25291         memchr: detect glibc Alpha bug
25292         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25294         Alpha.
25295         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25296         * tests/test-memchr.c (main): Enhance test.
25297         Reported by Nelson H. F. Beebe.
25298
25299 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25300
25301         fts, getcwd, glob: audit for dirfd returning -1
25302         * lib/fts.c (opendir): Remove #define; no longer used.
25303         (opendirat): New arg PDIR_FD.  All callers changed.
25304         (fts_build, _opendir2): Use new opendirat to avoid the need for
25305         dirfd, or for checking whether dirfd returns a negative value.
25306         Don't use opendir; always use openat followed by fdopendir.
25307         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25308         it.
25309         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25310         returns -1 here.
25311         * modules/fts (Depends-on): Remove dirfd.
25312         * modules/getcwd (Depends-on): Likewise.
25313
25314 2010-09-13  Eric Blake  <eblake@redhat.com>
25315
25316         float: fix broken MirBSD header
25317         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25318         * doc/posix-headers/float.texi (float.h): Document it.
25319
25320 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25321
25322         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25323         * lib/fts.c (opendirat): New arg extra_flags.
25324         (__opendir2): Use it to avoid following symlinks when opening
25325         a directory, if symlinks are not supposed to be followed.  See
25326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25327
25328         fdopendir: preserve argument fd before returning
25329         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25330         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25331         (fdopendir): Use them, arranging for FD to be open to the same
25332         directory that it was when it started.  (It might be temporarily
25333         closed while fdopendir is running, so this not thread- or
25334         signal-safe.)  Be careful to do the right thing even when file
25335         descriptors are scarce and dup fails with errno == EMFILE.  See
25336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25337
25338 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25339
25340         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25341         * NEWS: Document change.
25342         * m4/regex.m4: Disable test for regoff_t size.
25343
25344 2010-09-13  Jim Meyering  <meyering@redhat.com>
25345
25346         fts: don't operate on an invalid file descriptor after failed dup
25347         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25348         negative file descriptor.
25349
25350 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25351
25352         savedir: add streamsavedir, deprecate fdsavedir
25353         * NEWS: Mention deprecation of fdsavedir.
25354         * lib/savedir.c (streamsavedir): New extern function, whose name
25355         ends in "savedir" to be consistent with the others.  This differs
25356         from savedirstream in that it doesn't close its argument.  The
25357         next version of GNU tar will use this instead of fdsavedir, to
25358         avoid some race conditions and conserve file descriptors.
25359         (savedirstream): Reimplement as a wrapper around streamsavedir.
25360         (fdsavedir): Add a comment deprecating this function.  As far as
25361         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25362         * lib/savedir.h (streamsavedir): New decl.
25363         (fdsavedir): Add a comment deprecating this.
25364
25365 2010-09-10  Bruno Haible  <bruno@clisp.org>
25366
25367         langinfo: Fix last commit.
25368         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25369         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25371
25372 2010-09-10  Bruno Haible  <bruno@clisp.org>
25373
25374         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25375         * lib/progreloc.c (O_EXEC): Define fallback.
25376
25377 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25378
25379         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25380         * NEWS: Document recent changes to fcntl-h.
25381         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25382         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25383         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25384         Similarly for O_SEARCH; this last was already true, but not documented.
25385         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25386         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25387         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25388         Likewise.
25389         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25390         is zero, not whether it is defined.
25391         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25392         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25393         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25394
25395 2010-09-10  Bruno Haible  <bruno@clisp.org>
25396
25397         langinfo, nl_langinfo: Fix for IRIX 5.3.
25398         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25399         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25400         HAVE_LANGINFO_YESEXPR.
25401         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25402         HAVE_LANGINFO_YESEXPR.
25403         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25404         HAVE_LANGINFO_T_FMT_AMPM is 0.
25405         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25406         HAVE_LANGINFO_YESEXPR is 0.
25407         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25408         NOEXPR.
25409         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25410         * doc/posix-functions/nl_langinfo.texi: Likewise.
25411         Reported by Eric Blake.
25412
25413 2010-09-10  Bruno Haible  <bruno@clisp.org>
25414
25415         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25416         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25417         on FreeBSD 8.0 and OpenBSD 4.6.
25418         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25419         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25420         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25421         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25422         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25423         ac_includes_default.
25424         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25425
25426 2010-09-09  Eric Blake  <eblake@redhat.com>
25427
25428         strsignal: work around NetBSD bug
25429         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25430         * lib/string.in.h (includes): Likewise.
25431         * doc/posix-functions/strsignal.texi (strsignal): Document the
25432         bug.
25433         Reported by Nelson H. F. Beebe.
25434
25435         gnulib-tool: work with NetBSD /bin/sh
25436         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25437         (func_get_description, func_get_comment, func_get_status)
25438         (func_get_notice, func_get_applicability, func_get_filelist)
25439         (func_get_dependencies, func_get_autoconf_early_snippet)
25440         (func_get_autoconf_snippet, func_get_automake_snippet)
25441         (func_get_include_directive, func_get_link_directive)
25442         (func_get_license, func_get_maintainer, func_import): Avoid
25443         shell syntax errors from parsing syntax extensions.
25444
25445 2010-09-09  Bruno Haible  <bruno@clisp.org>
25446
25447         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25448         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25449         a reliable way to determine whether the 'alias' command works.
25450
25451 2010-09-08  Jim Meyering  <meyering@redhat.com>
25452
25453         init.sh: penalize a set-x-impaired shell; don't disqualify it
25454         * tests/init.sh: Too many shells corrupt application stderr when
25455         you set -x, so we can't afford to disqualify them, since at least
25456         on Irix-6.5, that would disqualify all bourne shells.
25457         Instead, use a two-pass approach.
25458         On the first pass, try to find a shell that meets the stricter
25459         condition that set -x does not corrupt stderr.
25460         If no shell meets the stricter condition, retest each candidate
25461         shell, but without that extra condition.  Finally, when
25462         VERBOSE=yes is requested and set -x might cause trouble, simply
25463         issue a warning and refrain from enabling debug output.
25464
25465 2010-09-08  Eric Blake  <eblake@redhat.com>
25466
25467         unsetenv: fix OpenBSD bug
25468         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25469         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25470         documentation.
25471         Reported by Jim Meyering.
25472
25473         strtod: work around IRIX 6.5 bug
25474         * lib/strtod.c (strtod): Reparse number on shorter string if
25475         exponent parse was invalid.
25476         * tests/test-strtod.c (main): Add check for "0x1p 2".
25477         Reported by Tom G. Christensen.
25478
25479         getopt: optimize previous patch
25480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25481         empty variable.  Speed up awk script.
25482         Reported by Paolo Bonzini.
25483
25484 2010-09-08  Jim Meyering  <meyering@redhat.com>
25485
25486         test.sh: disqualify shells for which set -x corrupts stderr
25487         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25488         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25489         appear in stderr output.  For example, this command:
25490             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25491         prints "P=1" on those two systems:
25492
25493 2010-09-08  Bruno Haible  <bruno@clisp.org>
25494
25495         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25496         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25497         commands, because some shells ignore redirections when there is an
25498         error in the command lookup.
25499         Reported by Eric Blake.
25500
25501 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25502
25503         * lib/regex.h: Fix a mention of `regex_compile' (should be
25504         `re_compile_pattern').
25505         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25506         (re_set_registers): Correct name of parameter in comment.
25507
25508         * doc/regex.texi: Add documentation for missing syntax flags.
25509         Remove commented-out documentation of defunct syntax option
25510         RE_NO_EMPTY_ALTS.
25511         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25512         Add documentation of re_set_registers.
25513         Document trick to re-use a pattern buffer by setting fastmap manually.
25514         Update documentation of struct re_pattern_buffer per public members.
25515         Uncomment documentation of equivalence class operators and
25516         collating symbol operators, since they are now implemented,
25517         Explain leftmost-longest matching in relation to alternatives.
25518         Tidy documentation of substring matching.
25519         Remove POSIX documentation, which is done better in
25520         glibc, and refer the reader there. Keep BSD API documentation, as
25521         that is not readily available elsewhere.
25522
25523 2010-09-07  Eric Blake  <eblake@redhat.com>
25524
25525         getopt: handle POSIXLY_CORRECT set but not exported
25526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25527         export state of POSIXLY_CORRECT, due to bash set -o posix.
25528         Reported by Dustin J. Mitchell.
25529
25530 2010-09-05  Bruno Haible  <bruno@clisp.org>
25531
25532         gnulib-tool: Highlight the changed options.
25533         * gnulib-tool (func_usage): Display the --import, --add-import,
25534         --remove-import explanations in bold font.
25535
25536 2010-09-06  Karl Berry  <karl@gnu.org>
25537
25538         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25539
25540 2010-09-05  Bruno Haible  <bruno@clisp.org>
25541
25542         uniwidth/width: Update comment.
25543         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25544         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25545
25546 2010-09-05  Bruno Haible  <bruno@clisp.org>
25547
25548         isinf, isnan: Relax license.
25549         * modules/isinf (License): Change from GPL to LGPL, with consent from
25550         Ben Pfaff.
25551         * modules/isnan (License): Likewise.
25552         Requested by Ludovic Courtès.
25553
25554 2010-09-04  Bruno Haible  <bruno@clisp.org>
25555
25556         gnulib-tool: Help migration from --import to --add-import or --update.
25557         * gnulib-tool: Emit a verbose error message when --import is used
25558         without any module name.
25559
25560 2010-09-04  Bruno Haible  <bruno@clisp.org>
25561
25562         Update doc about gnulib-tool.
25563         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25564         'gnulib-tool --update' in more detail.
25565         Reported by Eric Blake.
25566
25567 2010-09-04  Bruno Haible  <bruno@clisp.org>
25568
25569         gnulib-tool: Change --import. New options --add/remove-import.
25570         * gnulib-tool: New options --add-import, --remove-import.
25571         (func_usage): Document them.
25572         (have_associative): Define always.
25573         (func_import): In import mode, don't merge the specified settings with
25574         the cached settings. Implement remove-import mode.
25575         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25576         Explain when to use them versus --import.
25577         (Simple update): Use --add-import instead of --import.
25578         * NEWS: Mention the change.
25579
25580 2010-09-04  Bruno Haible  <bruno@clisp.org>
25581
25582         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25583         separate gnulib.mk.
25584
25585 2010-09-04  Bruno Haible  <bruno@clisp.org>
25586
25587         gnulib-tool: Don't talk about CVS any more.
25588         * gnulib-tool (func_usage, func_import): Write "version control"
25589         instead of CVS.
25590
25591 2010-09-04  Jim Meyering  <meyering@redhat.com>
25592
25593         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25594         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25595         false positives (whose names may be ill-chosen) when searching
25596         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25597         would cause a false-positive.
25598
25599         avoid coreutils "make distcheck" failure
25600         Coreutils tests with an absolute build directory name that contains
25601         a space.  Not quoting this directory name caused a failure.
25602         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25603         * tests/test-vc-list-files-cvs.sh: Likewise.
25604
25605 2010-09-04  Bruno Haible  <bruno@clisp.org>
25606
25607         gnulib-tool: Avoid error when run in a package without Makefile.am.
25608         * gnulib-tool: When collecting the m4dirs in a package that does not
25609         have a Makefile.am, eliminate those directories that contain no
25610         gnulib-cache.m4. Fix expression that counts these directories.
25611
25612 2010-09-04  Bruno Haible  <bruno@clisp.org>
25613
25614         update-copyright test: Improve output when perl is missing or too old.
25615         * tests/test-update-copyright.sh: Move test of Perl version down after
25616         the test whether Perl exists. Provide an explanation relating Perl's
25617         error message to Automake's SKIP: message.
25618
25619 2010-09-04  Bruno Haible  <bruno@clisp.org>
25620
25621         Don't augment PATH in TESTS_ENVIRONMENT.
25622         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25623         set abs_aux_dir instead of augmenting PATH.
25624         * modules/vc-list-files-tests (Makefile.am): Likewise.
25625         * tests/test-update-copyright.sh: Augment PATH here.
25626         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25627         path_prepend_.
25628         * tests/test-vc-list-files-git.sh: Likewise.
25629
25630 2010-09-04  Jim Meyering  <meyering@redhat.com>
25631
25632         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25633         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25634
25635 2010-09-04  Bruno Haible  <bruno@clisp.org>
25636
25637         strdup: Fix compilation error in C++ mode.
25638         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25639         the macro.
25640
25641 2010-09-04  Bruno Haible  <bruno@clisp.org>
25642
25643         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25644         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25645         macro into a function.
25646         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25647
25648 2010-09-04  Bruno Haible  <bruno@clisp.org>
25649
25650         Set PATH_SEPARATOR the same way autoconf does.
25651         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25652         the value of PATH_SEPARATOR the same way autoconf-generated configure
25653         scripts do.
25654         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25655         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25656
25657 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25658
25659         Set PATH_SEPARATOR the same way autoconf does.
25660         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25661         the same way autoconf-generated configure scripts do.
25662         * posix-modules: Likewise.
25663
25664 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25665
25666         hash: fix safe_hasher const typo
25667         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25668         const; otherwise, there is a type error later.
25669
25670 2010-09-02  Jim Meyering  <meyering@redhat.com>
25671
25672         test-update-copyright.sh: require perl 5.8.0
25673         * tests/test-update-copyright.sh: Require 5.8.0,
25674         which Tom G. Christensen has confirmed is adequate,
25675         while 5.6.1 is not.
25676
25677 2010-09-02  Eric Blake  <eblake@redhat.com>
25678
25679         tests: init.sh improvements for re-exec'ing with zsh
25680         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25681         -vx through shell re-exec.
25682         Reported by Tom G. Christensen.
25683
25684         wctype: fix typo in previous commit
25685         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25686         Reported by Ludovic Courtès.
25687
25688 2010-09-02  Jim Meyering  <meyering@redhat.com>
25689
25690         test-update-copyright.sh: skip test if Perl is too old
25691         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25692         Reported by Tom G. Christensen.
25693
25694 2010-09-02  Bruno Haible  <bruno@clisp.org>
25695
25696         wctype: Avoid compilation error on IRIX 6.5.30.
25697         * lib/wctype.in.h (iswblank): Declare with a replacement if
25698         REPLACE_ISWBLANK is set.
25699         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25700         declared. Set REPLACE_ISWBLANK.
25701         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25702         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25703         * doc/posix-headers/wctype.texi: Likewise.
25704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25705
25706 2010-09-01  Bruno Haible  <bruno@clisp.org>
25707
25708         New module 'socketlib'.
25709         * modules/socketlib: New file.
25710         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25711         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25712         * modules/sockets (Depends-on): Add socketlib.
25713         Suggested by Sam Steingold <sds@gnu.org>.
25714
25715 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25716
25717         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25718
25719         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25720         when one needs search access to a directory but not read access.
25721         On systems where it is available, it works in some cases where
25722         O_RDONLY does not, namely on directories that are searchable but
25723         not readable, and which need only to be searchable.  If O_SEARCH
25724         is not available, fall back to the traditional method of using
25725         O_RDONLY.
25726
25727         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25728         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25729         when opening a directory that needs only to be searchable.
25730         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25731         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25732         * lib/openat-proc.c (openat_proc_name): Likewise.
25733         * lib/openat.c (openat_needs_fchdir): Likewise.
25734         * lib/save-cwd.c (save_cwd): Likewise.
25735         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25736
25737 2010-08-28  Bruno Haible  <bruno@clisp.org>
25738
25739         New module 'host-cpu-c-abi'.
25740         * modules/host-cpu-c-abi: New file.
25741         * m4/host-cpu-c-abi.m4: New file, based on part of
25742         clisp/src/m4/general.m4.
25743         Requested by Sam Steingold <sds@gnu.org>.
25744
25745 2010-08-31  Eric Blake  <eblake@redhat.com>
25746         and Jim Meyering  <meyering@redhat.com>
25747
25748         hash: factor, and guard against misbehaving hasher function
25749         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25750         of table->hasher's return value.  Also protect against a hash value
25751         so large that adding it to table->bucket results in a NULL pointer.
25752         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25753         Use it in place of open-coded check-and-abort.
25754
25755 2010-08-30  Bruno Haible  <bruno@clisp.org>
25756
25757         hash: silence spurious clang warning
25758         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25759         Reported by Eric Blake.
25760
25761 2010-08-30  Eric Blake  <eblake@redhat.com>
25762
25763         strstr, memmem, strcasestr: avoid leaked shell message
25764         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25765         FreeBSD.
25766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25767         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25768
25769         tests: silence clang warning
25770         * tests/test-malloca.c (do_allocation): Avoid dead store.
25771
25772 2010-08-29  Bruno Haible  <bruno@clisp.org>
25773
25774         gettext: Fix recent mistake.
25775         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25776
25777 2010-08-29  Bruno Haible  <bruno@clisp.org>
25778
25779         selinux-h: Offer a --without-selinux option.
25780         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25781         --without-selinux was specified, skip all tests and define
25782         HAVE_SELINUX_SELINUX_H to 0.
25783         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25784         set LIB_SELINUX to empty.
25785         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25786         gl_LIBSELINUX. If --without-selinux was specified, replace
25787         selinux/context.h.
25788         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25789
25790 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25791             Bruno Haible  <bruno@clisp.org>
25792
25793         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25794         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25795         of HAVE_REALLOC.
25796         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25797         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25798         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25799         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25800
25801 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25802             Bruno Haible  <bruno@clisp.org>
25803
25804         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25805         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25806         HAVE_CALLOC.
25807         * lib/xmalloc.c: Update accordingly.
25808         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25809         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25810         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25811
25812 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25813             Bruno Haible  <bruno@clisp.org>
25814
25815         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25816         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25817         HAVE_MALLOC.
25818         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25819         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25820         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25821
25822 2010-08-29  Bruno Haible  <bruno@clisp.org>
25823
25824         Update modules list.
25825         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25826         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25827         (String handling <string.h>): Add astrxfrm.
25828         (File system functions): Add readlinkat.
25829
25830 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25831
25832         Tests for module 'realloc-gnu'.
25833         * modules/realloc-gnu-tests: New file.
25834         * tests/test-realloc-gnu.c: New file.
25835
25836         Tests for module 'calloc-gnu'.
25837         * modules/calloc-gnu-tests: New file.
25838         * tests/test-calloc-gnu.c: New file.
25839
25840         Tests for module 'malloc-gnu'.
25841         * modules/malloc-gnu-tests: New file.
25842         * tests/test-malloc-gnu.c: New file.
25843
25844 2010-08-28  Bruno Haible  <bruno@clisp.org>
25845
25846         Rename module 'realloc' -> 'realloc-gnu'.
25847         * modules/realloc-gnu: New file, copied from modules/realloc.
25848         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25849         obsolete.
25850         * modules/mgetgroups (Depends-on): Update.
25851         * doc/posix-functions/realloc.texi: Update.
25852         * NEWS: Mention the change.
25853
25854         Rename module 'calloc' -> 'calloc-gnu'.
25855         * modules/calloc-gnu: New file, copied from modules/calloc.
25856         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25857         obsolete.
25858         * doc/posix-functions/calloc.texi: Update.
25859         * NEWS: Mention the change.
25860
25861         Rename module 'malloc' -> 'malloc-gnu'.
25862         * modules/malloc-gnu: New file, copied from modules/malloc.
25863         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25864         obsolete.
25865         * modules/argp (Depends-on): Update.
25866         * modules/regex (Depends-on): Update.
25867         * doc/posix-functions/malloc.texi: Update.
25868         * NEWS: Mention the change.
25869
25870 2010-08-28  Eric Blake  <eblake@redhat.com>
25871
25872         pread, pwrite: add missing dependency
25873         * modules/pread (Depends-on): Add extensions.
25874         * modules/pwrite (Depends-on): Likewise.
25875
25876 2010-08-28  Bruno Haible  <bruno@clisp.org>
25877
25878         unistr/u*-strchr: Fix tests dependencies.
25879         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25880         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25881         Reported by Ian Beckwith <ianb@erislabs.net>.
25882
25883 2010-08-28  Bruno Haible  <bruno@clisp.org>
25884
25885         read-file: Don't occupy too much unused memory.
25886         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25887
25888 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25889             Eric Blake  <eblake@redhat.com>
25890             Bruno Haible  <bruno@clisp.org>
25891
25892         read-file: Avoid memory reallocations with regular files.
25893         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25894         (fread_file): With regular files, use the remaining length as the
25895         initial buffer size.  Check against overflow.
25896         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25897         sys_stat.
25898
25899 2010-08-28  Bruno Haible  <bruno@clisp.org>
25900
25901         ftello: Relax license.
25902         * modules/ftello (License): Relax to LGPLv2+.
25903         Reported by Eric Blake.
25904
25905 2010-08-28  Bruno Haible  <bruno@clisp.org>
25906
25907         Avoid relocwrapper link errors due to gnulib replacement functions.
25908         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25909         function.
25910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25911
25912 2010-08-28  Bruno Haible  <bruno@clisp.org>
25913
25914         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25915         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25916         defined.
25917         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25918         Suggested by Eric Blake.
25919
25920 2010-08-28  Bruno Haible  <bruno@clisp.org>
25921
25922         sys_socket, netdb: Ensure socklen_t gets defined.
25923         * modules/sys_socket (Depends-on): Add socklen.
25924         * modules/netdb (Depends-on): Likewise.
25925         * modules/getaddrinfo (Depends-on): Remove socklen.
25926         * modules/getsockopt (Depends-on): Likewise.
25927         * modules/setsockopt (Depends-on): Likewise.
25928         * tests/test-sys_socket.c: Check that socklen_t is defined.
25929         * tests/test-netdb.c: Likewise.
25930         * m4/socklen.m4: Update comments.
25931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25932
25933 2010-08-27  Eric Blake  <eblake@redhat.com>
25934
25935         login_tty: add missing dependency
25936         * modules/login_tty (Depends-on): Add pty.
25937
25938 2010-08-26  Eric Blake  <eblake@redhat.com>
25939
25940         lib-symbol-versions: fix m4 quoting
25941         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25942         format for AC_LINK_IFELSE.
25943
25944         glob: fix compile test
25945         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25946
25947         btowc: fix missing file
25948         * modules/btowc (Files): Also ship locale-fr.m4.
25949
25950         lseek: fix link test
25951         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25952         AC_LINK_IFELSE.
25953
25954         include_next: silence autoconf 2.68 warning
25955         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25956         AC_COMPILE_IFELSE as special.
25957         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25958         autoconf < 2.68.
25959
25960         acl: fix compilation test
25961         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25962         AC_COMPILE_IFELSE.
25963
25964 2010-08-26  Bruno Haible  <bruno@clisp.org>
25965
25966         Modernize AC_TRY_RUN invocations.
25967         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25968         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25969         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25970         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25971         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25972         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25975         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25976         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25977         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25978         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25979         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25980         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25982         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25983         gl_MBRLEN_NUL_RETVAL): Likewise.
25984         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25985         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25986         Likewise.
25987         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25988         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25989         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25990         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25991         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25992         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25993         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25994         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25995         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25996         Likewise.
25997         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25998         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26000         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26001         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26002         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26004         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26005         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26007
26008 2010-08-26  Bruno Haible  <bruno@clisp.org>
26009
26010         Modernize AC_TRY_LINK invocations.
26011         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26012         AC_TRY_LINK.
26013         * m4/argp.m4 (gl_ARGP): Likewise.
26014         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26015         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26016         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26017         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26018         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26019         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26020         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26021         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26022         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26025         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26026         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26027         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26028         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26029         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26030         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26031         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26032         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26033         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26034         Likewise.
26035         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26036         Likewise.
26037         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26038         Likewise.
26039         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26040         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26041         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26042         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26043         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26044         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26045         * m4/servent.m4 (gl_SERVENT): Likewise.
26046         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26047         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26048         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26049         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26050         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26051         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26052         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26053         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26054         * modules/tsearch-tests (configure.ac): Likewise.
26055
26056 2010-08-26  Bruno Haible  <bruno@clisp.org>
26057
26058         Modernize AC_TRY_COMPILE invocations.
26059         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26060         AC_TRY_COMPILE.
26061         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26062         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26063         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26064         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26065         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26066         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26067         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26068         * m4/lock.m4 (gl_LOCK): Likewise.
26069         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26070         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26071         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26072         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26073         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26074         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26075         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26077         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26078         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26079         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26080         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26081         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26082         extraneous semicolon.
26083
26084 2010-08-26  Jim Meyering  <meyering@redhat.com>
26085
26086         stat-time: relax license LGPL
26087         * modules/stat-time (License): Change from GPL to LGPL,
26088         with consent from all contributors, for use in libguile.
26089         Requested by Ludovic Courtès.
26090
26091 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26092
26093         poll: return immediately on POLLHUP.
26094         * lib/poll.c (poll): Always set timeout before wait_timeout is
26095         computed.
26096
26097 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26098
26099         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26100         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26101         rmdir ("dir/.//"), unlinkat.
26102
26103 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26104
26105         stdbool: avoid spurious failure with modern xlc
26106         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26107
26108 2010-08-24  Bruno Haible  <bruno@clisp.org>
26109
26110         getloadavg: simplify code
26111         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26112         gl_have_func. Update comments.
26113
26114 2010-08-24  Eric Blake  <eblake@redhat.com>
26115
26116         getloadavg: don't define SVR4 on cygwin
26117         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26118         only define SVR4 when -lkvm is required.
26119         Reported by Yaakov Selkowitz.
26120
26121 2010-08-24  Bruno Haible  <bruno@clisp.org>
26122
26123         priv-set: fix comment
26124         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26125
26126 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26127
26128         priv-set: fix comments
26129         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26130         to match code, as suggested by David Bartley in:
26131         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26132
26133 2010-08-23  Eric Blake  <eblake@redhat.com>
26134
26135         stdbool: avoid rejecting clang
26136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26137         * tests/test-stdbool.c: Enable more tests if using the system
26138         <stdbool.h> instead of the gnulib replacement.
26139         (main): Move xlc bug test to a runtime test for all compilers.
26140         Reported by Anders Kaseorg.
26141
26142         argz: fix shell quoting issue
26143         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26144         Reported by Charles Wilson.
26145
26146 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26147             Erik Faye-Lund <kusmabite@gmail.com>
26148
26149         poll, select: handle ERROR_BROKEN_PIPE.
26150         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26151         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26152         * lib/select.c (win32_compute_revents): Do not mark a pipe
26153         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26154
26155 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26156
26157         fts: allow compilation with C++
26158         * lib/fts_.h: Specify extern "C" linkage with C++.
26159
26160 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26161
26162         Fix gnulib-tool sed script de-commentation for AIX sed.
26163         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26164         sed.
26165
26166 2010-08-17  Eric Blake  <eblake@redhat.com>
26167
26168         test-stddef: test for (some) offsetof bugs
26169         * tests/test-stddef.c: Enhance test to ensure correct type of
26170         offsetof.
26171         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26172         that we are not fixing at this time.
26173
26174 2010-08-15  Bruno Haible  <bruno@clisp.org>
26175
26176         stpncpy: Allow stpncpy to be defined as a macro.
26177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26178         if it's already correctly declared.
26179         * lib/string.in.h (stpncpy): Undefine before redefining.
26180         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26181
26182 2010-08-14  Bruno Haible  <bruno@clisp.org>
26183
26184         Rename module 'memxfrm' to 'amemxfrm'.
26185         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26186         (amemxfrm): Renamed from memxfrm.
26187         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26188         (amemxfrm): Renamed from memxfrm.
26189         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26190         * NEWS: Mention the change.
26191         * MODULES.html.sh (String handling <string.h>): Update.
26192         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26193         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26194         * lib/unicase/u16-casexfrm.c: Likewise.
26195         * lib/unicase/u32-casexfrm.c: Likewise.
26196         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26197         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26198         * lib/uninorm/u16-normxfrm.c: Likewise.
26199         * lib/uninorm/u32-normxfrm.c: Likewise.
26200         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26201         memxfrm.
26202         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26203         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26204         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26205         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26206         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26207         Suggested by Paul Eggert.
26208
26209 2010-08-14  Bruno Haible  <bruno@clisp.org>
26210
26211         Tests for module 'astrxfrm'.
26212         * modules/astrxfrm-tests: New file.
26213         * tests/test-astrxfrm.c: New file.
26214
26215         New module 'astrxfrm'.
26216         * lib/astrxfrm.h: New file.
26217         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26218         * modules/astrxfrm: New file.
26219
26220 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26221
26222         regex: Tweak doc.
26223         * doc/regex.texi (Overview): Don't mention regex.c.
26224         (GNU Regular Expression Compiling): Likewise.
26225         (Match-end-of-line Operator): Mention 'not_eol'.
26226
26227 2010-08-14  Brian Gough  <bjg@gnu.org>
26228             Bruno Haible  <bruno@clisp.org>
26229
26230         git-merge-changelog: add doc relating to use with bzr and hg.
26231         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26232
26233 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26234
26235         pthread: fix pthread.h creation for srcdir != builddir
26236         * modules/pthread (Makefile.am): Fix the rule to work also in a
26237         non-srcdir build.
26238
26239 2010-08-13  Karl Berry  <karl@gnu.org>
26240
26241         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26242         * doc/posix-*/*: force line break before @url of POSIX
26243         specifications.
26244         Suggested by Werner Lemberg.
26245
26246 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26247
26248         strtod: fix const diagnostic
26249         * lib/strtod.c (strtod): Don't assign const char * to char *,
26250         as this elicits a warning from GCC when warnings are enabled.
26251
26252 2010-08-10  Pádraig Brady <P@draigbrady.com>
26253         and Eric Blake  <eblake@redhat.com>
26254
26255         copy-acl: ignore ENOTSUP on HP-UX
26256         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26257         so that it is available for HP-UX.
26258         * lib/copy-acl.c (qcopy_acl): Use it.
26259         Reported by Patrick M. Callahan.
26260
26261 2010-08-10  Eric Blake  <eblake@redhat.com>
26262
26263         open, chown: relax license
26264         * modules/open (License): Change to LGPLv2+, with consent by all
26265         authors, for use in augeas.
26266         * modules/chown (License): Likewise.
26267         * modules/lchown (Likewise): Likewise.
26268         Requested by Adam Stokes.
26269
26270 2010-08-09  Karl Berry  <karl@gnu.org>
26271
26272         * build-aux/ar-lib: new file, import from Automake.
26273         * config/srclist.txt: autocheck for updates.
26274
26275 2010-08-09  Eric Blake  <eblake@redhat.com>
26276
26277         readlinkat: adjust client modules
26278         * modules/areadlinkat (Depends-on): Use readlinkat, not
26279         symlinkat.
26280         * modules/areadlinkat-with-size (Depends-on): Likewise.
26281
26282         mknod: be more vocal about danger of running tests as root
26283         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26284         root, since that is just asking for problems.
26285         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26286
26287         readlinkat: split into its own module
26288         * modules/symlinkat: Split readlinkat...
26289         * modules/readlinkat: ...into separate module.
26290         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26291         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26292         * lib/symlinkat.c (readlinkat): Move...
26293         * lib/readlinkat.c: ...into new file.
26294         * modules/symlinkat-tests: Split readlinkat test...
26295         * modules/readlinkat-tests: ...into separate module.
26296         * tests/test-symlinkat.c: Split...
26297         * tests/test-readlinkat.c: ...into new file.
26298         * NEWS: Document the split.
26299         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26300         * lib/unistd.in.h (readlinkat): Likewise.
26301         Suggested by Bruno Haible.
26302
26303 2010-08-08  Bruno Haible  <bruno@clisp.org>
26304
26305         memxfrm: Speed up.
26306         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26307         that usually only one call to strxfrm is necessary for each string
26308         part.
26309         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26310
26311 2010-08-07  Karl Berry  <karl@gnu.org>
26312
26313         * doc/posix-headers/limits.texi,
26314         * doc/posix-functions/malloc.texi,
26315         * doc/posix-functions/strsignal.texi: missing @item.
26316         * doc/ld-version-script.texi: spurious leading i.
26317         * doc/regex.texi (Interval Operators): no commas inside @var.
26318
26319 2010-08-01  Bruno Haible  <bruno@clisp.org>
26320
26321         Integrate the regex documentation.
26322         * doc/gnulib.texi: Define 'cn' index.
26323         (Regular expressions): New a chapter that includes regex.texi and
26324         regexprops-generic.texi.
26325         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26326         syntax.
26327
26328         Whitespace cleanup.
26329         * doc/regex.texi: Remove trailing spaces.
26330
26331         Add regex documentation.
26332         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26333         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26334         Written by Kathy A. Hargreaves and Karl Berry.
26335
26336 2010-08-01  Bruno Haible  <bruno@clisp.org>
26337
26338         link: Update documentation.
26339         * doc/posix-functions/link.texi: Update regarding Solaris.
26340
26341 2010-07-31  Bruno Haible  <bruno@clisp.org>
26342
26343         Update modules list.
26344         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26345         (String handling <string.h>): Add memcmp2, memxfrm.
26346         (Container data structures): Add xlist, xsublist, xoset.
26347         (Core language properties): Add alignof, unused-parameter.
26348         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26349         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26350         (Unibyte characters <ctype.h>): New section.
26351         (String handling <string.h>): New section.
26352         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26353         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26354         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26355         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26356         tan, tanh, tanl, y0, y1, yn.
26357         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26358         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26359         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26360         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26361         unlockpt, vdprintf, vdprintf-posix.
26362         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26363         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26364         xconcat-filename.
26365         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26366         getdtablesize, pipe2, pipe2-safer.
26367         (Security): New section.
26368         (Networking functions): Add accept4.
26369         (Signal handling): Add sigpipe.
26370         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26371         mbmemcasecoll.
26372         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26373         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26374         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26375         pipe-filter-ii.
26376         (Misc): Add argp-version-etc, login_tty, parse-duration.
26377
26378 2010-07-31  Bruno Haible  <bruno@clisp.org>
26379
26380         Improve doc in MODULES.html.
26381         * modules/linkat (Description): Add the word "function".
26382         * modules/mkfifo (Description): Likewise.
26383         * modules/mknod (Description): Likewise.
26384         * modules/remove (Description): Likewise.
26385         * modules/renameat (Description): Likewise.
26386         * modules/stat (Description): Likewise.
26387         * modules/symlink (Description): Likewise.
26388         * modules/unlink (Description): Likewise.
26389
26390 2010-07-31  Bruno Haible  <bruno@clisp.org>
26391
26392         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26393         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26394         option --enable/disable-c++ instead of --enable/disable-cxx.
26395         * NEWS: Mention the change.
26396
26397 2010-07-31  Bruno Haible  <bruno@clisp.org>
26398
26399         readlink, areadlink: Relax test a bit.
26400         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26401         alternative to ENOTDIR.
26402         * tests/test-areadlink.h (test_areadlink): Likewise.
26403         Reported by Rainer Tammer.
26404
26405 2010-07-31  Bruno Haible  <bruno@clisp.org>
26406
26407         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26408         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26409         character, perform the search using U_STRCHR.
26410         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26411         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26412         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26413         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26414         Suggested by Paolo Bonzini.
26415
26416 2010-07-31  Bruno Haible  <bruno@clisp.org>
26417
26418         unistr/u*-strstr: Fix dependencies.
26419         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26420         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26421         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26422
26423 2010-07-31  Bruno Haible  <bruno@clisp.org>
26424
26425         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26426         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26427         the beginning of the loop.
26428         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26429         cases in 'switch' statement.
26430
26431         unistr/u8-strchr: Fix several bugs.
26432         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26433         the string. When not found, return NULL, not a pointer near the end.
26434
26435         More tests for unistr/u8-strchr.
26436         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26437         that the function does not read past the first occurrence of the byte
26438         being searched.
26439         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26440         * tests/unistr/test-u16-strchr.c (main): New function.
26441         * tests/unistr/test-u32-strchr.c (main): New function.
26442
26443 2010-07-31  Bruno Haible  <bruno@clisp.org>
26444
26445         posix-modules: Ignore backup files of documentation files.
26446         * posix-modules: grep only through files named *.texi.
26447
26448 2010-07-31  Bruno Haible  <bruno@clisp.org>
26449
26450         symlinkat: Fix documentation.
26451         * doc/posix-functions/readlinkat.texi: Fix module name.
26452
26453 2010-07-31  Bruno Haible  <bruno@clisp.org>
26454
26455         fchownat: Replace also when chown has the trailing slash bug.
26456         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26457         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26458         introduced on 2010-04-10.
26459         Reported by Rainer Tammer.
26460
26461 2010-07-31  Bruno Haible  <bruno@clisp.org>
26462
26463         linkat: Work around AIX 7.1 bug.
26464         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26465         whether linkat handles trailing slash correctly. If not, replace linkat
26466         and define LINKAT_TRAILING_SLASH_BUG.
26467         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26468         check whether (fd1,file1) points to a directory if file1 or file2 ends
26469         in a slash. Code taken from lib/link.c.
26470         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26471         Reported by Rainer Tammer.
26472
26473 2010-07-31  Bruno Haible  <bruno@clisp.org>
26474
26475         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26476         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26477         This disables an xlc optimization that was causing wrong test results.
26478         Reported by Rainer Tammer.
26479
26480 2010-07-31  Bruno Haible  <bruno@clisp.org>
26481
26482         iconv: Work around AIX 6.1..7.1 bug.
26483         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26484         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26485         cross-compiling, guess no on all versions of AIX.
26486         Reported by Rainer Tammer.
26487
26488 2010-07-31  Bruno Haible  <bruno@clisp.org>
26489
26490         readlink: Relax test a bit.
26491         * tests/test-readlink.h (test_readlink): Allow different errno value
26492         when readlink is called with a file name that ends in / and refers to
26493         a file.
26494         Suggested by Eric Blake.
26495         Reported by Rainer Tammer.
26496
26497 2010-07-31  Bruno Haible  <bruno@clisp.org>
26498
26499         copysign: Does not require -lm on glibc systems.
26500         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26501         gl_COMMON_DOUBLE_MATHFUNC.
26502         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26503
26504 2010-07-31  Bruno Haible  <bruno@clisp.org>
26505
26506         duplocale: Work around AIX 7.1 bug.
26507         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26508         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26509         * lib/duplocale.c (rpl_duplocale): Update comment.
26510         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26511         Reported by Rainer Tammer.
26512
26513 2010-07-30  Bruno Haible  <bruno@clisp.org>
26514
26515         dirfd: Avoid link error on AIX 7.1.
26516         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26517         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26518         exist, set REPLACE_DIRFD.
26519         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26520         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26521         * doc/posix-functions/dirfd.texi: Update.
26522         Reported by Rainer Tammer.
26523
26524 2010-07-30  Eric Blake  <eblake@redhat.com>
26525
26526         strtod: next round of AIX fixes
26527         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26528         exponent.
26529         * tests/test-strtod.c (main): Enhance tests.
26530         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26531         Reported by Rainer Tammer.
26532
26533         futimens: fix configure check
26534         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26535         Reported by Bruno Haible.
26536
26537 2010-07-30  Bruno Haible  <bruno@clisp.org>
26538
26539         getline: Update regarding AIX.
26540         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26541         Reported by Rainer Tammer.
26542
26543 2010-07-30  Bruno Haible  <bruno@clisp.org>
26544
26545         wcwidth: Drop replacement on AIX 7.
26546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26547         AIX 7.
26548         Reported by Rainer Tammer.
26549
26550 2010-07-30  Bruno Haible  <bruno@clisp.org>
26551
26552         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26553         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26554         a 'char *'.
26555         Reported by Rainer Tammer.
26556
26557 2010-07-30  Bruno Haible  <bruno@clisp.org>
26558
26559         unlink: Update regarding AIX.
26560         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26561         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26562         Reported by Rainer Tammer.
26563
26564 2010-07-30  Bruno Haible  <bruno@clisp.org>
26565
26566         symlink: Update regarding AIX.
26567         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26568         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26569         Reported by Rainer Tammer.
26570
26571 2010-07-30  Bruno Haible  <bruno@clisp.org>
26572
26573         strndup: Update regarding AIX.
26574         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26575         AIX 7.
26576         Reported by Rainer Tammer.
26577
26578 2010-07-30  Bruno Haible  <bruno@clisp.org>
26579
26580         stat: Update regarding AIX.
26581         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26582         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26583         Reported by Rainer Tammer.
26584
26585 2010-07-30  Bruno Haible  <bruno@clisp.org>
26586
26587         truncl: Fix autoconf test.
26588         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26589         whether truncl works.
26590         Reported by Rainer Tammer.
26591
26592 2010-07-30  Bruno Haible  <bruno@clisp.org>
26593
26594         round: Update regarding AIX.
26595         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26596         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26597         Reported by Rainer Tammer.
26598
26599 2010-07-30  Bruno Haible  <bruno@clisp.org>
26600
26601         rename: Update regarding AIX.
26602         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26603         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26604         Reported by Rainer Tammer.
26605
26606 2010-07-30  Bruno Haible  <bruno@clisp.org>
26607
26608         printf.m4: Update regarding AIX.
26609         * m4/printf.m4: Update comments regarding AIX.
26610         Reported by Rainer Tammer.
26611
26612 2010-07-30  Bruno Haible  <bruno@clisp.org>
26613
26614         iconv: Update regarding AIX.
26615         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26616         AIX 7.
26617         Reported by Rainer Tammer.
26618
26619 2010-07-30  Bruno Haible  <bruno@clisp.org>
26620
26621         getopt: Update regarding AIX.
26622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26623         no on AIX.
26624         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26625         Reported by Rainer Tammer.
26626
26627 2010-07-30  Bruno Haible  <bruno@clisp.org>
26628
26629         ldexpl; Update regarding AIX.
26630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26631         on AIX 7.
26632         Reported by Rainer Tammer.
26633
26634 2010-07-30  Bruno Haible  <bruno@clisp.org>
26635
26636         frexpl: Update regarding AIX.
26637         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26638         on AIX 7.
26639         Reported by Rainer Tammer.
26640
26641 2010-07-30  Bruno Haible  <bruno@clisp.org>
26642
26643         open, fopen: Update regarding AIX.
26644         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26645         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26646         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26647         * doc/posix-functions/fopen.texi: Likewise.
26648         Reported by Rainer Tammer.
26649
26650 2010-07-30  Bruno Haible  <bruno@clisp.org>
26651
26652         chown: Update doc regarding AIX.
26653         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26654         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26655         Reported by Rainer Tammer.
26656
26657 2010-07-30  Eric Blake  <eblake@redhat.com>
26658
26659         strtod: fix bug in replacement function on AIX
26660         * lib/strtod.c (strtod): Special case broken "0x" parse in
26661         underlying strtod.
26662         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26663         * doc/posix-functions/strtod.texi (strtod): Likewise.
26664         Reported by Rainer Tammer.
26665
26666 2010-07-30  Bruno Haible  <bruno@clisp.org>
26667
26668         mbrlen: Fix cross-compilation guess for AIX.
26669         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26670         guess. Leftover from 2008-12-22.
26671
26672 2010-07-30  Bruno Haible  <bruno@clisp.org>
26673
26674         mbrtowc: Fix cross-compilation guess for AIX.
26675         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26676         guess. Leftover from 2008-12-21.
26677
26678 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26679
26680         init.sh: work around trap limitation of some shells
26681         * tests/init.sh (setup_): Move exit trap outside of shell function.
26682
26683 2010-07-29  Eric Blake  <eblake@redhat.com>
26684
26685         strtod: aid debugging
26686         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26687         understanding why strtod is rejected.
26688
26689 2010-07-28  Bruno Haible  <bruno@clisp.org>
26690
26691         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26692         * lib/unistr/u8-chr.c: Include <string.h>.
26693         * tests/unistr/test-u8-chr.c: Likewise.
26694         * tests/unistr/test-u16-chr.c: Likewise.
26695         * tests/unistr/test-u32-chr.c: Likewise.
26696         * tests/unistr/test-u8-strchr.c: Likewise.
26697         * tests/unistr/test-u16-strchr.c: Likewise.
26698         * tests/unistr/test-u32-strchr.c: Likewise.
26699         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26700         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26701         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26702         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26703
26704 2010-07-28  Bruno Haible  <bruno@clisp.org>
26705
26706         Use spaces for indentation, not tabs.
26707         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26708
26709 2010-07-27  Bruno Haible  <bruno@clisp.org>
26710
26711         mbspcasecmp: Fix function specification.
26712         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26713         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26714         Reported by Eric Blake <eblake@redhat.com>.
26715
26716 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26717
26718         timespec: use cast and not conditional, as truncation isn't possible
26719         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26720         instead of a conditional.  Comment about the situation in more detail.
26721         This undoes most of the 2009-10-29 patch.
26722
26723 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26724
26725         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26726         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26727         * lib/unistr/u8-strchr.c: Likewise.
26728         * modules/unistr/u8-chr: Depend on memchr.
26729
26730         unistr/u*-strchr: add tests
26731         * modules/unistr/u8-strchr-tests: New file.
26732         * modules/unistr/u16-strchr-tests: New file.
26733         * modules/unistr/u32-strchr-tests: New file.
26734         * tests/unistr/test-strchr.h: New file.
26735         * tests/unistr/test-u8-strchr.c: New file.
26736         * tests/unistr/test-u16-strchr.c: New file.
26737         * tests/unistr/test-u32-strchr.c: New file.
26738
26739         unistr/u*-chr: test multibyte sequences more
26740         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26741         test vector.
26742         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26743         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26744         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26745
26746         unistr/u*-chr: test multibyte sequences
26747         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26748
26749         unistr/u*-chr: prepare for multibyte tests
26750         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26751         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26752         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26753         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26754         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26755         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26756
26757 2010-07-18  Bruno Haible  <bruno@clisp.org>
26758
26759         unistr/u8-strchr: Optimize non-ASCII argument case.
26760         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26761         because the first byte often matches anyway.
26762         Reported by Pádraig Brady <P@draigbrady.com>.
26763
26764 2010-07-15  Karl Berry  <karl@gnu.org>
26765
26766         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26767
26768 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26769
26770         getcwd: on Solaris, work better if ancestors are inaccessible
26771         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26772         buffer and size, try again with a large buffer.  This works better
26773         on Solaris, since its getcwd succeeds even if the path to the root
26774         is inaccessible, and this is helpful in common cases such as .zfs
26775         hidden directories.  Problem reported by J Chapman Flack in
26776         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26777         Use system getcwd if it's declared, not merely if it's partly
26778         working; use the partly-working test only to avoid needless effort
26779         if the system getcwd fails.
26780         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26781         comment that was already obsolete and is now even more obsolete.
26782         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26783         now might call strdup.
26784
26785 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26786
26787         pthread: Add enough so that coreutils/src/sort.c compiles.
26788         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26789         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26790         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26791         Include <sys/types.h>, in case it defines pthread_t.
26792         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26793         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26794         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26795         (pthread_rwlockattr_t, pthread_spinlock_t):
26796         New typedefs, if HAVE_PTHREAD_T is not defined.
26797         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26798         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26799         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26800         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26801         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26802         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26803         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26804         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26805         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26806         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26807         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26808         New macros.
26809         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26810         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26811         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26812         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26813         (pthread_spin_unlock): New dummy functions.
26814         (pthread_create): Return EAGAIN; don't set errno.
26815         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26816         require AC_C_INLINE.
26817         * modules/pthread (Depends-on): Add sched, time.
26818         (pthread.h): Use AM_V_GEN.
26819
26820 2010-07-13  Bruno Haible  <bruno@clisp.org>
26821
26822         striconveh: Don't malloc memory if the result buffer is sufficient.
26823         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26824         buffer if its size is sufficient.
26825         Reported by Ludovic Courtès <ludo@gnu.org>.
26826
26827 2010-07-13  Bruno Haible  <bruno@clisp.org>
26828
26829         strtod: Add safety check.
26830         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26831
26832 2010-07-12  Bruno Haible  <bruno@clisp.org>
26833
26834         Unify tests that set gl_cv_func_ldexpl_no_libm.
26835         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26836         gl_FUNC_LDEXPL.
26837         (gl_FUNC_LDEXPL): Invoke it.
26838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26839
26840 2010-07-12  Bruno Haible  <bruno@clisp.org>
26841
26842         Unify tests that set gl_cv_func_ldexp_no_libm.
26843         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26844         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26845         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26846         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26847         * modules/strtod (Files): Add m4/ldexp.m4.
26848
26849 2010-07-12  Bruno Haible  <bruno@clisp.org>
26850
26851         Unify tests that set gl_cv_func_frexpl_no_libm.
26852         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26853         gl_FUNC_FREXPL_NO_LIBM.
26854         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26856
26857 2010-07-12  Bruno Haible  <bruno@clisp.org>
26858
26859         Unify tests that set gl_cv_func_frexp_no_libm.
26860         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26861         gl_FUNC_FREXP_NO_LIBM.
26862         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26863         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26864
26865 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26866
26867         memcoll: clarify sizes versus lengths, document better, and tweak perf
26868         * lib/memcoll.c (strcoll_loop, memcoll0):
26869         Improve quality of descriptive comments.  Name variables
26870         consistently as to whether they are lengths (which do not include
26871         terminating null) versus sizes (which do).
26872         * lib/xmemcoll.c (xmemcoll0): Likewise.
26873         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26874         returned when s1size == 0; this is easier to compile and saves
26875         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26876
26877 2010-07-12  Bruno Haible  <bruno@clisp.org>
26878
26879         Tests for module '_Exit'.
26880         * modules/_Exit-tests: New file.
26881         * tests/test-_Exit.sh: New file.
26882         * tests/test-_Exit.c: New file.
26883
26884         New module '_Exit'.
26885         * lib/stdlib.in.h (__attribute__): New macro.
26886         (_Exit): New declaration.
26887         * lib/_Exit.c: New file.
26888         * m4/_Exit.m4: New file.
26889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26891         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26892         * modules/_Exit: New file.
26893         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26894         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26895
26896 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26897
26898         strtod: make it more-accurate typically, and don't require libm
26899         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26900         Include limits.h.  Don't include string.h.
26901         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26902         (locale_isspace): New function, so that no casts are needed to
26903         check whether *s is a space.
26904         (ldexp): Provide an unused dummy if not available.
26905         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26906         (strtod): Use them.  This implementation prefers to use the
26907         underlying strtod if available, falling back on our own code
26908         only to fix known bugs.  This is more likely to produce an
26909         accurate result.  Also, it avoids the use of libm functions.
26910         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26911         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26912         was absent, but it caused a test failure with coreutils.
26913         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26914         with libm.
26915         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26916         * modules/strtod-tests (Makefile.am): Likewise.
26917
26918 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26919             Bruno Haible  <bruno@clisp.org>
26920
26921         unistr/u8-strchr: Optimize ASCII argument case.
26922         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26923
26924 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         (x)memcoll: minor tweaks
26927         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26928         is after the type that it qualifies.
26929         (memcoll0): Likewise.
26930         * lib/memcoll.h (memcoll0): Likewise.
26931         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26932         * lib/xmemcoll.h (xmemcoll0): Likewise.
26933         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26934         differs from memcoll in that the NUL byte is part of the argument.
26935         Omit the abort-checks, as performance is a real issue here.  Plus,
26936         the checks were wrong anyway (an off-by-one error).  Omit local
26937         variable 'diff', as it's a bit clearer that way.
26938         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26939         no longer needed.
26940
26941 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26942
26943         (x)memcoll: speedup when input is known to be NUL delimited
26944         * lib/memcoll.c: Include stdlib.
26945         (memcoll0): New function.
26946         (strcoll_loop): New function, refactored for use in both memcoll
26947         and memcoll0.
26948         * lib/memcoll.h (memcoll0): Add prototype.
26949         * lib/xmemcoll.c (xmemcoll0): New function.
26950         (collate_error): New function, refactored for use in both xmemcoll
26951         and xmemcoll0.
26952         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26953         * m4/memcoll.m4: add inline invocation.
26954
26955 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26956
26957         * build-aux/bootstrap: Remove any local translations
26958         from the translation project synchronization directory,
26959         so that local only translations are not distributed.
26960
26961 2010-07-04  Bruno Haible  <bruno@clisp.org>
26962
26963         fsusage: Clarify which code applies to which platforms.
26964         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26965         platform.
26966         * lib/fsusage.c (get_fs_usage): Likewise.
26967
26968 2010-07-04  Bruno Haible  <bruno@clisp.org>
26969
26970         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26971         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26972         Reported by Martin Lambers <marlam@marlam.de>.
26973
26974 2010-07-04  Jim Meyering  <meyering@redhat.com>
26975
26976         hash: once again explicitly disallow insertion of NULL
26977         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26978         inserting a NULL pointer cannot work with these functions.
26979         Add a comment with details.
26980         This reverts part of the 2010-07-01 commit, 5bef1a35
26981         "hash: extend module to deal with non-pointer keys".
26982
26983 2010-07-01  Bruno Haible  <bruno@clisp.org>
26984
26985         stdbool: Update doc.
26986         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26987         Info from Christian Weisgerber <naddy@mips.inka.de>.
26988
26989 2010-07-01  Jim Meyering  <meyering@redhat.com>
26990
26991         hash: extend module to deal with non-pointer keys
26992         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26993         but that allows insertion of non-pointer entries.
26994         Do not disallow an ENTRY value of NULL.
26995         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26996         * lib/hash.h (hash_insert0): Declare.
26997
26998 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26999
27000         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27001         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27002         not present (i.e. with autoconf 2.59 and when using gettextize, not
27003         gnulib), require AC_GNU_SOURCE instead.
27004
27005 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27006
27007         idpriv-drop: Fix tests.
27008         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27009         not to the test-idpriv-droptemp program.
27010
27011 2010-06-29  Bruno Haible  <bruno@clisp.org>
27012
27013         string: Fix syntax error with g++ 2.96.
27014         * lib/string.in.h (__pure__): Remove definition.
27015         (_GL_ATTRIBUTE_PURE): New macro.
27016         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27017         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27018         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27019
27020 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27021
27022         unitypes: Fix bug introduced on 2010-05-18.
27023         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27024
27025 2010-06-22  Eric Blake  <eblake@redhat.com>
27026
27027         memmem: slight optimization
27028         * lib/str-two-way.h (critical_factorization): Update comments.
27029         Reduce work during factorization phase.
27030         Reported by Carlos Bueno <carlos@bueno.org>.
27031
27032 2010-06-21  Bruno Haible  <bruno@clisp.org>
27033
27034         Fix HAVE_CALLOC_POSIX misnomer.
27035         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27036         !HAVE_CALLOC_POSIX.
27037         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27038         HAVE_CALLOC_POSIX.
27039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27040         instead of HAVE_CALLOC_POSIX.
27041         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27042         HAVE_CALLOC_POSIX.
27043
27044         Use modern idiom for calloc() replacement.
27045         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27046         AC_FUNC_CALLOC.
27047         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27048         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27049         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27050         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27051         (gl_REPLACE_CALLOC): New macro.
27052
27053 2010-06-21  Bruno Haible  <bruno@clisp.org>
27054
27055         Fix HAVE_REALLOC_POSIX misnomer.
27056         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27057         !HAVE_REALLOC_POSIX.
27058         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27059         HAVE_REALLOC_POSIX.
27060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27061         instead of HAVE_REALLOC_POSIX.
27062         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27063         HAVE_REALLOC_POSIX.
27064
27065         Use modern idiom for realloc() replacement.
27066         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27067         AC_FUNC_REALLOC.
27068         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27069         Autoconf's AC_FUNC_REALLOC.
27070         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27071         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27072         (gl_REPLACE_REALLOC): New macro.
27073         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27074
27075 2010-06-21  Bruno Haible  <bruno@clisp.org>
27076
27077         Fix HAVE_MALLOC_POSIX misnomer.
27078         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27079         !HAVE_MALLOC_POSIX.
27080         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27081         HAVE_MALLOC_POSIX.
27082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27083         instead of HAVE_MALLOC_POSIX.
27084         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27085         HAVE_MALLOC_POSIX.
27086
27087         Use modern idiom for malloc() replacement.
27088         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27089         AC_FUNC_MALLOC.
27090         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27091         Autoconf's AC_FUNC_MALLOC.
27092         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27093         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27094         (gl_REPLACE_MALLOC): New macro.
27095         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27096
27097 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27098
27099         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27100         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27101         This macro takes 3 arguments, not 4.
27102
27103 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27104
27105         ipv6: fix detection under mingw
27106         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27107         in6_addr.
27108
27109 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27110
27111         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27112         that strtod() works when cross-compiling to a glibc version known
27113         to work.
27114
27115 2010-06-15  Bruno Haible  <bruno@clisp.org>
27116
27117         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27118
27119 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27120
27121         select: Correct timeout.
27122         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27123
27124 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27125
27126         git-version-gen: init shell var to avoid env var influence
27127         * build-aux/git-version-gen (v): Init shell var to empty.
27128
27129 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27130
27131         priv-set: Don't assume that priv.h exists merely because getppriv does.
27132         See Jan Andersen's bug report about AIX 5L in
27133         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27134         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27135         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27136         * lib/priv-set.h: Likewise.
27137         * tests/test-priv-set.c: Likewise.
27138
27139 2010-06-13  Bruno Haible  <bruno@clisp.org>
27140
27141         relocatable: Make it easier to test whether to install wrappers.
27142         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27143         RELOCATABLE_VIA_WRAPPER.
27144
27145 2010-06-13  Bruno Haible  <bruno@clisp.org>
27146
27147         gnulib-tool: Display specified modules and dependencies differently.
27148         * gnulib-tool (func_show_module_list): New function.
27149         (func_import, func_create_testdir): Invoke it.
27150         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27151
27152 2010-06-13  Bruno Haible  <bruno@clisp.org>
27153
27154         gnulib-tool: Align code of func_import and func_create_testdir.
27155         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27156         specified_modules.
27157
27158 2010-06-12  Jim Meyering  <meyering@redhat.com>
27159
27160         test-inttostr: avoid spurious failure on Solaris 9
27161         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27162         to accept "%ju".  Reported by Bruno Haible.
27163
27164 2010-06-11  Jim Meyering  <meyering@redhat.com>
27165
27166         test-sys_socket: mark variables as used more readably
27167         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27168         as "used" explicitly via (void) statement casts.  This is more
27169         readable than using them in an artificial return expression.
27170         Suggestion from Bruno Haible.
27171
27172 2010-06-11  Bruno Haible  <bruno@clisp.org>
27173
27174         Avoid some more warnings from "gcc -Wwrite-strings".
27175         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27176         to 'const char *'.
27177         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27178         * tests/test-c-strcasestr.c (main): Likewise.
27179         * tests/test-mbscasestr1.c (main): Likewise.
27180         * tests/test-mbscasestr2.c (main): Likewise.
27181         * tests/test-memmem.c (main): Likewise.
27182         * tests/test-strstr.c (main): Likewise.
27183         * tests/test-strcasestr.c (main): Likewise.
27184
27185 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27186
27187         init.sh: change framework_failure_ to fail with status 99, not 1
27188         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27189         automake's parallel-tests rule that this is an unexpected failure,
27190         even if the test is listed in XFAIL_TESTS.
27191
27192 2010-06-11  Jim Meyering  <meyering@redhat.com>
27193
27194         test-inttostr: avoid warnings about 4-6KB literal strings
27195         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27196         Include "macros.h", for its definition of ASSERT.
27197         (CK): s/assert/ASSERT/
27198         * modules/inttostr-tests (Files): Add macros.h.
27199
27200         init.sh: don't use $ME_ or skip_ before they are defined
27201         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27202         their first uses.  Also hoist their companions: warn_, fail_,
27203         framework_failure_, $stderr_fileno.  Prompted by a patch from
27204         Stefano Lattarini.
27205
27206         test-sys_socket: avoid set-but-not-used warnings from gcc
27207         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27208         avoid warning about set-but-not-used variables.
27209
27210         test-xvasprintf: avoid 'const' discard warnings
27211         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27212         "const" when assigning from literal strings.
27213         (test_xasprintf): Add "void" in function argument list to placate
27214         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27215
27216         tests: avoid compilation warnings in argmatch and exclude tests...
27217         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27218         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27219         Since it always exits, declare with the "noreturn" attribute.
27220         * tests/test-argmatch.c: Likewise.
27221
27222         tests: avoid 'const' discard warnings in mbsstr tests
27223         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27224         * tests/test-mbsstr2.c (main): Likewise.
27225
27226         test-verify: avoid warning from gcc's -Wmissing-declarations
27227         * tests/test-verify.c (function): Declare to be static.
27228
27229         test-inttostr.c: include <string.h> for use of strcmp
27230         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27231
27232         test-linkat: avoid failed assertion on "other" architectures
27233         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27234         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27235         sparc: https://bugs.launchpad.net/bugs/591968
27236
27237 2010-06-11  Jim Meyering  <meyering@redhat.com>
27238
27239         printf.m4: avoid autoconf's "Expanded Before Required" warning
27240         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27241         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27242         autoconf warning.
27243
27244 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27245
27246         Replacement header templates are now named with ".in", not "_".
27247         * doc/gnulib-intro.texi: Correct.
27248
27249 2010-06-10  Jim Meyering  <meyering@redhat.com>
27250
27251         inttostr-tests: depend on snprintf, not snprintf-posix
27252         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27253         snprintf-posix, to avoid this aclocal failure:
27254           missing file gnulib-tests/vasnprintf.c
27255           configure.ac:45: error: expected source file, required through \
27256           AC_LIBSOURCES, not found
27257
27258 2010-06-10  Jim Meyering  <meyering@redhat.com>
27259
27260         inttostr: add a new function, inttostr, and tests
27261         The namesake function was not available.  The existence of the
27262         template file, inttostr.c makes its addition nontrivial.
27263         * lib/anytostr.c: Rename from inttostr.c.
27264         (anytostr): Rename from inttostr.
27265         * lib/inttostr.c: New file.
27266         * modules/inttostr (Files): Add anytostr.c.
27267         (Makefile.am): Set lib_SOURCES instead of ...
27268         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27269         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27270         * lib/offtostr.c: Likewise.
27271         * lib/uinttostr.c: Likewise.
27272         * lib/umaxtostr.c: Likewise.
27273         * modules/inttostr-tests: New file.
27274         * tests/test-inttostr.c: New file.  Test these functions.
27275
27276 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27277             Bruno Haible  <bruno@clisp.org>
27278
27279         Add "Extending Gnulib" chapter to manual.
27280         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27281         chapter.
27282         (Extending Gnulib): New chapter.
27283         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27284         chapter.
27285
27286 2010-06-09  Bruno Haible  <bruno@clisp.org>
27287
27288         Avoid relocwrapper link errors due to gnulib replacement functions.
27289         * lib/areadlink.c: Use the system's malloc, realloc functions.
27290         (areadlink): Set errno to ENOMEM explicitly.
27291         * modules/areadlink (Depends-on): Remove malloc-posix.
27292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27293
27294 2010-06-09  Bruno Haible  <bruno@clisp.org>
27295
27296         Avoid relocwrapper link errors due to gnulib replacement functions.
27297         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27298         * lib/malloca.c: Likewise.
27299         * lib/relocatable.c: Likewise.
27300         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27301         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27302         * lib/setenv.c: Use the system's malloc, realloc functions.
27303         * lib/strerror.c: Use the system's sprintf function.
27304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27305
27306 2010-06-04  Bruno Haible  <bruno@clisp.org>
27307
27308         Prefer documented low-level autoconf macro names.
27309         * m4/lib-link.m4: Use m4_translit instead of translit.
27310         * m4/environ.m4: Likewise.
27311         * m4/mathfunc.m4: Likewise.
27312         * m4/onceonly.m4: Likewise.
27313         * m4/stdint.m4: Likewise.
27314         Suggested by Eric Blake.
27315
27316 2010-06-04  Martin Lambers  <marlam@marlam.de>
27317             Bruno Haible  <bruno@clisp.org>
27318
27319         havelib: Allow library names with '+' characters.
27320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27321         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27322
27323 2010-06-09  Bruno Haible  <bruno@clisp.org>
27324
27325         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27326         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27327         realloc failed.
27328
27329 2010-06-08  Peter Simons  <simons@cryp.to>
27330
27331         maint.mk: make the news-check rule more configurable
27332         * top/maint.mk (news-check-lines-spec): New variable.
27333         (news-check): Use "sed -n 1,10p" in place of "head".
27334
27335 2010-06-07  Jim Meyering  <meyering@redhat.com>
27336
27337         do-release-commit-and-tag: fix typo in --help
27338         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27339
27340         regex: avoid new dead-code warning with gcc-4.6.0
27341         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27342         if-block containing a while-loop.  It's been unused for at least
27343         5 years.
27344
27345 2010-06-05  Bruno Haible  <bruno@clisp.org>
27346
27347         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27348         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27349
27350 2010-06-04  Bruno Haible  <bruno@clisp.org>
27351
27352         Update to GNU gettext 0.18.1.
27353         * modules/gettext (configure.ac): Require gettext infrastructure from
27354         version 0.18.1.
27355
27356 2010-06-03  Bruno Haible  <bruno@clisp.org>
27357
27358         Don't use AC_LIBOBJ with file names in subdirectories.
27359         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27360         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27361         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27362         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27363         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27364         gl_LIBUNISTRING_LIBSOURCE.
27365         (Makefile.am): Augment lib_SOURCES here, conditionally.
27366         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27367
27368 2010-06-03  Bruno Haible  <bruno@clisp.org>
27369
27370         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27371         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27372         expansion does not end with a newline.
27373         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27374         unnecessary newline.
27375
27376 2010-06-03  Bruno Haible  <bruno@clisp.org>
27377
27378         Reduce dependencies.
27379         * tests/test-quotearg.h: New file, extracted from
27380         tests/test-quotearg.c.
27381         * tests/test-quotearg-simple.c: New file, extracted from
27382         tests/test-quotearg.c.
27383         * tests/test-quotearg.c: Don't include <ctype.h>.
27384         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27385         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27386         use_quote_double_quotes, use_quotearg_colon): Moved to
27387         tests/test-quotearg.h.
27388         (results_g, flag_results, custom_quotes, custom_results): Moved
27389         to tests/test-quotearg-simple.c.
27390         (main): Moved the part that does not depend on gettext to
27391         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27392         performed.
27393         * modules/quotearg-simple: New file.
27394         * modules/quotearg-simple-tests: New file.
27395         * modules/quotearg (Depends-on): Add quotearg-simple.
27396         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27397         (Files): Add tests/test-quotearg.h.
27398         Reported by Paolo Bonzini.
27399
27400 2010-06-03  Bruno Haible  <bruno@clisp.org>
27401
27402         Reduce dependencies.
27403         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27404
27405 2010-06-03  Bruno Haible  <bruno@clisp.org>
27406
27407         time: Undefine more broken macros.
27408         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27409         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27410         Reported by Eric Blake.
27411
27412 2010-06-03  Bruno Haible  <bruno@clisp.org>
27413
27414         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27415         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27416         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27417         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27418         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27419         Reported by Ludovic Courtès <ludo@gnu.org>.
27420
27421 2010-06-02  Eric Blake  <eblake@redhat.com>
27422
27423         time: work with mingw + pthreads-win32 library
27424         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27425         if timespec is defined only in pthread.h.
27426         * modules/time (Makefile.am): Substitute it.
27427         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27428         <pthread.h>, when needed.
27429         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27430         from the library.
27431
27432 2010-05-31  Bruno Haible  <bruno@clisp.org>
27433
27434         Avoid expanding two macros in the wrong order.
27435         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27436         gl_LIBUNISTRING if it is defined.
27437         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27438         autoconf >= 2.64.
27439         Reported by Ludovic Courtès <ludo@gnu.org>.
27440
27441 2010-05-27  Jim Meyering  <meyering@redhat.com>
27442
27443         maint.mk: also prohibit "#undef" of always-defined symbols
27444         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27445         Allow more than one space before the symbol name.
27446         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27447         the regexp uses alternation.
27448
27449 2010-05-26  Eric Blake  <eblake@redhat.com>
27450
27451         maint.mk: avoid echo -e
27452         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27453         Convert all uses of echo -* to printf.
27454         Reported by Matthias Bolte.
27455
27456 2010-05-25  Bruno Haible  <bruno@clisp.org>
27457
27458         Update to GNU gettext 0.18, part 2.
27459         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27460         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27461
27462 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27463
27464         Add missing include in test-pwrite.c.
27465         * tests/test-pwrite.c: Include string.h, for strcmp.
27466
27467 2010-05-24  Bruno Haible  <bruno@clisp.org>
27468
27469         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27470
27471 2010-05-24  Bruno Haible  <bruno@clisp.org>
27472
27473         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27474         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27475         iconveh_error argument.
27476         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27477         U_STRCONV_TO_LOCALE.
27478         * lib/unistr/u16-strcoll.c: Likewise.
27479         * lib/unistr/u32-strcoll.c: Likewise.
27480         * modules/unistr/u8-strcoll (Depends-on): Add
27481         uniconv/u8-strconv-to-enc, localcharset. Remove
27482         uniconv/u8-strconv-to-locale.
27483         (configure.ac): Bump version number.
27484         * modules/unistr/u16-strcoll (Depends-on): Add
27485         uniconv/u16-strconv-to-enc, localcharset. Remove
27486         uniconv/u16-strconv-to-locale.
27487         (configure.ac): Bump version number.
27488         * modules/unistr/u32-strcoll (Depends-on): Add
27489         uniconv/u32-strconv-to-enc, localcharset. Remove
27490         uniconv/u32-strconv-to-locale.
27491         (configure.ac): Bump version number.
27492
27493 2010-05-24  Bruno Haible  <bruno@clisp.org>
27494
27495         Avoid a test failure on NetBSD 5.0.
27496         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27497         an iconv() bug.
27498
27499 2010-05-24  Bruno Haible  <bruno@clisp.org>
27500
27501         Adjust #include directive style.
27502         * modules/regex (Includes): Recommend to write <regex.h>.
27503
27504 2010-05-24  Bruno Haible  <bruno@clisp.org>
27505
27506         regex: Don't require alloca.
27507         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27508         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27509         only inside if (0).
27510
27511 2010-05-23  Jim Meyering  <meyering@redhat.com>
27512
27513         test-renameat.c: include <sys/stat.h>
27514         * tests/test-renameat.c: Include <sys/stat.h>; required for
27515         definition of S_IS* macros.
27516
27517 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27518
27519         Update maintainer documentation for 'relocatable-prog' module.
27520         * doc/relocatable-maint.texi: Update.
27521         Comments by Bruno Haible.
27522
27523 2010-05-23  Bruno Haible  <bruno@clisp.org>
27524
27525         git-merge-changelog: Enable --split-merged-entry by default.
27526         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27527         (usage): Don't mention this option any more.
27528         Reported by Ralf Wildenhues.
27529
27530 2010-05-23  Jim Meyering  <meyering@redhat.com>
27531
27532         test-pwrite: do not leave behind a test file named "out"
27533         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27534         The trivial-looking use of init.sh is really necessary.
27535         It ensures that the temporary file, "out", is created in
27536         a temporary directory, and removed upon termination.
27537         * tests/test-pwrite.sh: Re-add file.
27538         * modules/pwrite-tests: Reference it.
27539
27540 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27541
27542         Fix output redirection buglet in init.sh.
27543         * tests/init.sh: Fix redirection of stderr.
27544
27545 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27546
27547         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27548
27549 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27550
27551         * modules/valgrind-tests: New file.
27552         * m4/valgrind-tests.m4: New file.
27553         * doc/valgrind-tests.texi: New file.
27554         * doc/gnulib.texi (Running self-tests under valgrind): New
27555         section.
27556
27557 2010-05-19  Bruno Haible  <bruno@clisp.org>
27558
27559         Clean up dead code in recent commit.
27560         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27561         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27562         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27563         Suggested by Paolo Bonzini.
27564
27565 2010-05-19  Bruno Haible  <bruno@clisp.org>
27566
27567         Avoid valgrind error reports from libunistring.
27568         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27569         * modules/libunistring (Files): Add it.
27570         * modules/libunistring-optional (Files): Likewise.
27571
27572 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27573             Bruno Haible  <bruno@clisp.org>
27574
27575         New module 'libunistring-optional'.
27576         * modules/libunistring-optional: New file.
27577         * m4/libunistring-base.m4: New file.
27578         * m4/libunistring-optional.m4: New file.
27579         * lib/unicase.in.h: Renamed from lib/unicase.h.
27580         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27581         * lib/unictype.in.h: Renamed from lib/unictype.h.
27582         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27583         * lib/uniname.in.h: Renamed from lib/uniname.h.
27584         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27585         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27586         * lib/unistr.in.h: Renamed from lib/unistr.h.
27587         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27588         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27589         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27590         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27591         gl_LIBUNISTRING. If the library was found, determine the installed
27592         version and set LIBUNISTRING_VERSION.
27593         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27594         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27595         handle a configuration option --with-included-libunistring.
27596         * modules/libunistring (Files): Add m4/absolute-header.m4.
27597         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27598         Add m4/libunistring-base.m4.
27599         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27600         (Makefile.am): Build unicase.h from unicase.in.h.
27601         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27602         Add m4/libunistring-base.m4.
27603         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27604         (Makefile.am): Build uniconv.h from uniconv.in.h.
27605         * modules/unictype/base (Files): Use unictype.in.h instead of
27606         unictype.h. Add m4/libunistring-base.m4.
27607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27608         (Makefile.am): Build unictype.h from unictype.in.h.
27609         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27610         Add m4/libunistring-base.m4.
27611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27612         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27613         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27614         Add m4/libunistring-base.m4.
27615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27616         (Makefile.am): Build uniname.h from uniname.in.h.
27617         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27618         Add m4/libunistring-base.m4.
27619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27620         (Makefile.am): Build uninorm.h from uninorm.in.h.
27621         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27622         unistdio.h. Add m4/libunistring-base.m4.
27623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27624         (Makefile.am): Build unistdio.h from unistdio.in.h.
27625         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27626         Add m4/libunistring-base.m4.
27627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27628         (Makefile.am): Build unistr.h from unistr.in.h.
27629         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27630         Add m4/libunistring-base.m4.
27631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27632         (Makefile.am): Build unitypes.h from unitypes.in.h.
27633         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27634         Add m4/libunistring-base.m4.
27635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27636         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27637         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27638         uniwidth.h. Add m4/libunistring-base.m4.
27639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27640         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27641         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27642         instead of augmenting lib_SOURCES.
27643         * modules/unicase/empty-suffix-context: Likewise.
27644         * modules/unicase/locale-language: Likewise.
27645         * modules/unicase/tolower: Likewise.
27646         * modules/unicase/totitle: Likewise.
27647         * modules/unicase/toupper: Likewise.
27648         * modules/unicase/u8-casecmp: Likewise.
27649         * modules/unicase/u8-casecoll: Likewise.
27650         * modules/unicase/u8-casefold: Likewise.
27651         * modules/unicase/u8-casexfrm: Likewise.
27652         * modules/unicase/u8-ct-casefold: Likewise.
27653         * modules/unicase/u8-ct-tolower: Likewise.
27654         * modules/unicase/u8-ct-totitle: Likewise.
27655         * modules/unicase/u8-ct-toupper: Likewise.
27656         * modules/unicase/u8-is-cased: Likewise.
27657         * modules/unicase/u8-is-casefolded: Likewise.
27658         * modules/unicase/u8-is-lowercase: Likewise.
27659         * modules/unicase/u8-is-titlecase: Likewise.
27660         * modules/unicase/u8-is-uppercase: Likewise.
27661         * modules/unicase/u8-prefix-context: Likewise.
27662         * modules/unicase/u8-suffix-context: Likewise.
27663         * modules/unicase/u8-tolower: Likewise.
27664         * modules/unicase/u8-totitle: Likewise.
27665         * modules/unicase/u8-toupper: Likewise.
27666         * modules/unicase/u16-casecmp: Likewise.
27667         * modules/unicase/u16-casecoll: Likewise.
27668         * modules/unicase/u16-casefold: Likewise.
27669         * modules/unicase/u16-casexfrm: Likewise.
27670         * modules/unicase/u16-ct-casefold: Likewise.
27671         * modules/unicase/u16-ct-tolower: Likewise.
27672         * modules/unicase/u16-ct-totitle: Likewise.
27673         * modules/unicase/u16-ct-toupper: Likewise.
27674         * modules/unicase/u16-is-cased: Likewise.
27675         * modules/unicase/u16-is-casefolded: Likewise.
27676         * modules/unicase/u16-is-lowercase: Likewise.
27677         * modules/unicase/u16-is-titlecase: Likewise.
27678         * modules/unicase/u16-is-uppercase: Likewise.
27679         * modules/unicase/u16-prefix-context: Likewise.
27680         * modules/unicase/u16-suffix-context: Likewise.
27681         * modules/unicase/u16-tolower: Likewise.
27682         * modules/unicase/u16-totitle: Likewise.
27683         * modules/unicase/u16-toupper: Likewise.
27684         * modules/unicase/u32-casecmp: Likewise.
27685         * modules/unicase/u32-casecoll: Likewise.
27686         * modules/unicase/u32-casefold: Likewise.
27687         * modules/unicase/u32-casexfrm: Likewise.
27688         * modules/unicase/u32-ct-casefold: Likewise.
27689         * modules/unicase/u32-ct-tolower: Likewise.
27690         * modules/unicase/u32-ct-totitle: Likewise.
27691         * modules/unicase/u32-ct-toupper: Likewise.
27692         * modules/unicase/u32-is-cased: Likewise.
27693         * modules/unicase/u32-is-casefolded: Likewise.
27694         * modules/unicase/u32-is-lowercase: Likewise.
27695         * modules/unicase/u32-is-titlecase: Likewise.
27696         * modules/unicase/u32-is-uppercase: Likewise.
27697         * modules/unicase/u32-prefix-context: Likewise.
27698         * modules/unicase/u32-suffix-context: Likewise.
27699         * modules/unicase/u32-tolower: Likewise.
27700         * modules/unicase/u32-totitle: Likewise.
27701         * modules/unicase/u32-toupper: Likewise.
27702         * modules/unicase/ulc-casecmp: Likewise.
27703         * modules/unicase/ulc-casecoll: Likewise.
27704         * modules/unicase/ulc-casexfrm: Likewise.
27705         * modules/uniconv/u8-conv-from-enc: Likewise.
27706         * modules/uniconv/u8-conv-to-enc: Likewise.
27707         * modules/uniconv/u8-strconv-from-enc: Likewise.
27708         * modules/uniconv/u8-strconv-from-locale: Likewise.
27709         * modules/uniconv/u8-strconv-to-enc: Likewise.
27710         * modules/uniconv/u8-strconv-to-locale: Likewise.
27711         * modules/uniconv/u16-conv-from-enc: Likewise.
27712         * modules/uniconv/u16-conv-to-enc: Likewise.
27713         * modules/uniconv/u16-strconv-from-enc: Likewise.
27714         * modules/uniconv/u16-strconv-from-locale: Likewise.
27715         * modules/uniconv/u16-strconv-to-enc: Likewise.
27716         * modules/uniconv/u16-strconv-to-locale: Likewise.
27717         * modules/uniconv/u32-conv-from-enc: Likewise.
27718         * modules/uniconv/u32-conv-to-enc: Likewise.
27719         * modules/uniconv/u32-strconv-from-enc: Likewise.
27720         * modules/uniconv/u32-strconv-from-locale: Likewise.
27721         * modules/uniconv/u32-strconv-to-enc: Likewise.
27722         * modules/uniconv/u32-strconv-to-locale: Likewise.
27723         * modules/unictype/bidicategory-byname: Likewise.
27724         * modules/unictype/bidicategory-name: Likewise.
27725         * modules/unictype/bidicategory-of: Likewise.
27726         * modules/unictype/bidicategory-test: Likewise.
27727         * modules/unictype/block-list: Likewise.
27728         * modules/unictype/block-test: Likewise.
27729         * modules/unictype/category-C: Likewise.
27730         * modules/unictype/category-Cc: Likewise.
27731         * modules/unictype/category-Cf: Likewise.
27732         * modules/unictype/category-Cn: Likewise.
27733         * modules/unictype/category-Co: Likewise.
27734         * modules/unictype/category-Cs: Likewise.
27735         * modules/unictype/category-L: Likewise.
27736         * modules/unictype/category-Ll: Likewise.
27737         * modules/unictype/category-Lm: Likewise.
27738         * modules/unictype/category-Lo: Likewise.
27739         * modules/unictype/category-Lt: Likewise.
27740         * modules/unictype/category-Lu: Likewise.
27741         * modules/unictype/category-M: Likewise.
27742         * modules/unictype/category-Mc: Likewise.
27743         * modules/unictype/category-Me: Likewise.
27744         * modules/unictype/category-Mn: Likewise.
27745         * modules/unictype/category-N: Likewise.
27746         * modules/unictype/category-Nd: Likewise.
27747         * modules/unictype/category-Nl: Likewise.
27748         * modules/unictype/category-No: Likewise.
27749         * modules/unictype/category-P: Likewise.
27750         * modules/unictype/category-Pc: Likewise.
27751         * modules/unictype/category-Pd: Likewise.
27752         * modules/unictype/category-Pe: Likewise.
27753         * modules/unictype/category-Pf: Likewise.
27754         * modules/unictype/category-Pi: Likewise.
27755         * modules/unictype/category-Po: Likewise.
27756         * modules/unictype/category-Ps: Likewise.
27757         * modules/unictype/category-S: Likewise.
27758         * modules/unictype/category-Sc: Likewise.
27759         * modules/unictype/category-Sk: Likewise.
27760         * modules/unictype/category-Sm: Likewise.
27761         * modules/unictype/category-So: Likewise.
27762         * modules/unictype/category-Z: Likewise.
27763         * modules/unictype/category-Zl: Likewise.
27764         * modules/unictype/category-Zp: Likewise.
27765         * modules/unictype/category-Zs: Likewise.
27766         * modules/unictype/category-and: Likewise.
27767         * modules/unictype/category-and-not: Likewise.
27768         * modules/unictype/category-byname: Likewise.
27769         * modules/unictype/category-name: Likewise.
27770         * modules/unictype/category-none: Likewise.
27771         * modules/unictype/category-of: Likewise.
27772         * modules/unictype/category-or: Likewise.
27773         * modules/unictype/category-test: Likewise.
27774         * modules/unictype/combining-class: Likewise.
27775         * modules/unictype/ctype-alnum: Likewise.
27776         * modules/unictype/ctype-alpha: Likewise.
27777         * modules/unictype/ctype-blank: Likewise.
27778         * modules/unictype/ctype-cntrl: Likewise.
27779         * modules/unictype/ctype-digit: Likewise.
27780         * modules/unictype/ctype-graph: Likewise.
27781         * modules/unictype/ctype-lower: Likewise.
27782         * modules/unictype/ctype-print: Likewise.
27783         * modules/unictype/ctype-punct: Likewise.
27784         * modules/unictype/ctype-space: Likewise.
27785         * modules/unictype/ctype-upper: Likewise.
27786         * modules/unictype/ctype-xdigit: Likewise.
27787         * modules/unictype/decimal-digit: Likewise.
27788         * modules/unictype/digit: Likewise.
27789         * modules/unictype/mirror: Likewise.
27790         * modules/unictype/numeric: Likewise.
27791         * modules/unictype/property-alphabetic: Likewise.
27792         * modules/unictype/property-ascii-hex-digit: Likewise.
27793         * modules/unictype/property-bidi-arabic-digit: Likewise.
27794         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27795         * modules/unictype/property-bidi-block-separator: Likewise.
27796         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27797         * modules/unictype/property-bidi-common-separator: Likewise.
27798         * modules/unictype/property-bidi-control: Likewise.
27799         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27800         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27801         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27802         * modules/unictype/property-bidi-european-digit: Likewise.
27803         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27804         * modules/unictype/property-bidi-left-to-right: Likewise.
27805         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27806         * modules/unictype/property-bidi-other-neutral: Likewise.
27807         * modules/unictype/property-bidi-pdf: Likewise.
27808         * modules/unictype/property-bidi-segment-separator: Likewise.
27809         * modules/unictype/property-bidi-whitespace: Likewise.
27810         * modules/unictype/property-byname: Likewise.
27811         * modules/unictype/property-combining: Likewise.
27812         * modules/unictype/property-composite: Likewise.
27813         * modules/unictype/property-currency-symbol: Likewise.
27814         * modules/unictype/property-dash: Likewise.
27815         * modules/unictype/property-decimal-digit: Likewise.
27816         * modules/unictype/property-default-ignorable-code-point: Likewise.
27817         * modules/unictype/property-deprecated: Likewise.
27818         * modules/unictype/property-diacritic: Likewise.
27819         * modules/unictype/property-extender: Likewise.
27820         * modules/unictype/property-format-control: Likewise.
27821         * modules/unictype/property-grapheme-base: Likewise.
27822         * modules/unictype/property-grapheme-extend: Likewise.
27823         * modules/unictype/property-grapheme-link: Likewise.
27824         * modules/unictype/property-hex-digit: Likewise.
27825         * modules/unictype/property-hyphen: Likewise.
27826         * modules/unictype/property-id-continue: Likewise.
27827         * modules/unictype/property-id-start: Likewise.
27828         * modules/unictype/property-ideographic: Likewise.
27829         * modules/unictype/property-ids-binary-operator: Likewise.
27830         * modules/unictype/property-ids-trinary-operator: Likewise.
27831         * modules/unictype/property-ignorable-control: Likewise.
27832         * modules/unictype/property-iso-control: Likewise.
27833         * modules/unictype/property-join-control: Likewise.
27834         * modules/unictype/property-left-of-pair: Likewise.
27835         * modules/unictype/property-line-separator: Likewise.
27836         * modules/unictype/property-logical-order-exception: Likewise.
27837         * modules/unictype/property-lowercase: Likewise.
27838         * modules/unictype/property-math: Likewise.
27839         * modules/unictype/property-non-break: Likewise.
27840         * modules/unictype/property-not-a-character: Likewise.
27841         * modules/unictype/property-numeric: Likewise.
27842         * modules/unictype/property-other-alphabetic: Likewise.
27843         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27844         * modules/unictype/property-other-grapheme-extend: Likewise.
27845         * modules/unictype/property-other-id-continue: Likewise.
27846         * modules/unictype/property-other-id-start: Likewise.
27847         * modules/unictype/property-other-lowercase: Likewise.
27848         * modules/unictype/property-other-math: Likewise.
27849         * modules/unictype/property-other-uppercase: Likewise.
27850         * modules/unictype/property-paired-punctuation: Likewise.
27851         * modules/unictype/property-paragraph-separator: Likewise.
27852         * modules/unictype/property-pattern-syntax: Likewise.
27853         * modules/unictype/property-pattern-white-space: Likewise.
27854         * modules/unictype/property-private-use: Likewise.
27855         * modules/unictype/property-punctuation: Likewise.
27856         * modules/unictype/property-quotation-mark: Likewise.
27857         * modules/unictype/property-radical: Likewise.
27858         * modules/unictype/property-sentence-terminal: Likewise.
27859         * modules/unictype/property-soft-dotted: Likewise.
27860         * modules/unictype/property-space: Likewise.
27861         * modules/unictype/property-terminal-punctuation: Likewise.
27862         * modules/unictype/property-test: Likewise.
27863         * modules/unictype/property-titlecase: Likewise.
27864         * modules/unictype/property-unassigned-code-value: Likewise.
27865         * modules/unictype/property-unified-ideograph: Likewise.
27866         * modules/unictype/property-uppercase: Likewise.
27867         * modules/unictype/property-variation-selector: Likewise.
27868         * modules/unictype/property-white-space: Likewise.
27869         * modules/unictype/property-xid-continue: Likewise.
27870         * modules/unictype/property-xid-start: Likewise.
27871         * modules/unictype/property-zero-width: Likewise.
27872         * modules/unictype/scripts: Likewise.
27873         * modules/unictype/syntax-c-ident: Likewise.
27874         * modules/unictype/syntax-c-whitespace: Likewise.
27875         * modules/unictype/syntax-java-ident: Likewise.
27876         * modules/unictype/syntax-java-whitespace: Likewise.
27877         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27878         * modules/unilbrk/u8-width-linebreaks: Likewise.
27879         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27880         * modules/unilbrk/u16-width-linebreaks: Likewise.
27881         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27882         * modules/unilbrk/u32-width-linebreaks: Likewise.
27883         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27884         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27885         * modules/uniname/uniname: Likewise.
27886         * modules/uninorm/canonical-decomposition: Likewise.
27887         * modules/uninorm/composition: Likewise.
27888         * modules/uninorm/decomposing-form: Likewise.
27889         * modules/uninorm/decomposition: Likewise.
27890         * modules/uninorm/filter: Likewise.
27891         * modules/uninorm/nfc: Likewise.
27892         * modules/uninorm/nfd: Likewise.
27893         * modules/uninorm/nfkc: Likewise.
27894         * modules/uninorm/nfkd: Likewise.
27895         * modules/uninorm/u8-normalize: Likewise.
27896         * modules/uninorm/u8-normcmp: Likewise.
27897         * modules/uninorm/u8-normcoll: Likewise.
27898         * modules/uninorm/u8-normxfrm: Likewise.
27899         * modules/uninorm/u16-normalize: Likewise.
27900         * modules/uninorm/u16-normcmp: Likewise.
27901         * modules/uninorm/u16-normcoll: Likewise.
27902         * modules/uninorm/u16-normxfrm: Likewise.
27903         * modules/uninorm/u32-normalize: Likewise.
27904         * modules/uninorm/u32-normcmp: Likewise.
27905         * modules/uninorm/u32-normcoll: Likewise.
27906         * modules/uninorm/u32-normxfrm: Likewise.
27907         * modules/unistdio/u8-asnprintf: Likewise.
27908         * modules/unistdio/u8-asprintf: Likewise.
27909         * modules/unistdio/u8-snprintf: Likewise.
27910         * modules/unistdio/u8-sprintf: Likewise.
27911         * modules/unistdio/u8-u8-asnprintf: Likewise.
27912         * modules/unistdio/u8-u8-asprintf: Likewise.
27913         * modules/unistdio/u8-u8-snprintf: Likewise.
27914         * modules/unistdio/u8-u8-sprintf: Likewise.
27915         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27916         * modules/unistdio/u8-u8-vasprintf: Likewise.
27917         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27918         * modules/unistdio/u8-u8-vsprintf: Likewise.
27919         * modules/unistdio/u8-vasnprintf: Likewise.
27920         * modules/unistdio/u8-vasprintf: Likewise.
27921         * modules/unistdio/u8-vsnprintf: Likewise.
27922         * modules/unistdio/u8-vsprintf: Likewise.
27923         * modules/unistdio/u16-asnprintf: Likewise.
27924         * modules/unistdio/u16-asprintf: Likewise.
27925         * modules/unistdio/u16-snprintf: Likewise.
27926         * modules/unistdio/u16-sprintf: Likewise.
27927         * modules/unistdio/u16-u16-asnprintf: Likewise.
27928         * modules/unistdio/u16-u16-asprintf: Likewise.
27929         * modules/unistdio/u16-u16-snprintf: Likewise.
27930         * modules/unistdio/u16-u16-sprintf: Likewise.
27931         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27932         * modules/unistdio/u16-u16-vasprintf: Likewise.
27933         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27934         * modules/unistdio/u16-u16-vsprintf: Likewise.
27935         * modules/unistdio/u16-vasnprintf: Likewise.
27936         * modules/unistdio/u16-vasprintf: Likewise.
27937         * modules/unistdio/u16-vsnprintf: Likewise.
27938         * modules/unistdio/u16-vsprintf: Likewise.
27939         * modules/unistdio/u32-asnprintf: Likewise.
27940         * modules/unistdio/u32-asprintf: Likewise.
27941         * modules/unistdio/u32-snprintf: Likewise.
27942         * modules/unistdio/u32-sprintf: Likewise.
27943         * modules/unistdio/u32-u32-asnprintf: Likewise.
27944         * modules/unistdio/u32-u32-asprintf: Likewise.
27945         * modules/unistdio/u32-u32-snprintf: Likewise.
27946         * modules/unistdio/u32-u32-sprintf: Likewise.
27947         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27948         * modules/unistdio/u32-u32-vasprintf: Likewise.
27949         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27950         * modules/unistdio/u32-u32-vsprintf: Likewise.
27951         * modules/unistdio/u32-vasnprintf: Likewise.
27952         * modules/unistdio/u32-vasprintf: Likewise.
27953         * modules/unistdio/u32-vsnprintf: Likewise.
27954         * modules/unistdio/u32-vsprintf: Likewise.
27955         * modules/unistdio/ulc-asnprintf: Likewise.
27956         * modules/unistdio/ulc-asprintf: Likewise.
27957         * modules/unistdio/ulc-fprintf: Likewise.
27958         * modules/unistdio/ulc-snprintf: Likewise.
27959         * modules/unistdio/ulc-sprintf: Likewise.
27960         * modules/unistdio/ulc-vasnprintf: Likewise.
27961         * modules/unistdio/ulc-vasprintf: Likewise.
27962         * modules/unistdio/ulc-vfprintf: Likewise.
27963         * modules/unistdio/ulc-vsnprintf: Likewise.
27964         * modules/unistdio/ulc-vsprintf: Likewise.
27965         * modules/unistr/u8-check: Likewise.
27966         * modules/unistr/u8-chr: Likewise.
27967         * modules/unistr/u8-cmp: Likewise.
27968         * modules/unistr/u8-cmp2: Likewise.
27969         * modules/unistr/u8-cpy: Likewise.
27970         * modules/unistr/u8-cpy-alloc: Likewise.
27971         * modules/unistr/u8-endswith: Likewise.
27972         * modules/unistr/u8-mblen: Likewise.
27973         * modules/unistr/u8-mbsnlen: Likewise.
27974         * modules/unistr/u8-mbtouc: Likewise.
27975         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27976         * modules/unistr/u8-mbtoucr: Likewise.
27977         * modules/unistr/u8-move: Likewise.
27978         * modules/unistr/u8-next: Likewise.
27979         * modules/unistr/u8-prev: Likewise.
27980         * modules/unistr/u8-set: Likewise.
27981         * modules/unistr/u8-startswith: Likewise.
27982         * modules/unistr/u8-stpcpy: Likewise.
27983         * modules/unistr/u8-stpncpy: Likewise.
27984         * modules/unistr/u8-strcat: Likewise.
27985         * modules/unistr/u8-strchr: Likewise.
27986         * modules/unistr/u8-strcmp: Likewise.
27987         * modules/unistr/u8-strcoll: Likewise.
27988         * modules/unistr/u8-strcpy: Likewise.
27989         * modules/unistr/u8-strcspn: Likewise.
27990         * modules/unistr/u8-strdup: Likewise.
27991         * modules/unistr/u8-strlen: Likewise.
27992         * modules/unistr/u8-strmblen: Likewise.
27993         * modules/unistr/u8-strmbtouc: Likewise.
27994         * modules/unistr/u8-strncat: Likewise.
27995         * modules/unistr/u8-strncmp: Likewise.
27996         * modules/unistr/u8-strncpy: Likewise.
27997         * modules/unistr/u8-strnlen: Likewise.
27998         * modules/unistr/u8-strpbrk: Likewise.
27999         * modules/unistr/u8-strrchr: Likewise.
28000         * modules/unistr/u8-strspn: Likewise.
28001         * modules/unistr/u8-strstr: Likewise.
28002         * modules/unistr/u8-strtok: Likewise.
28003         * modules/unistr/u8-to-u16: Likewise.
28004         * modules/unistr/u8-to-u32: Likewise.
28005         * modules/unistr/u8-uctomb: Likewise.
28006         * modules/unistr/u16-check: Likewise.
28007         * modules/unistr/u16-chr: Likewise.
28008         * modules/unistr/u16-cmp: Likewise.
28009         * modules/unistr/u16-cmp2: Likewise.
28010         * modules/unistr/u16-cpy: Likewise.
28011         * modules/unistr/u16-cpy-alloc: Likewise.
28012         * modules/unistr/u16-endswith: Likewise.
28013         * modules/unistr/u16-mblen: Likewise.
28014         * modules/unistr/u16-mbsnlen: Likewise.
28015         * modules/unistr/u16-mbtouc: Likewise.
28016         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28017         * modules/unistr/u16-mbtoucr: Likewise.
28018         * modules/unistr/u16-move: Likewise.
28019         * modules/unistr/u16-next: Likewise.
28020         * modules/unistr/u16-prev: Likewise.
28021         * modules/unistr/u16-set: Likewise.
28022         * modules/unistr/u16-startswith: Likewise.
28023         * modules/unistr/u16-stpcpy: Likewise.
28024         * modules/unistr/u16-stpncpy: Likewise.
28025         * modules/unistr/u16-strcat: Likewise.
28026         * modules/unistr/u16-strchr: Likewise.
28027         * modules/unistr/u16-strcmp: Likewise.
28028         * modules/unistr/u16-strcoll: Likewise.
28029         * modules/unistr/u16-strcpy: Likewise.
28030         * modules/unistr/u16-strcspn: Likewise.
28031         * modules/unistr/u16-strdup: Likewise.
28032         * modules/unistr/u16-strlen: Likewise.
28033         * modules/unistr/u16-strmblen: Likewise.
28034         * modules/unistr/u16-strmbtouc: Likewise.
28035         * modules/unistr/u16-strncat: Likewise.
28036         * modules/unistr/u16-strncmp: Likewise.
28037         * modules/unistr/u16-strncpy: Likewise.
28038         * modules/unistr/u16-strnlen: Likewise.
28039         * modules/unistr/u16-strpbrk: Likewise.
28040         * modules/unistr/u16-strrchr: Likewise.
28041         * modules/unistr/u16-strspn: Likewise.
28042         * modules/unistr/u16-strstr: Likewise.
28043         * modules/unistr/u16-strtok: Likewise.
28044         * modules/unistr/u16-to-u32: Likewise.
28045         * modules/unistr/u16-to-u8: Likewise.
28046         * modules/unistr/u16-uctomb: Likewise.
28047         * modules/unistr/u32-check: Likewise.
28048         * modules/unistr/u32-chr: Likewise.
28049         * modules/unistr/u32-cmp: Likewise.
28050         * modules/unistr/u32-cmp2: Likewise.
28051         * modules/unistr/u32-cpy: Likewise.
28052         * modules/unistr/u32-cpy-alloc: Likewise.
28053         * modules/unistr/u32-endswith: Likewise.
28054         * modules/unistr/u32-mblen: Likewise.
28055         * modules/unistr/u32-mbsnlen: Likewise.
28056         * modules/unistr/u32-mbtouc: Likewise.
28057         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28058         * modules/unistr/u32-mbtoucr: Likewise.
28059         * modules/unistr/u32-move: Likewise.
28060         * modules/unistr/u32-next: Likewise.
28061         * modules/unistr/u32-prev: Likewise.
28062         * modules/unistr/u32-set: Likewise.
28063         * modules/unistr/u32-startswith: Likewise.
28064         * modules/unistr/u32-stpcpy: Likewise.
28065         * modules/unistr/u32-stpncpy: Likewise.
28066         * modules/unistr/u32-strcat: Likewise.
28067         * modules/unistr/u32-strchr: Likewise.
28068         * modules/unistr/u32-strcmp: Likewise.
28069         * modules/unistr/u32-strcoll: Likewise.
28070         * modules/unistr/u32-strcpy: Likewise.
28071         * modules/unistr/u32-strcspn: Likewise.
28072         * modules/unistr/u32-strdup: Likewise.
28073         * modules/unistr/u32-strlen: Likewise.
28074         * modules/unistr/u32-strmblen: Likewise.
28075         * modules/unistr/u32-strmbtouc: Likewise.
28076         * modules/unistr/u32-strncat: Likewise.
28077         * modules/unistr/u32-strncmp: Likewise.
28078         * modules/unistr/u32-strncpy: Likewise.
28079         * modules/unistr/u32-strnlen: Likewise.
28080         * modules/unistr/u32-strpbrk: Likewise.
28081         * modules/unistr/u32-strrchr: Likewise.
28082         * modules/unistr/u32-strspn: Likewise.
28083         * modules/unistr/u32-strstr: Likewise.
28084         * modules/unistr/u32-strtok: Likewise.
28085         * modules/unistr/u32-to-u16: Likewise.
28086         * modules/unistr/u32-to-u8: Likewise.
28087         * modules/unistr/u32-uctomb: Likewise.
28088         * modules/uniwbrk/u8-wordbreaks: Likewise.
28089         * modules/uniwbrk/u16-wordbreaks: Likewise.
28090         * modules/uniwbrk/u32-wordbreaks: Likewise.
28091         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28092         * modules/uniwbrk/wordbreak-property: Likewise.
28093         * modules/uniwidth/u8-strwidth: Likewise.
28094         * modules/uniwidth/u8-width: Likewise.
28095         * modules/uniwidth/u16-strwidth: Likewise.
28096         * modules/uniwidth/u16-width: Likewise.
28097         * modules/uniwidth/u32-strwidth: Likewise.
28098         * modules/uniwidth/u32-width: Likewise.
28099         * modules/uniwidth/width: Likewise.
28100         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28101         with $(LIBUNISTRING).
28102         * modules/unicase/ignorable-tests: Likewise.
28103         * modules/unicase/locale-language-tests: Likewise.
28104         * modules/unicase/tolower-tests: Likewise.
28105         * modules/unicase/totitle-tests: Likewise.
28106         * modules/unicase/toupper-tests: Likewise.
28107         * modules/unicase/u8-casecmp-tests: Likewise.
28108         * modules/unicase/u8-casecoll-tests: Likewise.
28109         * modules/unicase/u8-casefold-tests: Likewise.
28110         * modules/unicase/u8-is-cased-tests: Likewise.
28111         * modules/unicase/u8-is-casefolded-tests: Likewise.
28112         * modules/unicase/u8-is-lowercase-tests: Likewise.
28113         * modules/unicase/u8-is-titlecase-tests: Likewise.
28114         * modules/unicase/u8-is-uppercase-tests: Likewise.
28115         * modules/unicase/u8-tolower-tests: Likewise.
28116         * modules/unicase/u8-totitle-tests: Likewise.
28117         * modules/unicase/u8-toupper-tests: Likewise.
28118         * modules/unicase/u16-casecmp-tests: Likewise.
28119         * modules/unicase/u16-casecoll-tests: Likewise.
28120         * modules/unicase/u16-casefold-tests: Likewise.
28121         * modules/unicase/u16-is-cased-tests: Likewise.
28122         * modules/unicase/u16-is-casefolded-tests: Likewise.
28123         * modules/unicase/u16-is-lowercase-tests: Likewise.
28124         * modules/unicase/u16-is-titlecase-tests: Likewise.
28125         * modules/unicase/u16-is-uppercase-tests: Likewise.
28126         * modules/unicase/u16-tolower-tests: Likewise.
28127         * modules/unicase/u16-totitle-tests: Likewise.
28128         * modules/unicase/u16-toupper-tests: Likewise.
28129         * modules/unicase/u32-casecmp-tests: Likewise.
28130         * modules/unicase/u32-casecoll-tests: Likewise.
28131         * modules/unicase/u32-casefold-tests: Likewise.
28132         * modules/unicase/u32-is-cased-tests: Likewise.
28133         * modules/unicase/u32-is-casefolded-tests: Likewise.
28134         * modules/unicase/u32-is-lowercase-tests: Likewise.
28135         * modules/unicase/u32-is-titlecase-tests: Likewise.
28136         * modules/unicase/u32-is-uppercase-tests: Likewise.
28137         * modules/unicase/u32-tolower-tests: Likewise.
28138         * modules/unicase/u32-totitle-tests: Likewise.
28139         * modules/unicase/u32-toupper-tests: Likewise.
28140         * modules/unicase/ulc-casecmp-tests: Likewise.
28141         * modules/unicase/ulc-casecoll-tests: Likewise.
28142         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28143         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28144         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28145         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28146         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28147         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28148         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28149         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28150         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28151         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28152         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28153         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28154         * modules/unictype/bidicategory-byname-tests: Likewise.
28155         * modules/unictype/bidicategory-name-tests: Likewise.
28156         * modules/unictype/bidicategory-of-tests: Likewise.
28157         * modules/unictype/bidicategory-test-tests: Likewise.
28158         * modules/unictype/block-list-tests: Likewise.
28159         * modules/unictype/block-of-tests: Likewise.
28160         * modules/unictype/block-test-tests: Likewise.
28161         * modules/unictype/category-C-tests: Likewise.
28162         * modules/unictype/category-Cc-tests: Likewise.
28163         * modules/unictype/category-Cf-tests: Likewise.
28164         * modules/unictype/category-Cn-tests: Likewise.
28165         * modules/unictype/category-Co-tests: Likewise.
28166         * modules/unictype/category-Cs-tests: Likewise.
28167         * modules/unictype/category-L-tests: Likewise.
28168         * modules/unictype/category-Ll-tests: Likewise.
28169         * modules/unictype/category-Lm-tests: Likewise.
28170         * modules/unictype/category-Lo-tests: Likewise.
28171         * modules/unictype/category-Lt-tests: Likewise.
28172         * modules/unictype/category-Lu-tests: Likewise.
28173         * modules/unictype/category-M-tests: Likewise.
28174         * modules/unictype/category-Mc-tests: Likewise.
28175         * modules/unictype/category-Me-tests: Likewise.
28176         * modules/unictype/category-Mn-tests: Likewise.
28177         * modules/unictype/category-N-tests: Likewise.
28178         * modules/unictype/category-Nd-tests: Likewise.
28179         * modules/unictype/category-Nl-tests: Likewise.
28180         * modules/unictype/category-No-tests: Likewise.
28181         * modules/unictype/category-P-tests: Likewise.
28182         * modules/unictype/category-Pc-tests: Likewise.
28183         * modules/unictype/category-Pd-tests: Likewise.
28184         * modules/unictype/category-Pe-tests: Likewise.
28185         * modules/unictype/category-Pf-tests: Likewise.
28186         * modules/unictype/category-Pi-tests: Likewise.
28187         * modules/unictype/category-Po-tests: Likewise.
28188         * modules/unictype/category-Ps-tests: Likewise.
28189         * modules/unictype/category-S-tests: Likewise.
28190         * modules/unictype/category-Sc-tests: Likewise.
28191         * modules/unictype/category-Sk-tests: Likewise.
28192         * modules/unictype/category-Sm-tests: Likewise.
28193         * modules/unictype/category-So-tests: Likewise.
28194         * modules/unictype/category-Z-tests: Likewise.
28195         * modules/unictype/category-Zl-tests: Likewise.
28196         * modules/unictype/category-Zp-tests: Likewise.
28197         * modules/unictype/category-Zs-tests: Likewise.
28198         * modules/unictype/category-and-not-tests: Likewise.
28199         * modules/unictype/category-and-tests: Likewise.
28200         * modules/unictype/category-byname-tests: Likewise.
28201         * modules/unictype/category-name-tests: Likewise.
28202         * modules/unictype/category-none-tests: Likewise.
28203         * modules/unictype/category-of-tests: Likewise.
28204         * modules/unictype/category-or-tests: Likewise.
28205         * modules/unictype/category-test-withtable-tests: Likewise.
28206         * modules/unictype/combining-class-tests: Likewise.
28207         * modules/unictype/ctype-alnum-tests: Likewise.
28208         * modules/unictype/ctype-alpha-tests: Likewise.
28209         * modules/unictype/ctype-blank-tests: Likewise.
28210         * modules/unictype/ctype-cntrl-tests: Likewise.
28211         * modules/unictype/ctype-digit-tests: Likewise.
28212         * modules/unictype/ctype-graph-tests: Likewise.
28213         * modules/unictype/ctype-lower-tests: Likewise.
28214         * modules/unictype/ctype-print-tests: Likewise.
28215         * modules/unictype/ctype-punct-tests: Likewise.
28216         * modules/unictype/ctype-space-tests: Likewise.
28217         * modules/unictype/ctype-upper-tests: Likewise.
28218         * modules/unictype/ctype-xdigit-tests: Likewise.
28219         * modules/unictype/decimal-digit-tests: Likewise.
28220         * modules/unictype/digit-tests: Likewise.
28221         * modules/unictype/mirror-tests: Likewise.
28222         * modules/unictype/numeric-tests: Likewise.
28223         * modules/unictype/property-alphabetic-tests: Likewise.
28224         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28225         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28226         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28227         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28228         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28229         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28230         * modules/unictype/property-bidi-control-tests: Likewise.
28231         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28232         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28233         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28234         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28235         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28236         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28237         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28238         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28239         * modules/unictype/property-bidi-pdf-tests: Likewise.
28240         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28241         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28242         * modules/unictype/property-byname-tests: Likewise.
28243         * modules/unictype/property-combining-tests: Likewise.
28244         * modules/unictype/property-composite-tests: Likewise.
28245         * modules/unictype/property-currency-symbol-tests: Likewise.
28246         * modules/unictype/property-dash-tests: Likewise.
28247         * modules/unictype/property-decimal-digit-tests: Likewise.
28248         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28249         * modules/unictype/property-deprecated-tests: Likewise.
28250         * modules/unictype/property-diacritic-tests: Likewise.
28251         * modules/unictype/property-extender-tests: Likewise.
28252         * modules/unictype/property-format-control-tests: Likewise.
28253         * modules/unictype/property-grapheme-base-tests: Likewise.
28254         * modules/unictype/property-grapheme-extend-tests: Likewise.
28255         * modules/unictype/property-grapheme-link-tests: Likewise.
28256         * modules/unictype/property-hex-digit-tests: Likewise.
28257         * modules/unictype/property-hyphen-tests: Likewise.
28258         * modules/unictype/property-id-continue-tests: Likewise.
28259         * modules/unictype/property-id-start-tests: Likewise.
28260         * modules/unictype/property-ideographic-tests: Likewise.
28261         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28262         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28263         * modules/unictype/property-ignorable-control-tests: Likewise.
28264         * modules/unictype/property-iso-control-tests: Likewise.
28265         * modules/unictype/property-join-control-tests: Likewise.
28266         * modules/unictype/property-left-of-pair-tests: Likewise.
28267         * modules/unictype/property-line-separator-tests: Likewise.
28268         * modules/unictype/property-logical-order-exception-tests: Likewise.
28269         * modules/unictype/property-lowercase-tests: Likewise.
28270         * modules/unictype/property-math-tests: Likewise.
28271         * modules/unictype/property-non-break-tests: Likewise.
28272         * modules/unictype/property-not-a-character-tests: Likewise.
28273         * modules/unictype/property-numeric-tests: Likewise.
28274         * modules/unictype/property-other-alphabetic-tests: Likewise.
28275         * modules/unictype/property-other-default-ignorable-code-point-tests:
28276         Likewise.
28277         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28278         * modules/unictype/property-other-id-continue-tests: Likewise.
28279         * modules/unictype/property-other-id-start-tests: Likewise.
28280         * modules/unictype/property-other-lowercase-tests: Likewise.
28281         * modules/unictype/property-other-math-tests: Likewise.
28282         * modules/unictype/property-other-uppercase-tests: Likewise.
28283         * modules/unictype/property-paired-punctuation-tests: Likewise.
28284         * modules/unictype/property-paragraph-separator-tests: Likewise.
28285         * modules/unictype/property-pattern-syntax-tests: Likewise.
28286         * modules/unictype/property-pattern-white-space-tests: Likewise.
28287         * modules/unictype/property-private-use-tests: Likewise.
28288         * modules/unictype/property-punctuation-tests: Likewise.
28289         * modules/unictype/property-quotation-mark-tests: Likewise.
28290         * modules/unictype/property-radical-tests: Likewise.
28291         * modules/unictype/property-sentence-terminal-tests: Likewise.
28292         * modules/unictype/property-soft-dotted-tests: Likewise.
28293         * modules/unictype/property-space-tests: Likewise.
28294         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28295         * modules/unictype/property-test-tests: Likewise.
28296         * modules/unictype/property-titlecase-tests: Likewise.
28297         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28298         * modules/unictype/property-unified-ideograph-tests: Likewise.
28299         * modules/unictype/property-uppercase-tests: Likewise.
28300         * modules/unictype/property-variation-selector-tests: Likewise.
28301         * modules/unictype/property-white-space-tests: Likewise.
28302         * modules/unictype/property-xid-continue-tests: Likewise.
28303         * modules/unictype/property-xid-start-tests: Likewise.
28304         * modules/unictype/property-zero-width-tests: Likewise.
28305         * modules/unictype/scripts-tests: Likewise.
28306         * modules/unictype/syntax-c-ident-tests: Likewise.
28307         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28308         * modules/unictype/syntax-java-ident-tests: Likewise.
28309         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28310         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28311         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28312         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28313         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28314         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28315         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28316         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28317         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28318         * modules/uniname/uniname-tests: Likewise.
28319         * modules/uninorm/canonical-decomposition-tests: Likewise.
28320         * modules/uninorm/compat-decomposition-tests: Likewise.
28321         * modules/uninorm/composition-tests: Likewise.
28322         * modules/uninorm/decomposing-form-tests: Likewise.
28323         * modules/uninorm/decomposition-tests: Likewise.
28324         * modules/uninorm/filter-tests: Likewise.
28325         * modules/uninorm/nfc-tests: Likewise.
28326         * modules/uninorm/nfd-tests: Likewise.
28327         * modules/uninorm/nfkc-tests: Likewise.
28328         * modules/uninorm/nfkd-tests: Likewise.
28329         * modules/uninorm/u8-normcmp-tests: Likewise.
28330         * modules/uninorm/u8-normcoll-tests: Likewise.
28331         * modules/uninorm/u16-normcmp-tests: Likewise.
28332         * modules/uninorm/u16-normcoll-tests: Likewise.
28333         * modules/uninorm/u32-normcmp-tests: Likewise.
28334         * modules/uninorm/u32-normcoll-tests: Likewise.
28335         * modules/unistdio/u8-asnprintf-tests: Likewise.
28336         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28337         * modules/unistdio/u8-vasprintf-tests: Likewise.
28338         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28339         * modules/unistdio/u8-vsprintf-tests: Likewise.
28340         * modules/unistdio/u16-asnprintf-tests: Likewise.
28341         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28342         * modules/unistdio/u16-vasprintf-tests: Likewise.
28343         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28344         * modules/unistdio/u16-vsprintf-tests: Likewise.
28345         * modules/unistdio/u32-asnprintf-tests: Likewise.
28346         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28347         * modules/unistdio/u32-vasprintf-tests: Likewise.
28348         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28349         * modules/unistdio/u32-vsprintf-tests: Likewise.
28350         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28351         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28352         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28353         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28354         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28355         * modules/unistr/u8-check-tests: Likewise.
28356         * modules/unistr/u8-chr-tests: Likewise.
28357         * modules/unistr/u8-cmp-tests: Likewise.
28358         * modules/unistr/u8-cmp2-tests: Likewise.
28359         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28360         * modules/unistr/u8-cpy-tests: Likewise.
28361         * modules/unistr/u8-mblen-tests: Likewise.
28362         * modules/unistr/u8-mbsnlen-tests: Likewise.
28363         * modules/unistr/u8-mbtouc-tests: Likewise.
28364         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28365         * modules/unistr/u8-mbtoucr-tests: Likewise.
28366         * modules/unistr/u8-move-tests: Likewise.
28367         * modules/unistr/u8-next-tests: Likewise.
28368         * modules/unistr/u8-prev-tests: Likewise.
28369         * modules/unistr/u8-set-tests: Likewise.
28370         * modules/unistr/u8-stpcpy-tests: Likewise.
28371         * modules/unistr/u8-stpncpy-tests: Likewise.
28372         * modules/unistr/u8-strcat-tests: Likewise.
28373         * modules/unistr/u8-strcmp-tests: Likewise.
28374         * modules/unistr/u8-strcoll-tests: Likewise.
28375         * modules/unistr/u8-strcpy-tests: Likewise.
28376         * modules/unistr/u8-strdup-tests: Likewise.
28377         * modules/unistr/u8-strlen-tests: Likewise.
28378         * modules/unistr/u8-strmblen-tests: Likewise.
28379         * modules/unistr/u8-strmbtouc-tests: Likewise.
28380         * modules/unistr/u8-strncat-tests: Likewise.
28381         * modules/unistr/u8-strncmp-tests: Likewise.
28382         * modules/unistr/u8-strncpy-tests: Likewise.
28383         * modules/unistr/u8-strnlen-tests: Likewise.
28384         * modules/unistr/u8-to-u16-tests: Likewise.
28385         * modules/unistr/u8-to-u32-tests: Likewise.
28386         * modules/unistr/u8-uctomb-tests: Likewise.
28387         * modules/unistr/u16-check-tests: Likewise.
28388         * modules/unistr/u16-chr-tests: Likewise.
28389         * modules/unistr/u16-cmp-tests: Likewise.
28390         * modules/unistr/u16-cmp2-tests: Likewise.
28391         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28392         * modules/unistr/u16-cpy-tests: Likewise.
28393         * modules/unistr/u16-mblen-tests: Likewise.
28394         * modules/unistr/u16-mbsnlen-tests: Likewise.
28395         * modules/unistr/u16-mbtouc-tests: Likewise.
28396         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28397         * modules/unistr/u16-mbtoucr-tests: Likewise.
28398         * modules/unistr/u16-move-tests: Likewise.
28399         * modules/unistr/u16-next-tests: Likewise.
28400         * modules/unistr/u16-prev-tests: Likewise.
28401         * modules/unistr/u16-set-tests: Likewise.
28402         * modules/unistr/u16-stpcpy-tests: Likewise.
28403         * modules/unistr/u16-stpncpy-tests: Likewise.
28404         * modules/unistr/u16-strcat-tests: Likewise.
28405         * modules/unistr/u16-strcmp-tests: Likewise.
28406         * modules/unistr/u16-strcoll-tests: Likewise.
28407         * modules/unistr/u16-strcpy-tests: Likewise.
28408         * modules/unistr/u16-strdup-tests: Likewise.
28409         * modules/unistr/u16-strlen-tests: Likewise.
28410         * modules/unistr/u16-strmblen-tests: Likewise.
28411         * modules/unistr/u16-strmbtouc-tests: Likewise.
28412         * modules/unistr/u16-strncat-tests: Likewise.
28413         * modules/unistr/u16-strncmp-tests: Likewise.
28414         * modules/unistr/u16-strncpy-tests: Likewise.
28415         * modules/unistr/u16-strnlen-tests: Likewise.
28416         * modules/unistr/u16-to-u32-tests: Likewise.
28417         * modules/unistr/u16-to-u8-tests: Likewise.
28418         * modules/unistr/u16-uctomb-tests: Likewise.
28419         * modules/unistr/u32-check-tests: Likewise.
28420         * modules/unistr/u32-chr-tests: Likewise.
28421         * modules/unistr/u32-cmp-tests: Likewise.
28422         * modules/unistr/u32-cmp2-tests: Likewise.
28423         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28424         * modules/unistr/u32-cpy-tests: Likewise.
28425         * modules/unistr/u32-mblen-tests: Likewise.
28426         * modules/unistr/u32-mbsnlen-tests: Likewise.
28427         * modules/unistr/u32-mbtouc-tests: Likewise.
28428         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28429         * modules/unistr/u32-mbtoucr-tests: Likewise.
28430         * modules/unistr/u32-move-tests: Likewise.
28431         * modules/unistr/u32-next-tests: Likewise.
28432         * modules/unistr/u32-prev-tests: Likewise.
28433         * modules/unistr/u32-set-tests: Likewise.
28434         * modules/unistr/u32-stpcpy-tests: Likewise.
28435         * modules/unistr/u32-stpncpy-tests: Likewise.
28436         * modules/unistr/u32-strcat-tests: Likewise.
28437         * modules/unistr/u32-strcmp-tests: Likewise.
28438         * modules/unistr/u32-strcoll-tests: Likewise.
28439         * modules/unistr/u32-strcpy-tests: Likewise.
28440         * modules/unistr/u32-strdup-tests: Likewise.
28441         * modules/unistr/u32-strlen-tests: Likewise.
28442         * modules/unistr/u32-strmblen-tests: Likewise.
28443         * modules/unistr/u32-strmbtouc-tests: Likewise.
28444         * modules/unistr/u32-strncat-tests: Likewise.
28445         * modules/unistr/u32-strncmp-tests: Likewise.
28446         * modules/unistr/u32-strncpy-tests: Likewise.
28447         * modules/unistr/u32-strnlen-tests: Likewise.
28448         * modules/unistr/u32-to-u16-tests: Likewise.
28449         * modules/unistr/u32-to-u8-tests: Likewise.
28450         * modules/unistr/u32-uctomb-tests: Likewise.
28451         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28452         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28453         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28454         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28455         * modules/uniwidth/u8-strwidth-tests: Likewise.
28456         * modules/uniwidth/u8-width-tests: Likewise.
28457         * modules/uniwidth/u16-strwidth-tests: Likewise.
28458         * modules/uniwidth/u16-width-tests: Likewise.
28459         * modules/uniwidth/u32-strwidth-tests: Likewise.
28460         * modules/uniwidth/u32-width-tests: Likewise.
28461         * modules/uniwidth/width-tests: Likewise.
28462
28463 2010-05-18  Richard Jones  <rjones@redhat.com>
28464
28465         doc: users.txt: list hivex
28466         * users.txt: Add hivex.
28467
28468 2010-05-18  Richard Jones  <rjones@redhat.com>
28469
28470         doc: users.txt: list febootstrap
28471         * users.txt: Add febootstrap.
28472
28473 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28474
28475         bootstrap: fix an error when gnulib is not used as a git submodule
28476         * build-aux/bootstrap (gnulib_path): If its length is zero then
28477         assign "gnulib" to it.
28478         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28479
28480 2010-05-16  Bruno Haible  <bruno@clisp.org>
28481
28482         Avoid autoconf warnings about AM_ICONV.
28483         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28484         2.64.
28485
28486 2010-05-16  Bruno Haible  <bruno@clisp.org>
28487
28488         absolute-header: Make the macro usable in more situations.
28489         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28490         from gl_ABSOLUTE_HEADER.
28491         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28492
28493 2010-05-16  James Youngman  <jay@gnu.org>
28494
28495         doc: update users.txt
28496         * users.txt: Add CSSC.
28497
28498 2010-05-16  Jim Meyering  <meyering@redhat.com>
28499
28500         init.sh: fix an error in the previous change; add more comments
28501         * tests/init.sh: Compare exit code in loop against 9, not 2.
28502         Patch by Bruno Haible.
28503         Make the two tests more similar by adding an empty "then" clause.
28504         Add comments.
28505
28506         init.sh: avoid unnecessary shell re-exec
28507         * tests/init.sh: Improve the re-exec-required check to first test the
28508         current shell.  If it passes the test, do not search for a shell that
28509         does pass, and do not re-exec.  This test is particularly contorted to
28510         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28511         of $(...) evokes a syntax error and causes immediate shell exit with
28512         status 2.  Bruno Haible reported that the re-exec made it impossible
28513         to single-step through any init.sh-using script.
28514
28515 2010-05-16  Bruno Haible  <bruno@clisp.org>
28516
28517         Fix collision between gnulib's and libintl's printf replacements.
28518         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28519         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28520         (printf): When using GNU C, map the __printf__ function to rpl_printf
28521         via __asm__. When not using GNU C, define rpl_printf instead of
28522         __printf__.
28523         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28524         commit.
28525         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28526         commit.
28527         * m4/asm-underscore.m4: New file.
28528         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28529         * modules/stdio (Files): Add m4/asm-underscore.m4.
28530         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28531         Reported by Ben Pfaff.
28532
28533 2010-05-16  Bruno Haible  <bruno@clisp.org>
28534
28535         verify: Avoid skipping the test on openSUSE 11.0.
28536         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28537
28538 2010-05-13  Bruno Haible  <bruno@clisp.org>
28539
28540         Avoid useless warnings from G++.
28541         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28542         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28543         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28544
28545 2010-05-11  Jim Meyering  <meyering@redhat.com>
28546
28547         maint.mk: tweak preceding change
28548         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28549         regexps tighter by anchoring at EOL, and make the new group "shy"
28550         for slightly decreased overhead.
28551
28552 2010-05-11  Eric Blake  <eblake@redhat.com>
28553
28554         maint.mk: gnulib doesn't guarantee NSIG
28555         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28556
28557 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28558
28559         test-pwrite.c: Remove unused variable declaration.
28560         * tests/test-pwrite.c (main): Remove read_buf declaration.
28561
28562         Remove useless test-pwrite.sh file.
28563         * tests/test-pwrite.sh: Delete file.
28564         * modules/pwrite-tests: Remove references.
28565         Reported by Bruno Haible.
28566
28567 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28568
28569         init.sh: fix a typo
28570         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28571
28572 2010-05-10  Jim Meyering  <meyering@redhat.com>
28573
28574         maint.mk: avoid using a temporary file in the always-defined-macros check
28575         * top/maint.mk (.re-defmac): Remove rule.
28576         (gl_trap_): Remove definition.
28577         (sc_prohibit_always-defined_macros): Rewrite not to create and
28578         depend on a temporary file.  Instead, depend on GNU grep's ability
28579         to read a list of regular expressions from stdin when given "-f -".
28580
28581 2010-05-09  Bruno Haible  <bruno@clisp.org>
28582
28583         Update to GNU gettext 0.18, part 1.
28584         * m4/gettext.m4: Update to GNU gettext 0.18.
28585         * m4/intl.m4: Likewise.
28586         * m4/po.m4: Likewise.
28587         * modules/gettext (Files): Add m4/fcntl-o.m4.
28588         (configure.ac): Require gettext infrastructure from version 0.18.
28589
28590 2010-05-09  Jim Meyering  <meyering@redhat.com>
28591
28592         init.sh: enable MALLOC_PERTURB_
28593         * tests/init.sh: Enable glibc's malloc-perturbing option.
28594
28595         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28596         With my recent change in init.sh from the two-line form:
28597             -#   : ${srcdir=.}
28598             -#   . "$srcdir/init.sh"; path_prepend_ .
28599             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28600         I noticed that using the one-line form would cause this test
28601         to fail with a false-positive, or to stop working altogether,
28602         depending on whether help-version changed or all the tests did.
28603         * top/maint.mk (_hv_regex): Remove this definition.
28604         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28605         (_hv_regex_strong): Use a stronger regex to check for conformance.
28606         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28607         Give a separate diagnostic for lack of conforming use.
28608
28609         maint.mk: prohibit definition of symbols defined by gnulib
28610         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28611         definition of symbols defined by gnulib.
28612
28613 2010-05-09  Bruno Haible  <bruno@clisp.org>
28614
28615         acl: Avoid test failure on Cygwin-hosted mingw.
28616         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28617
28618 2010-05-09  Bruno Haible  <bruno@clisp.org>
28619
28620         error: Use system's fcntl function.
28621         * lib/error.c (fcntl): Undefine.
28622
28623 2010-05-09  Jim Meyering  <meyering@redhat.com>
28624
28625         verify: adjust formatting to be more consistent
28626         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28627         argument-list '('s, and after one comma.
28628
28629 2010-05-09  Bruno Haible  <bruno@clisp.org>
28630
28631         error: More reliable output on mingw.
28632         * lib/error.c: Include <windows.h>.
28633         (is_open): New function.
28634         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28635         defined.
28636
28637 2010-05-09  Bruno Haible  <bruno@clisp.org>
28638
28639         vasnprintf: Fix syntax errors in libintl build on mingw.
28640         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28641         pad_ourselves and prec_ourselves after use.
28642
28643 2010-05-08  Bruno Haible  <bruno@clisp.org>
28644
28645         * lib/config.charset: Update comments for Cygwin 1.7.
28646         * lib/localcharset.c: Likewise.
28647
28648 2010-05-07  Jim Meyering  <meyering@redhat.com>
28649
28650         init.sh: improve comments
28651         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28652         . "${srcdir=.}/init.sh"; path_prepend_ .
28653         Add a note about path_prepend_ and the alternative of using
28654         TESTS_ENVIRONMENT.
28655
28656 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28657
28658         exclude: Unescape hashed patterns in wildcard mode.
28659         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28660         to the hash list.
28661         * tests/test-exclude8.sh: New test case.
28662         * modules/exclude-tests: Add new test.
28663
28664 2010-05-05  Eric Blake  <eblake@redhat.com>
28665
28666         verify: automate tests
28667         * modules/verify-tests: New module.
28668         * tests/test-verify.sh: New file.
28669         * tests/test-verify.c: Guard each negative test with a unique id.
28670         Also avoid warning about unused left hand of comma expressions.
28671
28672 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28673
28674         Further improvements to verify.h, suggested by Eric Blake.
28675         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28676         the GL_* versions, to avoid collision with OpenGL.
28677         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28678         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28679         than testing merely whether it's defined.
28680
28681         Modify verify.h to pacify gcc -Wredundant_decls.
28682         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28683         These use the prefix "GL_" since they're likely to be useful elsewhere.
28684         We may need to break them out into a different .h file.
28685         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28686         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28687         of verify_function__.
28688
28689 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28690
28691         Tests for module pwrite.
28692         * modules/pwrite-tests: New file.
28693         * tests/test-pwrite.sh: New file.
28694         * tests/test-pwrite.c: New file.
28695
28696         New module pwrite.
28697         * lib/unistd.in.h (pwrite): New declaration.
28698         * lib/pwrite.c: New file, from glibc with modifications.
28699         * m4/pwrite.m4: New file.
28700         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28701         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28702         REPLACE_PWRITE.
28703         * modules/pwrite: New file.
28704         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28705         REPLACE_PWRITE.
28706         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28707         * doc/posix-functions/pwrite.texi: Mention the new module.
28708
28709 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28710
28711         pread: Update documentation.
28712         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28713
28714 2010-05-04  Eric Blake  <eblake@redhat.com>
28715
28716         docs: update cygwin progress
28717         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28718         this bug.
28719         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28720         Added in cygwin 1.7.2.
28721         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28722         Likewise.
28723         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28724         Likewise.
28725         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28726         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28727         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28728         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28729         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28730         Mention nproc module.
28731         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28732         bug in cygwin 1.7.5 addition.
28733         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28734         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28735         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28736         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28737         1.7.5.
28738         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28739         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28740         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28741         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28742         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28743         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28744         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28745         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28746         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28747         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28748         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28749         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28750         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28751         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28752         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28753         Likewise.
28754         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28755         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28756         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28757         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28758         Likewise.
28759         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28760         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28761         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28762         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28763         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28764         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28765         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28766         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28767         Likewise.
28768         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28769         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28770         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28771         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28772         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28773         Likewise.
28774         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28775         Likewise.
28776         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28777         Likewise.
28778         * doc/glibc-functions/xdrrec_endofrecord.texi
28779         (xdrrec_endofrecord): Likewise.
28780         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28781         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28782         Likewise.
28783         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28784         Likewise.
28785
28786 2010-05-04  Jim Meyering  <meyering@redhat.com>
28787
28788         gendocs.sh: make its "-s FILE" option more useful
28789         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28790         $PACKAGE to reflect the probably-different basename of "FILE".
28791
28792 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28793
28794         bootstrap: don't ignore download_po_files failure
28795         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28796         failure.
28797
28798 2010-05-03  Jim Meyering  <meyering@redhat.com>
28799
28800         maint.mk: allow to pass options to gendocs.sh
28801         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28802         (gendocs_options_): New overridable variable.
28803
28804         gnu-web-doc-update: don't ignore configure or build failure
28805         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28806
28807         announce-gen: backslash-escape '@'s in --help output
28808         * build-aux/announce-gen: Fix syntax errors.
28809
28810         maint.mk, announce-gen: allow project-specific announcement mail headers
28811         * top/maint.mk (translation_project_): Define default.
28812         (announcement_Cc_, announcement_mail_headers_): Likewise.
28813         (announcement): Invoke announce-gen with new --mail-headers option.
28814         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28815
28816         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28817         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28818         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28819         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28820         line in the "err2" output file when running "make check" in verbose
28821         mode (i.e., with set -x enabled).
28822
28823 2010-05-03  Bruno Haible  <bruno@clisp.org>
28824
28825         wctob: Fix for weird platforms.
28826         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28827         argument value.
28828
28829 2010-05-03  Jim Meyering  <meyering@redhat.com>
28830
28831         maint.mk: prohibit unwarranted use of <strings.h>
28832         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28833         strings.h in a file that does not also use strcasecmp, strncasecmp,
28834         ffs or ffsll.
28835
28836         maint.mk: remove obsolete comments
28837         * top/maint.mk: Remove stale, commented-out rules.
28838
28839 2010-05-02  Bruno Haible  <bruno@clisp.org>
28840
28841         wcwidth: Declare also when it's aliased.
28842         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28843         macro.
28844
28845 2010-05-02  Bruno Haible  <bruno@clisp.org>
28846
28847         Fix regression from 2010-04-25.
28848         * gnulib-tool (func_modules_transitive_closure): Check the status of
28849         all modules, not only of the tests that are of the form foo-tests where
28850         foo is a module.
28851
28852 2010-05-02  Bruno Haible  <bruno@clisp.org>
28853
28854         wctob: Work around nasty Cygwin 1.7.2 bug.
28855         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28856         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28857
28858 2010-05-01  Bruno Haible  <bruno@clisp.org>
28859
28860         fpurge: Sharper test.
28861         * tests/test-fpurge.c (main): Add one more ftell check.
28862         * modules/fpurge-tests (Depends-on): Add ftell.
28863         Suggested by Eric Blake.
28864
28865 2010-05-01  Bruno Haible  <bruno@clisp.org>
28866
28867         ftello: Another test.
28868         * tests/test-ftello3.c: New file.
28869         * modules/ftello-tests (Files): Add it.
28870         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28871         MOSTLYCLEANFILES.
28872
28873         ftell: Another test.
28874         * tests/test-ftell3.c: New file.
28875         * modules/ftell-tests (Files): Add it.
28876         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28877         MOSTLYCLEANFILES.
28878
28879 2010-05-01  Bruno Haible  <bruno@clisp.org>
28880
28881         ftell, ftello: Work around Solaris bug.
28882         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28883         * lib/ftello.c: Include stdio-impl.h.
28884         (ftello): On Solaris, when _IOWRT is set, compute the result without
28885         looking at _IOREAD.
28886         * modules/ftello (Files): Add lib/stdio-impl.h.
28887         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28888         * doc/posix-functions/ftello.texi: Likewise.
28889         Reported by Eric Blake.
28890
28891 2010-05-01  Bruno Haible  <bruno@clisp.org>
28892
28893         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28894         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28895         the _IOWRT flag is also set.
28896
28897 2010-05-01  Bruno Haible  <bruno@clisp.org>
28898
28899         Fix doc about a HP-UX stdio bug.
28900         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28901         * doc/posix-functions/ftello.texi: Likewise.
28902
28903 2010-05-01  Bruno Haible  <bruno@clisp.org>
28904
28905         lseek test: Fix failure on Solaris.
28906         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28907         output.
28908
28909 2010-04-30  Jim Meyering  <meyering@redhat.com>
28910
28911         bootstrap: don't ignore failure to generate po*/Makevars
28912         * build-aux/bootstrap (with_gettext): Don't ignore failure
28913         to create po/Makevars or runtime-po/Makevars.
28914
28915 2010-04-29  Eric Blake  <eblake@redhat.com>
28916
28917         headers: relax license to LGPLv2+
28918         * modules/fcntl-h (License): Relax license.
28919         * modules/getopt-posix (License): Likewise.
28920         * modules/locale (License): Likewise.
28921         * modules/math (License): Likewise.
28922         * modules/pty (License): Likewise.
28923         * modules/sched (License): Likewise.
28924         * modules/search (License): Likewise.
28925         * modules/spawn (License): Likewise.
28926         * modules/stdarg (License): Likewise.
28927         * modules/sysexits (License): Likewise.
28928
28929 2010-04-29  Jim Meyering  <meyering@redhat.com>
28930
28931         inttypes: relax license to LGPLv2+
28932         * modules/inttypes (License): Relax license.
28933
28934 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28935
28936         * top/maint.mk (indent): Run twice to produce idempotent results.
28937
28938 2010-04-28  Bruno Haible  <bruno@clisp.org>
28939
28940         getdate: Generate getdate.c in the source directory.
28941         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28942         MOSTLYCLEANFILES.
28943         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28944
28945 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28946
28947         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28948         is not declared as a const *; avoid warnings in that case.
28949
28950 2010-04-28  Eric Blake  <eblake@redhat.com>
28951
28952         canonicalize-lgpl: avoid compiler warning
28953         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28954         declaration' / 'extraneous semicolon' warning with some compilers.
28955         Reported by Andreas Gruenbacher.
28956
28957 2010-04-28  Jim Meyering  <meyering@redhat.com>
28958
28959         init.sh: ensure a more reliable exit status when exiting via trap
28960         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28961         Inspired by patches from Dmitry V. Levin.
28962         Also trap on signal 3 (SIGQUIT).
28963
28964 2010-04-27  Bruno Haible  <bruno@clisp.org>
28965
28966         Update doc about utimes().
28967         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28968         'utimens' module.
28969         Reported by Andreas Gruenbacher <agruen@suse.de>.
28970
28971 2010-04-27  Eric Blake  <eblake@redhat.com>
28972
28973         full-read, full-write: relax license
28974         * modules/full-read (License): Drop to LGPLv2+.
28975         * modules/full-write (License): Likewise.
28976         * modules/safe-read (License): Likewise.
28977         * modules/safe-write (License): Likewise.
28978
28979         pthread: mention library for linking
28980         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28981
28982 2010-04-27  Jim Meyering  <meyering@redhat.com>
28983
28984         maint.mk: fix a bug introduced in last change
28985         * top/maint.mk (gl_assured_headers_): Now that all names are on
28986         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28987         is not anchored to end of word, it should be adequate.
28988
28989         maint.mk: avoid side-effect in latest syntax-check
28990         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28991         to run commands via $(shell...), and hence to incur cost only when
28992         the new rule is actually run.
28993
28994         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28995         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28996         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28997         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28998         (gl_assured_headers_, az_, AZ_): Define.
28999         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29000
29001 2010-04-26  Jim Meyering  <jim@meyering.net>
29002             Bruno Haible  <bruno@clisp.org>
29003
29004         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29005         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29006         Prompted by an exchange with Gilles Espinasse.
29007
29008 2010-04-26  Jim Meyering  <meyering@redhat.com>
29009
29010         git-version-gen: aesthetic tweak
29011         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29012         so that the command remains on a single line.
29013
29014 2010-04-26  Eric Blake  <eblake@redhat.com>
29015
29016         git-version-gen: allow use on EBCDIC hosts
29017         * build-aux/git-version-gen (dirty): Use literal rather than tying
29018         ourselves to ascii.
29019         Reported by Steve Goetze.
29020
29021 2010-04-25  Bruno Haible  <bruno@clisp.org>
29022
29023         netdb: Add support for GNULIB_POSIXCHECK.
29024         * lib/netdb.in.h: Include warn-on-use.h.
29025         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29026         functions are used when GNULIB_POSIXCHECK is defined and the
29027         getaddrinfo module is not in use.
29028         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29029         freeaddrinfo, gai_strerror, getnameinfo are declared.
29030         * modules/netdb (Depends-on): Add warn-on-use.
29031         (Makefile.am): Include warn-on-use.h in netdb.h.
29032
29033 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29034
29035         build: avoid "make check" failure without .git/ directory
29036         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29037         there is no .git/ directory.
29038
29039 2010-04-25  Bruno Haible  <bruno@clisp.org>
29040
29041         ptsname: Fix misuse of ttyname_r.
29042         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29043         of errno.
29044
29045 2010-04-25  Bruno Haible  <bruno@clisp.org>
29046
29047         ttyname_r: Make it work on Solaris 10.
29048         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29049         if the system function has the POSIX declaration. Test whether the
29050         function fails if the buffer is less than 128 bytes large.
29051         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29052         system's ttyname_r function. Provide a reasonably large buffer.
29053         * modules/ttyname_r (Depends-on): Add extensions.
29054         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29055
29056 2010-04-25  Bruno Haible  <bruno@clisp.org>
29057
29058         Use the 'extensions' module for some more functions on Solaris.
29059         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29060         module.
29061         * doc/posix-functions/ctime_r.texi: Likewise.
29062         * doc/posix-functions/getgrgid_r.texi: Likewise.
29063         * doc/posix-functions/getgrnam_r.texi: Likewise.
29064         * doc/posix-functions/getpwnam_r.texi: Likewise.
29065         * doc/posix-functions/getpwuid_r.texi: Likewise.
29066         * doc/posix-functions/readdir_r.texi: Likewise.
29067         * doc/posix-functions/sigwait.texi: Likewise.
29068         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29069         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29070
29071 2010-04-25  Bruno Haible  <bruno@clisp.org>
29072
29073         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29074         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29075         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29076         * lib/ttyname_r.c: Include <limits.h>.
29077         (ttyname_r): Define using the system's ttyname_r function, if it exists
29078         and not on Solaris.
29079         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29080         set.
29081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29082         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29083         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29084         Reported by Simon Josefsson.
29085
29086 2010-04-25  Bruno Haible  <bruno@clisp.org>
29087
29088         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29089         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29090         * doc/posix-functions/ctime_r.texi: Likewise.
29091         * doc/posix-functions/getgrgid_r.texi: Likewise.
29092         * doc/posix-functions/getgrnam_r.texi: Likewise.
29093         * doc/posix-functions/getlogin_r.texi: Likewise.
29094         * doc/posix-functions/getpwnam_r.texi: Likewise.
29095         * doc/posix-functions/getpwuid_r.texi: Likewise.
29096         * doc/posix-functions/readdir_r.texi: Likewise.
29097         * doc/posix-functions/sigwait.texi: Likewise.
29098         * doc/posix-functions/ttyname_r.texi: Likewise.
29099         Reported by Simon Josefsson.
29100
29101 2010-04-25  Bruno Haible  <bruno@clisp.org>
29102
29103         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29104         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29105         also to --create-testdir.
29106         (func_acceptable): Don't consider the status of *-tests modules here.
29107         (func_modules_transitive_closure): Consider it here, before including a
29108         test module.
29109         (func_import, func_create_testdir): Set inc_all_direct_tests,
29110         inc_all_indirect_tests.
29111         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29112         --create-testdir and --create-megatestdir.
29113
29114 2010-04-25  Bruno Haible  <bruno@clisp.org>
29115
29116         gnulib-tool: Add --without-*-tests options.
29117         * gnulib-tool (func_usage): Document the --without-*-tests options.
29118         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29119         excl_unportable_tests): New variables.
29120         Fail if they are specified with --import or --update.
29121         (func_acceptable): Respect the excl_*_tests variables.
29122         (func_import): Set the excl_*_tests variables to empty.
29123
29124 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29125             Bruno Haible  <bruno@clisp.org>
29126
29127         Work around a MacOS X 10.4 bug with openpty.
29128         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29129         * tests/test-openpty.c (main): Close the master side explicitly.
29130
29131 2010-04-25  Bruno Haible  <bruno@clisp.org>
29132
29133         strnlen: Fix a C++ test error on MacOS X and Solaris.
29134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29135         the function is not declared.
29136         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29137         Simon Josefsson.
29138
29139 2010-04-24  Bruno Haible  <bruno@clisp.org>
29140
29141         Avoid a gcc warning.
29142         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29143         of correct type for %08lx directive.
29144         Reported by Eric Blake.
29145
29146 2010-04-24  Bruno Haible  <bruno@clisp.org>
29147
29148         vasnprintf: Correct errno value in case of out-of-memory.
29149         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29150         or sprintf. Use the errno value from SNPRINTF or sprintf.
29151         Reported by Ian Beckwith <ianb@erislabs.net>.
29152
29153 2010-04-24  Bruno Haible  <bruno@clisp.org>
29154
29155         ansi-c++-opt: Find correct compiler when cross-compiling.
29156         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29157         AC_CHECK_PROGS.
29158         Reported by Simon Josefsson.
29159
29160 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29161
29162         vc-list-files: Add support for subversion
29163         * build-aux/vc-list-files: Use "svn list" to generate the list of
29164         files controlled by subversion.
29165
29166 2010-04-23  Jim Meyering  <meyering@redhat.com>
29167
29168         vc-list-files tests: convert to use init.sh
29169         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29170         path_prepend_.
29171         Use Exit, not exit.
29172         Use skip_ rather than open coding it.
29173         Remove trap set-up and compare definitions.
29174         * tests/test-vc-list-files-git.sh: Likewise.
29175         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29176
29177 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29178
29179         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29180         backup files.
29181
29182 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29183
29184         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29185
29186 2010-04-20  Eric Blake  <eblake@redhat.com>
29187
29188         tests: be robust to ignored SIGPIPE
29189         * tests/test-select-in.sh: Consume all output.
29190         * tests/test-lseek.sh: Check correct exit status, while avoiding
29191         EPIPE.
29192
29193 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29194             Bruno Haible  <bruno@clisp.org>
29195
29196         visibility: Don't use -fvisibility if it leads to a warning.
29197         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29198         yes, don't pretend that visibility works if it leads to a warning.
29199         Reported by Mike Gran <spk121@yahoo.com>.
29200
29201 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29202
29203         * build-aux/bootstrap: Use "git -h" for testing for supported options
29204         instead of "git --help".  The short-form option only shows a summary,
29205         and doesn't layout the full man page.  Grep for the full option name
29206         in the summary, too.
29207
29208 2010-04-19  Bruno Haible  <bruno@clisp.org>
29209
29210         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29211         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29212         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29213         mention of RELOCATABLE_STRIP.
29214         Reported by Sylvain Beucler <beuc@beuc.net>.
29215
29216 2010-04-19  Bruno Haible  <bruno@clisp.org>
29217
29218         * lib/diffseq.h: Fix typo in comment.
29219         Reported by Eric Blake.
29220
29221 2010-04-19  Bruno Haible  <bruno@clisp.org>
29222
29223         ioctl: Move autoconf macro to a .m4 file.
29224         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29225         * modules/ioctl (Files): Add it.
29226         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29227         Reported by Ian Beckwith <ianb@erislabs.net>.
29228
29229 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29230             Bruno Haible  <bruno@clisp.org>
29231
29232         diffseq: Accommodate use-case with abstract arrays.
29233         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29234         is not defined.
29235         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29236         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29237
29238 2010-04-18  Bruno Haible  <bruno@clisp.org>
29239
29240         * doc/posix-headers/stdbool.texi: More precise wording.
29241
29242 2010-04-17  Jim Meyering  <meyering@redhat.com>
29243
29244         maint.mk: use gnu-style indentation in an embedded perl script
29245         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29246         Rename variable: s/two/last_two_bytes/
29247
29248 2010-04-16  Eric Blake  <eblake@redhat.com>
29249
29250         test-stdbool: skip test that fails with Solaris CC
29251         * tests/test-stdbool.c (f): Skip test that causes compilation
29252         error under buggy C++ compiler.
29253         * lib/stdbool.in.h: Document the limitation.
29254         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29255
29256         setenv: allow compilation with C++
29257         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29258         register keyword.
29259
29260         stdint: allow test to pass with C++
29261         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29262
29263         getopt: allow compilation with C++
29264         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29265         struct.
29266         * lib/getopt.c (_getopt_internal_r): Use correct type.
29267         Reported by Dagobert Michelson, via Joel E. Denny.
29268
29269 2010-04-16  Bruno Haible  <bruno@clisp.org>
29270
29271         Override netdb.h always.
29272         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29273         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29274         Reported by Ludovic Courtès <ludo@gnu.org>.
29275
29276 2010-04-15  Bruno Haible  <bruno@clisp.org>
29277
29278         openpty: Fix mistake from 2010-03-21.
29279         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29280         Reported by Simon Josefsson.
29281
29282 2010-04-15  Eric Blake  <eblake@redhat.com>
29283
29284         test-forkpty: fix expected signature
29285         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29286         Reported by Simon Josefsson.
29287
29288 2010-04-15  Jim Meyering  <meyering@redhat.com>
29289
29290         maint.mk: texinfo_suffix_re_: correct the default regexp
29291         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29292
29293         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29294         make it configurable via texinfo_suffix_re_.
29295
29296 2010-04-14  Eric Blake  <eblake@redhat.com>
29297
29298         strtok_r: relax license to LGPLv2+
29299         * modules/strtok_r (License): Relax license.
29300         Reported by Matthias Bolte.
29301
29302 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29303
29304         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29305         version 1.4.4 by default instead of requiring the libgcrypt
29306         version used during build.  This makes it possible to use the
29307         application with older but still binary compatible libgcrypt
29308         versions.
29309
29310 2010-04-13  Eric Blake  <eblake@redhat.com>
29311
29312         getopt-gnu: match recent glibc fixes and posix ruling
29313         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29314         '+' handling, when requesting extensions.
29315         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29316         'W;' handling.
29317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29318         * doc/posix-functions/getopt.texi (getopt): Document this.
29319         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29320         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29321         Likewise.
29322
29323         getopt: merge bug fixes from glibc
29324         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29325         diagnostics.  Honor '+:' correctly.  Reject ';'.
29326
29327         getopt-posix: detect MacOS bug
29328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29329         optind when missing a required argument.
29330         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29331         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29332         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29333         Likewise.
29334
29335         getopt-posix: avoid spurious failure on Solaris
29336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29337         an indicator that setting optind=1 is sufficient for reset.
29338
29339         getopt-posix: avoid spurious failure on FreeBSD
29340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29341         in POSIX mode, since the m4 test uses it.
29342
29343         gnulib-tool: silence warning on BSD sh
29344         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29345
29346 2010-04-13  Jim Meyering  <meyering@redhat.com>
29347
29348         doc: users.txt: GNU patch now uses gnulib
29349         * users.txt: Add patch.
29350
29351 2010-04-12  Jim Meyering  <meyering@redhat.com>
29352
29353         maint.mk: generate more concise timing data for syntax-check rules
29354         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29355         " done" from each line that reports a syntax-check test duration.
29356
29357 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29358
29359         git-version-gen: use "git update-index..." rather than "git status"
29360         * build-aux/git-version-gen: Use git update-index --refresh, not
29361         "git status".  With some versions of git, "git status" would fail
29362         to update the index and result in an unwarranted "-dirty" suffix.
29363
29364 2010-04-11  Jim Meyering  <meyering@redhat.com>
29365
29366         openat: correct formatting (no semantic change)
29367         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29368         Suggested by Bruno Haible.
29369
29370 2010-04-11  Bruno Haible  <bruno@clisp.org>
29371
29372         Stricter declaration checking in testdirs.
29373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29374         If for_tests is true, augment AM_CPPFLAGS to define
29375         GNULIB_STRICT_CHECKING.
29376         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29377         GNULIB_STRICT_CHECKING is defined, verify that the function is
29378         declared.
29379
29380 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29381             Bruno Haible  <bruno@clisp.org>
29382
29383         libunistring: Improve configure output.
29384         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29385         Don't say "consider installing GNU libunistring" when checking again
29386         with libiconv.
29387
29388 2010-04-11  Bruno Haible  <bruno@clisp.org>
29389
29390         libunistring: Correct value of $LTLIBUNISTRING.
29391         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29392         correct the value of $LTLIBUNISTRING.
29393
29394 2010-04-11  Bruno Haible  <bruno@clisp.org>
29395
29396         havelib: Add static libraries to LIBS in the right order.
29397         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29398         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29399
29400 2010-04-11  Bruno Haible  <bruno@clisp.org>
29401
29402         libunistring: Detect libunistring also when it depends on libiconv.
29403         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29404         the second AC_LIB_HAVE_LINKFLAGS invocation.
29405
29406 2010-04-11  James Youngman  <jay@gnu.org>
29407
29408         close-stream: declare local scalars to be "const"
29409         * lib/close-stream.c (close_stream): Make boolean variables const
29410         to document the fact that we set but do not change them.
29411
29412 2010-04-11  Bruno Haible  <bruno@clisp.org>
29413
29414         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29415
29416 2010-04-11  Jim Meyering  <meyering@redhat.com>
29417
29418         maint.mk: don't include dist-check.mk
29419         * top/maint.mk: Remove bogus include directive.
29420
29421         maint.mk: improve empty-line-at-EOF check
29422         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29423         solution, rather than tail+Perl-based one.  The latter would read
29424         a few kilobytes from the end of each file, and did not handle empty
29425         files properly.
29426
29427         maint.mk: print the elapsed time for each syntax-check rule
29428         * top/maint.mk (sc_m_rules_): Save start time in a file.
29429         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29430         (local-check): Interpose the .z rules
29431
29432 2010-04-11  Jim Meyering  <meyering@redhat.com>
29433
29434         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29435         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29436         empty file with one that ends in an empty line.
29437
29438 2010-04-10  Bruno Haible  <bruno@clisp.org>
29439
29440         mkdir: Make it work on mingw64.
29441         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29442         * lib/mkdir.c: Update comment.
29443         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29444
29445 2010-04-10  Bruno Haible  <bruno@clisp.org>
29446
29447         Don't override improved macro from newer autoconf.
29448         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29449         autoconf >= 2.62.
29450         Reported by Joel E. Denny <jdenny@clemson.edu>.
29451
29452 2010-04-10  Jim Meyering  <meyering@redhat.com>
29453
29454         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29455         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29456
29457         maint.mk: correct a diagnostic
29458         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29459         in diagnostic; now use $prohibit.
29460
29461 2010-04-10  Bruno Haible  <address@hidden>
29462
29463         fchownat: Fix a C++ test error on Solaris 8.
29464         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29465         the function does not exist.
29466
29467 2010-04-10  Bruno Haible  <bruno@clisp.org>
29468
29469         vasnprintf: Add more tests.
29470         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29471         (test_function): Test converting an invalid wide string.
29472
29473         vasnprintf: Correct handling of unconvertible wide string arguments.
29474         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29475         VASNPRINTF.
29476         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29477         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29478         smaller than the expected maximum need for the directive. Set errno to
29479         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29480         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29482         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29483         * modules/vasnprintf (Files): Add m4/printf.m4.
29484         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29485
29486 2010-04-10  Bruno Haible  <bruno@clisp.org>
29487
29488         vasnprintf: Fix crash in %ls directive.
29489         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29490         string is passed as argument to %ls, with no precision and no width.
29491         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29492
29493 2010-04-10  Bruno Haible  <bruno@clisp.org>
29494
29495         vasnprintf: Fix multiple test failures on mingw.
29496         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29497         _snprintf, or snwprintf, not _snwprintf.
29498
29499 2010-04-10  Bruno Haible  <bruno@clisp.org>
29500
29501         write: Fix a C++ test error on mingw.
29502         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29503
29504 2010-04-10  Bruno Haible  <bruno@clisp.org>
29505
29506         vasnprintf test: Reduce code duplication.
29507         * tests/test-vasnprintf.c (test_function): New function, extracted from
29508         test_vasnprintf.
29509         (test_vasnprintf, test_asnprintf): Invoke it.
29510
29511 2010-04-10  Bruno Haible  <bruno@clisp.org>
29512
29513         strnlen: Fix warning in C++ mode on MacOS X.
29514         * lib/string.in.h (strnlen): Use the modern idiom.
29515         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29516         defining strnlen as a macro already in <config.h>.
29517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29518         REPLACE_STRNLEN.
29519         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29520         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29521
29522 2010-04-08  James Youngman  <jay@gnu.org>
29523
29524         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29525         the example.
29526
29527 2010-04-09  Jim Meyering  <meyering@redhat.com>
29528
29529         maint.mk: print better diagnostic when there is no $(_hv_file)
29530         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29531         announce that when $(_hv_file) (aka help-version) does not exist.
29532
29533         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29534         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29535         not try to interpret its random input bytes.  Jarno Rajahalme reported
29536         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29537         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29538         (mktempd_): Likewise, just in case.
29539
29540         ftruncate: add two years to projected module removal date: 2012
29541         * m4/ftruncate.m4: Adjust comments.
29542
29543         ftruncate: mark module as obsolete; even MinGW provides it, now
29544         * modules/ftruncate (Status): Obsolete.
29545         (Notice): Say that.
29546         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29547         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29548
29549 2010-04-08  Bruno Haible  <bruno@clisp.org>
29550
29551         Fix side effects from tests-related modules.
29552         * modules/dprintf-posix (Comment): New section.
29553         * modules/fprintf-posix (Comment): Likewise.
29554         * modules/obstack-printf-posix (Comment): Likewise.
29555         * modules/printf-posix (Comment): Likewise.
29556         * modules/snprintf-posix (Comment): Likewise.
29557         * modules/sprintf-posix (Comment): Likewise.
29558         * modules/vasnprintf-posix (Comment): Likewise.
29559         * modules/vasprintf-posix (Comment): Likewise.
29560         * modules/vdprintf-posix (Comment): Likewise.
29561         * modules/vfprintf-posix (Comment): Likewise.
29562         * modules/vprintf-posix (Comment): Likewise.
29563         * modules/vsnprintf-posix (Comment): Likewise.
29564         * modules/vsprintf-posix (Comment): Likewise.
29565         * modules/xprintf-posix (Comment): Likewise.
29566         * modules/xvasprintf-posix (Comment): Likewise.
29567         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29568         * modules/floorf-tests (Depends-on): Likewise.
29569         * modules/round-tests (Depends-on): Likewise.
29570         * modules/roundf-tests (Depends-on): Likewise.
29571         * modules/trunc-tests (Depends-on): Likewise.
29572         * modules/truncf-tests (Depends-on): Likewise.
29573         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29574         'fprintf-posix' module is not present.
29575         * tests/test-floorf2.c (check): Likewise.
29576         * tests/test-trunc2.c (check): Likewise.
29577         * tests/test-truncf2.c (check): Likewise.
29578         * tests/test-round2.c (equal): Likewise.
29579         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29580
29581 2010-04-07  Karl Berry  <karl@gnu.org>
29582
29583         * config/srclist.txt,
29584         * config/srclistvars.sh,
29585         * config/srclist-update: doc fixes.
29586
29587 2010-04-07  Jim Meyering  <meyering@redhat.com>
29588
29589         maint.mk: add a PATH crosschecking syntax-check rule
29590         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29591         Useful if you use a test like the one in help-version (coreutils,
29592         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29593         printed by prog --version.
29594
29595 2010-04-06  Bruno Haible  <bruno@clisp.org>
29596
29597         Fix link error on mingw.
29598         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29599         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29600
29601 2010-04-06  Bruno Haible  <bruno@clisp.org>
29602
29603         Assume rmdir exists.
29604         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29605
29606 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29607
29608         doc: update users.txt
29609         * users.txt: Add gcal.
29610
29611 2010-04-06  Jim Meyering  <meyering@redhat.com>
29612
29613         init.sh: simply unset TMPDIR rather than risking env -i
29614         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29615         although it probably works fine on all Unix-based systems, some
29616         systems (Cygwin?) cannot tolerate a totally cleared environment.
29617         Suggestion from Eric Blake.
29618
29619 2010-04-06  Jim Meyering  <meyering@redhat.com>
29620
29621         init.sh: portability fix: use env's POSIX-specified -i option not -u
29622         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29623         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29624
29625 2010-04-05  Bruno Haible  <bruno@clisp.org>
29626
29627         btowc: Work around Cygwin 1.7.2 bug.
29628         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29629         does not map NUL to 0.
29630         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29631
29632 2010-04-05  Bruno Haible  <bruno@clisp.org>
29633
29634         Make the multithread modules work on Cygwin 1.7.2.
29635         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29636         imported symbols can be declared weak, so that it returns "no" on
29637         Cygwin 1.7.2.
29638
29639 2010-04-05  Bruno Haible  <bruno@clisp.org>
29640
29641         Use the module 'strncat'.
29642         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29643
29644         Tests for module 'strncat'.
29645         * modules/strncat-tests: New file.
29646         * tests/test-strncat.c: New file.
29647
29648         New module 'strncat'.
29649         * lib/string.in.h (strncat): New declaration.
29650         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29651         * m4/strncat.m4: New file, based on m4/memchr.m4.
29652         * modules/strncat: New file.
29653         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29654         is declared.
29655         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29656         REPLACE_STRNCAT.
29657         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29658         REPLACE_STRNCAT.
29659         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29660         module.
29661         * tests/test-string-c++.cc: Check signature of strncat.
29662
29663 2010-04-05  Jim Meyering  <meyering@redhat.com>
29664
29665         xstrtoumax-tests: convert to use init.sh
29666         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29667         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29668         Use Exit, not exit.
29669         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29670
29671         xstrtoimax-tests: convert to use init.sh
29672         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29673         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29674         Use Exit, not exit.
29675         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29676
29677 2010-04-05  Bruno Haible  <bruno@clisp.org>
29678
29679         sys_socket: Avoid #define replacements in C++ mode.
29680         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29681         warning to the function if possible, rather than #defining the symbol
29682         to a dysfunctional alias.
29683
29684 2010-04-05  Bruno Haible  <bruno@clisp.org>
29685
29686         fseeko: Fix C++ test error on mingw.
29687         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29688         gl_FUNC_FSEEKO.
29689         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29690         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29691         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29692         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29693
29694 2010-04-05  Bruno Haible  <bruno@clisp.org>
29695
29696         duplocale: Improve test output.
29697         * tests/test-duplocale.c (main): Print reason for skipped test.
29698
29699 2010-04-05  Bruno Haible  <bruno@clisp.org>
29700
29701         Assume rmdir exists.
29702         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29703         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29704
29705 2010-04-05  Bruno Haible  <bruno@clisp.org>
29706
29707         Fix link error on Solaris 8 with cc.
29708         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29709
29710 2010-04-05  Bruno Haible  <bruno@clisp.org>
29711
29712         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29713         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29714
29715 2010-04-05  Bruno Haible  <bruno@clisp.org>
29716
29717         vasprintf: Update documentation.
29718         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29719
29720 2010-04-05  Bruno Haible  <bruno@clisp.org>
29721
29722         ptsname: Improve test.
29723         * tests/test-ptsname.c (main): Also try the various master names of BSD
29724         systems.
29725
29726 2010-04-05  Bruno Haible  <bruno@clisp.org>
29727
29728         memchr: Avoid a possible C++ test error.
29729         * lib/string.in.h (memchr): Provide declaration if function is missing.
29730         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29731         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29733         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29734
29735 2010-04-05  Bruno Haible  <bruno@clisp.org>
29736
29737         strtok_r: Improve idiom.
29738         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29739         AC_LIBOBJ is used.
29740
29741 2010-04-05  Bruno Haible  <bruno@clisp.org>
29742
29743         strdup: Improve idiom.
29744         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29745         AC_LIBOBJ is used.
29746         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29747         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29748         when AC_LIBOBJ is used.
29749
29750 2010-04-05  Bruno Haible  <bruno@clisp.org>
29751
29752         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29753         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29754         don't set REPLACE_MBSINIT to 1.
29755         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29756         don't set REPLACE_MBRTOWC to 1.
29757         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29758         exist, don't set REPLACE_MBSRTOWCS to 1.
29759         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29760         exist, don't set REPLACE_MBSNRTOWCS to 1.
29761         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29762         don't set REPLACE_WCRTOMB to 1.
29763         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29764         exist, don't set REPLACE_WCSRTOMBS to 1.
29765         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29766         exist, don't set REPLACE_WCSNRTOMBS to 1.
29767
29768 2010-04-05  Bruno Haible  <bruno@clisp.org>
29769
29770         ldexpl: Improve idiom.
29771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29772         make sure to set HAVE_DECL_LDEXPL to 0.
29773
29774 2010-04-05  Jim Meyering  <meyering@redhat.com>
29775
29776         xstrtol-tests: convert to use init.sh
29777         * modules/xstrtol-tests (Files): Add tests/init.sh.
29778         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29779         Use Exit, not exit.
29780         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29781
29782         atexit-tests: convert to use init.sh
29783         * modules/atexit-tests (Files): Add tests/init.sh.
29784         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29785         Use Exit, not exit.
29786         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29787
29788         init.sh: fix typo
29789         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29790
29791         init.sh: make it easier for a test script to write to the tty, ...
29792         when using automake's parallel-tests mode.
29793         * tests/init.sh (stderr_fileno_): Define overridable variable.
29794         (warn_): New function, to use it.
29795         (fail_, skip_, framework_failure_): Use warn_.
29796
29797 2010-04-04  Bruno Haible  <bruno@clisp.org>
29798
29799         btowc: Avoid warning.
29800         * lib/btowc.c: Include <stdlib.h>.
29801         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29802
29803 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29804             Bruno Haible  <bruno@clisp.org>
29805
29806         wchar: Port to NetBSD 1.5.
29807         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29808         * lib/wctype.in.h (WEOF): Likewise.
29809
29810 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29811             Bruno Haible  <bruno@clisp.org>
29812
29813         Port extended stdio to NetBSD 1.5.
29814         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29815         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29816         older.
29817
29818 2010-04-04  Bruno Haible  <bruno@clisp.org>
29819
29820         string: Remove unused substitution.
29821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29822         HAVE_DECL_STRERROR.
29823         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29824
29825 2010-04-04  Bruno Haible  <bruno@clisp.org>
29826
29827         strtod: Avoid a possible C++ test error.
29828         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29829         set REPLACE_STRTOD.
29830
29831 2010-04-04  Bruno Haible  <bruno@clisp.org>
29832
29833         strerror: Update documentation.
29834         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29835
29836 2010-04-04  Bruno Haible  <bruno@clisp.org>
29837
29838         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29839         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29840         _GL_CXXALIAS_SYS_CAST.
29841
29842 2010-04-04  Bruno Haible  <bruno@clisp.org>
29843
29844         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29845         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29846         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29847         REPLACE_FREXPL to 1.
29848         * doc/posix-functions/frexpl.texi: Update documentation.
29849
29850 2010-04-04  Bruno Haible  <bruno@clisp.org>
29851
29852         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29853         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29854
29855 2010-04-04  Bruno Haible  <bruno@clisp.org>
29856
29857         Implement nanosleep for native Windows.
29858         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29859
29860 2010-04-04  Bruno Haible  <bruno@clisp.org>
29861
29862         math: Fix some C++ test errors on Solaris 8.
29863         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29864
29865 2010-04-04  Bruno Haible  <bruno@clisp.org>
29866
29867         math: Fix some C++ test errors on Cygwin.
29868         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29869         truncl): Provide declaration if the system does not have it.
29870         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29871         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29872         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29873         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29874         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29875         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29876         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29877         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29878         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29879         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29880         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29881         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29882         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29883         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29884         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29885         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29887         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29888         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29889         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29890         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29891         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29892
29893 2010-04-04  Bruno Haible  <bruno@clisp.org>
29894
29895         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29896         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29897         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29898         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29899         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29900         * m4/isinf.m4 (gl_ISINF): Likewise.
29901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29902
29903 2010-04-04  Bruno Haible  <bruno@clisp.org>
29904
29905         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29906         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29907
29908 2010-04-04  Bruno Haible  <bruno@clisp.org>
29909
29910         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29911         * modules/tmpfile (configure.ac): Update.
29912
29913         tmpfile: Fix C++ test error on mingw.
29914         * lib/stdio.in.h (tmpfile): New declaration.
29915         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29916         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29917         * modules/tmpfile (Depends-on): Add stdio.
29918         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29919         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29920         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29921         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29922         REPLACE_TMPFILE.
29923         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29924
29925 2010-04-04  Bruno Haible  <bruno@clisp.org>
29926
29927         ioctl: Fix C++ test error on mingw.
29928         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29929         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29930         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29931
29932 2010-04-03  Bruno Haible  <bruno@clisp.org>
29933
29934         wcwidth: Fix C++ test error on mingw.
29935         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29937         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29938
29939 2010-04-03  Bruno Haible  <bruno@clisp.org>
29940
29941         nanosleep: Fix C++ test error on mingw.
29942         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29943         * lib/time.in.h (nanosleep): Use modern idiom.
29944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29945         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29946         REPLACE_NANOSLEEP to 1.
29947         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29948         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29949
29950 2010-04-03  Bruno Haible  <bruno@clisp.org>
29951
29952         strptime: Fix C++ test error on mingw.
29953         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29954         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29955         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29956         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29958         not REPLACE_STRPTIME.
29959         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29960         REPLACE_STRPTIME.
29961
29962 2010-04-03  Bruno Haible  <bruno@clisp.org>
29963
29964         timegm: Fix C++ test error on mingw.
29965         * lib/time.in.h (timegm): Use modern idiom.
29966         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29967         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29969         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29970
29971 2010-04-03  Bruno Haible  <bruno@clisp.org>
29972
29973         timegm: Assume declaration if function exists.
29974         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29975         if it exists. Don't clobber ac_cv_func_timegm.
29976
29977 2010-04-03  Bruno Haible  <bruno@clisp.org>
29978
29979         time_r: Fix C++ test error on mingw.
29980         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29981         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29982         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29983         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29984         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29985
29986 2010-04-03  Bruno Haible  <bruno@clisp.org>
29987
29988         time_r: Minor updates.
29989         * modules/time_r (Description): Mention the provided functions.
29990         * lib/time_r.c: Don't include <string.h>.
29991         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29992         * doc/posix-functions/localtime_r.texi: Likewise.
29993
29994 2010-04-03  Bruno Haible  <bruno@clisp.org>
29995
29996         time: Fix regression introduced on 2010-03-08.
29997         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29998         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29999
30000 2010-04-03  Jim Meyering  <meyering@redhat.com>
30001
30002         maint.mk: don't silently disable project-specific syntax-check rules
30003         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30004         that they need to convert their project-specific syntax-check rules
30005         to use the new _sc_search_regexp.
30006
30007 2010-04-03  Bruno Haible  <bruno@clisp.org>
30008
30009         fchdir: Fix regression introduced on 2010-03-08.
30010         * lib/unistd.in.h (fchdir): Fix declaration.
30011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30013         REPLACE_FCHDIR.
30014         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30015         REPLACE_FCHDIR.
30016
30017 2010-04-03  Bruno Haible  <bruno@clisp.org>
30018
30019         getpagesize: Fix C++ test error on mingw.
30020         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30021         system does not declare the function.
30022         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30023         declared.
30024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30025         HAVE_DECL_GETPAGESIZE.
30026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30027
30028 2010-04-03  Bruno Haible  <bruno@clisp.org>
30029
30030         stdio: Make C++ tests work on mingw.
30031         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30032         does not declare the function.
30033
30034 2010-04-03  Bruno Haible  <bruno@clisp.org>
30035
30036         ftello: Fix C++ test error on mingw.
30037         * lib/stdio.in.h (ftello): Use modern idiom.
30038         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30039         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30040         is missing and that it needs to be replaced.
30041         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30043         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30044
30045 2010-04-03  Bruno Haible  <bruno@clisp.org>
30046
30047         fseeko: Fix C++ test error on mingw.
30048         * lib/stdio.in.h (fseeko): Use modern idiom.
30049         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30051         is missing and that it needs to be replaced.
30052         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30054         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30055
30056 2010-04-03  Bruno Haible  <bruno@clisp.org>
30057
30058         mkstemp: Fix C++ test error on mingw.
30059         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30061         function is missing and that it needs to be replaced.
30062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30063         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30064
30065 2010-04-03  Bruno Haible  <bruno@clisp.org>
30066
30067         stpncpy: Fix C++ test error on mingw.
30068         * lib/string.in.h (stpncpy): Use modern idiom.
30069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30070         function is missing and that it needs to be replaced.
30071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30072         REPLACE_STPNCPY.
30073         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30074
30075 2010-04-03  Bruno Haible  <bruno@clisp.org>
30076
30077         sys_stat: Fix C++ test error on mingw.
30078         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30079         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30080
30081 2010-04-03  Bruno Haible  <bruno@clisp.org>
30082
30083         pty: Update doc.
30084         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30085
30086 2010-04-03  Bruno Haible  <bruno@clisp.org>
30087
30088         unistd: Fix C++ test error on mingw.
30089         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30090
30091 2010-04-03  Bruno Haible  <bruno@clisp.org>
30092
30093         Update doc regarding mingw.
30094         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30095         * doc/glibc-functions/login_tty.texi: Likewise.
30096         * doc/glibc-functions/forkpty.texi: Likewise.
30097
30098 2010-04-03  Bruno Haible  <bruno@clisp.org>
30099
30100         stdlib: Avoid compilation failure of c-strtold on mingw.
30101         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30102
30103 2010-04-03  Bruno Haible  <bruno@clisp.org>
30104
30105         locale: Make C++ tests work on Cygwin and mingw.
30106         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30107         cannot provide the function.
30108         Reported by Simon Josefsson.
30109
30110 2010-04-03  Bruno Haible  <bruno@clisp.org>
30111
30112         localename: Port to MacOS X 10.6.
30113         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30114         memory layout of the locales in MacOS X 10.6 as well.
30115         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30116
30117 2010-04-02  Bruno Haible  <bruno@clisp.org>
30118
30119         gnulib-tool: Ensure that long-running tests are executed last.
30120         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30121         running tests after the one for the other tests.
30122
30123 2010-04-02  Bruno Haible  <bruno@clisp.org>
30124
30125         gnulib-tool: Ensure the tests in the main directory are executed first.
30126         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30127         start with the current directory.
30128
30129 2010-04-02  Bruno Haible  <bruno@clisp.org>
30130
30131         Tests for module 'havelib', moved here from GNU gettext.
30132         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30133         modifications.
30134         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30135         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30136         with modifications.
30137         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30138         modifications.
30139         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30140         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30141         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30142         with modifications.
30143         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30144         with modifications.
30145         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30146         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30147         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30148         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30149         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30150         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30151         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30152         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30153         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30154         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30155         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30156         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30157         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30158         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30159         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30160         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30161         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30162         with modifications.
30163         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30164         with modifications.
30165         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30166         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30167         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30168         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30169         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30170         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30171         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30172         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30173         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30174         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30175         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30176         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30177         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30178         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30179         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30180         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30181         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30182         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30183         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30184         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30185         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30186         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30187         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30188         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30189         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30190         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30191         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30192         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30193         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30194         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30195         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30196         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30197         * tests/havelib/rpathx/rpathx.c: New file, from
30198         gettext/autoconf-lib-link.
30199         * tests/havelib/rpathx/Makefile.am: New file, from
30200         gettext/autoconf-lib-link.
30201         * tests/havelib/rpathx/configure.ac: New file, from
30202         gettext/autoconf-lib-link with modifications.
30203         * tests/havelib/rpathy/rpathy.c: New file, from
30204         gettext/autoconf-lib-link.
30205         * tests/havelib/rpathy/Makefile.am: New file, from
30206         gettext/autoconf-lib-link.
30207         * tests/havelib/rpathy/configure.ac: New file, from
30208         gettext/autoconf-lib-link with modifications.
30209         * tests/havelib/rpathz/rpathz.c: New file, from
30210         gettext/autoconf-lib-link.
30211         * tests/havelib/rpathz/Makefile.am: New file, from
30212         gettext/autoconf-lib-link.
30213         * tests/havelib/rpathz/configure.ac: New file, from
30214         gettext/autoconf-lib-link with modifications.
30215         * tests/havelib/rpathlx/usex.c: New file, from
30216         gettext/autoconf-lib-link.
30217         * tests/havelib/rpathlx/Makefile.am: New file, from
30218         gettext/autoconf-lib-link.
30219         * tests/havelib/rpathlx/configure.ac: New file, from
30220         gettext/autoconf-lib-link with modifications.
30221         * tests/havelib/rpathly/usey.c: New file, from
30222         gettext/autoconf-lib-link.
30223         * tests/havelib/rpathly/Makefile.am: New file, from
30224         gettext/autoconf-lib-link.
30225         * tests/havelib/rpathly/configure.ac: New file, from
30226         gettext/autoconf-lib-link with modifications.
30227         * tests/havelib/rpathlz/usez.c: New file, from
30228         gettext/autoconf-lib-link.
30229         * tests/havelib/rpathlz/Makefile.am: New file, from
30230         gettext/autoconf-lib-link.
30231         * tests/havelib/rpathlz/configure.ac: New file, from
30232         gettext/autoconf-lib-link with modifications.
30233         * tests/havelib/rpathlyx/usey.c: New file, from
30234         gettext/autoconf-lib-link.
30235         * tests/havelib/rpathlyx/Makefile.am: New file, from
30236         gettext/autoconf-lib-link.
30237         * tests/havelib/rpathlyx/configure.ac: New file, from
30238         gettext/autoconf-lib-link with modifications.
30239         * tests/havelib/rpathlzyx/usez.c: New file, from
30240         gettext/autoconf-lib-link.
30241         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30242         gettext/autoconf-lib-link.
30243         * tests/havelib/rpathlzyx/configure.ac: New file, from
30244         gettext/autoconf-lib-link with modifications.
30245         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30246         with modifications.
30247
30248 2010-04-02  Bruno Haible  <bruno@clisp.org>
30249
30250         gnulib-tool: Create distributed built sources also for the tests.
30251         * gnulib-tool (func_create_testdir): Also generate distributed built
30252         sources in the tests directory.
30253
30254 2010-04-02  Bruno Haible  <bruno@clisp.org>
30255
30256         gnulib-tool: Obey user's environment variables.
30257         * gnulib-tool (func_create_testdir): When creating built sources,
30258         respect the environment variables for autoconf, automake, etc. given by
30259         the user.
30260
30261 2010-04-02  Bruno Haible  <bruno@clisp.org>
30262
30263         gnulib-tool: Provide the value of --m4-base to modules.
30264         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30265         of gl_m4_base.
30266
30267 2010-04-02  Eric Blake  <eblake@redhat.com>
30268
30269         maint.mk: fix some fallout
30270         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30271         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30272
30273 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30274
30275         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30276         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30277         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30278         (sc_cast_of_x_alloc_return_value): Likewise.
30279         (sc_cast_of_alloca_return_value): Likewise.
30280         (sc_space_tab): Likewise.
30281         (sc_prohibit_atoi_atof): Likewise.
30282         (sc_prohibit_magic_number_exit): Likewise.
30283         (sc_error_exit_success): Likewise.
30284         (sc_file_system): Likewise.
30285         (sc_prohibit_have_config_h): Likewise.
30286         (sc_require_config_h): Likewise.
30287         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30288         (sc_obsolete_symbols): Likewise.
30289         (sc_changelog): Likewise.
30290         (sc_program_name): Likewise.
30291         (sc_the_the): Likewise.
30292         (sc_trailing_blank): Likewise.
30293         (sc_two_space_separator_in_usage): Likewise.
30294         (sc_useless_cpp_parens): Likewise.
30295         (sc_GPL_version): Likewise.
30296         (sc_GFDL_version): Likewise.
30297         (sc_texinfo_acronym): Likewise.
30298         (sc_prohibit_cvs_keyword): Likewise.
30299         (sc_prohibit_stat_st_blocks): Likewise.
30300         (sc_prohibit_S_IS_definition): Likewise.
30301         (sc_redundant_const): Likewise.
30302         (sc_makefile_TAB_only_indentation): Likewise.
30303         (sc_m4_quote_check): Likewise.
30304         (sc_makefile_path_separator_check): Likewise.
30305         (sc_copyright_check): Likewise.
30306         (sc_Wundef_boolean): Likewise.
30307         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30308
30309         maint.mk: match 0 or more whitespace-before-function-call '('
30310         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30311         that have zero or two-and-more spaces between the function name
30312         and the open parenthesis.
30313         (sc_error_message_warn_fatal): Likewise.
30314         (sc_error_message_uppercase): Likewise.
30315         (sc_error_message_period): Likewise.
30316
30317 2010-03-31  Eric Blake  <eblake@redhat.com>
30318
30319         maint.mk: check for [ as well as test
30320         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30321         Based on a libvirt report by Matthias Bolte.
30322
30323         gnumakefile: don't squelch _version output
30324         * top/GNUmakefile (_version): Create one-shot dependency rather
30325         than using $(shell) when version must be regenerated.
30326         (_autoreconf): Run verbosely, by default.
30327
30328         sys_time: avoid compiler warnings
30329         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30330         unconditional, fixing regression from 2010-03-29.
30331         Reported by Simon Josefsson.
30332
30333 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30334
30335         maint.mk: s/_header_without_use/_sc_header_without_use/
30336         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30337         (sc_prohibit_assert_without_use): Use the new name.
30338         (sc_prohibit_close_stream_without_use): Likewise.
30339         (sc_prohibit_getopt_without_use): Likewise.
30340         (sc_prohibit_quotearg_without_use): Likewise.
30341         (sc_prohibit_quote_without_use): Likewise.
30342         (sc_prohibit_long_options_without_use): Likewise.
30343         (sc_prohibit_inttostr_without_use): Likewise.
30344         (sc_prohibit_ignore_value_without_use): Likewise.
30345         (sc_prohibit_error_without_use): Likewise.
30346         (sc_prohibit_xalloc_without_use): Likewise.
30347         (sc_prohibit_hash_without_use): Likewise.
30348         (sc_prohibit_hash_pjw_without_use): Likewise.
30349         (sc_prohibit_safe_read_without_use): Likewise.
30350         (sc_prohibit_argmatch_without_use): Likewise.
30351         (sc_prohibit_canonicalize_without_use): Likewise.
30352         (sc_prohibit_root_dev_ino_without_use): Likewise.
30353         (sc_prohibit_openat_without_use): Likewise.
30354         (sc_prohibit_c_ctype_without_use): Likewise.
30355         (sc_prohibit_signal_without_use): Likewise.
30356         (sc_prohibit_intprops_without_use): Likewise.
30357
30358 2010-03-30  Eric Blake  <eblake@redhat.com>
30359
30360         maint: improve module indicators
30361         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30362         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30363         columns, and avoid extra macro expansion.
30364
30365         fdopendir: work around FreeBSD bug
30366         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30367         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30368         * modules/dirent (Makefile.am): Substitute it.
30369         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30370         declaration.
30371         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30372         fix.
30373         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30374
30375 2010-03-29  Bruno Haible  <bruno@clisp.org>
30376
30377         Emit #pragma system_header after the inclusion guard, not before.
30378         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30379         guard that spans the entire file, not before. This enables an
30380         optimization in GCC's preprocessor.
30381         * lib/ctype.in.h: Likewise.
30382         * lib/dirent.in.h: Likewise.
30383         * lib/errno.in.h: Likewise.
30384         * lib/float.in.h: Likewise.
30385         * lib/getopt.in.h: Likewise.
30386         * lib/iconv.in.h: Likewise.
30387         * lib/langinfo.in.h: Likewise.
30388         * lib/locale.in.h: Likewise.
30389         * lib/math.in.h: Likewise.
30390         * lib/netdb.in.h: Likewise.
30391         * lib/netinet_in.in.h: Likewise.
30392         * lib/pty.in.h: Likewise.
30393         * lib/sched.in.h: Likewise.
30394         * lib/se-selinux.in.h: Likewise.
30395         * lib/search.in.h: Likewise.
30396         * lib/spawn.in.h: Likewise.
30397         * lib/stdarg.in.h: Likewise.
30398         * lib/stdint.in.h: Likewise.
30399         * lib/string.in.h: Likewise.
30400         * lib/strings.in.h: Likewise.
30401         * lib/sys_file.in.h: Likewise.
30402         * lib/sys_ioctl.in.h: Likewise.
30403         * lib/sys_time.in.h: Likewise.
30404         * lib/sys_times.in.h: Likewise.
30405         * lib/sys_utsname.in.h: Likewise.
30406         * lib/sys_wait.in.h: Likewise.
30407         * lib/sysexits.in.h: Likewise.
30408         * lib/wctype.in.h: Likewise.
30409
30410 2010-03-28  James Youngman  <jay@gnu.org>
30411
30412         save-cwd: don't leak a file descriptor when the caller execs.
30413         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30414         saved file descriptor.
30415         * modules/save-cwd (Depends-on): Depend on cloexec.
30416
30417 2010-03-29  Bruno Haible  <bruno@clisp.org>
30418
30419         Remove vestiges of fts-lgpl module.
30420         * lib/fts_.h: Assume GNULIB_FTS is 1.
30421         * lib/fts.c: Likewise.
30422         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30423
30424 2010-03-28  Bruno Haible  <bruno@clisp.org>
30425
30426         Fix definition of tests witness macro.
30427         * gnulib-tool (func_import): Fix definition of witness macro.
30428
30429 2010-03-28  Bruno Haible  <bruno@clisp.org>
30430
30431         Fix ioctl's protoype on glibc systems.
30432         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30433         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30434         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30435         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30436         signature. If not, arrange to replace the ioctl function.
30437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30438         REPLACE_IOCTL.
30439         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30440         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30441         Reported by Ludovic Courtès <ludo@gnu.org>.
30442
30443 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30444
30445         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30446         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30447         made it so grep -r --include=GLOB* ... did not work.
30448
30449 2010-03-26  Jim Meyering  <meyering@redhat.com>
30450             Eric Blake  <eblake@redhat.com>
30451
30452         maint.mk: prohibit use of test's -o and -a operators
30453         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30454
30455 2010-03-28  Bruno Haible  <bruno@clisp.org>
30456
30457         Remove unused GNULIB_XYZ macro definitions.
30458         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30459         invocation.
30460
30461 2010-03-28  Bruno Haible  <bruno@clisp.org>
30462
30463         Mark privileged tests modules.
30464         * modules/idpriv-drop-tests (Status): New section.
30465         * modules/idpriv-droptemp-tests (Status): New section.
30466
30467 2010-03-28  Bruno Haible  <bruno@clisp.org>
30468
30469         Split C++ tests into separate tests modules.
30470         * modules/dirent-c++-tests: New file, extracted from
30471         modules/dirent-tests.
30472         * modules/dirent-tests: Depend on it.
30473         * modules/fcntl-h-c++-tests: New file, extracted from
30474         modules/fcntl-h-tests.
30475         * modules/fcntl-h-tests: Depend on it.
30476         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30477         * modules/glob-tests: Depend on it.
30478         * modules/iconv-h-c++-tests: New file, extracted from
30479         modules/iconv-h-tests.
30480         * modules/iconv-h-tests: Depend on it.
30481         * modules/langinfo-c++-tests: New file, extracted from
30482         modules/langinfo-tests.
30483         * modules/langinfo-tests: Depend on it.
30484         * modules/locale-c++-tests: New file, extracted from
30485         modules/locale-tests.
30486         * modules/locale-tests: Depend on it.
30487         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30488         * modules/math-tests: Depend on it.
30489         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30490         * modules/pty-tests: Depend on it.
30491         * modules/search-c++-tests: New file, extracted from
30492         modules/search-tests.
30493         * modules/search-tests: Depend on it.
30494         * modules/signal-c++-tests: New file, extracted from
30495         modules/signal-tests.
30496         * modules/signal-tests: Depend on it.
30497         * modules/spawn-c++-tests: New file, extracted from
30498         modules/spawn-tests.
30499         * modules/spawn-tests: Depend on it.
30500         * modules/stdio-c++-tests: New file, extracted from
30501         modules/stdio-tests.
30502         * modules/stdio-tests: Depend on it.
30503         * modules/stdlib-c++-tests: New file, extracted from
30504         modules/stdlib-tests.
30505         * modules/stdlib-tests: Depend on it.
30506         * modules/string-c++-tests: New file, extracted from
30507         modules/string-tests.
30508         * modules/string-tests: Depend on it.
30509         * modules/sys_ioctl-c++-tests: New file, extracted from
30510         modules/sys_ioctl-tests.
30511         * modules/sys_ioctl-tests: Depend on it.
30512         * modules/sys_select-c++-tests: New file, extracted from
30513         modules/sys_select-tests.
30514         * modules/sys_select-tests: Depend on it.
30515         * modules/sys_socket-c++-tests: New file, extracted from
30516         modules/sys_socket-tests.
30517         * modules/sys_socket-tests: Depend on it.
30518         * modules/sys_stat-c++-tests: New file, extracted from
30519         modules/sys_stat-tests.
30520         * modules/sys_stat-tests: Depend on it.
30521         * modules/sys_time-c++-tests: New file, extracted from
30522         modules/sys_time-tests.
30523         * modules/sys_time-tests: Depend on it.
30524         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30525         * modules/time-tests: Depend on it.
30526         * modules/unistd-c++-tests: New file, extracted from
30527         modules/unistd-tests.
30528         * modules/unistd-tests: Depend on it.
30529         * modules/wchar-c++-tests: New file, extracted from
30530         modules/wchar-tests.
30531         * modules/wchar-tests: Depend on it.
30532         * modules/wctype-c++-tests: New file, extracted from
30533         modules/wctype-tests.
30534         * modules/wctype-tests: Depend on it.
30535         Reported by Simon Josefsson.
30536
30537 2010-03-28  Bruno Haible  <bruno@clisp.org>
30538
30539         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30540         * gnulib-tool (func_exists_module): New function, extracted from
30541         func_verify_module.
30542         (func_verify_module): Use it.
30543         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30544         'foo' only if 'foo' exists.
30545         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30546         module.
30547
30548 2010-03-28  Bruno Haible  <bruno@clisp.org>
30549
30550         gnulib-tool: Add support for special categories of tests.
30551         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30552         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30553         (func_usage): Document them.
30554         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30555         inc_unportable_tests, inc_all_tests): New variables.
30556         (func_acceptable): Consider these variables.
30557         (func_modules_transitive_closure): Make it work when the 'Status' field
30558         consists of multiple words.
30559         (func_import): Store and restore the values of inc_cxx_tests,
30560         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30561         inc_all_tests in gnulib-comp.m4.
30562         (func_create_testdir): Set inc_all_tests to true.
30563         * doc/gnulib.texi (Extra tests modules): New section.
30564         Suggested by Jim Meyering.
30565
30566 2010-03-28  Bruno Haible  <bruno@clisp.org>
30567
30568         ansi-c++-opt: Allow turning off the C++ build by default.
30569         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30570         gl_CXX_CHOICE_DEFAULT_NO is defined.
30571         Requested by Eric Blake.
30572
30573 2010-03-28  Bruno Haible  <bruno@clisp.org>
30574
30575         unistd: Avoid #define replacements in C++ mode.
30576         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30577         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30578         setsockopt, shutdown, select): In C++, attach a warning to the function
30579         if possible, rather than #defining the symbol to a dysfunctional alias.
30580         Reported by John W. Eaton <jwe@gnu.org>.
30581
30582 2010-03-28  Bruno Haible  <bruno@clisp.org>
30583
30584         Fix link errors on mingw.
30585         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30586         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30587         $(LIBSOCKET).
30588         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30589         $(LIBSOCKET).
30590
30591 2010-03-28  Bruno Haible  <bruno@clisp.org>
30592             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30593
30594         lib-ignore: Determine different options for different compilers.
30595         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30596         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30597         Add comments.
30598         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30599         * NEWS: Mention the change.
30600
30601 2010-03-27  Bruno Haible  <bruno@clisp.org>
30602
30603         Remove unused GNULIB_XYZ macro definitions.
30604         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30605         * modules/fseek (configure.ac): Likewise.
30606         * modules/ioctl (configure.ac): Likewise.
30607         * modules/open (configure.ac): Likewise.
30608         * modules/stdlib-safer (configure.ac): Likewise.
30609
30610 2010-03-27  Bruno Haible  <bruno@clisp.org>
30611
30612         Add a remark about certain modules.
30613         * modules/malloc (Comment): New section.
30614         * modules/realloc (Comment): Likewise.
30615         * modules/sigpipe (Comment): Likewise.
30616
30617 2010-03-27  Bruno Haible  <bruno@clisp.org>
30618
30619         Resolve conflict between the two kinds of module indicators.
30620         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30621         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30622         * modules/canonicalize (configure.ac): Invoke
30623         gl_MODULE_INDICATOR_FOR_TESTS.
30624         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30625         GNULIB_XYZ.
30626         * tests/test-dirent-c++.cc: Likewise.
30627         * tests/test-dirent-safer.c: Likewise.
30628         * tests/test-dup2.c: Likewise.
30629         * tests/test-fchdir.c: Likewise.
30630         * tests/test-fcntl-h-c++.cc: Likewise.
30631         * tests/test-getopt.c: Likewise.
30632         * tests/test-getopt.h: Likewise.
30633         * tests/test-langinfo-c++.cc: Likewise.
30634         * tests/test-locale-c++.cc: Likewise.
30635         * tests/test-math-c++.cc: Likewise.
30636         * tests/test-pty-c++.cc: Likewise.
30637         * tests/test-search-c++.cc: Likewise.
30638         * tests/test-signal-c++.cc: Likewise.
30639         * tests/test-spawn-c++.cc: Likewise.
30640         * tests/test-stdio-c++.cc: Likewise.
30641         * tests/test-stdlib-c++.cc: Likewise.
30642         * tests/test-string-c++.cc: Likewise.
30643         * tests/test-sys_ioctl-c++.cc: Likewise.
30644         * tests/test-sys_select-c++.cc: Likewise.
30645         * tests/test-sys_socket-c++.cc: Likewise.
30646         * tests/test-sys_stat-c++.cc: Likewise.
30647         * tests/test-sys_time-c++.cc: Likewise.
30648         * tests/test-time-c++.cc: Likewise.
30649         * tests/test-unistd-c++.cc: Likewise.
30650         * tests/test-wchar-c++.cc: Likewise.
30651         * tests/uninorm/test-u8-nfc.c: Likewise.
30652         * tests/uninorm/test-u8-nfd.c: Likewise.
30653         * tests/uninorm/test-u8-nfkc.c: Likewise.
30654         * tests/uninorm/test-u8-nfkd.c: Likewise.
30655         * tests/uninorm/test-u16-nfc.c: Likewise.
30656         * tests/uninorm/test-u16-nfd.c: Likewise.
30657         * tests/uninorm/test-u16-nfkc.c: Likewise.
30658         * tests/uninorm/test-u16-nfkd.c: Likewise.
30659         * tests/uninorm/test-u32-nfc.c: Likewise.
30660         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30661         * tests/uninorm/test-u32-nfd.c: Likewise.
30662         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30663         * tests/uninorm/test-u32-nfkc.c: Likewise.
30664         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30665         * tests/uninorm/test-u32-nfkd.c: Likewise.
30666         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30667         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30668
30669 2010-03-27  Bruno Haible  <bruno@clisp.org>
30670
30671         Distinguish two kinds of module indicators.
30672         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30673         gl_MODULE_INDICATOR.
30674         (gl_MODULE_INDICATOR): New macro.
30675         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30676         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30677         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30678         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30679         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30680         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30681         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30682         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30683         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30684         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30685         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30686         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30687         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30688         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30689         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30691         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30692         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30693         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30694         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30695         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30696         * modules/cloexec (configure.ac): Likewise.
30697         * modules/getopt-gnu (configure.ac): Likewise.
30698         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30699         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30700         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30701         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30702
30703 2010-03-27  Bruno Haible  <bruno@clisp.org>
30704
30705         New module description field 'Comment'.
30706         * gnulib-tool: New option --extract-comment.
30707         (func_usage): Document it.
30708         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30709         (func_get_comment): New function.
30710         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30711
30712 2010-03-27  Bruno Haible  <bruno@clisp.org>
30713
30714         Addendum to 2010-02-07 commit.
30715         * gnulib-tool (func_usage): Document --extract-applicability option.
30716
30717 2010-03-27  Bruno Haible  <bruno@clisp.org>
30718
30719         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30720         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30721         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30722         rather than link errors.
30723
30724 2010-03-27  Bruno Haible  <bruno@clisp.org>
30725
30726         Avoid side effects from tests-related modules on the compilation of lib.
30727         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30728         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30729         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30730         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30731         macro.
30732         (func_import): Define a witness macro. Assign it a value that depends
30733         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30734         tests-related modules.
30735         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30736         Reported by Jim Meyering.
30737
30738 2010-03-27  Bruno Haible  <bruno@clisp.org>
30739
30740         Factorize common .m4 code.
30741         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30742         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30743         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30744         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30745         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30746         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30747         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30748         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30749         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30750         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30751         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30752         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30753         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30754         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30755         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30756         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30757         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30758         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30760         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30761         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30762         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30763         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30765         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30766         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30767         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30768         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30769         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30770         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30771         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30772         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30773
30774 2010-03-27  Bruno Haible  <bruno@clisp.org>
30775
30776         Fix a compilation error on Cygwin with g++ >= 4.3.
30777         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30778         if it is undefined or if we alias it to chmod.
30779         (lstat): Don't warn about the use of this function if it is undefined
30780         or if we alias it to stat.
30781         Reported by Simon Josefsson.
30782
30783 2010-03-27  Bruno Haible  <bruno@clisp.org>
30784
30785         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30786         * modules/getlogin (configure.ac): Update.
30787
30788         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30789         * modules/getlogin_r (configure.ac): Update.
30790
30791         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30793         * modules/inet_ntop (configure.ac): Update.
30794
30795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30796         * modules/inet_pton (configure.ac): Update.
30797
30798         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30799         * modules/mbslen (configure.ac): Update.
30800
30801         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30802         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30803         * modules/forkpty (configure.ac): Update.
30804         * modules/openpty (configure.ac): Update.
30805
30806 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30807
30808         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30809         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30810
30811 2010-03-25  Eric Blake  <eblake@redhat.com>
30812
30813         maint: use pragma consistently across replacement headers
30814         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30815         * lib/dirent.in.h (system_header): Likewise.
30816         * lib/errno.in.h (system_header): Likewise.
30817         * lib/float.in.h (system_header): Likewise.
30818         * lib/getopt.in.h (system_header): Likewise.
30819         * lib/iconv.in.h (system_header): Likewise.
30820         * lib/inttypes.in.h (system_header): Likewise.
30821         * lib/langinfo.in.h (system_header): Likewise.
30822         * lib/locale.in.h (system_header): Likewise.
30823         * lib/math.in.h (system_header): Likewise.
30824         * lib/netdb.in.h (system_header): Likewise.
30825         * lib/netinet_in.in.h (system_header): Likewise.
30826         * lib/pty.in.h (system_header): Likewise.
30827         * lib/sched.in.h (system_header): Likewise.
30828         * lib/se-selinux.in.h (system_header): Likewise.
30829         * lib/search.in.h (system_header): Likewise.
30830         * lib/spawn.in.h (system_header): Likewise.
30831         * lib/stdarg.in.h (system_header): Likewise.
30832         * lib/stdint.in.h (system_header): Likewise.
30833         * lib/string.in.h (system_header): Likewise.
30834         * lib/strings.in.h (system_header): Likewise.
30835         * lib/sys_file.in.h (system_header): Likewise.
30836         * lib/sys_ioctl.in.h (system_header): Likewise.
30837         * lib/sys_socket.in.h (system_header): Likewise.
30838         * lib/sys_times.in.h (system_header): Likewise.
30839         * lib/sys_utsname.in.h (system_header): Likewise.
30840         * lib/sys_wait.in.h (system_header): Likewise.
30841         * lib/sysexits.in.h (system_header): Likewise.
30842         * lib/unistd.in.h (system_header): Likewise.
30843         * lib/wctype.in.h (system_header): Likewise.
30844
30845         arpa/inet: fix mingw compilation warning
30846         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30847         Reported by Matthew Bolte.
30848
30849 2010-03-25  Bruno Haible  <bruno@clisp.org>
30850
30851         Avoid collision between gnulib wrapper and libintl wrapper.
30852         * lib/printf.c (printf): Don't define if a printf wrapper is already
30853         defined in intl/printf.c.
30854         Reported by Michel Boaventura <michel@michelboaventura.com>.
30855
30856 2010-03-25  Bruno Haible  <bruno@clisp.org>
30857
30858         Use ANSI C.
30859         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30860
30861 2010-03-25  Bruno Haible  <bruno@clisp.org>
30862
30863         Minor formatting changes.
30864         * lib/acosl.c: Insert space before function argument list.
30865         * lib/argz.c: Likewise.
30866         * lib/asinl.c: Likewise.
30867         * lib/expl.c: Likewise.
30868         * lib/gen-uni-tables.c: Likewise.
30869         * lib/gettext.h: Likewise.
30870         * lib/glthread/lock.h: Likewise.
30871         * lib/tanl.c: Likewise.
30872         * lib/uniname/uniname.c: Likewise.
30873         * tests/test-idpriv-drop.c: Likewise.
30874         * tests/test-idpriv-droptemp.c: Likewise.
30875         * tests/test-lock.c: Likewise.
30876         * tests/test-tls.c: Likewise.
30877         * lib/argp-help.c: Insert space before function-like macro argument
30878         list.
30879         * lib/memcmp.c: Likewise.
30880         * tests/test-base64.c: Likewise.
30881         * lib/localename.c: Insert space before sizeof's argument list.
30882         * lib/safe-alloc.h: Likewise.
30883         * lib/file-set.h: Insert space before macro argument list.
30884         * tests/test-argp.c: Likewise.
30885         * lib/argp-namefrob.h: Insert space before function parameter list.
30886         * lib/getaddrinfo.c: Likewise.
30887         * lib/netdb.in.h: Likewise.
30888         * lib/parse-duration.h: Likewise.
30889         * lib/parse-duration.c: Likewise.
30890         * lib/poll.c: Likewise.
30891         * lib/select.c: Likewise.
30892         * lib/trim.h: Likewise.
30893         * tests/test-usleep.c: Likewise.
30894         * lib/ldexpl.c: Insert space before function parameter list and before
30895         function argument list.
30896         * lib/logl.c: Likewise.
30897         * lib/sqrtl.c: Likewise.
30898         * lib/trim.c: Likewise.
30899         * lib/cosl.c: Use GNU style indentation. Insert space before function
30900         argument list.
30901         * lib/sinl.c: Likewise.
30902         * lib/tsearch.c: Insert space after 'for'.
30903         Reported by Jim Meyering.
30904
30905 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30906
30907         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30908         config header before grepping, as it's not present before
30909         autoreconf/configure are run.  Reported by Simon Josefsson.
30910
30911 2010-03-23  Bruno Haible  <bruno@clisp.org>
30912
30913         pt_chown: Make it work with automake < 1.11.
30914         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30915         Reported by Simon Josefsson.
30916
30917 2010-03-23  Bruno Haible  <bruno@clisp.org>
30918
30919         pt_chown: Don't depend on GPLed modules.
30920         * lib/pt_chown.c: Don't include idpriv.h.
30921         (main): Don't drop privileges.
30922         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30923         Reported by Simon Josefsson.
30924
30925 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30926
30927         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30928         suggestions from karl@freefriends.org (Karl Berry).
30929
30930 2010-03-22  Eric Blake  <eblake@redhat.com>
30931
30932         gethostname: further tweaks
30933         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30934         are overriding gethostname.
30935         Suggested by Bruno Haible.
30936
30937 2010-03-21  Bruno Haible  <bruno@clisp.org>
30938
30939         Fix comments.
30940         * lib/forkpty.c (rpl_forkpty): Fix comment.
30941         * lib/openpty.c (rpl_openpty): Likewise.
30942         Reported by Eric Blake.
30943
30944 2010-03-22  Eric Blake  <eblake@redhat.com>
30945
30946         gethostname: fix build on mingw
30947         * lib/unistd.in.h (includes): Work around fact that mingw
30948         <winsock2.h> re-includes <unistd.h>, by avoiding any
30949         redeclarations if we are being included by <winsock2.h>.
30950         Reported by Matthias Bolte.
30951
30952 2010-03-21  Bruno Haible  <bruno@clisp.org>
30953
30954         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30955         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30956         modifications.
30957         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30958         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30959         provide the replacement.
30960         * modules/forkpty (Depends-on): Add openpty, login_tty.
30961         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30962         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30963         * doc/glibc-functions/forkpty.texi: More supported platforms.
30964         * config/srclist.txt: Add forkpty.c (commented).
30965
30966 2010-03-21  Bruno Haible  <bruno@clisp.org>
30967
30968         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30969         (Makefile.am): Verify that PTY_LIB is defined.
30970
30971         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30972
30973 2010-03-21  Bruno Haible  <bruno@clisp.org>
30974
30975         Tests for module 'login_tty'.
30976         * modules/login_tty-tests: New file.
30977         * tests/test-login_tty.c: New file.
30978
30979         New module 'login_tty'.
30980         * lib/login_tty.c: New file.
30981         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30982         * modules/login_tty: New file.
30983         * doc/glibc-functions/login_tty.texi: Mention the new module.
30984
30985 2010-03-21  Bruno Haible  <bruno@clisp.org>
30986
30987         login_tty: Documentation.
30988         * doc/glibc-functions/login_tty.texi: New file.
30989         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30990
30991 2010-03-21  Bruno Haible  <bruno@clisp.org>
30992
30993         pty: Consistent macro naming.
30994         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30995         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30996         * modules/pty (configure.ac): Update.
30997
30998 2010-03-21  Bruno Haible  <bruno@clisp.org>
30999
31000         Tests for openpty: Make stricter.
31001         * tests/test-openpty.c (main): Add test of canonical processing and
31002         erase.
31003         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31004
31005         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31006         * lib/openpty.c (openpty): New replacement function.
31007         * lib/pty.in.h: Include <termios.h>.
31008         (openpty): Update declaration. Add comments.
31009         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31010         is not declared, arrange to provide the replacement. Check for _getpty
31011         and posix_openpt.
31012         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31013         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31014         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31015         * modules/pty-tests (test_pty_c___LDADD): New variable.
31016         * doc/glibc-functions/openpty.texi: More supported platforms.
31017
31018 2010-03-21  Bruno Haible  <bruno@clisp.org>
31019
31020         setenv: Tweaks.
31021         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31022         the test program.
31023         * doc/posix-functions/setenv.texi: Update platforms list.
31024
31025 2010-03-21  Bruno Haible  <bruno@clisp.org>
31026
31027         New module 'unlockpt'.
31028         * lib/unlockpt.c: New file, from glibc with modifications.
31029         * m4/unlockpt.m4: New file.
31030         * modules/unlockpt: New file.
31031         * lib/stdlib.in.h (unlockpt): New declaration.
31032         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31033         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31034         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31035         HAVE_UNLOCKPT.
31036         * doc/posix-functions/unlockpt.texi: Mention the new module.
31037         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31038         * config/srclist.txt: Add unlockpt.c (commented).
31039
31040 2010-03-21  Jim Meyering  <meyering@redhat.com>
31041
31042         maint.mk: prohibit inclusion of "intprops.h" without use
31043         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31044
31045 2010-03-21  Bruno Haible  <bruno@clisp.org>
31046
31047         New module 'grantpt'.
31048         * lib/grantpt.c: New file, from glibc with modifications.
31049         * m4/grantpt.m4: New file.
31050         * modules/grantpt: New file.
31051         * lib/stdlib.in.h (grantpt): New declaration.
31052         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31053         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31054         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31055         HAVE_GRANTPT.
31056         * doc/posix-functions/grantpt.texi: Mention the new module.
31057         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31058         * config/srclist.txt: Add grantpt.c (commented).
31059
31060 2010-03-21  Bruno Haible  <bruno@clisp.org>
31061
31062         New module 'pt_chown'.
31063         * lib/pt_chown.c: New file, from glibc with modifications.
31064         * lib/pty-private.h: New file, from glibc with modifications.
31065         * modules/pt_chown: New file.
31066         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31067
31068 2010-03-21  Bruno Haible  <bruno@clisp.org>
31069
31070         Tests for module 'ptsname'.
31071         * modules/ptsname-tests: New file.
31072         * tests/test-ptsname.c: New file.
31073
31074         New module 'ptsname'.
31075         * lib/ptsname.c: New file, from glibc with modifications.
31076         * m4/ptsname.m4: New file.
31077         * modules/ptsname: New file.
31078         * lib/stdlib.in.h (ptsname): New declaration.
31079         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31080         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31081         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31082         HAVE_PTSNAME.
31083         * doc/posix-functions/ptsname.texi: Mention the new module.
31084         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31085         * config/srclist.txt: Add ptsname.c (commented).
31086
31087 2010-03-21  Bruno Haible  <bruno@clisp.org>
31088
31089         Tests for module 'ttyname_r'.
31090         * modules/ttyname_r-tests: New file.
31091         * tests/test-ttyname_r.c: New file.
31092
31093         New module 'ttyname_r'.
31094         * lib/ttyname_r.c: New file.
31095         * m4/ttyname_r.m4: New file.
31096         * modules/ttyname_r: New file.
31097         * lib/unistd.in.h (ttyname_r): New declaration.
31098         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31099         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31100         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31101         HAVE_TTYNAME_R.
31102         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31103         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31104
31105 2010-03-20  Bruno Haible  <bruno@clisp.org>
31106
31107         signal: Undefine macro definitions in C++ mode.
31108         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31109         sigfillset): Undefine macro definitions from the system header in C++
31110         mode.
31111         Reported by John W. Eaton <jwe@gnu.org>.
31112
31113 2010-03-20  Bruno Haible  <bruno@clisp.org>
31114
31115         Ensure no #include statements inside extern "C" { ... }.
31116         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31117         contain #include statements.
31118         * lib/time.in.h: Likewise.
31119
31120 2010-03-20  Bruno Haible  <bruno@clisp.org>
31121
31122         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31123         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31124         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31125         Reported by John W. Eaton <jwe@gnu.org>.
31126
31127 2010-03-20  Bruno Haible  <bruno@clisp.org>
31128
31129         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31130         Reported by Jim Meyering.
31131
31132 2010-03-20  Bruno Haible  <bruno@clisp.org>
31133
31134         pipe: Set errno upon failure.
31135         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31136         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31137         errno value in error message.
31138
31139 2010-03-20  Bruno Haible  <bruno@clisp.org>
31140             Jim Meyering  <meyering@redhat.com>
31141
31142         lchown: Avoid "unused variable" warning.
31143         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31144
31145 2010-03-20  Bruno Haible  <bruno@clisp.org>
31146
31147         Work around unlink() bug on MacOS X 10.5.6.
31148         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31149         attempting to unlink a parent directory.
31150         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31151         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31152         activate for the replacement function.
31153         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31154
31155 2010-03-20  Bruno Haible  <bruno@clisp.org>
31156
31157         Fix link errors on Solaris 8.
31158         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31159         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31160
31161 2010-03-19  Jim Meyering  <meyering@redhat.com>
31162
31163         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31164         The _LIBC implementation of build_range_exp correctly honors the
31165         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31166         However, the non-_LIBC implementation would ignore that syntax-bit
31167         flag and return REG_ERANGE unconditionally.
31168         This change makes it honor that flag.
31169         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31170         Make two pointer parameters "const".
31171         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31172         (parse_bracket_exp): Update caller.
31173
31174         regex.m4: correct the reversed range endpoint ([b-a]) test
31175         * m4/regex.m4: When requiring that [b-a] evoke failure,
31176         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31177         test pass once again for x86-based systems.
31178
31179 2010-03-19  Bruno Haible  <bruno@clisp.org>
31180
31181         scandir: Fix link error on Solaris 8.
31182         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31183         macros.
31184
31185 2010-03-19  Bruno Haible  <bruno@clisp.org>
31186
31187         getusershell: Fix documentation.
31188         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31189         module.
31190         * doc/glibc-functions/setusershell.texi: Likewise.
31191
31192         getusershell: Provide declaration, missing on Solaris 9.
31193         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31194         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31195         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31196         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31198         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31199         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31200         HAVE_GETUSERSHELL.
31201         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31202
31203 2010-03-19  Bruno Haible  <bruno@clisp.org>
31204
31205         wctype: Provide iswblank function.
31206         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31207         exists and is fine.
31208         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31209         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31210         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31211         * doc/posix-functions/iswblank.texi: Update.
31212
31213 2010-03-19  Bruno Haible  <bruno@clisp.org>
31214
31215         Tests of module 'pty' in C++ mode.
31216         * modules/pty-tests: New file.
31217         * tests/test-pty-c++.cc: New file.
31218         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31219
31220 2010-03-19  Eric Blake  <eblake@redhat.com>
31221
31222         logb: fix documentation
31223         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31224         1.5 declaration bug.
31225
31226         forkpty, openpty: prefer glibc's const-safe prototype
31227         * lib/forkpty.c (rpl_forkpty): New file.
31228         * lib/openpty.c (rpl_openpty): Likewise.
31229         * modules/forkpty (Files): Distribute it.
31230         * modules/openpty (Files): Likewise.
31231         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31232         check...
31233         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31234         replacement for for non-const BSD signature.
31235         * modules/pty (Makefile.am): Substitute witnesses.
31236         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31237         * tests/test-forkpty.c: Update signature check.
31238         * tests/test-openpty.c: Likewise.
31239         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31240         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31241
31242         forkpty, openpty: split functions into new modules
31243         * modules/pty (Makefile.am): Substitute new witnesses.
31244         (Libraries): Move library detection...
31245         * modules/forkpty: ...into new module.
31246         * modules/openpty: Another new module.
31247         * modules/pty-tests: Rename and split...
31248         * modules/forkpty-tests: ...to this...
31249         * modules/openpty-tests: ...and this.
31250         * tests/test-pty.c: Rename and split...
31251         * tests/test-forkpty.c: ...to this...
31252         * tests/test-openpty.c: ...and this.
31253         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31254         (gl_PTY): Split library searching...
31255         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31256         (gl_FORKPTY, gl_OPENPTY): New macros.
31257         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31258         * NEWS: Mention the split.
31259         * MODULES.html.sh (Misc): Document the modules.
31260         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31261         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31262
31263         pty: improve replacement header
31264         * lib/pty.in.h: New file.
31265         * modules/pty (Files): Ship it.
31266         (Makefile.am): Always build replacement.
31267         * m4/pty.m4: Rename...
31268         * m4/pty_h.m4: ...to this.
31269         (gl_PTY): Modernize setting of witness macros; update check of
31270         forkpty to take proper advantage of cache.
31271         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31272
31273         getopt: avoid compiler warning
31274         * lib/getopt.c (attribute_hidden): Remove unused macro.
31275
31276 2010-03-18  Bruno Haible  <bruno@clisp.org>
31277
31278         Fix link errors on Solaris 8.
31279         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31280         * modules/search-tests (test_search_c___LDADD): Likewise.
31281         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31282         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31283         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31284         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31285         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31286         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31287         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31288
31289 2010-03-18  Bruno Haible  <bruno@clisp.org>
31290
31291         Fix bug introduced on 2010-03-14.
31292         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31293         (gl_SPAWN_H): Require it.
31294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31295         Reported by Simon Josefsson.
31296
31297 2010-03-18  Bruno Haible  <bruno@clisp.org>
31298
31299         Fix typo introduced on 2009-12-31.
31300         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31301         posix_spawn_file_actions_adddup2.
31302
31303 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31304         and Eric Blake  <eblake@redhat.com>
31305
31306         test-vc-list-files-git: make more robust
31307         * tests/test-vc-list-files-git.sh: Unset problematic environment
31308         variables.  Chain commands together.
31309
31310 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31311
31312         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31313         `AC_CHECK_DECL' invocation.
31314
31315 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31316
31317         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31318         appears before executable statements. Suggested by Petr Sumbera
31319         <Petr.Sumbera@Sun.COM>.
31320
31321 2010-03-14  Bruno Haible  <bruno@clisp.org>
31322
31323         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31324         portability problems. Instead use a simpler test.
31325         (main): Check that invalid arguments are rejected only on Linux.
31326
31327 2010-03-14  Bruno Haible  <bruno@clisp.org>
31328
31329         Fix bug introduced on 2009-12-31.
31330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31331         gl_PREREQ_SYS_H_WINSOCK2 always.
31332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31333         SYS_SOCKET_H variable.
31334         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31335         Update comments.
31336         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31337         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31338         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31339         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31340         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31341
31342 2010-03-14  Bruno Haible  <bruno@clisp.org>
31343
31344         Fix values returned by sinl, cosl.
31345         * lib/trigl.h: Add specification comments.
31346         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31347         that combines the values from the precomputed table with the values of
31348         the Chebyshev polynomials.
31349
31350 2010-03-14  Bruno Haible  <bruno@clisp.org>
31351
31352         Fix compilation error when modules 'posix_spawn[p]' are not used.
31353         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31355
31356 2010-03-14  Bruno Haible  <bruno@clisp.org>
31357
31358         Fix compilation error on mingw when module 'time_r' is not used.
31359         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31360         is 1.
31361         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31362         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31363         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31364         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31365
31366 2010-03-14  Bruno Haible  <bruno@clisp.org>
31367
31368         Fix compilation error with Sun C.
31369         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31370         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31371         instead of GCC specific ULONG_LONG_MAX.
31372         * lib/xstrtoll.c: Likewise.
31373         * lib/xstrtoull.c: Likewise.
31374
31375 2010-03-13  Bruno Haible  <bruno@clisp.org>
31376
31377         Allow the user to disable C++ code and tests.
31378         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31379         (gl_PROG_ANSI_CXX): Require it.
31380
31381 2010-03-13  Bruno Haible  <bruno@clisp.org>
31382
31383         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31384         cases.
31385
31386 2010-03-13  Bruno Haible  <bruno@clisp.org>
31387
31388         Test that gnulib does not break the standard C++ headers.
31389         * tests/test-locale-c++2.cc: New file.
31390         * modules/locale-tests (Files): Add it.
31391         (Makefile.am): Compile it for test-locale-c++.
31392         * tests/test-math-c++2.cc: New file.
31393         * modules/math-tests (Files): Add it.
31394         (Makefile.am): Compile it for test-math-c++.
31395         * tests/test-signal-c++2.cc: New file.
31396         * modules/signal-tests (Files): Add it.
31397         (Makefile.am): Compile it for test-signal-c++.
31398         * tests/test-stdio-c++2.cc: New file.
31399         * modules/stdio-tests (Files): Add it.
31400         (Makefile.am): Compile it for test-stdio-c++.
31401         * tests/test-stdlib-c++2.cc: New file.
31402         * modules/stdlib-tests (Files): Add it.
31403         (Makefile.am): Compile it for test-stdlib-c++.
31404         * tests/test-string-c++2.cc: New file.
31405         * modules/string-tests (Files): Add it.
31406         (Makefile.am): Compile it for test-string-c++.
31407         * tests/test-time-c++2.cc: New file.
31408         * modules/time-tests (Files): Add it.
31409         (Makefile.am): Compile it for test-time-c++.
31410         Reported by John W. Eaton <jwe@gnu.org>.
31411
31412 2010-03-13  Bruno Haible  <bruno@clisp.org>
31413
31414         * gnulib-tool (func_usage): Clarify which options are available for
31415         --create-testdir and --create-megatestdir.
31416
31417 2010-03-13  Bruno Haible  <bruno@clisp.org>
31418
31419         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31420         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31421         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31422         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31423         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31424         when appropriate.
31425         Reported by Jim Meyering.
31426
31427 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31428
31429         * gnulib-tool (func_import): Explain origin of code.
31430
31431 2010-03-12  Bruno Haible  <bruno@clisp.org>
31432
31433         Fix problem with automake's definition of CXXLINK.
31434         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31435         Reported by Simon Josefsson and Ludovic Courtès.
31436
31437 2010-03-12  Bruno Haible  <bruno@clisp.org>
31438
31439         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31440         stable releases.
31441
31442 2010-03-11  Bruno Haible  <bruno@clisp.org>
31443
31444         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31445         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31446         whether the system provides one variant or multiple variants of the
31447         function.
31448         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31449         C++ compilers.
31450         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31451         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31452         Reported by Jim Meyering.
31453
31454 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31455
31456         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31457
31458 2010-03-08  Bruno Haible  <bruno@clisp.org>
31459
31460         gnulib-tool: Add support for --libtool in --create-testdir.
31461         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31462         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31463
31464 2010-03-08  Eric Blake  <eblake@redhat.com>
31465
31466         gnulib-tool.texi: mention possibility of git submodule
31467         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31468         submodules.
31469         * doc/.gitignore: Ignore another generated file.
31470
31471 2010-03-08  Karl Berry  <karl@gnu.org>
31472
31473         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31474         of committing gnulib files while skipping others.
31475
31476 2010-03-07  Bruno Haible  <bruno@clisp.org>
31477
31478         Tests of module 'wctype' in C++ mode.
31479         * tests/test-wctype-c++.cc: New file.
31480         * modules/wctype-tests (Files): Add it and tests/signature.h.
31481         (Depends-on): Add ansi-c++-opt.
31482         (Makefile.am): Arrange to compile and run test-wctype-c++.
31483
31484         Tests of module 'wchar' in C++ mode.
31485         * tests/test-wchar-c++.cc: New file.
31486         * modules/wchar-tests (Files): Add it and tests/signature.h.
31487         (Depends-on): Add ansi-c++-opt.
31488         (Makefile.am): Arrange to compile and run test-wchar-c++.
31489         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31490         gl_MODULE_INDICATOR.
31491
31492         Tests of module 'unistd' in C++ mode.
31493         * tests/test-unistd-c++.cc: New file.
31494         * modules/unistd-tests (Files): Add it and tests/signature.h.
31495         (Depends-on): Add ansi-c++-opt.
31496         (Makefile.am): Arrange to compile and run test-unistd-c++.
31497         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31498         gl_MODULE_INDICATOR.
31499
31500         Tests of module 'time' in C++ mode.
31501         * tests/test-time-c++.cc: New file.
31502         * modules/time-tests (Files): Add it and tests/signature.h.
31503         (Depends-on): Add ansi-c++-opt.
31504         (Makefile.am): Arrange to compile and run test-time-c++.
31505         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31506
31507         Tests of module 'sys_time' in C++ mode.
31508         * tests/test-sys_time-c++.cc: New file.
31509         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31510         (Depends-on): Add ansi-c++-opt.
31511         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31512         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31513         gl_MODULE_INDICATOR.
31514
31515         Tests of module 'sys_stat' in C++ mode.
31516         * tests/test-sys_stat-c++.cc: New file.
31517         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31518         (Depends-on): Add ansi-c++-opt.
31519         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31520         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31521         gl_MODULE_INDICATOR.
31522
31523         Tests of module 'sys_socket' in C++ mode.
31524         * tests/test-sys_socket-c++.cc: New file.
31525         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31526         (Depends-on): Add ansi-c++-opt.
31527         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31528         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31529         gl_MODULE_INDICATOR.
31530
31531         Tests of module 'sys_select' in C++ mode.
31532         * tests/test-sys_select-c++.cc: New file.
31533         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31534         (Depends-on): Add ansi-c++-opt.
31535         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31536         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31537         gl_MODULE_INDICATOR.
31538
31539         Tests of module 'sys_ioctl' in C++ mode.
31540         * tests/test-sys_ioctl-c++.cc: New file.
31541         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31542         (Depends-on): Add ansi-c++-opt.
31543         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31545         gl_MODULE_INDICATOR.
31546
31547         Tests of module 'string' in C++ mode.
31548         * tests/test-string-c++.cc: New file.
31549         * modules/string-tests (Files): Add it and tests/signature.h.
31550         (Depends-on): Add ansi-c++-opt.
31551         (Makefile.am): Arrange to compile and run test-string-c++.
31552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31553         gl_MODULE_INDICATOR.
31554
31555         Tests of module 'stdlib' in C++ mode.
31556         * tests/test-stdlib-c++.cc: New file.
31557         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31558         (Depends-on): Add ansi-c++-opt.
31559         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31560         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31561         gl_MODULE_INDICATOR.
31562
31563         Tests of module 'stdio' in C++ mode.
31564         * tests/test-stdio-c++.cc: New file.
31565         * modules/stdio-tests (Files): Add it and tests/signature.h.
31566         (Depends-on): Add ansi-c++-opt.
31567         (Makefile.am): Arrange to compile and run test-stdio-c++.
31568         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31569         gl_MODULE_INDICATOR.
31570
31571         Tests of module 'spawn' in C++ mode.
31572         * tests/test-spawn-c++.cc: New file.
31573         * modules/spawn-tests (Files): Add it and tests/signature.h.
31574         (Depends-on): Add ansi-c++-opt.
31575         (Makefile.am): Arrange to compile and run test-spawn-c++.
31576         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31577         gl_MODULE_INDICATOR.
31578
31579         Tests of module 'signal' in C++ mode.
31580         * tests/test-signal-c++.cc: New file.
31581         * modules/signal-tests (Files): Add it and tests/signature.h.
31582         (Depends-on): Add ansi-c++-opt.
31583         (Makefile.am): Arrange to compile and run test-signal-c++.
31584         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31585         gl_MODULE_INDICATOR.
31586
31587         Tests of module 'search' in C++ mode.
31588         * tests/test-search-c++.cc: New file.
31589         * modules/search-tests (Files): Add it and tests/signature.h.
31590         (Depends-on): Add ansi-c++-opt.
31591         (Makefile.am): Arrange to compile and run test-search-c++.
31592         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31593         gl_MODULE_INDICATOR.
31594
31595         Tests of module 'math' in C++ mode.
31596         * tests/test-math-c++.cc: New file.
31597         * modules/math-tests (Files): Add it and tests/signature.h.
31598         (Depends-on): Add ansi-c++-opt.
31599         (Makefile.am): Arrange to compile and run test-math-c++.
31600         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31601
31602         Tests of module 'locale' in C++ mode.
31603         * tests/test-locale-c++.cc: New file.
31604         * modules/locale-tests (Files): Add it and tests/signature.h.
31605         (Depends-on): Add ansi-c++-opt.
31606         (Makefile.am): Arrange to compile and run test-locale-c++.
31607         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31608         gl_MODULE_INDICATOR.
31609
31610         Tests of module 'langinfo' in C++ mode.
31611         * tests/test-langinfo-c++.cc: New file.
31612         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31613         (Depends-on): Add ansi-c++-opt.
31614         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31615         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31616         gl_MODULE_INDICATOR.
31617
31618         Tests of module 'iconv-h' in C++ mode.
31619         * tests/test-iconv-h-c++.cc: New file.
31620         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31621         (Depends-on): Add ansi-c++-opt.
31622         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31623
31624         Tests of module 'glob' in C++ mode.
31625         * tests/test-glob-c++.cc: New file.
31626         * modules/glob-tests (Files): Add it.
31627         (Depends-on): Add ansi-c++-opt.
31628         (Makefile.am): Arrange to compile and run test-glob-c++.
31629
31630         Tests of module 'fcntl-h' in C++ mode.
31631         * tests/test-fcntl-h-c++.cc: New file.
31632         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31633         (Depends-on): Add ansi-c++-opt.
31634         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31635         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31636         gl_MODULE_INDICATOR.
31637
31638         Tests of module 'dirent' in C++ mode.
31639         * tests/test-dirent-c++.cc: New file.
31640         * modules/dirent-tests (Files): Add it and tests/signature.h.
31641         (Depends-on): Add ansi-c++-opt.
31642         (Makefile.am): Arrange to compile and run test-dirent-c++.
31643         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31644         gl_MODULE_INDICATOR.
31645
31646         New module 'ansi-c++-opt'.
31647         * modules/ansi-c++-opt: New file.
31648         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31649
31650         Document C++ namespace mode.
31651         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31652
31653         wctype: Avoid #define replacements in C++ mode.
31654         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31655         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31656         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31657         In C++, define a namespaced alias symbol.
31658         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31659         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31660         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31661         rule.
31662
31663         wchar: Avoid #define replacements in C++ mode.
31664         * lib/wchar.in.h: Include c++defs.h.
31665         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31666         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31667         symbol.
31668         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31669         * modules/wchar (Depends-on): Add c++defs.
31670         (Makefile.am): Update wchar.h rule.
31671
31672         unistd: Avoid #define replacements in C++ mode.
31673         * lib/unistd.in.h: Include c++defs.h.
31674         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31675         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31676         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31677         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31678         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31679         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31680         symbol.
31681         (environ): Update.
31682         * modules/unistd (Depends-on): Add c++defs.
31683         (Makefile.am): Update unistd.h rule.
31684
31685         time: Avoid #define replacements in C++ mode.
31686         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31687         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31688         define a namespaced alias symbol.
31689         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31690         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31691         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31692         * modules/time (Depends-on): Add c++defs, warn-on-use.
31693         (Makefile.am): Update time.h rule.
31694         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31695         * modules/nanosleep (configure.ac): Likewise.
31696         * modules/strptime (configure.ac): Likewise.
31697         * modules/timegm (configure.ac): Likewise.
31698
31699         sys_time: Avoid #define replacements in C++ mode.
31700         * lib/sys_time.in.h: Include c++defs.h.
31701         (gettimeofday): In C++, define a namespaced alias symbol.
31702         * modules/sys_time (Depends-on): Add c++defs.
31703         (Makefile.am): Update sys/time.h rule.
31704
31705         sys_stat: Avoid #define replacements in C++ mode.
31706         * lib/sys_stat.in.h: Include c++defs.h.
31707         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31708         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31709         namespaced alias symbol.
31710         In C++, define a namespaced alias symbol.
31711         * modules/sys_stat (Depends-on): Add c++defs.
31712         (Makefile.am): Update sys/stat.h rule.
31713
31714         sys_socket: Avoid #define replacements in C++ mode.
31715         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31716         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31717         definitions also when the system has a <sys/socket.h>.
31718         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31719         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31720         In C++, define a namespaced alias symbol.
31721         * modules/sys_socket (Depends-on): Add c++defs.
31722         (Makefile.am): Update sys/socket.h rule.
31723
31724         sys_select: Avoid #define replacements in C++ mode.
31725         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31726         definitions also when the system has a <sys/select.h>.
31727         (select): In C++, define a namespaced alias symbol.
31728         * modules/sys_select (Depends-on): Add c++defs.
31729         (Makefile.am): Update sys/select.h rule.
31730
31731         sys_ioctl: Avoid #define replacements in C++ mode.
31732         * lib/sys_ioctl.in.h: Include c++defs.h.
31733         (ioctl): In C++, define a namespaced alias symbol.
31734         * modules/sys_ioctl (Depends-on): Add c++defs.
31735         (Makefile.am): Update sys/ioctl.h rule.
31736
31737         string: Avoid #define replacements in C++ mode.
31738         * lib/string.in.h: Include c++defs.h.
31739         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31740         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31741         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31742         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31743         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31744         * modules/string (Depends-on): Add c++defs.
31745         (Makefile.am): Update string.h rule.
31746
31747         stdlib: Avoid #define replacements in C++ mode.
31748         * lib/stdlib.in.h: Include c++defs.h.
31749         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31750         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31751         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31752         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31753         symbol.
31754         * modules/stdlib (Depends-on): Add c++defs.
31755         (Makefile.am): Update stdlib.h rule.
31756
31757         stdio: Avoid #define replacements in C++ mode.
31758         * lib/stdio.in.h: Include c++defs.h.
31759         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31760         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31761         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31762         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31763         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31764         namespaced alias symbol.
31765         * modules/stdio (Depends-on): Add c++defs.
31766         (Makefile.am): Update stdio.h rule.
31767
31768         spawn: Avoid #define replacements in C++ mode.
31769         * lib/spawn.in.h: Include c++defs.h.
31770         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31771         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31772         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31773         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31774         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31775         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31776         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31777         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31778         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31779         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31780         In C++, define a namespaced alias symbol.
31781         * modules/spawn (Depends-on): Add c++defs.
31782         (Makefile.am): Update spawn.h rule.
31783
31784         signal: Avoid #define replacements in C++ mode.
31785         * lib/signal.in.h: Include c++defs.h.
31786         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31787         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31788         namespaced alias symbol.
31789         * modules/signal (Depends-on): Add c++defs.
31790         (Makefile.am): Update signal.h rule.
31791
31792         search: Avoid #define replacements in C++ mode.
31793         * lib/search.in.h: Include c++defs.h.
31794         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31795         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31796         symbol.
31797         * modules/search (Depends-on): Add c++defs.
31798         (Makefile.am): Update search.h rule.
31799
31800         math: Avoid #define replacements in C++ mode.
31801         * lib/math.in.h: Include c++defs.h.
31802         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31803         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31804         trunc, truncl): In C++, define a namespaced alias symbol.
31805         * modules/math (Depends-on): Add c++defs.
31806         (Makefile.am): Update math.h rule.
31807
31808         locale: Avoid #define replacements in C++ mode.
31809         * lib/locale.in.h: Include c++defs.h.
31810         (duplocale): In C++, define a namespaced alias symbol.
31811         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31812         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31813         * modules/locale (Depends-on): Add c++defs.
31814         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31815
31816         langinfo: Avoid #define replacements in C++ mode.
31817         * lib/langinfo.in.h: Include c++defs.h.
31818         (nl_langinfo): In C++, define a namespaced alias symbol.
31819         * modules/langinfo (Depends-on): Add c++defs.
31820         (Makefile.am): Update langinfo.h rule.
31821
31822         iconv-h: Avoid #define replacements in C++ mode.
31823         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31824         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31825         symbol.
31826         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31827         whenever iconv is present.
31828         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31829         (Makefile.am): Update iconv.h rule.
31830
31831         glob: Avoid #define replacements in C++ mode.
31832         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31833         (_gl_glob_errfunc_fn): New type.
31834         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31835         symbol.
31836         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31837         (Makefile.am): Update glob.h rule.
31838
31839         fcntl-h: Avoid #define replacements in C++ mode.
31840         * lib/fcntl.in.h: Include c++defs.h.
31841         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31842         * modules/fcntl-h (Depends-on): Add c++defs.
31843         (Makefile.am): Update fcntl.h rule.
31844
31845         dirent: Avoid #define replacements in C++ mode.
31846         * lib/dirent.in.h: Include c++defs.h.
31847         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31848         namespaced alias symbol.
31849         (dirfd): Update declaration.
31850         * modules/dirent (Depends-on): Add c++defs.
31851         (Makefile.am): Update dirent.h rule.
31852
31853         ctype: Make it usable in C++ code.
31854         * lib/ctype.in.h: Include c++defs.h.
31855         (isblank): Declare as extern "C".
31856         * modules/ctype (Depends-on): Add c++defs.
31857         (Makefile.am): Update ctype.h rule.
31858
31859         New module 'c++defs'.
31860         * modules/c++defs: New file.
31861         * build-aux/c++defs.h: New file.
31862         Reported by John W. Eaton <jwe@gnu.org>.
31863
31864 2010-03-07  Bruno Haible  <bruno@clisp.org>
31865
31866         logb: Provide missing declaration for Cygwin.
31867         * lib/math.in.h (logb): New declaration.
31868         * m4/logb.m4: New file.
31869         * modules/logb (Files): Add m4/logb.m4.
31870         (Depends-on): Add math.
31871         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31872         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31874         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31875         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31876
31877 2010-03-07  Bruno Haible  <bruno@clisp.org>
31878
31879         Fix test-cond link error.
31880         * tests/test-cond.c: Include <stdio.h>.
31881
31882 2010-03-07  Bruno Haible  <bruno@clisp.org>
31883
31884         Fix test-dirent-safer link error.
31885         * modules/dirent-safer-tests (Makefile.am): Define
31886         test_dirent_safer_LDADD.
31887
31888 2010-03-07  Bruno Haible  <bruno@clisp.org>
31889
31890         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31891         among default module list.
31892
31893 2010-03-07  Bruno Haible  <bruno@clisp.org>
31894
31895         Fix link error on platforms with GNU libiconv.
31896         * modules/unistr/u8-strcoll-tests (Makefile): Define
31897         test_u8_strcoll_LDADD.
31898         * modules/unistr/u16-strcoll-tests (Makefile): Define
31899         test_u16_strcoll_LDADD.
31900         * modules/unistr/u32-strcoll-tests (Makefile): Define
31901         test_u32_strcoll_LDADD.
31902
31903 2010-03-07  Bruno Haible  <bruno@clisp.org>
31904
31905         Use POSIX declarations for socket functions.
31906         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31907         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31908         rpl_sendto): Change declaration to match POSIX.
31909         * lib/connect.c (rpl_connect): Likewise.
31910         * lib/accept.c (rpl_accept): Likewise.
31911         * lib/bind.c (rpl_bind): Likewise.
31912         * lib/getpeername.c (rpl_getpeername): Likewise.
31913         * lib/getsockname.c (rpl_getsockname): Likewise.
31914         * lib/recv.c (rpl_recv): Likewise.
31915         * lib/send.c (rpl_send): Likewise.
31916         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31917         * lib/sendto.c (rpl_sendto): Likewise.
31918
31919 2010-03-06  Bruno Haible  <bruno@clisp.org>
31920
31921         Clarify access, euidaccess, faccessat.
31922         * doc/posix-functions/faccessat.texi: Mention security problem under
31923         "Other problems", not "Portability problems".
31924         * doc/posix-functions/access.texi: Likewise. Mention a related security
31925         problem.
31926         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31927         * lib/euidaccess.c: Add comments about platforms.
31928         * lib/unistd.in.h (access, euidaccess): Add warnings.
31929
31930 2010-03-07  Bruno Haible  <bruno@clisp.org>
31931
31932         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31933         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31934         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31935         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31936         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31937         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31938         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31939         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31940         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31941         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31942         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31943         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31944         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31945         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31946         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31947         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31948         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31949         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31950         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31951         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31952         Likewise.
31953         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31954         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31955         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31956         Likewise.
31957         * tests/test-spawn.c (main): Make it work when
31958         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31959
31960 2010-03-07  Bruno Haible  <bruno@clisp.org>
31961
31962         Fix incorrect Makefile.am generation in German locale.
31963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31964         Execute sed command with character range in C locale.
31965
31966 2010-03-06  Bruno Haible  <bruno@clisp.org>
31967
31968         Tests for module 'iconv-h'.
31969         * modules/iconv-h-tests: New file.
31970         * tests/test-iconv-h.c: New file.
31971
31972         New module 'iconv-h'.
31973         * modules/iconv-h: New file.
31974         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31975         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31976         (configure.ac): Remove gl_ICONV_H.
31977         (Makefile.am): Remove rule for iconv.h.
31978
31979 2010-03-06  Bruno Haible  <bruno@clisp.org>
31980
31981         More consistent naming of *.m4 files.
31982         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31983         * modules/wctype (Files): Update.
31984
31985         More consistent naming of *.m4 files.
31986         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31987         * modules/wchar (Files): Update.
31988
31989 2010-03-06  Jim Meyering  <meyering@redhat.com>
31990
31991         euidaccess: relax license to LGPLv2+
31992         * modules/euidaccess (License): Relax to LGPLv2+.
31993
31994 2010-03-06  Bruno Haible  <bruno@clisp.org>
31995
31996         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31997         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31998         (Makefile.am): Augment lib_SOURCES instead.
31999
32000 2010-03-04  Jim Meyering  <meyering@redhat.com>
32001
32002         utime: remove obsolete module
32003         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32004         unnecessary for years, and has been marked as obsolete for 10 months.
32005         * modules/utime: Remove file.
32006         * lib/utime.c: Remove file.
32007         * m4/utime.m4: Remove file.
32008         * m4/utimes-null.m4: Remove file.
32009         * doc/posix-functions/utime.texi (utime): Remove reference to
32010         the module.  Move the sole "fixed by gnulib" item into the
32011         "problems not fixed by Gnulib" list.
32012         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32013
32014 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32015
32016         * modules/exit (License): Relax license to LGPLv2+.
32017         (Status): Mark as obsolete.
32018         * NEWS: Mention deprecated 'exit' module.
32019         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32020         of now obsolete 'exit'.
32021
32022 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32023
32024         fts-lgpl: remove unused module
32025         * modules/fts-lgpl: Remove.
32026         * MODULES.html.sh (func_all_modules): Adjust.
32027         * check-module (find_included_lib_files): Adjust.
32028         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32029
32030 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32031
32032         copy-acl: enhance Solaris ACL error handling
32033         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32034         * lib/set-mode-acl.c (qset_acl): Likewise.
32035
32036 2010-03-02  Bruno Haible  <bruno@clisp.org>
32037
32038         spawn: Don't override the system defined values on FreeBSD 8.
32039         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32040         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32041         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32042         if HAVE_POSIX_SPAWN is 1.
32043         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32044
32045 2010-03-01  Bruno Haible  <bruno@clisp.org>
32046
32047         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32048         regarding Automake.
32049
32050 2010-02-25  Bruno Haible  <bruno@clisp.org>
32051
32052         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32053         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32054         setting, not afterwards.
32055         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32056
32057 2010-02-24  Eric Blake  <eblake@redhat.com>
32058
32059         bootstrap, git-version-gen: use timestamp
32060         * build-aux/git-version-gen (scriptversion): Force UTC.
32061         * build-aux/bootstrap (scriptversion): New variable.
32062
32063         bootstrap: allow older git
32064         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32065         older than 1.6.4.  Requested by the libvirt project.
32066
32067 2010-02-23  Eric Blake  <eblake@redhat.com>
32068
32069         warn-on-use: work with old autoconf
32070         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32071         AS_VAR semantics of autoconf 2.60.
32072         Reported by Bruno Haible.
32073
32074         bootstrap: improve some comments
32075         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32076         clarification comments.
32077
32078         gettimeofday: provide correct function
32079         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32080         when replacement is declared, otherwise provide gettimeofday.
32081         Reported by Michael Goffioul.
32082
32083 2010-02-23  Jim Meyering  <meyering@redhat.com>
32084
32085         lib-ignore: relax license to "unlimited", not LGPLv2+
32086         * modules/lib-ignore (License): Relax to "unlimited".
32087
32088 2010-02-23  Jim Meyering  <meyering@redhat.com>
32089
32090         lib-ignore: relax license to LGPLv2+
32091         * modules/lib-ignore (License): Relax to LGPLv2+.
32092
32093 2010-02-22  Eric Blake  <eblake@redhat.com>
32094
32095         lseek: avoid bash 3.2 broken pipe bug
32096         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32097         warning from bash 3.2.
32098         Reported by Ben Pfaff, with analysis from Bruno Haible.
32099
32100         bootstrap: support non-FSF copyright holder
32101         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32102         bootstrap.conf override of COPYRIGHT_HOLDER.
32103         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32104
32105         bootstrap: interoperate with gettext 0.14.1
32106         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32107
32108         bootstrap: allow for alternate submodule location
32109         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32110         hardcoding submodule location.
32111         (gnulib_mk): Allow direct use of Makefile.am.
32112
32113         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32114         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32115         rather than reconfiguring where the submodule points.
32116
32117         gettimeofday: restore support for platforms that lack function
32118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32119         replacement if function is missing.
32120         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32121         * modules/sys_time (Makefile.am): Substitute it.
32122         * lib/sys_time.in.h (gettimeofday): Check it.
32123         Reported by Michael Goffioul.
32124
32125 2010-02-21  Bruno Haible  <bruno@clisp.org>
32126
32127         * lib/stdio.in.h (obstack_printf): Fix typo.
32128
32129 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32130
32131         vc-list-files: use bzr ls's -R option
32132         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32133         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32134
32135 2010-02-21  Jim Meyering  <meyering@redhat.com>
32136
32137         init.sh: fix EXEEXT shims to work also for names like test-prog
32138         * tests/init.sh: Re-exec a better shell, when needed.
32139         If the current shell lacks support for posix $(...), an init.sh-using
32140         test will now try to find a shell that supports that.  If EXEEXT is
32141         nonempty, we also require support for hyphen-in-alias-name and shell
32142         substitutions like ${var#glob}.  Failure to find such a shell results
32143         in a skipped test.
32144
32145 2010-02-21  Bruno Haible  <bruno@clisp.org>
32146
32147         Really work around around "broken pipe" error message from bash 3.2.
32148         * gnulib-tool (func_reset_sigpipe): Remove function.
32149         (echo): In bash 3.2, define to a function that uses printf.
32150         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32151
32152 2010-02-20  Bruno Haible  <bruno@clisp.org>
32153
32154         Restore support for automake 1.9.6 with autoconf 2.61.
32155         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32156         Reported by James Youngman <jay@gnu.org>.
32157
32158 2010-02-20  Bruno Haible  <bruno@clisp.org>
32159
32160         Improve *printf warning condition.
32161         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32162         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32163         and the function is overridden due to SIGPIPE emulation.
32164
32165 2010-02-20  Bruno Haible  <bruno@clisp.org>
32166
32167         * lib/stdio.in.h: Tweak comments.
32168
32169 2010-02-19  Bruno Haible  <bruno@clisp.org>
32170
32171         Make it easier to find modules. New gnulib-tool option '--find'.
32172         * gnulib-tool: New option --find.
32173         (func_usage): Document it.
32174         (func_sanitize_modulelist): New function, extracted from
32175         func_all_modules.
32176         (func_all_modules): Invoke it.
32177         * doc/gnulib-tool.texi (Which modules?): New node.
32178
32179 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32180
32181         * lib/sys_select.in.h: Provide select replacement even if
32182         sys/select.h exists on a system, for Interix.
32183
32184 2010-02-18  Jim Meyering  <meyering@redhat.com>
32185
32186         init.sh: don't use $(...) just yet
32187         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32188         to accommodate e.g., Solaris' /bin/sh.
32189
32190 2010-02-17  Bruno Haible  <bruno@clisp.org>
32191
32192         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32193         Reported by Ludovic Courtès <ludo@gnu.org>.
32194
32195 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32196
32197         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32198         linking with -lintl.
32199
32200 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32201
32202         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32203         if not provided by the system's netdb.h.  Reported by
32204         ludo@gnu.org (Ludovic Courtès).
32205
32206 2010-02-15  Jim Meyering  <meyering@redhat.com>
32207
32208         init.sh: improve portability and efficiency
32209         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32210         "dummy" in a for loop.
32211         Use '!', not '^' to select the complement of a character set used
32212         in a "case" statement.
32213         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32214         Suggestions from Eric Blake.
32215
32216         init.sh: automatically accommodate programs with the .exe suffix
32217         Automatically arrange for an invocation of "prog" to execute the
32218         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32219         may use the simpler "prog", yet still work when built on a system
32220         that requires specifying the added suffix.
32221         Do this by constructing a function named "prog" that invokes
32222         "prog.exe" for each .exe file in selected directories.
32223         * tests/init.sh (find_exe_basenames_): New function.
32224         (create_exe_shim_functions_): New function.
32225         (path_prepend_): Use it.
32226
32227         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32228         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32229         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32230
32231 2010-02-14  Jim Meyering  <meyering@redhat.com>
32232
32233         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32234         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32235         (sc_prohibit_hash_pjw_without_use): New rule.
32236
32237         maint.mk: allow the default upload destination dir to be overridden
32238         * top/maint.mk (upload_dest_dir_): Define with a default that
32239         preserves the status quo.
32240         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32241         Reported by Peter Simons.
32242
32243         maint.mk: prohibit inclusion of "hash.h" without_use
32244         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32245
32246 2010-02-10  Jim Meyering  <meyering@redhat.com>
32247
32248         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32249         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32250
32251 2010-02-09  Eric Blake  <ebb9@byu.net>
32252         and Bruno Haible  <bruno@clisp.org>
32253
32254         obstack-printf-posix: ensure declaration
32255         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32256         extracted from gl_FUNC_OBSTACK_PRINTF.
32257         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32258         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32259         Likewise.
32260         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32261         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32262         0.
32263
32264 2010-02-08  Bruno Haible  <bruno@clisp.org>
32265
32266         gnulib-tool: Fix typo in 2010-02-07 commit.
32267         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32268         Reported by Eric Blake.
32269
32270 2010-02-07  Bruno Haible  <bruno@clisp.org>
32271
32272         gnulib-tool: Fix up caching patches.
32273         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32274         option --no-cache. Use associative arrays when supported by the shell.
32275         (sed_comments): New variable.
32276         (modcache): Renamed from do_cache.
32277         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32278         abbreviate unnecessarily.
32279         (have_associative): New variable.
32280         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32281         way also for ksh and zsh.
32282         (func_init_sed_convert_to_cache_statements): New function, extracted
32283         from func_cache_lookup_module. Add support for associative arrays.
32284         Don't set the c_MODULE_cached variable here. Ignore all lines before
32285         the first field header. Remove only the final newline, not all trailing
32286         newlines. Support empty fields correctly. Limit the use of 'eval' to
32287         assignments.
32288         (func_get_description, func_get_status, func_get_notice,
32289         func_get_applicability, func_get_filelist, func_get_dependencies,
32290         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32291         func_get_automake_snippet, func_get_include_directive,
32292         func_get_link_directive, func_get_license, func_get_maintainer):
32293         Update documentation. List the unoptimized code first. Add support for
32294         associative arrays. Limit the use of 'eval' to assignments.
32295         (func_get_applicability): Undo stylistic pessimisations.
32296         (func_get_automake_snippet, func_get_include_directive): Reduce code
32297         duplication.
32298         (func_modules_transitive_closure, func_modules_add_dummy,
32299         func_modules_notice, func_modules_to_filelist, func_add_file,
32300         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32301         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32302         func_create_testdir, func_create_megatestdir): Update documentation.
32303
32304 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32305
32306         * gnulib-tool (func_cache_lookup_module): Store the module name
32307         belonging to the cache variable; error out if two different
32308         module names map to the same cache variable name.
32309
32310 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32311
32312         gnulib-tool: Make caching optional.
32313         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32314         Update matching short versions of --no-changelog.
32315         (func_usage): Update.
32316         (sed_extract_cache_prog): Renamed from ...
32317         (sed_extract_prog): ... this; revert to old extraction script.
32318         (func_get_description, func_get_status)
32319         (func_get_notice, func_get_applicability, func_get_filelist)
32320         (func_get_dependencies, func_get_autoconf_early_snippet)
32321         (func_get_autoconf_snippet, func_get_automake_snippet)
32322         (func_get_include_directive, func_get_link_directive)
32323         (func_get_license, func_get_maintainer): If $do_cache is false,
32324         use old, non-caching extraction scripts.
32325         Suggestion by Bruno Haible.
32326
32327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32328
32329         gnulib-tool: cache module metainformation.
32330         * gnulib-tool (sed_extract_prog): Match newline before each
32331         header, and rewrite header to a shell variable suffix.
32332         (func_cache_var, func_cache_lookup_module): New functions,
32333         to turn a module name into a cache variable prefix, and to
32334         look up and cache module metainformation.
32335         (func_get_description, func_get_status)
32336         (func_get_notice, func_get_applicability, func_get_filelist)
32337         (func_get_dependencies, func_get_autoconf_early_snippet)
32338         (func_get_autoconf_snippet, func_get_automake_snippet)
32339         (func_get_include_directive, func_get_link_directive)
32340         (func_get_license, func_get_maintainer): Use
32341         func_cache_lookup_module.
32342
32343 2010-02-07  Bruno Haible  <bruno@clisp.org>
32344
32345         fnctl: Fix missing dependency.
32346         * modules/fcntl (Depends-on): Add getdtablesize.
32347         Reported by John W. Eaton <jwe@gnu.org>.
32348
32349 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32350
32351         Argp: fix recognition of short alias options.
32352
32353         * lib/argp-parse.c (convert_options): Fix improper use of
32354         `|' between character values.
32355         * tests/test-argp.c (group1_option): New alias option
32356         --read (-r).
32357         (group1_parser): Special handling for 'r'.
32358         (test15): New test case.
32359         (test_fun): Add test15.
32360         * tests/test-argp-2.sh: Update expected --help and --usage
32361         outputs.
32362
32363 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32364
32365         * tests/test-argp.c: Fix indentation.
32366
32367 2010-02-04  Eric Blake  <ebb9@byu.net>
32368
32369         gettimeofday: expose type of second argument
32370         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32371         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32372         * tests/test-gettimeofday.c: Use it to silence warning.
32373         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32374         the issue.
32375
32376 2010-02-03  Jim Meyering  <meyering@redhat.com>
32377
32378         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32379         * lib/regcomp.c (TYPE_SIGNED): Define.
32380         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32381
32382         regcomp.c: avoid a new -Wshadow warning
32383         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32384
32385 2010-02-01  Jim Meyering  <meyering@redhat.com>
32386
32387         removing useless parentheses in cpp #define directives
32388         For motivation, see commit c0221df4, "define STREQ(a,b)
32389         consistently, removing useless parentheses"
32390         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32391         * lib/mountlist.c (MNT_IGNORE): Likewise.
32392         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32393
32394 2010-02-01  Eric Blake  <ebb9@byu.net>
32395
32396         sys_time: use link-warning
32397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32398         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32399         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32400         * modules/sys_time (Depends-on): Add warn-on-use.
32401         (Makefile.am): Always build replacement.
32402         (configure.ac): Update substitutions.
32403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32404         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32405         bother with SYS_TIME_H.
32406         * modules/gettimeofday (configure.ac): Declare indicator.
32407         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32408         in use.
32409
32410         closein-tests: silence compiler warning
32411         * tests/test-closein.c (main): Ignore fread result.
32412         * modules/closein-tests (Depends-on): Add ignore-value.
32413
32414         tests: silence warning about system return
32415         * tests/test-areadlink-with-size.c (main): Ignore system result.
32416         * tests/test-areadlink.c (main): Likewise.
32417         * tests/test-areadlinkat-with-size.c (main): Likewise.
32418         * tests/test-areadlinkat.c (main): Likewise.
32419         * tests/test-canonicalize-lgpl.c (main): Likewise.
32420         * tests/test-canonicalize.c (main): Likewise.
32421         * tests/test-chown.c (main): Likewise.
32422         * tests/test-fchownat.c (main): Likewise.
32423         * tests/test-fdutimensat.c (main): Likewise.
32424         * tests/test-fstatat.c (main): Likewise.
32425         * tests/test-futimens.c (main): Likewise.
32426         * tests/test-lchown.c (main): Likewise.
32427         * tests/test-link.c (main): Likewise.
32428         * tests/test-linkat.c (main): Likewise.
32429         * tests/test-lstat.c (main): Likewise.
32430         * tests/test-mkdir.c (main): Likewise.
32431         * tests/test-mkdirat.c (main): Likewise.
32432         * tests/test-mkfifo.c (main): Likewise.
32433         * tests/test-mkfifoat.c (main): Likewise.
32434         * tests/test-mknod.c (main): Likewise.
32435         * tests/test-readlink.c (main): Likewise.
32436         * tests/test-remove.c (main): Likewise.
32437         * tests/test-rename.c (main): Likewise.
32438         * tests/test-renameat.c (main): Likewise.
32439         * tests/test-rmdir.c (main): Likewise.
32440         * tests/test-symlink.c (main): Likewise.
32441         * tests/test-symlinkat.c (main): Likewise.
32442         * tests/test-unlink.c (main): Likewise.
32443         * tests/test-unlinkat.c (main): Likewise.
32444         * tests/test-utimens.c (main): Likewise.
32445         * tests/test-utimensat.c (main): Likewise.
32446         * modules/areadlink-tests (Depends-on): Add ignore-value.
32447         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32448         * modules/areadlinkat-tests (Depends-on): Likewise.
32449         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32450         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32451         * modules/canonicalize-tests (Depends-on): Likewise.
32452         * modules/chown-tests (Depends-on): Likewise.
32453         * modules/fdutimensat-tests (Depends-on): Likewise.
32454         * modules/futimens-tests (Depends-on): Likewise.
32455         * modules/lchown-tests (Depends-on): Likewise.
32456         * modules/link-tests (Depends-on): Likewise.
32457         * modules/linkat-tests (Depends-on): Likewise.
32458         * modules/lstat-tests (Depends-on): Likewise.
32459         * modules/mkdir-tests (Depends-on): Likewise.
32460         * modules/mkfifo-tests (Depends-on): Likewise.
32461         * modules/mkfifoat-tests (Depends-on): Likewise.
32462         * modules/mknod-tests (Depends-on): Likewise.
32463         * modules/openat-tests (Depends-on): Likewise.
32464         * modules/readlink-tests (Depends-on): Likewise.
32465         * modules/remove-tests (Depends-on): Likewise.
32466         * modules/rename-tests (Depends-on): Likewise.
32467         * modules/renameat-tests (Depends-on): Likewise.
32468         * modules/rmdir-tests (Depends-on): Likewise.
32469         * modules/symlink-tests (Depends-on): Likewise.
32470         * modules/symlinkat-tests (Depends-on): Likewise.
32471         * modules/unlink-tests (Depends-on): Likewise.
32472         * modules/utimens-tests (Depends-on): Likewise.
32473         * modules/utimensat-tests (Depends-on): Likewise.
32474
32475 2010-01-31  Bruno Haible  <bruno@clisp.org>
32476
32477         Perform the same test for many <math.h> functions.
32478         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32479         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32480         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32481         of gl_MATHFUNC.
32482         * modules/acos (configure.ac): Likewise.
32483         * modules/asin (configure.ac): Likewise.
32484         * modules/atan (configure.ac): Likewise.
32485         * modules/atan2 (configure.ac): Likewise.
32486         * modules/cbrt (configure.ac): Likewise.
32487         * modules/copysign (configure.ac): Likewise.
32488         * modules/cos (configure.ac): Likewise.
32489         * modules/cosh (configure.ac): Likewise.
32490         * modules/erf (configure.ac): Likewise.
32491         * modules/erfc (configure.ac): Likewise.
32492         * modules/exp (configure.ac): Likewise.
32493         * modules/fmod (configure.ac): Likewise.
32494         * modules/hypot (configure.ac): Likewise.
32495         * modules/j0 (configure.ac): Likewise.
32496         * modules/j1 (configure.ac): Likewise.
32497         * modules/jn (configure.ac): Likewise.
32498         * modules/lgamma (configure.ac): Likewise.
32499         * modules/log (configure.ac): Likewise.
32500         * modules/log10 (configure.ac): Likewise.
32501         * modules/log1p (configure.ac): Likewise.
32502         * modules/pow (configure.ac): Likewise.
32503         * modules/remainder (configure.ac): Likewise.
32504         * modules/sin (configure.ac): Likewise.
32505         * modules/sinh (configure.ac): Likewise.
32506         * modules/tan (configure.ac): Likewise.
32507         * modules/tanh (configure.ac): Likewise.
32508         * modules/y0 (configure.ac): Likewise.
32509         * modules/y1 (configure.ac): Likewise.
32510         * modules/yn (configure.ac): Likewise.
32511         Suggested by Paolo Bonzini.
32512
32513 2010-01-31  Bruno Haible  <bruno@clisp.org>
32514
32515         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32516
32517 2010-01-31  Bruno Haible  <bruno@clisp.org>
32518
32519         Work around getdelim() bug on FreeBSD 8.0.
32520         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32521         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32522         not work.
32523         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32524         is 1.
32525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32526         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32527         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32528         a non-zero size.
32529         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32530
32531 2010-01-31  Bruno Haible  <bruno@clisp.org>
32532
32533         Work around getline() bug on FreeBSD 8.0.
32534         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32535         and a non-zero size.
32536         * tests/test-getline.c (main): Likewise.
32537         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32538         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32539
32540 2010-01-28  Eric Blake  <ebb9@byu.net>
32541
32542         regex: fix build failure
32543         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32544         platforms.
32545
32546 2010-01-28  Jim Meyering  <meyering@redhat.com>
32547
32548         regex: do not ignore memory allocation failure
32549         * lib/regex_internal.c (create_cd_newstate): Detect
32550         re_node_set_init_copy failure.   Extracted from glibc commit
32551         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32552
32553         regex: sync more white-space changes from libc
32554         * lib/regex_internal.c: White-space only changes.
32555         * lib/regexec.c: Likewise.
32556
32557         regex: add many uses of __attribute_warn_unused_result__
32558         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32559         * lib/regexec.c: Likewise.
32560         Extracted from a messy glibc commit.
32561
32562         regcomp.c: spelling and merge-artifact from glibc
32563         * lib/regcomp.c: Merge remainder of glibc's
32564         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32565
32566         regcomp.c: sync white-space changes from glibc
32567         * lib/regcomp.c: Merge to accommodate white space
32568         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32569
32570         regcomp.c: do not ignore internal return values
32571         * lib/regcomp.c: Do not ignore internal return values.
32572         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32573         but without its white-space changes and spelling fixes.
32574
32575         regex_internal.h: define __attribute_warn_unused_result__
32576         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32577
32578         maint: add a syntax-check rule to check for vulnerable Makefile.in
32579         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32580
32581 2010-01-27  Jim Meyering  <meyering@redhat.com>
32582
32583         ncftpput-ftp: clean up spaces
32584         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32585         Remove trailing blanks.
32586
32587 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32588
32589         * build-aux/git-version-gen: Fix copyright statement.
32590         * build-aux/gnupload: Likewise.
32591         * tests/test-arcfour.c: Likewise.
32592         * tests/test-arctwo.c: Likewise.
32593         * tests/test-count-one-bits.c: Likewise.
32594         * tests/test-crc.c: Likewise.
32595         * tests/test-des.c: Likewise.
32596         * tests/test-gc-arcfour.c: Likewise.
32597         * tests/test-gc-arctwo.c: Likewise.
32598         * tests/test-gc-des.c: Likewise.
32599         * tests/test-gc-hmac-md5.c: Likewise.
32600         * tests/test-gc-hmac-sha1.c: Likewise.
32601         * tests/test-gc-md2.c: Likewise.
32602         * tests/test-gc-md4.c: Likewise.
32603         * tests/test-gc-md5.c: Likewise.
32604         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32605         * tests/test-gc-rijndael.c: Likewise.
32606         * tests/test-gc-sha1.c: Likewise.
32607         * tests/test-gc.c: Likewise.
32608         * tests/test-gethostname.c: Likewise.
32609         * tests/test-gettimeofday.c: Likewise.
32610         * tests/test-hash.c: Likewise.
32611         * tests/test-hmac-md5.c: Likewise.
32612         * tests/test-hmac-sha1.c: Likewise.
32613         * tests/test-md2.c: Likewise.
32614         * tests/test-md4.c: Likewise.
32615         * tests/test-md5.c: Likewise.
32616         * tests/test-memchr.c: Likewise.
32617         * tests/test-memchr2.c: Likewise.
32618         * tests/test-memcmp.c: Likewise.
32619         * tests/test-memmem.c: Likewise.
32620         * tests/test-memrchr.c: Likewise.
32621         * tests/test-rawmemchr.c: Likewise.
32622         * tests/test-read-file.c: Likewise.
32623         * tests/test-rijndael.c: Likewise.
32624         * tests/test-sockets.c: Likewise.
32625         * tests/test-strchrnul.c: Likewise.
32626         * tests/test-strstr.c: Likewise.
32627         * tests/test-strtod.c: Likewise.
32628         * build-aux/ncftpput-ftp: Likewise.
32629
32630 2010-01-26  Eric Blake  <ebb9@byu.net>
32631
32632         ignore-value: update recommended header name
32633         * modules/ignore-value (Include): Only use <> for headers that
32634         exist in glibc.
32635
32636 2010-01-26  Jim Meyering  <meyering@redhat.com>
32637
32638         test-userspec.c: avoid compiler warnings
32639         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32640         and "initialization discards qualifiers..." warnings.
32641         Put the first "uid" in its own scope, and make char* members "const".
32642
32643 2010-01-25  Bruno Haible  <bruno@clisp.org>
32644
32645         gnulib-tool: Make warning diagnostics consistent.
32646         * gnulib-tool (func_warning): New function.
32647         Use it everywhere where gnulib-tool produces output to stderr and it is
32648         not a fatal error.
32649
32650 2010-01-25  Bruno Haible  <bruno@clisp.org>
32651
32652         Fix test dependencies.
32653         * modules/xstrtol-tests (Depends-on): Add inttypes.
32654         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32655
32656 2010-01-25 Pádraig Brady <P@draigBrady.com>
32657
32658         syntax-check: detect incorrect boolean macro values in config.h
32659         * modules/maintainer-makefile (configure.ac): Parameterize the location
32660         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32661         The logic is from Eric Blake and the location indicated by Jim Meyering.
32662         Note the more natural CONFIG_HEADER name is prohibited by automake
32663         for backwards compatibility reasons.
32664         * top/maint.mk (sc_Wundef_boolean): New rule.
32665
32666 2010-01-25  Jim Meyering  <meyering@redhat.com>
32667
32668         bootstrap: detect MacOS 10.6's shasum, too
32669         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32670         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32671
32672 2010-01-23  Jim Meyering  <meyering@redhat.com>
32673
32674         xstrtoll: new module
32675         * modules/xstrtoll: New file.
32676         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32677         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32678         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32679         ./configure fails if you use this module and lack "long long".
32680         * modules/xstrtoll-tests: New module.
32681         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32682         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32683         new init.sh-based test framework.
32684
32685 2010-01-24  Bruno Haible  <bruno@clisp.org>
32686
32687         Tests for module 'yn'.
32688         * modules/yn-tests: New file.
32689         * tests/test-yn.c: New file.
32690
32691         Tests for module 'y1'.
32692         * modules/y1-tests: New file.
32693         * tests/test-y1.c: New file.
32694
32695         Tests for module 'y0'.
32696         * modules/y0-tests: New file.
32697         * tests/test-y0.c: New file.
32698
32699         Tests for module 'tanh'.
32700         * modules/tanh-tests: New file.
32701         * tests/test-tanh.c: New file.
32702
32703         Tests for module 'tan'.
32704         * modules/tan-tests: New file.
32705         * tests/test-tan.c: New file.
32706
32707         Tests for module 'sqrt'.
32708         * modules/sqrt-tests: New file.
32709         * tests/test-sqrt.c: New file.
32710
32711         Tests for module 'sinh'.
32712         * modules/sinh-tests: New file.
32713         * tests/test-sinh.c: New file.
32714
32715         Tests for module 'sin'.
32716         * modules/sin-tests: New file.
32717         * tests/test-sin.c: New file.
32718
32719         Tests for module 'rint'.
32720         * modules/rint-tests: New file.
32721         * tests/test-rint.c: New file.
32722
32723         Tests for module 'remainder'.
32724         * modules/remainder-tests: New file.
32725         * tests/test-remainder.c: New file.
32726
32727         Tests for module 'pow'.
32728         * modules/pow-tests: New file.
32729         * tests/test-pow.c: New file.
32730
32731         Tests for module 'nextafter'.
32732         * modules/nextafter-tests: New file.
32733         * tests/test-nextafter.c: New file.
32734
32735         Tests for module 'modf'.
32736         * modules/modf-tests: New file.
32737         * tests/test-modf.c: New file.
32738
32739         Tests for module 'logb'.
32740         * modules/logb-tests: New file.
32741         * tests/test-logb.c: New file.
32742
32743         Tests for module 'log1p'.
32744         * modules/log1p-tests: New file.
32745         * tests/test-log1p.c: New file.
32746
32747         Tests for module 'log10'.
32748         * modules/log10-tests: New file.
32749         * tests/test-log10.c: New file.
32750
32751         Tests for module 'log'.
32752         * modules/log-tests: New file.
32753         * tests/test-log.c: New file.
32754
32755         Tests for module 'lgamma'.
32756         * modules/lgamma-tests: New file.
32757         * tests/test-lgamma.c: New file.
32758
32759         Tests for module 'ldexp'.
32760         * modules/ldexp-tests: New file.
32761         * tests/test-ldexp.c: New file.
32762
32763         Tests for module 'jn'.
32764         * modules/jn-tests: New file.
32765         * tests/test-jn.c: New file.
32766
32767         Tests for module 'j1'.
32768         * modules/j1-tests: New file.
32769         * tests/test-j1.c: New file.
32770
32771         Tests for module 'j0'.
32772         * modules/j0-tests: New file.
32773         * tests/test-j0.c: New file.
32774
32775         Tests for module 'hypot'.
32776         * modules/hypot-tests: New file.
32777         * tests/test-hypot.c: New file.
32778
32779         Tests for module 'fmod'.
32780         * modules/fmod-tests: New file.
32781         * tests/test-fmod.c: New file.
32782
32783         Tests for module 'fabs'.
32784         * modules/fabs-tests: New file.
32785         * tests/test-fabs.c: New file.
32786
32787         Tests for module 'exp'.
32788         * modules/exp-tests: New file.
32789         * tests/test-exp.c: New file.
32790
32791         Tests for module 'erfc'.
32792         * modules/erfc-tests: New file.
32793         * tests/test-erfc.c: New file.
32794
32795         Tests for module 'erf'.
32796         * modules/erf-tests: New file.
32797         * tests/test-erf.c: New file.
32798
32799         Tests for module 'cosh'.
32800         * modules/cosh-tests: New file.
32801         * tests/test-cosh.c: New file.
32802
32803         Tests for module 'cos'.
32804         * modules/cos-tests: New file.
32805         * tests/test-cos.c: New file.
32806
32807         Tests for module 'copysign'.
32808         * modules/copysign-tests: New file.
32809         * tests/test-copysign.c: New file.
32810
32811         Tests for module 'cbrt'.
32812         * modules/cbrt-tests: New file.
32813         * tests/test-cbrt.c: New file.
32814
32815         Tests for module 'atan2'.
32816         * modules/atan2-tests: New file.
32817         * tests/test-atan2.c: New file.
32818
32819         Tests for module 'atan'.
32820         * modules/atan-tests: New file.
32821         * tests/test-atan.c: New file.
32822
32823         Tests for module 'asin'.
32824         * modules/asin-tests: New file.
32825         * tests/test-asin.c: New file.
32826
32827         Tests for module 'acos'.
32828         * modules/acos-tests: New file.
32829         * tests/test-acos.c: New file.
32830
32831 2010-01-24  Bruno Haible  <bruno@clisp.org>
32832
32833         Fix tests for common <math.h> functions.
32834         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32835         code snippet that references the function pointer, rather than merely
32836         calling the function. Substitute the FUNC_LIBM variable.
32837         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32838         * modules/acos (configure.ac): Likewise.
32839         * modules/asin (configure.ac): Likewise.
32840         * modules/atan (configure.ac): Likewise.
32841         * modules/atan2 (configure.ac): Likewise.
32842         * modules/cbrt (configure.ac): Likewise.
32843         * modules/copysign (configure.ac): Likewise.
32844         * modules/cos (configure.ac): Likewise.
32845         * modules/cosh (configure.ac): Likewise.
32846         * modules/erf (configure.ac): Likewise.
32847         * modules/erfc (configure.ac): Likewise.
32848         * modules/exp (configure.ac): Likewise.
32849         * modules/fabs (configure.ac): Likewise.
32850         * modules/fmod (configure.ac): Likewise.
32851         * modules/hypot (configure.ac): Likewise.
32852         * modules/j0 (configure.ac): Likewise.
32853         * modules/j1 (configure.ac): Likewise.
32854         * modules/jn (configure.ac): Likewise.
32855         * modules/ldexp (configure.ac): Likewise.
32856         * modules/lgamma (configure.ac): Likewise.
32857         * modules/log (configure.ac): Likewise.
32858         * modules/log10 (configure.ac): Likewise.
32859         * modules/log1p (configure.ac): Likewise.
32860         * modules/logb (configure.ac): Likewise.
32861         * modules/modf (configure.ac): Likewise.
32862         * modules/nextafter (configure.ac): Likewise.
32863         * modules/pow (configure.ac): Likewise.
32864         * modules/remainder (configure.ac): Likewise.
32865         * modules/rint (configure.ac): Likewise.
32866         * modules/sin (configure.ac): Likewise.
32867         * modules/sinh (configure.ac): Likewise.
32868         * modules/tan (configure.ac): Likewise.
32869         * modules/tanh (configure.ac): Likewise.
32870         * modules/y0 (configure.ac): Likewise.
32871         * modules/y1 (configure.ac): Likewise.
32872         * modules/yn (configure.ac): Likewise.
32873
32874 2010-01-24  Bruno Haible  <bruno@clisp.org>
32875
32876         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32877         * tests/test-acosl.c (x): New variable.
32878         (main): Store argument in x and fetch it from x.
32879         * tests/test-asinl.c (x): New variable.
32880         (main): Store argument in x and fetch it from x.
32881         * tests/test-atanl.c (x): New variable.
32882         (main): Store argument in x and fetch it from x.
32883         * tests/test-cosl.c (x): New variable.
32884         (main): Store argument in x and fetch it from x.
32885         * tests/test-expl.c (x): New variable.
32886         (main): Store argument in x and fetch it from x.
32887         * tests/test-logl.c (x): New variable.
32888         (main): Store argument in x and fetch it from x.
32889         * tests/test-sinl.c (x): New variable.
32890         (main): Store argument in x and fetch it from x.
32891         * tests/test-sqrtl.c (x): New variable.
32892         (main): Store argument in x and fetch it from x.
32893         * tests/test-tanl.c (x): New variable.
32894         (main): Store argument in x and fetch it from x.
32895
32896 2010-01-24  Bruno Haible  <bruno@clisp.org>
32897
32898         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32899         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32900         assignments to the initial TESTS_ENVIRONMENT.
32901         * doc/gnulib.texi (Unit test modules): Document it.
32902         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32903         TESTS_ENVIRONMENT.
32904         * modules/btowc-tests (Makefile.am): Likewise.
32905         * modules/c-stack-tests (Makefile.am): Likewise.
32906         * modules/c-strcase-tests (Makefile.am): Likewise.
32907         * modules/copy-file-tests (Makefile.am): Likewise.
32908         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32909         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32910         * modules/mbrtowc-tests (Makefile.am): Likewise.
32911         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32912         * modules/mbscasestr-tests (Makefile.am): Likewise.
32913         * modules/mbschr-tests (Makefile.am): Likewise.
32914         * modules/mbscspn-tests (Makefile.am): Likewise.
32915         * modules/mbsinit-tests (Makefile.am): Likewise.
32916         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32917         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32918         * modules/mbspbrk-tests (Makefile.am): Likewise.
32919         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32920         * modules/mbsrchr-tests (Makefile.am): Likewise.
32921         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32922         * modules/mbsspn-tests (Makefile.am): Likewise.
32923         * modules/mbsstr-tests (Makefile.am): Likewise.
32924         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32925         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32926         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32927         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32928         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32929         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32930         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32931         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32932         * modules/wcrtomb-tests (Makefile.am): Likewise.
32933         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32934         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32935         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32936         assignments from TESTS_ENVIRONMENT.
32937         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32938         augmentation.
32939         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32940         * modules/atexit-tests (Makefile.am): Likewise.
32941         * modules/binary-io-tests (Makefile.am): Likewise.
32942         * modules/closein-tests (Makefile.am): Likewise.
32943         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32944         * modules/exclude-tests (Makefile.am): Likewise.
32945         * modules/fflush-tests (Makefile.am): Likewise.
32946         * modules/fpending-tests (Makefile.am): Likewise.
32947         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32948         * modules/freadahead-tests (Makefile.am): Likewise.
32949         * modules/freadptr-tests (Makefile.am): Likewise.
32950         * modules/freadseek-tests (Makefile.am): Likewise.
32951         * modules/fseek-tests (Makefile.am): Likewise.
32952         * modules/fseeko-tests (Makefile.am): Likewise.
32953         * modules/ftell-tests (Makefile.am): Likewise.
32954         * modules/ftello-tests (Makefile.am): Likewise.
32955         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32956         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32957         * modules/lseek-tests (Makefile.am): Likewise.
32958         * modules/parse-duration-tests (Makefile.am): Likewise.
32959         * modules/perror-tests (Makefile.am): Likewise.
32960         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32961         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32962         * modules/pipe-tests (Makefile.am): Likewise.
32963         * modules/pread-tests (Makefile.am): Likewise.
32964         * modules/printf-posix-tests (Makefile.am): Likewise.
32965         * modules/select-tests (Makefile.am): Likewise.
32966         * modules/sigpipe-tests (Makefile.am): Likewise.
32967         * modules/tsearch-tests (Makefile.am): Likewise.
32968         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32969         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32970         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32971         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32972         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32973         * modules/version-etc-tests (Makefile.am): Likewise.
32974         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32975         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32976         * modules/xalloc-die-tests (Makefile.am): Likewise.
32977         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32978         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32979         * modules/xstrtol-tests (Makefile.am): Likewise.
32980         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32981         * modules/yesno-tests (Makefile.am): Likewise.
32982         Suggested by Jim Meyering.
32983
32984 2010-01-24  Bruno Haible  <bruno@clisp.org>
32985
32986         More documentation.
32987         * doc/gnulib.texi (Writing modules): New chapter.
32988         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32989         the new chapter.
32990
32991 2010-01-24  Jim Meyering  <meyering@redhat.com>
32992
32993         maint.mk: do not prepend "./" after filtering
32994         * top/maint.mk (_prepend_srcdir_prefix): New variable
32995         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32996         "./" when $(srcdir) is ".".
32997
32998         define STREQ(a,b) consistently, removing useless parentheses
32999         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33000         since the only risk is that "a" or "b" contains an unparenthesized
33001         comma, but if either did that, STREQ would have 3 or more arguments.
33002         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33003         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33004         * lib/hash-triple.c (STREQ): Likewise.
33005         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33006         * lib/getugroups.c (STREQ): Likewise.
33007
33008 2010-01-23  Jim Meyering  <meyering@redhat.com>
33009
33010         maint.mk: fix syntax-check in a non-srcdir build directory
33011         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33012         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33013
33014 2010-01-22  Jim Meyering  <meyering@redhat.com>
33015
33016         userspec: add unit tests
33017         * tests/test-userspec.c: New file.
33018         * modules/userspec-tests: Likewise.
33019
33020 2010-01-21  Jim Meyering  <meyering@redhat.com>
33021
33022         maint.mk: handle source file names containing "." robustly
33023         * top/maint.mk (_dot_escaped_srcdir): Define.
33024         (VC_LIST): Use it in LHS of sed substitution.
33025
33026 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33027
33028         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33029         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33030         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33031         from a non-srcdir build.
33032
33033 2010-01-20  Eric Blake  <ebb9@byu.net>
33034
33035         warn-on-use: use instead of link-warning
33036         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33037         * modules/unistd (Depends-on, Makefile.am): Likewise.
33038         * modules/arpa_inet (Depends-on): Replace link-warning with
33039         warn-on-use.
33040         (Makefile.am): Update rules accordingly.
33041         * modules/ctype (Depends-on, Makefile.am): Likewise.
33042         * modules/dirent (Depends-on, Makefile.am): Likewise.
33043         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33044         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33045         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33046         * modules/locale (Depends-on, Makefile.am): Likewise.
33047         * modules/math (Depends-on, Makefile.am): Likewise.
33048         * modules/search (Depends-on, Makefile.am): Likewise.
33049         * modules/signal (Depends-on, Makefile.am): Likewise.
33050         * modules/spawn (Depends-on, Makefile.am): Likewise.
33051         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33052         * modules/string (Depends-on, Makefile.am): Likewise.
33053         * modules/strings (Depends-on, Makefile.am): Likewise.
33054         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33055         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33056         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33057         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33058         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33059         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33060         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33061         * modules/wchar (Depends-on, Makefile.am): Likewise.
33062         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33063         should be poisoned.
33064         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33065         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33066         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33067         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33068         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33069         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33070         * m4/math_h.m4 (gl_MATH_H): Likewise.
33071         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33072         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33073         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33074         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33075         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33076         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33077         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33078         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33083         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33084         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33085         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33086         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33087         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33088         GL_LINK_WARNING.
33089         * lib/ctype.in.h: Likewise.
33090         * lib/dirent.in.h: Likewise.
33091         * lib/fcntl.in.h: Likewise.
33092         * lib/inttypes.in.h: Likewise.
33093         * lib/langinfo.in.h: Likewise.
33094         * lib/locale.in.h: Likewise.
33095         * lib/math.in.h: Likewise.
33096         * lib/search.in.h: Likewise.
33097         * lib/signal.in.h: Likewise.
33098         * lib/spawn.in.h: Likewise.
33099         * lib/stdio.in.h: Likewise.
33100         * lib/stdlib.in.h: Likewise.
33101         * lib/string.in.h: Likewise.
33102         * lib/strings.in.h: Likewise.
33103         * lib/sys_file.in.h: Likewise.
33104         * lib/sys_ioctl.in.h: Likewise.
33105         * lib/sys_select.in.h: Likewise.
33106         * lib/sys_socket.in.h: Likewise.
33107         * lib/sys_stat.in.h: Likewise.
33108         * lib/sys_times.in.h: Likewise.
33109         * lib/sys_utsname.in.h: Likewise.
33110         * lib/unistd.in.h: Likewise.
33111         * lib/wchar.in.h: Likewise.
33112
33113 2010-01-20  Bruno Haible  <bruno@clisp.org>
33114
33115         Avoid duplicate -lm.
33116         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33117         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33120         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33121         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33122         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33123         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33124         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33125         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33126         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33127         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33128         Reported by Paolo Bonzini.
33129
33130 2010-01-19  Bruno Haible  <bruno@clisp.org>
33131
33132         langinfo, nl_langinfo: Relicense under LGPLv2+.
33133         * modules/langinfo (License): Change to LGPLv2+.
33134         * modules/nl_langinfo (License): Likewise.
33135         Patch by David Lutterkort <lutter@redhat.com>.
33136
33137 2010-01-19  Bruno Haible  <bruno@clisp.org>
33138
33139         Avoid compilation error with cc on OSF/1 5.1.
33140         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33141         statement, not before.
33142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33143
33144 2010-01-18  Bruno Haible  <bruno@clisp.org>
33145
33146         Avoid a link error due to the __printf__ symbol.
33147         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33148         and 2.6.x.
33149         (__format__, __printf__): Remove definitions.
33150         * lib/argp-fmtstream.h: Likewise.
33151         * lib/argp.h: Likewise.
33152         * lib/error.h: Likewise.
33153         * lib/vasnprintf.h: Likewise.
33154         * lib/xprintf.h: Likewise.
33155         * lib/xvasprintf.h: Likewise.
33156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33157
33158 2010-01-18  Bruno Haible  <bruno@clisp.org>
33159
33160         Tests for module 'tanl'.
33161         * modules/tanl-tests: New file.
33162         * tests/test-tanl.c: New file.
33163
33164         Tests for module 'sqrtl'.
33165         * modules/sqrtl-tests: New file.
33166         * tests/test-sqrtl.c: New file.
33167
33168         Tests for module 'sinl'.
33169         * modules/sinl-tests: New file.
33170         * tests/test-sinl.c: New file.
33171
33172         Tests for module 'logl'.
33173         * modules/logl-tests: New file.
33174         * tests/test-logl.c: New file.
33175
33176         Tests for module 'expl'.
33177         * modules/expl-tests: New file.
33178         * tests/test-expl.c: New file.
33179
33180         Tests for module 'cosl'.
33181         * modules/cosl-tests: New file.
33182         * tests/test-cosl.c: New file.
33183
33184         Tests for module 'atanl'.
33185         * modules/atanl-tests: New file.
33186         * tests/test-atanl.c: New file.
33187
33188         Tests for module 'asinl'.
33189         * modules/asinl-tests: New file.
33190         * tests/test-asinl.c: New file.
33191
33192         Tests for module 'acosl'.
33193         * modules/acosl-tests: New file.
33194         * tests/test-acosl.c: New file.
33195
33196         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33197         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33198         tanl): Use the standard gnulib idiom.
33199         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33200         * lib/sinl.c: Likewise.
33201         * lib/tanl.c: Don't include trigl.c.
33202         (kernel_tanl): Make static.
33203         * lib/sincosl.c: Include trigl.h first.
33204         * lib/trigl.c: Likewise.
33205         * m4/acosl.m4: New file.
33206         * m4/asinl.m4: New file.
33207         * m4/atanl.m4: New file.
33208         * m4/cosl.m4: New file.
33209         * m4/expl.m4: New file.
33210         * m4/logl.m4: New file.
33211         * m4/sinl.m4: New file.
33212         * m4/sqrtl.m4: New file.
33213         * m4/tanl.m4: New file.
33214         * m4/mathl.m4: Remove file.
33215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33216         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33217         Don't initialize GNULIB_MATHL.
33218         * modules/acosl: New file.
33219         * modules/asinl: New file.
33220         * modules/atanl: New file.
33221         * modules/cosl: New file.
33222         * modules/expl: New file.
33223         * modules/logl: New file.
33224         * modules/sinl: New file.
33225         * modules/sqrtl: New file.
33226         * modules/tanl: New file.
33227         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33228         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33229         substitute GNULIB_MATHL.
33230         * modules/mathl: Rewritten.
33231         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33232         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33233         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33234         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33235         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33236         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33237         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33238         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33239         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33240
33241 2010-01-18  Bruno Haible  <bruno@clisp.org>
33242
33243         sqrt: Make gl_FUNC_SQRT requirable.
33244         * m4/sqrt.m4: New file.
33245         * modules/sqrt (Files): Add it.
33246         (configure.ac): Invoke gl_FUNC_SQRT.
33247
33248 2010-01-18  Bruno Haible  <bruno@clisp.org>
33249
33250         New modules for common <math.h> functions.
33251         * m4/mathfunc.m4: New file.
33252         * modules/acos: New file.
33253         * modules/asin: New file.
33254         * modules/atan: New file.
33255         * modules/atan2: New file.
33256         * modules/cbrt: New file.
33257         * modules/copysign: New file.
33258         * modules/cos: New file.
33259         * modules/cosh: New file.
33260         * modules/erf: New file.
33261         * modules/erfc: New file.
33262         * modules/exp: New file.
33263         * modules/fabs: New file.
33264         * modules/fmod: New file.
33265         * modules/hypot: New file.
33266         * modules/j0: New file.
33267         * modules/j1: New file.
33268         * modules/jn: New file.
33269         * modules/ldexp: New file.
33270         * modules/lgamma: New file.
33271         * modules/log: New file.
33272         * modules/log10: New file.
33273         * modules/log1p: New file.
33274         * modules/logb: New file.
33275         * modules/modf: New file.
33276         * modules/nextafter: New file.
33277         * modules/pow: New file.
33278         * modules/remainder: New file.
33279         * modules/rint: New file.
33280         * modules/sin: New file.
33281         * modules/sinh: New file.
33282         * modules/sqrt: New file.
33283         * modules/tan: New file.
33284         * modules/tanh: New file.
33285         * modules/y0: New file.
33286         * modules/y1: New file.
33287         * modules/yn: New file.
33288         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33289         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33290         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33291         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33292         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33293         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33294         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33295         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33296         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33297         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33298         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33299         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33300         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33301         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33302         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33303         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33304         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33305         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33306         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33307         * doc/posix-functions/log.texi: Mention the 'log' module.
33308         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33309         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33310         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33311         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33312         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33313         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33314         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33315         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33316         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33317         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33318         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33319         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33320         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33321         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33322         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33323         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33324
33325 2010-01-18  Jim Meyering  <meyering@redhat.com>
33326
33327         ignore-value: relax license to LGPLv2+
33328         * modules/ignore-value (License): Relax to LGPLv2+.
33329
33330         getdate: don't leak when TZ contains two or more '"'s
33331         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33332         double quote in TZ after the first one.
33333
33334         readtokens: do not leak internal token_lengths buffer
33335         * lib/readtokens.c (readtokens): Free the local, lengths,
33336         when the supplied "token_lengths" parameter is NULL.
33337
33338 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33339
33340         Fix a couple of missing LIBTHREAD link failures on AIX.
33341         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33342         $(LIBTHREAD).
33343         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33344
33345         Link test-poll against INET_PTON_LIB.
33346         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33347         for inet_pton on Solaris 10.
33348
33349 2010-01-17  Bruno Haible  <bruno@clisp.org>
33350
33351         unistdio/*-sprintf: Fix typo in module description.
33352         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33353         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33354         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33355         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33356         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33357         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33358         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33359         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33360
33361 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33362
33363         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33364         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33365         variables in shell case patterns, for AIX and HP-UX ksh.
33366
33367         Split large sed scripts, for HP-UX sed.
33368         * modules/stdio: Split sed scripts around 50 sed commands,
33369         to avoid HP-UX limit of 99 commands, in the near future.
33370         * modules/string: Likewise.
33371         * modules/unistd: Likewise.
33372
33373         gnulib-tool: avoid writing in the current directory.
33374         * gnulib-tool (func_emit_lib_Makefile_am)
33375         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33376         not in the current directory, so concurrent gnulib-tool
33377         instances do not interfere.
33378
33379 2010-01-16  Jim Meyering  <meyering@redhat.com>
33380
33381         doc: update users.txt
33382         * users.txt: Add grep.
33383         (diffutils, gzip): Update URLs.
33384
33385 2010-01-12  Bruno Haible  <bruno@clisp.org>
33386
33387         posix_spawn: Avoid test failure on Cygwin.
33388         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33389         characters.
33390         Reported by Simon Josefsson.
33391
33392 2010-01-12  Bruno Haible  <bruno@clisp.org>
33393
33394         * tests/test-cond.c (main): When skipping the test, show the reason.
33395
33396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33397
33398         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33399
33400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33401
33402         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33403         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33404
33405 2010-01-12  Eric Blake  <ebb9@byu.net>
33406
33407         build: guarantee AS_VAR_IF
33408         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33409         (gl_AS_VAR_IF): Move...
33410         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33411         Reported by Simon Josefsson.
33412
33413 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33414
33415         * lib/stdio.in.h: Fix typo.
33416
33417 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33418
33419         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33420         libgpg-error.
33421
33422 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33423
33424         * tests/test-xalloc-die.sh: Use $EXEEXT.
33425
33426 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33427             Bruno Haible  <bruno@clisp.org>
33428
33429         getlogin, getlogin_r: Avoid test failure.
33430         * tests/test-getlogin.c: Include <stdio.h>.
33431         (main): Skip the test when the function fails because stdin is not a
33432         tty.
33433         * tests/test-getlogin_r.c: Include <stdio.h>.
33434         (main): Skip the test when the function fails because stdin is not a
33435         tty.
33436
33437 2010-01-11  Eric Blake  <ebb9@byu.net>
33438
33439         tests: avoid more large file warnings
33440         * tests/test-fflush.c: Avoid warning about ftell use.
33441         * tests/test-fseek.c: Avoid warning about fseek use.
33442
33443 2010-01-10  Bruno Haible  <bruno@clisp.org>
33444
33445         nproc: Work better on Linux when /proc and /sys are not mounted.
33446         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33447         as lower bound when, on glibc/Linux systems,
33448         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33449         Suggested by Pádraig Brady <P@draigbrady.com>.
33450         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33451
33452         nproc: Refactor.
33453         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33454         extracted from num_processors.
33455         (num_processors): Call it.
33456
33457 2010-01-11  Jim Meyering  <meyering@redhat.com>
33458
33459         utimecmp: avoid new warning from upcoming gcc-4.5.0
33460         * lib/utimecmp.c (BILLION): Define using #define rather than an
33461         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33462
33463 2010-01-11  Eric Blake  <ebb9@byu.net>
33464
33465         math: add portability warnings for classification macros
33466         * modules/math (Depends-on): Add warn-on-use.
33467         (Makefile.am): Provide new substitutions.
33468         * m4/math_h.m4 (gl_MATH_H): Require inline.
33469         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33470         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33471         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33472         implement warnings.
33473
33474         unistd: warn on use of environ without module
33475         * modules/unistd (Depends-on): Add warn-on-use.
33476         (Makefile.am): Provide new substitutions.
33477         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33478         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33479
33480         stdio: warn on suspicious uses
33481         * modules/stdio (Depends-on): Add warn-on-use.
33482         (Makefile.am): Provide new substitutions.
33483         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33484         fseeko.
33485         * lib/stdio.in.h (gets): Always warn on use.
33486         (fseek, ftell): Adjust when warnings are issued, and honor
33487         _GL_NO_LARGE_FILES as a way to silence the warning.
33488         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33489         any warning about large file offsets.
33490         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33491         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33492         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33493         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33494         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33495         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33496         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33497         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33498
33499         warn-on-use: new module
33500         * modules/warn-on-use: New file.
33501         * build-aux/warn-on-use.h: Likewise.
33502         * m4/warn-on-use.m4: Likewise.
33503         * MODULES.html.sh (Support for building): Mention it.
33504
33505 2010-01-10  Bruno Haible  <bruno@clisp.org>
33506
33507         Tests for module 'unistr/u32-strdup'.
33508         * modules/unistr/u32-strdup-tests: New file.
33509         * tests/unistr/test-u32-strdup.c: New file.
33510
33511         Tests for module 'unistr/u16-strdup'.
33512         * modules/unistr/u16-strdup-tests: New file.
33513         * tests/unistr/test-u16-strdup.c: New file.
33514
33515         Tests for module 'unistr/u8-strdup'.
33516         * modules/unistr/u8-strdup-tests: New file.
33517         * tests/unistr/test-u8-strdup.c: New file.
33518         * tests/unistr/test-strdup.h: New file.
33519
33520         Tests for module 'unistr/u32-strncmp'.
33521         * modules/unistr/u32-strncmp-tests: New file.
33522         * tests/unistr/test-u32-strncmp.c: New file.
33523
33524         Tests for module 'unistr/u16-strncmp'.
33525         * modules/unistr/u16-strncmp-tests: New file.
33526         * tests/unistr/test-u16-strncmp.c: New file.
33527
33528         Tests for module 'unistr/u8-strncmp'.
33529         * modules/unistr/u8-strncmp-tests: New file.
33530         * tests/unistr/test-u8-strncmp.c: New file.
33531         * tests/unistr/test-strncmp.h: New file.
33532
33533         Tests for module 'unistr/u32-strcoll'.
33534         * modules/unistr/u32-strcoll-tests: New file.
33535         * tests/unistr/test-u32-strcoll.c: New file.
33536
33537         Tests for module 'unistr/u16-strcoll'.
33538         * modules/unistr/u16-strcoll-tests: New file.
33539         * tests/unistr/test-u16-strcoll.c: New file.
33540
33541         Tests for module 'unistr/u8-strcoll'.
33542         * modules/unistr/u8-strcoll-tests: New file.
33543         * tests/unistr/test-u8-strcoll.c: New file.
33544
33545         Tests for module 'unistr/u32-strcmp'.
33546         * modules/unistr/u32-strcmp-tests: New file.
33547         * tests/unistr/test-u32-strcmp.c: New file.
33548         * tests/unistr/test-u32-strcmp.h: New file.
33549
33550         Tests for module 'unistr/u16-strcmp'.
33551         * modules/unistr/u16-strcmp-tests: New file.
33552         * tests/unistr/test-u16-strcmp.c: New file.
33553         * tests/unistr/test-u16-strcmp.h: New file.
33554
33555         Tests for module 'unistr/u8-strcmp'.
33556         * modules/unistr/u8-strcmp-tests: New file.
33557         * tests/unistr/test-u8-strcmp.c: New file.
33558         * tests/unistr/test-u8-strcmp.h: New file.
33559         * tests/unistr/test-strcmp.h: New file.
33560
33561         Tests for module 'unistr/u32-strncat'.
33562         * modules/unistr/u32-strncat-tests: New file.
33563         * tests/unistr/test-u32-strncat.c: New file.
33564
33565         Tests for module 'unistr/u16-strncat'.
33566         * modules/unistr/u16-strncat-tests: New file.
33567         * tests/unistr/test-u16-strncat.c: New file.
33568
33569         Tests for module 'unistr/u8-strncat'.
33570         * modules/unistr/u8-strncat-tests: New file.
33571         * tests/unistr/test-u8-strncat.c: New file.
33572         * tests/unistr/test-strncat.h: New file.
33573
33574         Tests for module 'unistr/u32-strcat'.
33575         * modules/unistr/u32-strcat-tests: New file.
33576         * tests/unistr/test-u32-strcat.c: New file.
33577
33578         Tests for module 'unistr/u16-strcat'.
33579         * modules/unistr/u16-strcat-tests: New file.
33580         * tests/unistr/test-u16-strcat.c: New file.
33581
33582         Tests for module 'unistr/u8-strcat'.
33583         * modules/unistr/u8-strcat-tests: New file.
33584         * tests/unistr/test-u8-strcat.c: New file.
33585         * tests/unistr/test-strcat.h: New file.
33586
33587         Tests for module 'unistr/u32-stpncpy'.
33588         * modules/unistr/u32-stpncpy-tests: New file.
33589         * tests/unistr/test-u32-stpncpy.c: New file.
33590
33591         Tests for module 'unistr/u16-stpncpy'.
33592         * modules/unistr/u16-stpncpy-tests: New file.
33593         * tests/unistr/test-u16-stpncpy.c: New file.
33594
33595         Tests for module 'unistr/u8-stpncpy'.
33596         * modules/unistr/u8-stpncpy-tests: New file.
33597         * tests/unistr/test-u8-stpncpy.c: New file.
33598         * tests/unistr/test-stpncpy.h: New file.
33599
33600         Tests for module 'unistr/u32-strncpy'.
33601         * modules/unistr/u32-strncpy-tests: New file.
33602         * tests/unistr/test-u32-strncpy.c: New file.
33603
33604         Tests for module 'unistr/u16-strncpy'.
33605         * modules/unistr/u16-strncpy-tests: New file.
33606         * tests/unistr/test-u16-strncpy.c: New file.
33607
33608         Tests for module 'unistr/u8-strncpy'.
33609         * modules/unistr/u8-strncpy-tests: New file.
33610         * tests/unistr/test-u8-strncpy.c: New file.
33611         * tests/unistr/test-strncpy.h: New file.
33612
33613         Tests for module 'unistr/u32-stpcpy'.
33614         * modules/unistr/u32-stpcpy-tests: New file.
33615         * tests/unistr/test-u32-stpcpy.c: New file.
33616
33617         Tests for module 'unistr/u16-stpcpy'.
33618         * modules/unistr/u16-stpcpy-tests: New file.
33619         * tests/unistr/test-u16-stpcpy.c: New file.
33620
33621         Tests for module 'unistr/u8-stpcpy'.
33622         * modules/unistr/u8-stpcpy-tests: New file.
33623         * tests/unistr/test-u8-stpcpy.c: New file.
33624         * tests/unistr/test-stpcpy.h: New file.
33625
33626         Tests for module 'unistr/u32-strcpy'.
33627         * modules/unistr/u32-strcpy-tests: New file.
33628         * tests/unistr/test-u32-strcpy.c: New file.
33629
33630         Tests for module 'unistr/u16-strcpy'.
33631         * modules/unistr/u16-strcpy-tests: New file.
33632         * tests/unistr/test-u16-strcpy.c: New file.
33633
33634         Tests for module 'unistr/u8-strcpy'.
33635         * modules/unistr/u8-strcpy-tests: New file.
33636         * tests/unistr/test-u8-strcpy.c: New file.
33637         * tests/unistr/test-strcpy.h: New file.
33638
33639         Tests for module 'unistr/u32-strnlen'.
33640         * modules/unistr/u32-strnlen-tests: New file.
33641         * tests/unistr/test-u32-strnlen.c: New file.
33642
33643         Tests for module 'unistr/u16-strnlen'.
33644         * modules/unistr/u16-strnlen-tests: New file.
33645         * tests/unistr/test-u16-strnlen.c: New file.
33646
33647         Tests for module 'unistr/u8-strnlen'.
33648         * modules/unistr/u8-strnlen-tests: New file.
33649         * tests/unistr/test-u8-strnlen.c: New file.
33650         * tests/unistr/test-strnlen.h: New file.
33651
33652         Tests for module 'unistr/u32-strlen'.
33653         * modules/unistr/u32-strlen-tests: New file.
33654         * tests/unistr/test-u32-strlen.c: New file.
33655
33656         Tests for module 'unistr/u16-strlen'.
33657         * modules/unistr/u16-strlen-tests: New file.
33658         * tests/unistr/test-u16-strlen.c: New file.
33659
33660         Tests for module 'unistr/u8-strlen'.
33661         * modules/unistr/u8-strlen-tests: New file.
33662         * tests/unistr/test-u8-strlen.c: New file.
33663
33664         Tests for module 'unistr/u32-prev'.
33665         * modules/unistr/u32-prev-tests: New file.
33666         * tests/unistr/test-u32-prev.c: New file.
33667
33668         Tests for module 'unistr/u16-prev'.
33669         * modules/unistr/u16-prev-tests: New file.
33670         * tests/unistr/test-u16-prev.c: New file.
33671
33672         Tests for module 'unistr/u8-prev'.
33673         * modules/unistr/u8-prev-tests: New file.
33674         * tests/unistr/test-u8-prev.c: New file.
33675
33676         Tests for module 'unistr/u32-next'.
33677         * modules/unistr/u32-next-tests: New file.
33678         * tests/unistr/test-u32-next.c: New file.
33679
33680         Tests for module 'unistr/u16-next'.
33681         * modules/unistr/u16-next-tests: New file.
33682         * tests/unistr/test-u16-next.c: New file.
33683
33684         Tests for module 'unistr/u8-next'.
33685         * modules/unistr/u8-next-tests: New file.
33686         * tests/unistr/test-u8-next.c: New file.
33687
33688         Tests for module 'unistr/u32-strmbtouc'.
33689         * modules/unistr/u32-strmbtouc-tests: New file.
33690         * tests/unistr/test-u32-strmbtouc.c: New file.
33691
33692         Tests for module 'unistr/u16-strmbtouc'.
33693         * modules/unistr/u16-strmbtouc-tests: New file.
33694         * tests/unistr/test-u16-strmbtouc.c: New file.
33695
33696         Tests for module 'unistr/u8-strmbtouc'.
33697         * modules/unistr/u8-strmbtouc-tests: New file.
33698         * tests/unistr/test-u8-strmbtouc.c: New file.
33699
33700         Tests for module 'unistr/u32-strmblen'.
33701         * modules/unistr/u32-strmblen-tests: New file.
33702         * tests/unistr/test-u32-strmblen.c: New file.
33703
33704         Tests for module 'unistr/u16-strmblen'.
33705         * modules/unistr/u16-strmblen-tests: New file.
33706         * tests/unistr/test-u16-strmblen.c: New file.
33707
33708         Tests for module 'unistr/u8-strmblen'.
33709         * modules/unistr/u8-strmblen-tests: New file.
33710         * tests/unistr/test-u8-strmblen.c: New file.
33711
33712         Tests for module 'unistr/u32-cpy-alloc'.
33713         * modules/unistr/u32-cpy-alloc-tests: New file.
33714         * tests/unistr/test-u32-cpy-alloc.c: New file.
33715
33716         Tests for module 'unistr/u16-cpy-alloc'.
33717         * modules/unistr/u16-cpy-alloc-tests: New file.
33718         * tests/unistr/test-u16-cpy-alloc.c: New file.
33719
33720         Tests for module 'unistr/u8-cpy-alloc'.
33721         * modules/unistr/u8-cpy-alloc-tests: New file.
33722         * tests/unistr/test-u8-cpy-alloc.c: New file.
33723         * tests/unistr/test-cpy-alloc.h: New file.
33724
33725         Tests for module 'unistr/u32-mbsnlen'.
33726         * modules/unistr/u32-mbsnlen-tests: New file.
33727         * tests/unistr/test-u32-mbsnlen.c: New file.
33728
33729         Tests for module 'unistr/u16-mbsnlen'.
33730         * modules/unistr/u16-mbsnlen-tests: New file.
33731         * tests/unistr/test-u16-mbsnlen.c: New file.
33732
33733         Tests for module 'unistr/u8-mbsnlen'.
33734         * modules/unistr/u8-mbsnlen-tests: New file.
33735         * tests/unistr/test-u8-mbsnlen.c: New file.
33736
33737         Tests for module 'unistr/u32-chr'.
33738         * modules/unistr/u32-chr-tests: New file.
33739         * tests/unistr/test-u32-chr.c: New file.
33740
33741         Tests for module 'unistr/u16-chr'.
33742         * modules/unistr/u16-chr-tests: New file.
33743         * tests/unistr/test-u16-chr.c: New file.
33744
33745         Tests for module 'unistr/u8-chr'.
33746         * modules/unistr/u8-chr-tests: New file.
33747         * tests/unistr/test-u8-chr.c: New file.
33748         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33749
33750         Tests for module 'unistr/u32-cmp2'.
33751         * modules/unistr/u32-cmp2-tests: New file.
33752         * tests/unistr/test-u32-cmp2.c: New file.
33753
33754         Tests for module 'unistr/u16-cmp2'.
33755         * modules/unistr/u16-cmp2-tests: New file.
33756         * tests/unistr/test-u16-cmp2.c: New file.
33757
33758         Tests for module 'unistr/u8-cmp2'.
33759         * modules/unistr/u8-cmp2-tests: New file.
33760         * tests/unistr/test-u8-cmp2.c: New file.
33761         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33762
33763         Tests for module 'unistr/u32-cmp'.
33764         * modules/unistr/u32-cmp-tests: New file.
33765         * tests/unistr/test-u32-cmp.c: New file.
33766
33767         Tests for module 'unistr/u16-cmp'.
33768         * modules/unistr/u16-cmp-tests: New file.
33769         * tests/unistr/test-u16-cmp.c: New file.
33770
33771         Tests for module 'unistr/u8-cmp'.
33772         * modules/unistr/u8-cmp-tests: New file.
33773         * tests/unistr/test-u8-cmp.c: New file.
33774         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33775
33776         Tests for module 'unistr/u32-set'.
33777         * modules/unistr/u32-set-tests: New file.
33778         * tests/unistr/test-u32-set.c: New file.
33779
33780         Tests for module 'unistr/u16-set'.
33781         * modules/unistr/u16-set-tests: New file.
33782         * tests/unistr/test-u16-set.c: New file.
33783
33784         Tests for module 'unistr/u8-set'.
33785         * modules/unistr/u8-set-tests: New file.
33786         * tests/unistr/test-u8-set.c: New file.
33787         * tests/unistr/test-set.h: New file.
33788
33789         Tests for module 'unistr/u32-move'.
33790         * modules/unistr/u32-move-tests: New file.
33791         * tests/unistr/test-u32-move.c: New file.
33792
33793         Tests for module 'unistr/u16-move'.
33794         * modules/unistr/u16-move-tests: New file.
33795         * tests/unistr/test-u16-move.c: New file.
33796
33797         Tests for module 'unistr/u8-move'.
33798         * modules/unistr/u8-move-tests: New file.
33799         * tests/unistr/test-u8-move.c: New file.
33800         * tests/unistr/test-move.h: New file.
33801
33802         Tests for module 'unistr/u32-cpy'.
33803         * modules/unistr/u32-cpy-tests: New file.
33804         * tests/unistr/test-u32-cpy.c: New file.
33805
33806         Tests for module 'unistr/u16-cpy'.
33807         * modules/unistr/u16-cpy-tests: New file.
33808         * tests/unistr/test-u16-cpy.c: New file.
33809
33810         Tests for module 'unistr/u8-cpy'.
33811         * modules/unistr/u8-cpy-tests: New file.
33812         * tests/unistr/test-u8-cpy.c: New file.
33813         * tests/unistr/test-cpy.h: New file.
33814
33815 2010-01-09  Bruno Haible  <bruno@clisp.org>
33816
33817         Tests for module 'unistr/u32-uctomb'.
33818         * modules/unistr/u32-uctomb-tests: New file.
33819         * tests/unistr/test-u32-uctomb.c: New file.
33820
33821         Tests for module 'unistr/u16-uctomb'.
33822         * modules/unistr/u16-uctomb-tests: New file.
33823         * tests/unistr/test-u16-uctomb.c: New file.
33824
33825         Tests for module 'unistr/u8-uctomb'.
33826         * modules/unistr/u8-uctomb-tests: New file.
33827         * tests/unistr/test-u8-uctomb.c: New file.
33828
33829         Tests for module 'unistr/u32-mbtoucr'.
33830         * modules/unistr/u32-mbtoucr-tests: New file.
33831         * tests/unistr/test-u32-mbtoucr.c: New file.
33832
33833         Tests for module 'unistr/u16-mbtoucr'.
33834         * modules/unistr/u16-mbtoucr-tests: New file.
33835         * tests/unistr/test-u16-mbtoucr.c: New file.
33836
33837         Tests for module 'unistr/u8-mbtoucr'.
33838         * modules/unistr/u8-mbtoucr-tests: New file.
33839         * tests/unistr/test-u8-mbtoucr.c: New file.
33840
33841         Tests for module 'unistr/u32-mbtouc'.
33842         * modules/unistr/u32-mbtouc-tests: New file.
33843         * tests/unistr/test-u32-mbtouc.c: New file.
33844
33845         Tests for module 'unistr/u16-mbtouc'.
33846         * modules/unistr/u16-mbtouc-tests: New file.
33847         * tests/unistr/test-u16-mbtouc.c: New file.
33848
33849         Tests for module 'unistr/u8-mbtouc'.
33850         * modules/unistr/u8-mbtouc-tests: New file.
33851         * tests/unistr/test-u8-mbtouc.c: New file.
33852
33853         Tests for module 'unistr/u32-mbtouc-unsafe'.
33854         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33855         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33856         * tests/unistr/test-u32-mbtouc.h: New file.
33857
33858         Tests for module 'unistr/u16-mbtouc-unsafe'.
33859         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33860         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33861         * tests/unistr/test-u16-mbtouc.h: New file.
33862
33863         Tests for module 'unistr/u8-mbtouc-unsafe'.
33864         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33865         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33866         * tests/unistr/test-u8-mbtouc.h: New file.
33867
33868         Tests for module 'unistr/u32-mblen'.
33869         * modules/unistr/u32-mblen-tests: New file.
33870         * tests/unistr/test-u32-mblen.c: New file.
33871
33872         Tests for module 'unistr/u16-mblen'.
33873         * modules/unistr/u16-mblen-tests: New file.
33874         * tests/unistr/test-u16-mblen.c: New file.
33875
33876         Tests for module 'unistr/u8-mblen'.
33877         * modules/unistr/u8-mblen-tests: New file.
33878         * tests/unistr/test-u8-mblen.c: New file.
33879
33880         Tests for module 'unistr/u32-to-u16'.
33881         * modules/unistr/u32-to-u16-tests: New file.
33882         * tests/unistr/test-u32-to-u16.c: New file.
33883
33884         Tests for module 'unistr/u32-to-u8'.
33885         * modules/unistr/u32-to-u8-tests: New file.
33886         * tests/unistr/test-u32-to-u8.c: New file.
33887
33888         Tests for module 'unistr/u16-to-u32'.
33889         * modules/unistr/u16-to-u32-tests: New file.
33890         * tests/unistr/test-u16-to-u32.c: New file.
33891
33892         Tests for module 'unistr/u16-to-u8'.
33893         * modules/unistr/u16-to-u8-tests: New file.
33894         * tests/unistr/test-u16-to-u8.c: New file.
33895
33896         Tests for module 'unistr/u8-to-u32'.
33897         * modules/unistr/u8-to-u32-tests: New file.
33898         * tests/unistr/test-u8-to-u32.c: New file.
33899
33900         Tests for module 'unistr/u8-to-u16'.
33901         * modules/unistr/u8-to-u16-tests: New file.
33902         * tests/unistr/test-u8-to-u16.c: New file.
33903
33904         Tests for module 'unistr/u32-check'.
33905         * modules/unistr/u32-check-tests: New file.
33906         * tests/unistr/test-u32-check.c: New file.
33907
33908         Tests for module 'unistr/u16-check'.
33909         * modules/unistr/u16-check-tests: New file.
33910         * tests/unistr/test-u16-check.c: New file.
33911
33912         Tests for module 'unistr/u8-check'.
33913         * modules/unistr/u8-check-tests: New file.
33914         * tests/unistr/test-u8-check.c: New file.
33915
33916         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33917         (category_equals): New function.
33918         (main): Add more tests.
33919         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33920
33921         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33922
33923 2010-01-10  Bruno Haible  <bruno@clisp.org>
33924
33925         unistr/u*-strcoll: Try harder to distinguish different strings.
33926         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33927         compare s1 and s2 to see if they are different.
33928
33929 2010-01-10  Bruno Haible  <bruno@clisp.org>
33930
33931         unistr/u*-stpncpy: Fix the return value.
33932         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33933         description of the return value consistent with stpncpy in glibc.
33934         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33935         written non-NUL unit.
33936
33937 2010-01-10  Bruno Haible  <bruno@clisp.org>
33938
33939         unistr/u*-next: Add missing dependencies.
33940         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33941         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33942         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33943
33944 2010-01-10  Bruno Haible  <bruno@clisp.org>
33945
33946         unistr/u8-mbsnlen: Fix return value for incomplete character.
33947         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33948         u8_mblen.
33949         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33950         Remove unistr/u8-mblen.
33951         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33952         u16_mblen.
33953         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33954         Remove unistr/u16-mblen.
33955
33956 2010-01-10  Bruno Haible  <bruno@clisp.org>
33957
33958         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33959         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33960         Reported by Brian Gough <bjg@gnu.org> and
33961         Chris Clayton <chris2553@googlemail.com> via
33962         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33963
33964 2010-01-09  Bruno Haible  <bruno@clisp.org>
33965
33966         unistr/u16-to-u32: Reject invalid input.
33967         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33968         u16_mbtouc.
33969         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33970         Remove unistr/u16-mbtouc.
33971
33972         unistr/u16-to-u8: Reject invalid input.
33973         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33974         u16_mbtouc.
33975         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33976         Remove unistr/u16-mbtouc.
33977
33978         unistr/u8-to-u32: Reject invalid input.
33979         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33980         u8_mbtouc.
33981         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33982         Remove unistr/u8-mbtouc.
33983
33984         unistr/u8-to-u16: Reject invalid input.
33985         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33986         u8_mbtouc.
33987         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33988         Remove unistr/u8-mbtouc.
33989
33990 2010-01-09  Bruno Haible  <bruno@clisp.org>
33991
33992         Tests for module 'getlogin'.
33993         * modules/getlogin-tests: New file.
33994         * tests/test-getlogin.c: New file.
33995
33996         New module 'getlogin'.
33997         * lib/unistd.in.h (getlogin): New declaration.
33998         * lib/getlogin.c: New file.
33999         * m4/getlogin.m4: New file.
34000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34001         HAVE_GETLOGIN.
34002         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34003         HAVE_GETLOGIN.
34004         * modules/getlogin: New file.
34005         * doc/posix-functions/getlogin.texi: Mention the new module.
34006         Reported by John W. Eaton <jwe@gnu.org>.
34007
34008 2010-01-09  Bruno Haible  <bruno@clisp.org>
34009
34010         getlogin_r: Support for native Windows.
34011         * lib/getlogin_r.c: Include <windows.h>
34012         (getlogin_r): Implement for native Windows.
34013         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34014         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34015         via John W. Eaton <jwe@gnu.org>.
34016
34017 2010-01-09  Bruno Haible  <bruno@clisp.org>
34018
34019         getlogin_r: Small fixes.
34020         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34021         succeeds.
34022         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34023         before testing whether getlogin_r is declared. No need to set
34024         HAVE_DECL_GETLOGIN_R to 1.
34025         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34026
34027 2010-01-09  Bruno Haible  <bruno@clisp.org>
34028
34029         * lib/unistd.in.h (getlogin_r): Add comment.
34030
34031 2010-01-09  Bruno Haible  <bruno@clisp.org>
34032
34033         Tests for module 'getlogin_r'.
34034         * modules/getlogin_r-tests: New file.
34035         * tests/test-getlogin_r.c: New file.
34036
34037 2010-01-09  Jim Meyering  <meyering@redhat.com>
34038
34039         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34040         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34041         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34042
34043 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34044
34045         * lib/dup2.c (rpl_dup2): Improve comment.
34046
34047 2010-01-08  Eric Blake  <ebb9@byu.net>
34048
34049         maint.mk: allow packages to add makefile @@ exceptions
34050         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34051         (sc_makefile_check): Rename...
34052         (sc_makefile_at_at_check): ...to this, and use hook.
34053
34054         dup2: work around mingw bug
34055         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34056         Reported by Simon Josefsson.
34057
34058 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34059
34060         glob: Fix C++ compilation.
34061         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34062         C++.
34063
34064 2010-01-07  Bruno Haible  <bruno@clisp.org>
34065
34066         Fix indentation of wctype.in.h, broken since 2007-01-06.
34067         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34068
34069 2010-01-07  Bruno Haible  <bruno@clisp.org>
34070
34071         mbslen: Avoid collision with system function.
34072         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34073         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34074         * m4/mbslen.m4: New file.
34075         * modules/mbslen (Files): Add it.
34076         (configure.ac): Invoke gl_MBSLEN.
34077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34078         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34080         via Ian Beckwith <ianb@erislabs.net>.
34081
34082 2010-01-07  Bruno Haible  <bruno@clisp.org>
34083
34084         dirent: Document the last fix.
34085         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34086
34087 2010-01-07  Bruno Haible  <bruno@clisp.org>
34088
34089         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34090         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34091         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34092         va_list are defined.
34093         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34094         Reported by Eric Blake.
34095
34096 2010-01-07  Bruno Haible  <bruno@clisp.org>
34097
34098         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34099         * modules/xlist (Depends-on): Add 'list',
34100         * modules/xoset (Depends-on): Add 'oset'.
34101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34102
34103 2010-01-07  Bruno Haible  <bruno@clisp.org>
34104
34105         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34106         * doc/posix-functions/strncasecmp.texi: Likewise.
34107
34108 2010-01-07  Bruno Haible  <bruno@clisp.org>
34109
34110         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34111
34112 2010-01-07  John W. Eaton  <jwe@octave.org>
34113
34114         wctype: allow C++ use
34115         * lib/wctype.in.h: Add extern "C" block for C++.
34116
34117 2010-01-06  Eric Blake  <ebb9@byu.net>
34118
34119         maint.mk: detect incorrect GFDL usage
34120         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34121
34122 2010-01-06  Jim Meyering  <meyering@redhat.com>
34123         and Eric Blake  <ebb9@byu.net>
34124
34125         maint.mk: ignore multi-line copyright in NEWS
34126         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34127
34128 2010-01-06  Eric Blake  <ebb9@byu.net>
34129
34130         select: add missing dependency
34131         * modules/select-tests (Depends-on): Move sockets dependency...
34132         * modules/select (Depends-on): ...here.
34133         Reported by Ian Beckwith.
34134
34135         doc: regenerate INSTALL
34136         * doc/INSTALL: Reflect recent autoconf update.
34137         * doc/INSTALL.ISO: Likewise.
34138         * doc/INSTALL.UTF-8: Likewise.
34139
34140         pread: fix compilation on glibc
34141         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34142         Reported by Ralf Wildenhues.
34143
34144         dirent: fix test failure
34145         * lib/dirent.in.h (includes): Guarantee ino_t.
34146         Reported by Ralf Wildenhues.
34147
34148 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34149
34150         linkat, renameat: avoid bad free
34151         * lib/at-func2.c (at_func2): Fix typo.
34152         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34153
34154 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34155
34156         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34157         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34158         to avoid failure of symlink test later.
34159
34160 2010-01-06  Eric Blake  <ebb9@byu.net>
34161
34162         stdio, unistd: guarantee ssize_t
34163         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34164         2008 are exposed when needed.
34165         * lib/stdio.in.h (includes): Likewise.
34166         Reported by Ralf Wildenhues.
34167
34168 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34169
34170         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34171         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34172         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34173
34174 2010-01-06  Jim Meyering  <meyering@redhat.com>
34175
34176         readtokens: this module *does* require xalloc.h
34177         It uses only functions that were omitted by the old syntax-check rule.
34178         * lib/readtokens.c: Include "xalloc.h" once again.
34179         * modules/readtokens (Depends-on): Add xalloc.
34180         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34181
34182 2010-01-05  Eric Blake  <ebb9@byu.net>
34183
34184         maint: support 'make announcement' from a VPATH build
34185         * top/maint.mk (announcement): Look for correct NEWS file.
34186
34187 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34188
34189         utimens (fdutimens): ignore a negative FD, per contract
34190         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34191         when we have a valid file descriptor.  Otherwise, using a brand
34192         new glibc (with just-patched futimens that now fails with EBADF)
34193         would cause this function to fail with ENOSYS.
34194         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34195         See also http://bugzilla.redhat.com/552320.
34196
34197 2010-01-05  Eric Blake  <ebb9@byu.net>
34198
34199         strcase: document what it provides
34200         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34201         gnulib module.
34202         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34203         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34204
34205 2010-01-05  Jim Meyering  <meyering@redhat.com>
34206
34207         maint: remove useless inclusions of "xalloc.h"
34208         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34209         * lib/readtokens.c: Likewise.
34210         * lib/same.c: Likewise.
34211         * modules/getloadavg (Depends-on): Remove xalloc.
34212         * modules/readtokens: Likewise.
34213         * modules/same: Likewise.
34214
34215         maint.mk: include 4 more function names in alloca.h-checking regexp
34216         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34217         regexp.  Before, we would give a false-positive (saying alloca.h
34218         is included unnecessarily) when the only uses involved omitted symbols.
34219
34220         xalloc.h: use consistent formatting
34221         * lib/xalloc.h: Move declarations to start in the first column.
34222
34223 2010-01-05  Eric Blake  <ebb9@byu.net>
34224
34225         mkdir: avoid xalloc
34226         * lib/mkdir.c (includes): Drop unused header.
34227         Reported by John W. Eaton.
34228
34229 2010-01-04  Jim Meyering  <meyering@redhat.com>
34230
34231         nl_langinfo: avoid configure-time syntax error
34232         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34233         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34234         the empty string.  Don't let that provoke a shell syntax error.
34235
34236         regcomp, regexec, fnmatch: avoid array bounds read error
34237         * lib/regcomp.c (build_equiv_class): From glibc:
34238         Use only the low 24 bits of a findidx return value as an index
34239         into the weights array.  Patch by Ulrich Drepper:
34240         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34241         * lib/regexec.c (check_node_accept_bytes): Likewise.
34242         * lib/fnmatch_loop.c (FCT): Likewise.
34243
34244         regcomp: skip collseq lookup when there are no rules
34245         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34246         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34247
34248         regcomp: recognize ill-formed { } expressions
34249         * lib/regcomp.c (parse_dup_op): From glibc:
34250         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34251
34252         regcomp: fix typo in comment
34253         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34254         s/satisfy/satisfies/.
34255
34256         regcomp: sync from glibc: remove dead store
34257         * lib/regcomp.c (duplicate_node_closure): Remove useless
34258         search_duplicated_node call and dead store.
34259
34260         regcomp: sync from glibc; always use nl_langinfo
34261         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34262         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34263         * modules/regex (Depends-on): Add nl_langinfo.
34264
34265 2010-01-04  Eric Blake  <ebb9@byu.net>
34266
34267         fdopendir: fix configure test
34268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34269
34270 2010-01-01  Bruno Haible  <bruno@clisp.org>
34271
34272         wchar: Remove unused configure check.
34273         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34274
34275 2010-01-01  Eric Blake  <ebb9@byu.net>
34276
34277         headers: make check of system header explicit
34278         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34279         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34280         ourselves.
34281         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34283         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34284         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34285         internals.
34286         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34287         missing.
34288         Suggested by Bruno Haible.
34289
34290 2010-01-01  Jim Meyering  <meyering@redhat.com>
34291
34292         ChangeLog: tweak to eliminate unnecessary copyright line
34293         * ChangeLog: Remove a copyright line that was mistakenly updated
34294         by today's update-copyright run.  Reported by Eric Blake.
34295
34296         test-update-copyright: don't let envvar setting cause test failure
34297         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34298
34299 2010-01-01  Bruno Haible  <bruno@clisp.org>
34300
34301         localename: Avoid gcc warning.
34302         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34303         function if it is not used.
34304
34305 2010-01-01  Jim Meyering  <meyering@redhat.com>
34306
34307         update nearly all FSF copyright year lists to include 2010
34308         Use the same procedure as for 2009, outlined in
34309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34310
34311         version-etc: set COPYRIGHT_YEAR to 2010
34312         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34313
34314 2009-12-31  Eric Blake  <ebb9@byu.net>
34315
34316         doc: correct availability of cygwin 1.5.x getopt
34317         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34318         variables.
34319         * doc/posix-functions/opterr.texi (opterr): Likewise.
34320         * doc/posix-functions/optind.texi (optind): Likewise.
34321         * doc/posix-functions/optopt.texi (optopt): Likewise.
34322         * doc/posix-functions/tzname.texi (tzname): Likewise.
34323
34324         openat: update maintainer
34325         * modules/openat (Maintainer): Add myself.
34326
34327         utimens: avoid shadowing warning
34328         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34329         buffers into one, to avoid shadowing, as well as avoiding a
34330         redundant stat.
34331         Reported by Jim Meyering.
34332
34333         test-dup2: avoid compiler warning
34334         * tests/test-dup2.c (is_inheritable): Only define if used.
34335
34336 2010-01-01  Bruno Haible  <bruno@clisp.org>
34337
34338         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34339         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34340         defined, use wctomb instead of wcrtomb.
34341
34342 2010-01-01  Bruno Haible  <bruno@clisp.org>
34343
34344         iconv: Reject native Solaris iconv.
34345         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34346         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34347
34348 2009-12-31  Bruno Haible  <bruno@clisp.org>
34349
34350         * tests/test-signal.c (main): Remove test of 'SIG'.
34351
34352 2009-12-31  Bruno Haible  <bruno@clisp.org>
34353
34354         spawn: Fix incomplete fix.
34355         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34356         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34357         warnings for GNULIB_POSIXCHECK again.
34358         Reported by Eric Blake.
34359
34360 2009-12-31  Bruno Haible  <bruno@clisp.org>
34361
34362         Avoid namespace pollution on glibc systems.
34363         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34364         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34365         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34366         glibc systems.
34367
34368 2009-12-31  Bruno Haible  <bruno@clisp.org>
34369
34370         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34371         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34372         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34373         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34374         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34375         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34376         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34377
34378 2009-12-31  Bruno Haible  <bruno@clisp.org>
34379
34380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34381         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34382         afterwards.
34383
34384 2009-12-31  Bruno Haible  <bruno@clisp.org>
34385
34386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34387         SYS_UTSNAME_H.
34388
34389 2009-12-31  Bruno Haible  <bruno@clisp.org>
34390
34391         spawn: Fix misapplied patch.
34392         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34393         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34394         warnings for GNULIB_POSIXCHECK.
34395
34396 2009-12-31  Bruno Haible  <bruno@clisp.org>
34397
34398         times: Update after sys_times changed.
34399         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34400         * modules/times (Files): Add it.
34401         (configure.ac): Invoke gl_FUNC_TIMES.
34402
34403 2009-12-31  Bruno Haible  <bruno@clisp.org>
34404
34405         Use AC_C_INLINE where necessary.
34406         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34407         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34409         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34410         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34411         * m4/mbiter.m4 (gl_MBITER): Likewise.
34412         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34413         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34414         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34415         * modules/u64 (configure.ac): Likewise.
34416
34417 2009-12-31  Bruno Haible  <bruno@clisp.org>
34418
34419         Use AC_C_INLINE instead of module 'inline' where possible.
34420         * modules/inline (Description): Clarify purpose.
34421         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34422         * modules/count-one-bits (Depends-on): Remove inline.
34423         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34424         * modules/openat (Depends-on): Remove inline.
34425         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34426         instead of depending on module 'inline'.
34427         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34428         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34429         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34430         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34431         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34432         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34433         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34434         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34435         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34436         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34437         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34438         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34439         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34440         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34441         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34442         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34443         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34444         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34445         Likewise.
34446         * modules/unictype/property-ascii-hex-digit (Depends-on,
34447         configure.ac): Likewise.
34448         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34449         configure.ac): Likewise.
34450         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34451         configure.ac): Likewise.
34452         * modules/unictype/property-bidi-block-separator (Depends-on,
34453         configure.ac): Likewise.
34454         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34455         configure.ac): Likewise.
34456         * modules/unictype/property-bidi-common-separator (Depends-on,
34457         configure.ac): Likewise.
34458         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34459         Likewise.
34460         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34461         configure.ac): Likewise.
34462         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34463         configure.ac): Likewise.
34464         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34465         configure.ac): Likewise.
34466         * modules/unictype/property-bidi-european-digit (Depends-on,
34467         configure.ac): Likewise.
34468         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34469         configure.ac): Likewise.
34470         * modules/unictype/property-bidi-left-to-right (Depends-on,
34471         configure.ac): Likewise.
34472         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34473         configure.ac): Likewise.
34474         * modules/unictype/property-bidi-other-neutral (Depends-on,
34475         configure.ac): Likewise.
34476         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34477         Likewise.
34478         * modules/unictype/property-bidi-segment-separator (Depends-on,
34479         configure.ac): Likewise.
34480         * modules/unictype/property-bidi-whitespace (Depends-on,
34481         configure.ac): Likewise.
34482         * modules/unictype/property-combining (Depends-on, configure.ac):
34483         Likewise.
34484         * modules/unictype/property-composite (Depends-on, configure.ac):
34485         Likewise.
34486         * modules/unictype/property-currency-symbol (Depends-on,
34487         configure.ac): Likewise.
34488         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34489         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34490         Likewise.
34491         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34494         Likewise.
34495         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34496         Likewise.
34497         * modules/unictype/property-extender (Depends-on, configure.ac):
34498         Likewise.
34499         * modules/unictype/property-format-control (Depends-on, configure.ac):
34500         Likewise.
34501         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34502         Likewise.
34503         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34504         Likewise.
34505         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34506         Likewise.
34507         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34508         Likewise.
34509         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34510         Likewise.
34511         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34512         Likewise.
34513         * modules/unictype/property-id-start (Depends-on, configure.ac):
34514         Likewise.
34515         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34516         Likewise.
34517         * modules/unictype/property-ids-binary-operator (Depends-on,
34518         configure.ac): Likewise.
34519         * modules/unictype/property-ids-trinary-operator (Depends-on,
34520         configure.ac): Likewise.
34521         * modules/unictype/property-ignorable-control (Depends-on,
34522         configure.ac): Likewise.
34523         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34524         Likewise.
34525         * modules/unictype/property-join-control (Depends-on, configure.ac):
34526         Likewise.
34527         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34528         Likewise.
34529         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34530         Likewise.
34531         * modules/unictype/property-logical-order-exception (Depends-on,
34532         configure.ac): Likewise.
34533         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34534         Likewise.
34535         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34536         * modules/unictype/property-non-break (Depends-on, configure.ac):
34537         Likewise.
34538         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34539         Likewise.
34540         * modules/unictype/property-numeric (Depends-on, configure.ac):
34541         Likewise.
34542         * modules/unictype/property-other-alphabetic (Depends-on,
34543         configure.ac): Likewise.
34544         * modules/unictype/property-other-default-ignorable-code-point
34545         (Depends-on, configure.ac): Likewise.
34546         * modules/unictype/property-other-grapheme-extend (Depends-on,
34547         configure.ac): Likewise.
34548         * modules/unictype/property-other-id-continue (Depends-on,
34549         configure.ac): Likewise.
34550         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34551         Likewise.
34552         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34553         Likewise.
34554         * modules/unictype/property-other-math (Depends-on, configure.ac):
34555         Likewise.
34556         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34557         Likewise.
34558         * modules/unictype/property-paired-punctuation (Depends-on,
34559         configure.ac): Likewise.
34560         * modules/unictype/property-paragraph-separator (Depends-on,
34561         configure.ac): Likewise.
34562         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34563         Likewise.
34564         * modules/unictype/property-pattern-white-space (Depends-on,
34565         configure.ac): Likewise.
34566         * modules/unictype/property-private-use (Depends-on, configure.ac):
34567         Likewise.
34568         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34569         Likewise.
34570         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34571         Likewise.
34572         * modules/unictype/property-radical (Depends-on, configure.ac):
34573         Likewise.
34574         * modules/unictype/property-sentence-terminal (Depends-on,
34575         configure.ac): Likewise.
34576         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34577         Likewise.
34578         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34579         * modules/unictype/property-terminal-punctuation (Depends-on,
34580         configure.ac): Likewise.
34581         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34582         Likewise.
34583         * modules/unictype/property-unassigned-code-value (Depends-on,
34584         configure.ac): Likewise.
34585         * modules/unictype/property-unified-ideograph (Depends-on,
34586         configure.ac): Likewise.
34587         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34588         Likewise.
34589         * modules/unictype/property-variation-selector (Depends-on,
34590         configure.ac): Likewise.
34591         * modules/unictype/property-white-space (Depends-on, configure.ac):
34592         Likewise.
34593         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34594         Likewise.
34595         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34596         Likewise.
34597         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34598         Likewise.
34599         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34600         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34601         Likewise.
34602
34603 2009-12-31  Bruno Haible  <bruno@clisp.org>
34604
34605         Remove unnecessary AC_C_INLINE invocation.
34606         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34607         since 2009-08-21.
34608
34609 2009-12-31  Jim Meyering  <meyering@redhat.com>
34610
34611         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34612         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34613         With this change, we can all remove the gpg_key_ID = ... definition
34614         from our respective cfg.mk files.
34615
34616         maint.mk: create announcement template in ~/, not in /tmp
34617         * top/maint.mk (emit_upload_commands): Adjust.
34618         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34619         Remove temporary file, .ci-msg.
34620
34621 2009-12-31  Eric Blake  <ebb9@byu.net>
34622
34623         link-warning: always build headers with link warnings
34624         * modules/arpa_inet (Makefile.am): Always build replacement
34625         header.
34626         * modules/ctype (Makefile.am): Likewise.
34627         * modules/dirent (Makefile.am): Likewise.
34628         * modules/inttypes (Makefile.am): Likewise.
34629         * modules/langinfo (Makefile.am): Likewise.
34630         * modules/locale (Makefile.am): Likewise.
34631         * modules/spawn (Makefile.am): Likewise.
34632         * modules/sys_file (Makefile.am): Likewise.
34633         * modules/sys_ioctl (Makefile.am): Likewise.
34634         * modules/sys_select (Makefile.am): Likewise.
34635         * modules/sys_socket (Makefile.am): Likewise.
34636         * modules/sys_times (Makefile.am): Likewise.
34637         * modules/sys_utsname (Makefile.am): Likewise.
34638         * modules/sys_wait (Makefile.am): Likewise.
34639         * modules/wchar (Makefile.am): Likewise.
34640         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34641         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34642         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34643         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34644         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34645         Likewise.
34646         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34647         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34648         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34649         Likewise.
34650         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34651         Likewise.
34652         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34653         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34654         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34657         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34658         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34659         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34660         (gl_WCHAR_H_DEFAULTS): Likewise.
34661
34662 2009-12-31  Eric Blake  <ebb9@byu.net>
34663
34664         signal, spawn: use link warnings
34665         * lib/signal.in.h (sigset_t): Make unconditional.
34666         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34667         (sigpending, sigprocmask, sigaction): Add link warnings.
34668         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34669         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34670         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34671         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34672         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34673         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34674         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34675         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34676         (posix_spawn_file_actions_destroy)
34677         (posix_spawn_file_actions_addopen)
34678         (posix_spawn_file_actions_addclose)
34679         (posix_spawn_file_actions_adddup2): Likewise.
34680         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34681         * tests/test-signal.c (main): Enhance test.
34682
34683         spawn: improve wrapper support
34684         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34685         (gl_SPAWN_H_DEFAULTS): New defaults.
34686         * modules/spawn (Makefile.am): Substitute them.
34687         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34688         Only declare if missing or broken.
34689
34690         sys_times, sys_utsname: use include_next
34691         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34692         header.
34693         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34694         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34695         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34696         * modules/sys_times (Depends-on): Add include_next.
34697         (Makefile.am): Substitute additional values.
34698         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34699         * lib/sys_times.in.h (includes): Include native header, if
34700         available.
34701         * lib/sys_utsname.in.h (includes): Likewise.
34702         * tests/test-sys_times.c (main): Enhance test.
34703
34704         fdutimensat: revert prior patch
34705         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34706         utimens.h.
34707         Reported by Bruno Haible.
34708
34709 2009-12-30  Eric Blake  <ebb9@byu.net>
34710
34711         sys_wait: drop link-warning dependency
34712         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34713         link-warning efforts.
34714         * lib/sys_wait.in.h: Likewise.
34715
34716         fdutimensat: remove bogus dependency
34717         * modules/fdutimensat (Depends-on): Drop inline.
34718
34719         unistd: fix typo
34720         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34721
34722 2009-12-30  Bruno Haible  <bruno@clisp.org>
34723
34724         Fix compilation error with Solaris cc.
34725         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34726         * lib/unicase/u16-is-invariant.c: Likewise.
34727         * lib/unicase/u32-is-invariant.c: Likewise.
34728         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34729
34730 2009-12-30  Bruno Haible  <bruno@clisp.org>
34731
34732         Fix test crash.
34733         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34734         locales.
34735         Reported by Simon Josefsson <simon@josefsson.org>.
34736
34737 2009-12-30  Bruno Haible  <bruno@clisp.org>
34738
34739         Fix compilation error on most platforms.
34740         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34741         Reported by Simon Josefsson <simon@josefsson.org>
34742         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34743
34744 2009-12-30  Eric Blake  <ebb9@byu.net>
34745
34746         futimens, utimensat: work around ntfs-3g bug
34747         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34748         a ctime bug is present, and expand workaround to cover ntfs-3g.
34749         * lib/utimens.c (fdutimens, lutimens): Likewise.
34750         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34751         (validate_timespec): Adjust return value.
34752         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34753         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34754         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34755
34756 2009-12-29  Eric Blake  <ebb9@byu.net>
34757
34758         link-warning: make usage consistent
34759         * modules/ctype (Depends-on): Add link-warning.
34760         (Makefile.am): Update rules accordingly.
34761         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34762         * modules/locale (Depends-on, Makefile.am): Likewise.
34763         * modules/sys_file (Makefile.am): Likewise.
34764         * modules/getopt-posix (Makefile.am): Delete unused link warning
34765         efforts.
34766         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34767         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34768         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34769         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34770
34771         stdio: remove unused variables
34772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34774         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34775
34776         tests: test more substitute headers
34777         * modules/ctype-tests: New file.
34778         * modules/dirent-tests: Likewise.
34779         * modules/spawn-tests: Likewise.
34780         * modules/sys_file-tests: Likewise.
34781         * modules/sys_ioctl-tests: Likewise.
34782         * modules/sys_wait-tests: Likewise.
34783         * tests/test-ctype.c: Likewise.
34784         * tests/test-dirent.c: Likewise.
34785         * tests/test-spawn.c: Likewise.
34786         * tests/test-sys_file.c: Likewise.
34787         * tests/test-sys_ioctl.c: Likewise.
34788         * tests/test-sys_wait.c: Likewise.
34789         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34790         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34791         whether or not flock is in use.
34792
34793         tests: remove License section from module
34794         * modules/arpa_inet-tests: Remove unneeded section.
34795         * modules/byteswap-tests: Likewise.
34796         * modules/ceilf-tests: Likewise.
34797         * modules/ceill-tests: Likewise.
34798         * modules/crypto/des-tests: Likewise.
34799         * modules/crypto/gc-arcfour-tests: Likewise.
34800         * modules/crypto/gc-arctwo-tests: Likewise.
34801         * modules/crypto/gc-des-tests: Likewise.
34802         * modules/crypto/gc-hmac-md5-tests: Likewise.
34803         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34804         * modules/crypto/gc-md2-tests: Likewise.
34805         * modules/crypto/gc-md4-tests: Likewise.
34806         * modules/crypto/gc-md5-tests: Likewise.
34807         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34808         * modules/crypto/gc-rijndael-tests: Likewise.
34809         * modules/crypto/gc-sha1-tests: Likewise.
34810         * modules/crypto/gc-tests: Likewise.
34811         * modules/crypto/md2-tests: Likewise.
34812         * modules/crypto/md4-tests: Likewise.
34813         * modules/fcntl-h-tests: Likewise.
34814         * modules/floorf-tests: Likewise.
34815         * modules/floorl-tests: Likewise.
34816         * modules/frexp-nolibm-tests: Likewise.
34817         * modules/frexp-tests: Likewise.
34818         * modules/frexpl-nolibm-tests: Likewise.
34819         * modules/frexpl-tests: Likewise.
34820         * modules/getaddrinfo-tests: Likewise.
34821         * modules/inttypes-tests: Likewise.
34822         * modules/isfinite-tests: Likewise.
34823         * modules/isinf-tests: Likewise.
34824         * modules/ldexpl-tests: Likewise.
34825         * modules/locale-tests: Likewise.
34826         * modules/math-tests: Likewise.
34827         * modules/netdb-tests: Likewise.
34828         * modules/netinet_in-tests: Likewise.
34829         * modules/printf-frexp-tests: Likewise.
34830         * modules/printf-frexpl-tests: Likewise.
34831         * modules/priv-set-tests: Likewise.
34832         * modules/random_r-tests: Likewise.
34833         * modules/round-tests: Likewise.
34834         * modules/roundf-tests: Likewise.
34835         * modules/roundl-tests: Likewise.
34836         * modules/search-tests: Likewise.
34837         * modules/select-tests: Likewise.
34838         * modules/signal-tests: Likewise.
34839         * modules/stdbool-tests: Likewise.
34840         * modules/stddef-tests: Likewise.
34841         * modules/stdint-tests: Likewise.
34842         * modules/stdio-tests: Likewise.
34843         * modules/stdlib-tests: Likewise.
34844         * modules/string-tests: Likewise.
34845         * modules/strings-tests: Likewise.
34846         * modules/sys_select-tests: Likewise.
34847         * modules/sys_socket-tests: Likewise.
34848         * modules/sys_stat-tests: Likewise.
34849         * modules/sys_time-tests: Likewise.
34850         * modules/sys_utsname-tests: Likewise.
34851         * modules/sysexits-tests: Likewise.
34852         * modules/time-tests: Likewise.
34853         * modules/trunc-tests: Likewise.
34854         * modules/truncf-tests: Likewise.
34855         * modules/truncl-tests: Likewise.
34856         * modules/tsearch-tests: Likewise.
34857         * modules/unistd-tests: Likewise.
34858         * modules/wchar-tests: Likewise.
34859         * modules/wctype-tests: Likewise.
34860
34861         tests: fix license on several tests
34862         * tests/test-des.c: Update to GPLv3+.
34863         * tests/test-flock.c: Likewise.
34864         * tests/test-fsync.c: Likewise.
34865         * tests/test-futimens.h: Likewise.
34866         * tests/test-gc-arcfour.c: Likewise.
34867         * tests/test-gc-arctwo.c: Likewise.
34868         * tests/test-gc-des.c: Likewise.
34869         * tests/test-gc-hmac-md5.c: Likewise.
34870         * tests/test-gc-hmac-sha1.c: Likewise.
34871         * tests/test-gc-md2.c: Likewise.
34872         * tests/test-gc-md4.c: Likewise.
34873         * tests/test-gc-md5.c: Likewise.
34874         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34875         * tests/test-gc-rijndael.c: Likewise.
34876         * tests/test-gc-sha1.c: Likewise.
34877         * tests/test-gc.c: Likewise.
34878         * tests/test-getcwd.c: Likewise.
34879         * tests/test-link.c: Likewise.
34880         * tests/test-link.h: Likewise.
34881         * tests/test-lutimens.h: Likewise.
34882         * tests/test-md2.c: Likewise.
34883         * tests/test-md4.c: Likewise.
34884         * tests/test-mkdir.h: Likewise.
34885         * tests/test-rename.c: Likewise.
34886         * tests/test-rename.h: Likewise.
34887         * tests/test-safe-alloc.c: Likewise.
34888         * tests/test-utimens-common.h: Likewise.
34889         * tests/test-utimens.h: Likewise.
34890
34891         maint: sync license texts
34892         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34893         * doc/gpl-3.0.texi: Revert copyright year update.
34894         * doc/lgpl-3.0.texi: Likewise.
34895
34896 2009-12-29  Jim Meyering  <meyering@redhat.com>
34897
34898         update nearly all FSF copyright year lists to include 2009
34899         The files named by the following are exempted:
34900             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34901               test -f "$dst" && { echo "$dst"; continue; }
34902               test -d "$dst" || continue
34903               echo "$dst"/$(basename "$src")
34904             done > exempt
34905             git ls-files tests/unictype >> exempt
34906         In the remaining files, convert to all-interval notation if
34907         - there is already at least one year interval like 2000-2003
34908         - the file is maintained by me
34909         - the file is in lib/uni*/, where that style already prevails
34910         Otherwise, use update-copyright's default.
34911
34912 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34913         and Eric Blake  <ebb9@byu.net>
34914
34915         tests: don't require debug system() to pass
34916         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34917         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34918         * tests/test-unlink.h (test_unlink_func): Likewise.
34919         * tests/test-fstatat.c (main): ...into callers.
34920         * tests/test-lstat.c (main): Likewise.
34921         * tests/test-rmdir.c (main): Likewise.
34922         * tests/test-unlink.c (main): Likewise.
34923         * tests/test-unlinkat.c (main): Likewise.
34924         * tests/test-areadlink-with-size.c (main): Don't require a
34925         debug-only system call to pass, aiding cross-testing to mingw.
34926         * tests/test-areadlink.c (main): Likewise.
34927         * tests/test-areadlinkat-with-size.c (main): Likewise.
34928         * tests/test-areadlinkat.c (main): Likewise.
34929         * tests/test-canonicalize-lgpl.c (main): Likewise.
34930         * tests/test-canonicalize.c (main): Likewise.
34931         * tests/test-chown.c (main): Likewise.
34932         * tests/test-fchownat.c (main): Likewise.
34933         * tests/test-lchown.c (main): Likewise.
34934         * tests/test-fdutimensat.c (main): Likewise.
34935         * tests/test-futimens.c (main): Likewise.
34936         * tests/test-link.c (main): Likewise.
34937         * tests/test-linkat.c (main): Likewise.
34938         * tests/test-mkdir.c (main): Likewise.
34939         * tests/test-mkdirat.c (main): Likewise.
34940         * tests/test-mkfifo.c (main): Likewise.
34941         * tests/test-mkfifoat.c (main): Likewise.
34942         * tests/test-mknod.c (main): Likewise.
34943         * tests/test-readlink.c (main): Likewise.
34944         * tests/test-remove.c (main): Likewise.
34945         * tests/test-rename.c (main): Likewise.
34946         * tests/test-renameat.c (main): Likewise.
34947         * tests/test-symlink.c (main): Likewise.
34948         * tests/test-symlinkat.c (main): Likewise.
34949         * tests/test-utimens.c (main): Likewise.
34950         * tests/test-utimensat.c (main): Likewise.
34951
34952 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34953
34954         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34955         on $(UNUSED_PARAMETER_H) to avoid build failure.
34956
34957 2009-12-28  Jim Meyering  <meyering@redhat.com>
34958
34959         update-copyright: you may specify a max. line length other than 72
34960         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34961
34962         maint: use consistent FSF copyright line syntax
34963         * lib/posixtm.c: Add missing comma in FSF copyright line.
34964         * lib/posixtm.h: Likewise.
34965         * lib/getugroups.c: Add missing ", Inc.".
34966
34967         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34968         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34969         FSF copyright line.  Remove trailing blanks.
34970
34971 2009-12-28  Eric Blake  <ebb9@byu.net>
34972
34973         test-dup2: reduce dependencies
34974         * modules/cloexec (Configure.ac): Set witness.
34975         * modules/dup2-tests (Depends-on): Drop cloexec.
34976         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34977         not present.
34978         Suggested by Bruno Haible.
34979
34980 2009-12-26  Bruno Haible  <bruno@clisp.org>
34981
34982         Remove an unneeded dependency.
34983         * modules/fseterr (Depends-on): Remove dup2.
34984
34985 2009-12-26  Eric Blake  <ebb9@byu.net>
34986
34987         tests: use macros.h in more places
34988         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34989         (ASSERT_STREAM): Provide default of stderr.
34990         * tests/test-dirent-safer.c: Include macros.h, using alternate
34991         stream for assertions.
34992         * tests/test-dup-safer.c: Likewise.
34993         * tests/test-freopen-safer.c: Likewise.
34994         * tests/test-getopt.c: Likewise.
34995         * tests/test-openat-safer.c: Likewise.
34996         * tests/test-pipe.c: Likewise.
34997         * tests/test-popen-safer.c: Likewise.
34998         * modules/dirent-safer-tests (Files): Include macros.h.
34999         * modules/unistd-safer-tests (Files): Likewise.
35000         * modules/freopen-safer-tests (Files): Likewise.
35001         * modules/getopt-posix-tests (Files): Likewise.
35002         * modules/openat-safer-tests (Files): Likewise.
35003         * modules/pipe-tests (Files): Likewise.
35004
35005 2009-12-26  Bruno Haible  <bruno@clisp.org>
35006
35007         javacomp: Portability fix.
35008         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35009         that it also works on Solaris.
35010
35011 2009-12-26  Bruno Haible  <bruno@clisp.org>
35012
35013         localename: Fix storage allocation of gl_locale_name_thread's result.
35014         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35015         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35016         all platforms that have 'uselocale'.
35017         (gl_locale_name_thread_unsafe): New function, extracted from
35018         gl_locale_name_thread.
35019         (gl_locale_name_thread): Call struniq on all platforms that have
35020         'uselocale'.
35021         * tests/test-localename.c (test_locale_name_thread): Check that the
35022         resulting strings are permanently allocated.
35023         * modules/localename-tests (Depends-on): Add strdup.
35024
35025 2009-12-26  Bruno Haible  <bruno@clisp.org>
35026
35027         * tests/test-localename.c (categories): Fill in the strings.
35028
35029 2009-12-26  Jim Meyering  <meyering@redhat.com>
35030
35031         isdir: complete the removal of m4/isdir.m4
35032         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35033
35034         isdir: clean up, since at least grep still uses it
35035         * lib/isdir.c: Include "isdir.h".
35036         (S_ISDIR): Remove now-unneeded definition.
35037         * modules/isdir (Files): Add lib/isdir.h.
35038         * lib/isdir.h: New file, with declaration.
35039         * m4/isdir.m4: Remove file -- unneeded.
35040
35041 2009-12-25  Bruno Haible  <bruno@clisp.org>
35042
35043         selinux-h: Make generated .h files standalone.
35044         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35045         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35046         * lib/se-selinux.in.h: Likewise.
35047         * modules/selinux-h (Depends-on): Add unused-parameter.
35048         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35049         selinux/selinux.h and selinux/context.h.
35050         Suggested by Eric Blake.
35051
35052 2009-12-25  Bruno Haible  <bruno@clisp.org>
35053
35054         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35055         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35056         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35057         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35058         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35059
35060 2009-12-24  Bruno Haible  <bruno@clisp.org>
35061
35062         openat: Fix warning.
35063         * lib/openat-proc.c: Include <unistd.h>.
35064
35065 2009-12-24  Bruno Haible  <bruno@clisp.org>
35066
35067         New module 'unused-parameter'.
35068         * build-aux/unused-parameter.h: New file, extracted from earlier
35069         gnulib-common.m4.
35070         * modules/unused-parameter: New file.
35071         * lib/unistr.h: Include unused-parameter.h.
35072         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35073         _GL_UNUSED.
35074         * modules/unistr/base (Depends-on): Add unused-parameter.
35075
35076 2009-12-24  Bruno Haible  <bruno@clisp.org>
35077
35078         Add missing dependencies to 'extensions' module.
35079         * m4/extensions.m4: Add comment.
35080         * modules/accept4 (Depends-on): Add extensions.
35081         * modules/dup3 (Depends-on): Likewise.
35082         * modules/fcntl (Depends-on): Likewise.
35083         * modules/futimens (Depends-on): Likewise.
35084         * modules/mknod (Depends-on): Likewise.
35085         * modules/pipe2 (Depends-on): Likewise.
35086         * modules/stat-time (Depends-on): Likewise.
35087         * modules/strcasestr-simple (Depends-on): Likewise.
35088         * modules/strsignal (Depends-on): Likewise.
35089         * modules/utimensat (Depends-on): Likewise.
35090         * modules/localcharset (Depends-on): Likewise. Needed because of
35091         gl_FCNTL_O_FLAGS.
35092         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35093         AC_TYPE_MBSTATE_T.
35094         * modules/wcsnrtombs (Depends-on): Likewise.
35095         * modules/wcsrtombs (Depends-on): Likewise.
35096
35097 2009-12-24  Bruno Haible  <bruno@clisp.org>
35098
35099         binary-io: Avoid gcc warning due to SET_BINARY.
35100         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35101         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35102
35103 2009-12-24  Bruno Haible  <bruno@clisp.org>
35104
35105         Avoid future namespace pollution on glibc systems.
35106         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35107         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35108         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35109         glibc systems.
35110
35111 2009-12-24  Bruno Haible  <bruno@clisp.org>
35112
35113         Refactor common macros used in tests.
35114         * tests/macros.h: New file.
35115         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35116         and/or <stdlib.h>, if appropriate.
35117         (ASSERT, SIZEOF): Remove macros.
35118         * tests/test-areadlink-with-size.c: Likewise.
35119         * tests/test-areadlinkat.c: Likewise.
35120         * tests/test-areadlinkat-with-size.c: Likewise.
35121         * tests/test-argmatch.c: Likewise.
35122         * tests/test-argv-iter.c: Likewise.
35123         * tests/test-array-mergesort.c: Likewise.
35124         * tests/test-array_list.c: Likewise.
35125         * tests/test-array_oset.c: Likewise.
35126         * tests/test-avltree_list.c: Likewise.
35127         * tests/test-avltree_oset.c: Likewise.
35128         * tests/test-avltreehash_list.c: Likewise.
35129         * tests/test-base64.c: Likewise.
35130         * tests/test-binary-io.c: Likewise.
35131         * tests/test-bitrotate.c: Likewise.
35132         * tests/test-btowc.c: Likewise.
35133         * tests/test-byteswap.c: Likewise.
35134         * tests/test-c-ctype.c: Likewise.
35135         * tests/test-c-stack.c: Likewise.
35136         * tests/test-c-strcasecmp.c: Likewise.
35137         * tests/test-c-strcasestr.c: Likewise.
35138         * tests/test-c-strncasecmp.c: Likewise.
35139         * tests/test-c-strstr.c: Likewise.
35140         * tests/test-canonicalize-lgpl.c: Likewise.
35141         * tests/test-canonicalize.c: Likewise.
35142         * tests/test-carray_list.c: Likewise.
35143         * tests/test-ceilf1.c: Likewise.
35144         * tests/test-ceilf2.c: Likewise.
35145         * tests/test-ceill.c: Likewise.
35146         * tests/test-chown.c: Likewise.
35147         * tests/test-cloexec.c: Likewise.
35148         * tests/test-copy-acl.c: Likewise.
35149         * tests/test-copy-file.c: Likewise.
35150         * tests/test-count-one-bits.c: Likewise.
35151         * tests/test-dprintf-posix.c: Likewise.
35152         * tests/test-dup2.c: Likewise.
35153         * tests/test-dup3.c: Likewise.
35154         * tests/test-duplocale.c: Likewise.
35155         * tests/test-fbufmode.c: Likewise.
35156         * tests/test-fchdir.c: Likewise.
35157         * tests/test-fchownat.c: Likewise.
35158         * tests/test-fcntl-safer.c: Likewise.
35159         * tests/test-fcntl.c: Likewise.
35160         * tests/test-fdopendir.c: Likewise.
35161         * tests/test-fdutimensat.c: Likewise.
35162         * tests/test-fflush2.c: Likewise.
35163         * tests/test-file-has-acl.c: Likewise.
35164         * tests/test-filevercmp.c: Likewise.
35165         * tests/test-flock.c: Likewise.
35166         * tests/test-floorf1.c: Likewise.
35167         * tests/test-floorf2.c: Likewise.
35168         * tests/test-floorl.c: Likewise.
35169         * tests/test-fnmatch.c: Likewise.
35170         * tests/test-fopen.h: Likewise.
35171         * tests/test-fpending.c: Likewise.
35172         * tests/test-fprintf-posix.c: Likewise.
35173         * tests/test-fpurge.c: Likewise.
35174         * tests/test-freadable.c: Likewise.
35175         * tests/test-freadahead.c: Likewise.
35176         * tests/test-freading.c: Likewise.
35177         * tests/test-freadptr.c: Likewise.
35178         * tests/test-freadptr2.c: Likewise.
35179         * tests/test-freadseek.c: Likewise.
35180         * tests/test-freopen.c: Likewise.
35181         * tests/test-frexp.c: Likewise.
35182         * tests/test-frexpl.c: Likewise.
35183         * tests/test-fseek.c: Likewise.
35184         * tests/test-fseeko.c: Likewise.
35185         * tests/test-fstatat.c: Likewise.
35186         * tests/test-fstrcmp.c: Likewise.
35187         * tests/test-fsync.c: Likewise.
35188         * tests/test-ftell.c: Likewise.
35189         * tests/test-ftello.c: Likewise.
35190         * tests/test-func.c: Likewise.
35191         * tests/test-futimens.c: Likewise.
35192         * tests/test-fwritable.c: Likewise.
35193         * tests/test-fwriting.c: Likewise.
35194         * tests/test-getcwd.c: Likewise.
35195         * tests/test-getdate.c: Likewise.
35196         * tests/test-getdelim.c: Likewise.
35197         * tests/test-getdtablesize.c: Likewise.
35198         * tests/test-getgroups.c: Likewise.
35199         * tests/test-getline.c: Likewise.
35200         * tests/test-getndelim2.c: Likewise.
35201         * tests/test-glob.c: Likewise.
35202         * tests/test-hash.c: Likewise.
35203         * tests/test-i-ring.c: Likewise.
35204         * tests/test-iconv-utf.c: Likewise.
35205         * tests/test-iconv.c: Likewise.
35206         * tests/test-idpriv-drop.c: Likewise.
35207         * tests/test-idpriv-droptemp.c: Likewise.
35208         * tests/test-inet_ntop.c: Likewise.
35209         * tests/test-inet_pton.c: Likewise.
35210         * tests/test-isblank.c: Likewise.
35211         * tests/test-isfinite.c: Likewise.
35212         * tests/test-isinf.c: Likewise.
35213         * tests/test-isnan.c: Likewise.
35214         * tests/test-isnand.h: Likewise.
35215         * tests/test-isnanf.h: Likewise.
35216         * tests/test-isnanl.h: Likewise.
35217         * tests/test-lchown.c: Likewise.
35218         * tests/test-ldexpl.c: Likewise.
35219         * tests/test-link.c: Likewise.
35220         * tests/test-linkat.c: Likewise.
35221         * tests/test-linked_list.c: Likewise.
35222         * tests/test-linkedhash_list.c: Likewise.
35223         * tests/test-localename.c: Likewise.
35224         * tests/test-lseek.c: Likewise.
35225         * tests/test-lstat.c: Likewise.
35226         * tests/test-mbmemcasecmp.c: Likewise.
35227         * tests/test-mbmemcasecoll.c: Likewise.
35228         * tests/test-mbrtowc.c: Likewise.
35229         * tests/test-mbscasecmp.c: Likewise.
35230         * tests/test-mbscasestr1.c: Likewise.
35231         * tests/test-mbscasestr2.c: Likewise.
35232         * tests/test-mbscasestr3.c: Likewise.
35233         * tests/test-mbscasestr4.c: Likewise.
35234         * tests/test-mbschr.c: Likewise.
35235         * tests/test-mbscspn.c: Likewise.
35236         * tests/test-mbsinit.c: Likewise.
35237         * tests/test-mbsncasecmp.c: Likewise.
35238         * tests/test-mbsnrtowcs.c: Likewise.
35239         * tests/test-mbspbrk.c: Likewise.
35240         * tests/test-mbspcasecmp.c: Likewise.
35241         * tests/test-mbsrchr.c: Likewise.
35242         * tests/test-mbsrtowcs.c: Likewise.
35243         * tests/test-mbsspn.c: Likewise.
35244         * tests/test-mbsstr1.c: Likewise.
35245         * tests/test-mbsstr2.c: Likewise.
35246         * tests/test-mbsstr3.c: Likewise.
35247         * tests/test-memchr.c: Likewise.
35248         * tests/test-memchr2.c: Likewise.
35249         * tests/test-memcmp.c: Likewise.
35250         * tests/test-memmem.c: Likewise.
35251         * tests/test-memrchr.c: Likewise.
35252         * tests/test-mkdir.c: Likewise.
35253         * tests/test-mkdirat.c: Likewise.
35254         * tests/test-mkfifo.c: Likewise.
35255         * tests/test-mkfifoat.c: Likewise.
35256         * tests/test-mknod.c: Likewise.
35257         * tests/test-nanosleep.c: Likewise.
35258         * tests/test-nl_langinfo.c: Likewise.
35259         * tests/test-obstack-printf.c: Likewise.
35260         * tests/test-open.c: Likewise.
35261         * tests/test-openat.c: Likewise.
35262         * tests/test-pipe-filter-gi1.c: Likewise.
35263         * tests/test-pipe-filter-gi2-main.c: Likewise.
35264         * tests/test-pipe-filter-ii1.c: Likewise.
35265         * tests/test-pipe-filter-ii2-main.c: Likewise.
35266         * tests/test-pipe2.c: Likewise.
35267         * tests/test-popen.h: Likewise.
35268         * tests/test-posixtm.c: Likewise.
35269         * tests/test-pread.c: Likewise.
35270         * tests/test-printf-frexp.c: Likewise.
35271         * tests/test-printf-frexpl.c: Likewise.
35272         * tests/test-printf-posix.c: Likewise.
35273         * tests/test-priv-set.c: Likewise.
35274         * tests/test-quotearg.c: Likewise.
35275         * tests/test-random_r.c: Likewise.
35276         * tests/test-rawmemchr.c: Likewise.
35277         * tests/test-rbtree_list.c: Likewise.
35278         * tests/test-rbtree_oset.c: Likewise.
35279         * tests/test-rbtreehash_list.c: Likewise.
35280         * tests/test-readlink.c: Likewise.
35281         * tests/test-remove.c: Likewise.
35282         * tests/test-rename.c: Likewise.
35283         * tests/test-renameat.c: Likewise.
35284         * tests/test-rmdir.c: Likewise.
35285         * tests/test-round1.c: Likewise.
35286         * tests/test-roundf1.c: Likewise.
35287         * tests/test-roundl.c: Likewise.
35288         * tests/test-safe-alloc.c: Likewise.
35289         * tests/test-sameacls.c: Likewise.
35290         * tests/test-set-mode-acl.c: Likewise.
35291         * tests/test-setenv.c: Likewise.
35292         * tests/test-sigaction.c: Likewise.
35293         * tests/test-signbit.c: Likewise.
35294         * tests/test-sleep.c: Likewise.
35295         * tests/test-snprintf-posix.c: Likewise.
35296         * tests/test-snprintf.c: Likewise.
35297         * tests/test-sprintf-posix.c: Likewise.
35298         * tests/test-stat-time.c: Likewise.
35299         * tests/test-stat.c: Likewise.
35300         * tests/test-strcasestr.c: Likewise.
35301         * tests/test-strchrnul.c: Likewise.
35302         * tests/test-strerror.c: Likewise.
35303         * tests/test-striconv.c: Likewise.
35304         * tests/test-striconveh.c: Likewise.
35305         * tests/test-striconveha.c: Likewise.
35306         * tests/test-strsignal.c: Likewise.
35307         * tests/test-strstr.c: Likewise.
35308         * tests/test-strtod.c: Likewise.
35309         * tests/test-strverscmp.c: Likewise.
35310         * tests/test-symlink.c: Likewise.
35311         * tests/test-symlinkat.c: Likewise.
35312         * tests/test-trunc1.c: Likewise.
35313         * tests/test-trunc2.c: Likewise.
35314         * tests/test-truncf1.c: Likewise.
35315         * tests/test-truncf2.c: Likewise.
35316         * tests/test-truncl.c: Likewise.
35317         * tests/test-uname.c: Likewise.
35318         * tests/test-unlink.c: Likewise.
35319         * tests/test-unlinkat.c: Likewise.
35320         * tests/test-unsetenv.c: Likewise.
35321         * tests/test-usleep.c: Likewise.
35322         * tests/test-utimens.c: Likewise.
35323         * tests/test-utimensat.c: Likewise.
35324         * tests/test-vasnprintf-posix.c: Likewise.
35325         * tests/test-vasnprintf-posix2.c: Likewise.
35326         * tests/test-vasnprintf.c: Likewise.
35327         * tests/test-vasprintf-posix.c: Likewise.
35328         * tests/test-vasprintf.c: Likewise.
35329         * tests/test-vdprintf-posix.c: Likewise.
35330         * tests/test-vfprintf-posix.c: Likewise.
35331         * tests/test-vprintf-posix.c: Likewise.
35332         * tests/test-vsnprintf-posix.c: Likewise.
35333         * tests/test-vsnprintf.c: Likewise.
35334         * tests/test-vsprintf-posix.c: Likewise.
35335         * tests/test-wcrtomb.c: Likewise.
35336         * tests/test-wcsnrtombs.c: Likewise.
35337         * tests/test-wcsrtombs.c: Likewise.
35338         * tests/test-wctype.c: Likewise.
35339         * tests/test-wcwidth.c: Likewise.
35340         * tests/test-xfprintf-posix.c: Likewise.
35341         * tests/test-xmemdup0.c: Likewise.
35342         * tests/test-xprintf-posix.c: Likewise.
35343         * tests/test-xvasprintf.c: Likewise.
35344         * tests/unicase/test-locale-language.c: Likewise.
35345         * tests/unicase/test-mapping-part1.h: Likewise.
35346         * tests/unicase/test-predicate-part1.h: Likewise.
35347         * tests/unicase/test-u8-casecmp.c: Likewise.
35348         * tests/unicase/test-u8-casecoll.c: Likewise.
35349         * tests/unicase/test-u8-casefold.c: Likewise.
35350         * tests/unicase/test-u8-is-cased.c: Likewise.
35351         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35352         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35353         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35354         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35355         * tests/unicase/test-u8-tolower.c: Likewise.
35356         * tests/unicase/test-u8-totitle.c: Likewise.
35357         * tests/unicase/test-u8-toupper.c: Likewise.
35358         * tests/unicase/test-u16-casecmp.c: Likewise.
35359         * tests/unicase/test-u16-casecoll.c: Likewise.
35360         * tests/unicase/test-u16-casefold.c: Likewise.
35361         * tests/unicase/test-u16-is-cased.c: Likewise.
35362         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35363         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35364         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35365         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35366         * tests/unicase/test-u16-tolower.c: Likewise.
35367         * tests/unicase/test-u16-totitle.c: Likewise.
35368         * tests/unicase/test-u16-toupper.c: Likewise.
35369         * tests/unicase/test-u32-casecmp.c: Likewise.
35370         * tests/unicase/test-u32-casecoll.c: Likewise.
35371         * tests/unicase/test-u32-casefold.c: Likewise.
35372         * tests/unicase/test-u32-is-cased.c: Likewise.
35373         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35374         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35375         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35376         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35377         * tests/unicase/test-u32-tolower.c: Likewise.
35378         * tests/unicase/test-u32-totitle.c: Likewise.
35379         * tests/unicase/test-u32-toupper.c: Likewise.
35380         * tests/unicase/test-ulc-casecmp.c: Likewise.
35381         * tests/unicase/test-ulc-casecoll.c: Likewise.
35382         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35383         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35384         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35385         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35386         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35387         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35388         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35389         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35390         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35391         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35392         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35393         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35394         * tests/unictype/test-bidi_byname.c: Likewise.
35395         * tests/unictype/test-bidi_name.c: Likewise.
35396         * tests/unictype/test-bidi_of.c: Likewise.
35397         * tests/unictype/test-bidi_test.c: Likewise.
35398         * tests/unictype/test-block_list.c: Likewise.
35399         * tests/unictype/test-block_of.c: Likewise.
35400         * tests/unictype/test-block_test.c: Likewise.
35401         * tests/unictype/test-categ_and.c: Likewise.
35402         * tests/unictype/test-categ_and_not.c: Likewise.
35403         * tests/unictype/test-categ_byname.c: Likewise.
35404         * tests/unictype/test-categ_name.c: Likewise.
35405         * tests/unictype/test-categ_none.c: Likewise.
35406         * tests/unictype/test-categ_of.c: Likewise.
35407         * tests/unictype/test-categ_or.c: Likewise.
35408         * tests/unictype/test-categ_test_withtable.c: Likewise.
35409         * tests/unictype/test-combining.c: Likewise.
35410         * tests/unictype/test-decdigit.c: Likewise.
35411         * tests/unictype/test-digit.c: Likewise.
35412         * tests/unictype/test-mirror.c: Likewise.
35413         * tests/unictype/test-numeric.c: Likewise.
35414         * tests/unictype/test-pr_byname.c: Likewise.
35415         * tests/unictype/test-pr_test.c: Likewise.
35416         * tests/unictype/test-predicate-part1.h: Likewise.
35417         * tests/unictype/test-scripts.c: Likewise.
35418         * tests/unictype/test-sy_c_ident.c: Likewise.
35419         * tests/unictype/test-sy_java_ident.c: Likewise.
35420         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35421         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35422         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35423         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35424         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35425         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35426         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35427         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35428         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35429         * tests/uninorm/test-compat-decomposition.c: Likewise.
35430         * tests/uninorm/test-composition.c: Likewise.
35431         * tests/uninorm/test-decomposing-form.c: Likewise.
35432         * tests/uninorm/test-decomposition.c: Likewise.
35433         * tests/uninorm/test-u8-nfc.c: Likewise.
35434         * tests/uninorm/test-u8-nfd.c: Likewise.
35435         * tests/uninorm/test-u8-nfkc.c: Likewise.
35436         * tests/uninorm/test-u8-nfkd.c: Likewise.
35437         * tests/uninorm/test-u8-normcmp.c: Likewise.
35438         * tests/uninorm/test-u8-normcoll.c: Likewise.
35439         * tests/uninorm/test-u16-nfc.c: Likewise.
35440         * tests/uninorm/test-u16-nfd.c: Likewise.
35441         * tests/uninorm/test-u16-nfkc.c: Likewise.
35442         * tests/uninorm/test-u16-nfkd.c: Likewise.
35443         * tests/uninorm/test-u16-normcmp.c: Likewise.
35444         * tests/uninorm/test-u16-normcoll.c: Likewise.
35445         * tests/uninorm/test-u32-nfc.c: Likewise.
35446         * tests/uninorm/test-u32-nfd.c: Likewise.
35447         * tests/uninorm/test-u32-nfkc.c: Likewise.
35448         * tests/uninorm/test-u32-nfkd.c: Likewise.
35449         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35450         * tests/uninorm/test-u32-normcmp.c: Likewise.
35451         * tests/uninorm/test-u32-normcoll.c: Likewise.
35452         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35453         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35454         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35455         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35456         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35457         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35458         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35459         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35460         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35461         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35462         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35463         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35464         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35465         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35466         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35467         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35468         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35469         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35470         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35471         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35472         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35473         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35474         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35475         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35476         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35477         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35478         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35479         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35480         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35481         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35482         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35483         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35484         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35485         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35486         * tests/uniwidth/test-u8-width.c: Likewise.
35487         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35488         * tests/uniwidth/test-u16-width.c: Likewise.
35489         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35490         * tests/uniwidth/test-u32-width.c: Likewise.
35491         * tests/uniwidth/test-uc_width.c: Likewise.
35492         * tests/uniwidth/test-uc_width2.c: Likewise.
35493         * modules/acl-tests (Files): Add tests/macros.h.
35494         * modules/areadlink-tests (Files): Likewise.
35495         * modules/areadlink-with-size-tests (Files): Likewise.
35496         * modules/areadlinkat-tests (Files): Likewise.
35497         * modules/areadlinkat-with-size-tests (Files): Likewise.
35498         * modules/argmatch-tests (Files): Likewise.
35499         * modules/argv-iter-tests (Files): Likewise.
35500         * modules/array-list-tests (Files): Likewise.
35501         * modules/array-mergesort-tests (Files): Likewise.
35502         * modules/array-oset-tests (Files): Likewise.
35503         * modules/avltree-list-tests (Files): Likewise.
35504         * modules/avltree-oset-tests (Files): Likewise.
35505         * modules/avltreehash-list-tests (Files): Likewise.
35506         * modules/base64-tests (Files): Likewise.
35507         * modules/binary-io-tests (Files): Likewise.
35508         * modules/bitrotate-tests (Files): Likewise.
35509         * modules/btowc-tests (Files): Likewise.
35510         * modules/byteswap-tests (Files): Likewise.
35511         * modules/c-ctype-tests (Files): Likewise.
35512         * modules/c-stack-tests (Files): Likewise.
35513         * modules/c-strcase-tests (Files): Likewise.
35514         * modules/c-strcasestr-tests (Files): Likewise.
35515         * modules/c-strstr-tests (Files): Likewise.
35516         * modules/canonicalize-lgpl-tests (Files): Likewise.
35517         * modules/canonicalize-tests (Files): Likewise.
35518         * modules/carray-list-tests (Files): Likewise.
35519         * modules/ceilf-tests (Files): Likewise.
35520         * modules/ceill-tests (Files): Likewise.
35521         * modules/chown-tests (Files): Likewise.
35522         * modules/cloexec-tests (Files): Likewise.
35523         * modules/copy-file-tests (Files): Likewise.
35524         * modules/count-one-bits-tests (Files): Likewise.
35525         * modules/dprintf-posix-tests (Files): Likewise.
35526         * modules/dup2-tests (Files): Likewise.
35527         * modules/dup3-tests (Files): Likewise.
35528         * modules/duplocale-tests (Files): Likewise.
35529         * modules/fbufmode-tests (Files): Likewise.
35530         * modules/fchdir-tests (Files): Likewise.
35531         * modules/fcntl-safer-tests (Files): Likewise.
35532         * modules/fcntl-tests (Files): Likewise.
35533         * modules/fdopendir-tests (Files): Likewise.
35534         * modules/fdutimensat-tests (Files): Likewise.
35535         * modules/fflush-tests (Files): Likewise.
35536         * modules/filevercmp-tests (Files): Likewise.
35537         * modules/flock-tests (Files): Likewise.
35538         * modules/floorf-tests (Files): Likewise.
35539         * modules/floorl-tests (Files): Likewise.
35540         * modules/fnmatch-tests (Files): Likewise.
35541         * modules/fopen-safer-tests (Files): Likewise.
35542         * modules/fopen-tests (Files): Likewise.
35543         * modules/fpending-tests (Files): Likewise.
35544         * modules/fprintf-posix-tests (Files): Likewise.
35545         * modules/fpurge-tests (Files): Likewise.
35546         * modules/freadable-tests (Files): Likewise.
35547         * modules/freadahead-tests (Files): Likewise.
35548         * modules/freading-tests (Files): Likewise.
35549         * modules/freadptr-tests (Files): Likewise.
35550         * modules/freadseek-tests (Files): Likewise.
35551         * modules/freopen-tests (Files): Likewise.
35552         * modules/frexp-nolibm-tests (Files): Likewise.
35553         * modules/frexp-tests (Files): Likewise.
35554         * modules/frexpl-nolibm-tests (Files): Likewise.
35555         * modules/frexpl-tests (Files): Likewise.
35556         * modules/fseek-tests (Files): Likewise.
35557         * modules/fseeko-tests (Files): Likewise.
35558         * modules/fstrcmp-tests (Files): Likewise.
35559         * modules/fsync-tests (Files): Likewise.
35560         * modules/ftell-tests (Files): Likewise.
35561         * modules/ftello-tests (Files): Likewise.
35562         * modules/func-tests (Files): Likewise.
35563         * modules/futimens-tests (Files): Likewise.
35564         * modules/fwritable-tests (Files): Likewise.
35565         * modules/fwriting-tests (Files): Likewise.
35566         * modules/getcwd-tests (Files): Likewise.
35567         * modules/getdate-tests (Files): Likewise.
35568         * modules/getdelim-tests (Files): Likewise.
35569         * modules/getdtablesize-tests (Files): Likewise.
35570         * modules/getgroups-tests (Files): Likewise.
35571         * modules/getline-tests (Files): Likewise.
35572         * modules/getndelim2-tests (Files): Likewise.
35573         * modules/glob-tests (Files): Likewise.
35574         * modules/hash-tests (Files): Likewise.
35575         * modules/i-ring-tests (Files): Likewise.
35576         * modules/iconv-tests (Files): Likewise.
35577         * modules/iconv_open-utf-tests (Files): Likewise.
35578         * modules/idpriv-drop-tests (Files): Likewise.
35579         * modules/idpriv-droptemp-tests (Files): Likewise.
35580         * modules/inet_ntop-tests (Files): Likewise.
35581         * modules/inet_pton-tests (Files): Likewise.
35582         * modules/isblank-tests (Files): Likewise.
35583         * modules/isfinite-tests (Files): Likewise.
35584         * modules/isinf-tests (Files): Likewise.
35585         * modules/isnan-tests (Files): Likewise.
35586         * modules/isnand-nolibm-tests (Files): Likewise.
35587         * modules/isnand-tests (Files): Likewise.
35588         * modules/isnanf-nolibm-tests (Files): Likewise.
35589         * modules/isnanf-tests (Files): Likewise.
35590         * modules/isnanl-nolibm-tests (Files): Likewise.
35591         * modules/isnanl-tests (Files): Likewise.
35592         * modules/lchown-tests (Files): Likewise.
35593         * modules/ldexpl-tests (Files): Likewise.
35594         * modules/link-tests (Files): Likewise.
35595         * modules/linkat-tests (Files): Likewise.
35596         * modules/linked-list-tests (Files): Likewise.
35597         * modules/linkedhash-list-tests (Files): Likewise.
35598         * modules/localename-tests (Files): Likewise.
35599         * modules/lseek-tests (Files): Likewise.
35600         * modules/lstat-tests (Files): Likewise.
35601         * modules/mbmemcasecmp-tests (Files): Likewise.
35602         * modules/mbmemcasecoll-tests (Files): Likewise.
35603         * modules/mbrtowc-tests (Files): Likewise.
35604         * modules/mbscasecmp-tests (Files): Likewise.
35605         * modules/mbscasestr-tests (Files): Likewise.
35606         * modules/mbschr-tests (Files): Likewise.
35607         * modules/mbscspn-tests (Files): Likewise.
35608         * modules/mbsinit-tests (Files): Likewise.
35609         * modules/mbsncasecmp-tests (Files): Likewise.
35610         * modules/mbsnrtowcs-tests (Files): Likewise.
35611         * modules/mbspbrk-tests (Files): Likewise.
35612         * modules/mbspcasecmp-tests (Files): Likewise.
35613         * modules/mbsrchr-tests (Files): Likewise.
35614         * modules/mbsrtowcs-tests (Files): Likewise.
35615         * modules/mbsspn-tests (Files): Likewise.
35616         * modules/mbsstr-tests (Files): Likewise.
35617         * modules/memchr-tests (Files): Likewise.
35618         * modules/memchr2-tests (Files): Likewise.
35619         * modules/memcmp-tests (Files): Likewise.
35620         * modules/memmem-tests (Files): Likewise.
35621         * modules/memrchr-tests (Files): Likewise.
35622         * modules/mkdir-tests (Files): Likewise.
35623         * modules/mkfifo-tests (Files): Likewise.
35624         * modules/mkfifoat-tests (Files): Likewise.
35625         * modules/mknod-tests (Files): Likewise.
35626         * modules/nanosleep-tests (Files): Likewise.
35627         * modules/nl_langinfo-tests (Files): Likewise.
35628         * modules/obstack-printf-tests (Files): Likewise.
35629         * modules/open-tests (Files): Likewise.
35630         * modules/openat-tests (Files): Likewise.
35631         * modules/pipe-filter-gi-tests (Files): Likewise.
35632         * modules/pipe-filter-ii-tests (Files): Likewise.
35633         * modules/pipe2-tests (Files): Likewise.
35634         * modules/popen-safer-tests (Files): Likewise.
35635         * modules/popen-tests (Files): Likewise.
35636         * modules/posixtm-tests (Files): Likewise.
35637         * modules/pread-tests (Files): Likewise.
35638         * modules/printf-frexp-tests (Files): Likewise.
35639         * modules/printf-frexpl-tests (Files): Likewise.
35640         * modules/printf-posix-tests (Files): Likewise.
35641         * modules/priv-set-tests (Files): Likewise.
35642         * modules/quotearg-tests (Files): Likewise.
35643         * modules/random_r-tests (Files): Likewise.
35644         * modules/rawmemchr-tests (Files): Likewise.
35645         * modules/rbtree-list-tests (Files): Likewise.
35646         * modules/rbtree-oset-tests (Files): Likewise.
35647         * modules/rbtreehash-list-tests (Files): Likewise.
35648         * modules/readlink-tests (Files): Likewise.
35649         * modules/remove-tests (Files): Likewise.
35650         * modules/rename-tests (Files): Likewise.
35651         * modules/renameat-tests (Files): Likewise.
35652         * modules/rmdir-tests (Files): Likewise.
35653         * modules/round-tests (Files): Likewise.
35654         * modules/roundf-tests (Files): Likewise.
35655         * modules/roundl-tests (Files): Likewise.
35656         * modules/safe-alloc-tests (Files): Likewise.
35657         * modules/setenv-tests (Files): Likewise.
35658         * modules/sigaction-tests (Files): Likewise.
35659         * modules/signbit-tests (Files): Likewise.
35660         * modules/sleep-tests (Files): Likewise.
35661         * modules/snprintf-posix-tests (Files): Likewise.
35662         * modules/snprintf-tests (Files): Likewise.
35663         * modules/sprintf-posix-tests (Files): Likewise.
35664         * modules/stat-tests (Files): Likewise.
35665         * modules/stat-time-tests (Files): Likewise.
35666         * modules/strcasestr-tests (Files): Likewise.
35667         * modules/strchrnul-tests (Files): Likewise.
35668         * modules/strerror-tests (Files): Likewise.
35669         * modules/striconv-tests (Files): Likewise.
35670         * modules/striconveh-tests (Files): Likewise.
35671         * modules/striconveha-tests (Files): Likewise.
35672         * modules/strsignal-tests (Files): Likewise.
35673         * modules/strstr-tests (Files): Likewise.
35674         * modules/strtod-tests (Files): Likewise.
35675         * modules/strverscmp-tests (Files): Likewise.
35676         * modules/symlink-tests (Files): Likewise.
35677         * modules/symlinkat-tests (Files): Likewise.
35678         * modules/trunc-tests (Files): Likewise.
35679         * modules/truncf-tests (Files): Likewise.
35680         * modules/truncl-tests (Files): Likewise.
35681         * modules/uname-tests (Files): Likewise.
35682         * modules/unicase/cased-tests (Files): Likewise.
35683         * modules/unicase/ignorable-tests (Files): Likewise.
35684         * modules/unicase/locale-language-tests (Files): Likewise.
35685         * modules/unicase/tolower-tests (Files): Likewise.
35686         * modules/unicase/totitle-tests (Files): Likewise.
35687         * modules/unicase/toupper-tests (Files): Likewise.
35688         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35689         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35690         * modules/unicase/u8-casefold-tests (Files): Likewise.
35691         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35692         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35693         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35694         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35695         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35696         * modules/unicase/u8-tolower-tests (Files): Likewise.
35697         * modules/unicase/u8-totitle-tests (Files): Likewise.
35698         * modules/unicase/u8-toupper-tests (Files): Likewise.
35699         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35700         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35701         * modules/unicase/u16-casefold-tests (Files): Likewise.
35702         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35703         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35704         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35705         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35706         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35707         * modules/unicase/u16-tolower-tests (Files): Likewise.
35708         * modules/unicase/u16-totitle-tests (Files): Likewise.
35709         * modules/unicase/u16-toupper-tests (Files): Likewise.
35710         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35711         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35712         * modules/unicase/u32-casefold-tests (Files): Likewise.
35713         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35714         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35715         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35716         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35717         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35718         * modules/unicase/u32-tolower-tests (Files): Likewise.
35719         * modules/unicase/u32-totitle-tests (Files): Likewise.
35720         * modules/unicase/u32-toupper-tests (Files): Likewise.
35721         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35722         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35723         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35724         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35725         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35726         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35727         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35728         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35729         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35730         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35731         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35732         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35733         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35734         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35735         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35736         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35737         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35738         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35739         * modules/unictype/block-list-tests (Files): Likewise.
35740         * modules/unictype/block-of-tests (Files): Likewise.
35741         * modules/unictype/block-test-tests (Files): Likewise.
35742         * modules/unictype/category-C-tests (Files): Likewise.
35743         * modules/unictype/category-Cc-tests (Files): Likewise.
35744         * modules/unictype/category-Cf-tests (Files): Likewise.
35745         * modules/unictype/category-Cn-tests (Files): Likewise.
35746         * modules/unictype/category-Co-tests (Files): Likewise.
35747         * modules/unictype/category-Cs-tests (Files): Likewise.
35748         * modules/unictype/category-L-tests (Files): Likewise.
35749         * modules/unictype/category-Ll-tests (Files): Likewise.
35750         * modules/unictype/category-Lm-tests (Files): Likewise.
35751         * modules/unictype/category-Lo-tests (Files): Likewise.
35752         * modules/unictype/category-Lt-tests (Files): Likewise.
35753         * modules/unictype/category-Lu-tests (Files): Likewise.
35754         * modules/unictype/category-M-tests (Files): Likewise.
35755         * modules/unictype/category-Mc-tests (Files): Likewise.
35756         * modules/unictype/category-Me-tests (Files): Likewise.
35757         * modules/unictype/category-Mn-tests (Files): Likewise.
35758         * modules/unictype/category-N-tests (Files): Likewise.
35759         * modules/unictype/category-Nd-tests (Files): Likewise.
35760         * modules/unictype/category-Nl-tests (Files): Likewise.
35761         * modules/unictype/category-No-tests (Files): Likewise.
35762         * modules/unictype/category-P-tests (Files): Likewise.
35763         * modules/unictype/category-Pc-tests (Files): Likewise.
35764         * modules/unictype/category-Pd-tests (Files): Likewise.
35765         * modules/unictype/category-Pe-tests (Files): Likewise.
35766         * modules/unictype/category-Pf-tests (Files): Likewise.
35767         * modules/unictype/category-Pi-tests (Files): Likewise.
35768         * modules/unictype/category-Po-tests (Files): Likewise.
35769         * modules/unictype/category-Ps-tests (Files): Likewise.
35770         * modules/unictype/category-S-tests (Files): Likewise.
35771         * modules/unictype/category-Sc-tests (Files): Likewise.
35772         * modules/unictype/category-Sk-tests (Files): Likewise.
35773         * modules/unictype/category-Sm-tests (Files): Likewise.
35774         * modules/unictype/category-So-tests (Files): Likewise.
35775         * modules/unictype/category-Z-tests (Files): Likewise.
35776         * modules/unictype/category-Zl-tests (Files): Likewise.
35777         * modules/unictype/category-Zp-tests (Files): Likewise.
35778         * modules/unictype/category-Zs-tests (Files): Likewise.
35779         * modules/unictype/category-and-not-tests (Files): Likewise.
35780         * modules/unictype/category-and-tests (Files): Likewise.
35781         * modules/unictype/category-byname-tests (Files): Likewise.
35782         * modules/unictype/category-name-tests (Files): Likewise.
35783         * modules/unictype/category-none-tests (Files): Likewise.
35784         * modules/unictype/category-of-tests (Files): Likewise.
35785         * modules/unictype/category-or-tests (Files): Likewise.
35786         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35787         * modules/unictype/combining-class-tests (Files): Likewise.
35788         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35789         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35790         * modules/unictype/ctype-blank-tests (Files): Likewise.
35791         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35792         * modules/unictype/ctype-digit-tests (Files): Likewise.
35793         * modules/unictype/ctype-graph-tests (Files): Likewise.
35794         * modules/unictype/ctype-lower-tests (Files): Likewise.
35795         * modules/unictype/ctype-print-tests (Files): Likewise.
35796         * modules/unictype/ctype-punct-tests (Files): Likewise.
35797         * modules/unictype/ctype-space-tests (Files): Likewise.
35798         * modules/unictype/ctype-upper-tests (Files): Likewise.
35799         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35800         * modules/unictype/decimal-digit-tests (Files): Likewise.
35801         * modules/unictype/digit-tests (Files): Likewise.
35802         * modules/unictype/mirror-tests (Files): Likewise.
35803         * modules/unictype/numeric-tests (Files): Likewise.
35804         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35805         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35806         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35807         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35808         Likewise.
35809         * modules/unictype/property-bidi-block-separator-tests (Files):
35810         Likewise.
35811         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35812         Likewise.
35813         * modules/unictype/property-bidi-common-separator-tests (Files):
35814         Likewise.
35815         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35816         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35817         Likewise.
35818         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35819         Likewise.
35820         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35821         Likewise.
35822         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35823         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35824         Likewise.
35825         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35826         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35827         Likewise.
35828         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35829         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35830         * modules/unictype/property-bidi-segment-separator-tests (Files):
35831         Likewise.
35832         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35833         * modules/unictype/property-byname-tests (Files): Likewise.
35834         * modules/unictype/property-combining-tests (Files): Likewise.
35835         * modules/unictype/property-composite-tests (Files): Likewise.
35836         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35837         * modules/unictype/property-dash-tests (Files): Likewise.
35838         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35839         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35840         Likewise.
35841         * modules/unictype/property-deprecated-tests (Files): Likewise.
35842         * modules/unictype/property-diacritic-tests (Files): Likewise.
35843         * modules/unictype/property-extender-tests (Files): Likewise.
35844         * modules/unictype/property-format-control-tests (Files): Likewise.
35845         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35846         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35847         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35848         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35849         * modules/unictype/property-hyphen-tests (Files): Likewise.
35850         * modules/unictype/property-id-continue-tests (Files): Likewise.
35851         * modules/unictype/property-id-start-tests (Files): Likewise.
35852         * modules/unictype/property-ideographic-tests (Files): Likewise.
35853         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35854         * modules/unictype/property-ids-trinary-operator-tests (Files):
35855         Likewise.
35856         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35857         * modules/unictype/property-iso-control-tests (Files): Likewise.
35858         * modules/unictype/property-join-control-tests (Files): Likewise.
35859         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35860         * modules/unictype/property-line-separator-tests (Files): Likewise.
35861         * modules/unictype/property-logical-order-exception-tests (Files):
35862         Likewise.
35863         * modules/unictype/property-lowercase-tests (Files): Likewise.
35864         * modules/unictype/property-math-tests (Files): Likewise.
35865         * modules/unictype/property-non-break-tests (Files): Likewise.
35866         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35867         * modules/unictype/property-numeric-tests (Files): Likewise.
35868         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35869         * modules/unictype/property-other-default-ignorable-code-point-tests
35870         (Files): Likewise.
35871         * modules/unictype/property-other-grapheme-extend-tests (Files):
35872         Likewise.
35873         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35874         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35875         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35876         * modules/unictype/property-other-math-tests (Files): Likewise.
35877         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35878         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35879         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35880         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35881         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35882         * modules/unictype/property-private-use-tests (Files): Likewise.
35883         * modules/unictype/property-punctuation-tests (Files): Likewise.
35884         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35885         * modules/unictype/property-radical-tests (Files): Likewise.
35886         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35887         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35888         * modules/unictype/property-space-tests (Files): Likewise.
35889         * modules/unictype/property-terminal-punctuation-tests (Files):
35890         Likewise.
35891         * modules/unictype/property-test-tests (Files): Likewise.
35892         * modules/unictype/property-titlecase-tests (Files): Likewise.
35893         * modules/unictype/property-unassigned-code-value-tests (Files):
35894         Likewise.
35895         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35896         * modules/unictype/property-uppercase-tests (Files): Likewise.
35897         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35898         * modules/unictype/property-white-space-tests (Files): Likewise.
35899         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35900         * modules/unictype/property-xid-start-tests (Files): Likewise.
35901         * modules/unictype/property-zero-width-tests (Files): Likewise.
35902         * modules/unictype/scripts-tests (Files): Likewise.
35903         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35904         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35905         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35906         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35907         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35908         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35909         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35910         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35911         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35912         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35913         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35914         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35915         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35916         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35917         * modules/uninorm/composition-tests (Files): Likewise.
35918         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35919         * modules/uninorm/decomposition-tests (Files): Likewise.
35920         * modules/uninorm/filter-tests (Files): Likewise.
35921         * modules/uninorm/nfc-tests (Files): Likewise.
35922         * modules/uninorm/nfd-tests (Files): Likewise.
35923         * modules/uninorm/nfkc-tests (Files): Likewise.
35924         * modules/uninorm/nfkd-tests (Files): Likewise.
35925         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35926         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35927         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35928         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35929         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35930         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35931         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35932         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35933         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35934         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35935         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35936         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35937         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35938         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35939         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35940         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35941         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35942         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35943         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35944         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35945         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35946         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35947         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35948         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35949         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35950         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35951         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35952         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35953         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35954         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35955         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35956         * modules/uniwidth/u8-width-tests (Files): Likewise.
35957         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35958         * modules/uniwidth/u16-width-tests (Files): Likewise.
35959         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35960         * modules/uniwidth/u32-width-tests (Files): Likewise.
35961         * modules/uniwidth/width-tests (Files): Likewise.
35962         * modules/unlink-tests (Files): Likewise.
35963         * modules/unsetenv-tests (Files): Likewise.
35964         * modules/usleep-tests (Files): Likewise.
35965         * modules/utimens-tests (Files): Likewise.
35966         * modules/utimensat-tests (Files): Likewise.
35967         * modules/vasnprintf-posix-tests (Files): Likewise.
35968         * modules/vasnprintf-tests (Files): Likewise.
35969         * modules/vasprintf-posix-tests (Files): Likewise.
35970         * modules/vasprintf-tests (Files): Likewise.
35971         * modules/vdprintf-posix-tests (Files): Likewise.
35972         * modules/vfprintf-posix-tests (Files): Likewise.
35973         * modules/vprintf-posix-tests (Files): Likewise.
35974         * modules/vsnprintf-posix-tests (Files): Likewise.
35975         * modules/vsnprintf-tests (Files): Likewise.
35976         * modules/vsprintf-posix-tests (Files): Likewise.
35977         * modules/wcrtomb-tests (Files): Likewise.
35978         * modules/wcsnrtombs-tests (Files): Likewise.
35979         * modules/wcsrtombs-tests (Files): Likewise.
35980         * modules/wctype-tests (Files): Likewise.
35981         * modules/wcwidth-tests (Files): Likewise.
35982         * modules/xmemdup0-tests (Files): Likewise.
35983         * modules/xprintf-posix-tests (Files): Likewise.
35984         * modules/xvasprintf-tests (Files): Likewise.
35985
35986 2009-12-24  Eric Blake  <ebb9@byu.net>
35987
35988         test-nanosleep: fix typo
35989         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35990         patch.
35991         Reported by Bruno Haible.
35992
35993 2009-12-24  Bruno Haible  <bruno@clisp.org>
35994
35995         Reduce namespace pollution on glibc systems.
35996         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35997         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35998         systems.
35999         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36000         <getopt.h> on glibc systems.
36001         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36002         systems.
36003         * lib/fcntl.c: Include <unistd.h> here instead.
36004
36005 2009-12-24  Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36008
36009 2009-12-24  Eric Blake  <ebb9@byu.net>
36010
36011         tests: add signature checks
36012         * tests/signature.h (SIGNATURE_CHECK): New file.
36013         * modules/atexit-tests (Files): Use it.
36014         * modules/btowc-tests (Files): Likewise.
36015         * modules/canonicalize-lgpl-tests (Files): Likewise.
36016         * modules/ceilf-tests (Files): Likewise.
36017         * modules/ceill-tests (Files): Likewise.
36018         * modules/chown-tests (Files): Likewise.
36019         * modules/dprintf-posix-tests (Files): Likewise.
36020         * modules/dup2-tests (Files): Likewise.
36021         * modules/dup3-tests (Files): Likewise.
36022         * modules/duplocale-tests (Files): Likewise.
36023         * modules/fchdir-tests (Files): Likewise.
36024         * modules/fcntl-tests (Files): Likewise.
36025         * modules/fdopendir-tests (Files): Likewise.
36026         * modules/fflush-tests (Files): Likewise.
36027         * modules/flock-tests (Files): Likewise.
36028         * modules/floorf-tests (Files): Likewise.
36029         * modules/floorl-tests (Files): Likewise.
36030         * modules/fnmatch-tests (Files): Likewise.
36031         * modules/fopen-tests (Files): Likewise.
36032         * modules/fprintf-posix-tests (Files): Likewise.
36033         * modules/freopen-tests (Files): Likewise.
36034         * modules/frexp-nolibm-tests (Files): Likewise.
36035         * modules/frexp-tests (Files): Likewise.
36036         * modules/frexpl-nolibm-tests (Files): Likewise.
36037         * modules/frexpl-tests (Files): Likewise.
36038         * modules/fseek-tests (Files): Likewise.
36039         * modules/fseeko-tests (Files): Likewise.
36040         * modules/fsync-tests (Files): Likewise.
36041         * modules/ftell-tests (Files): Likewise.
36042         * modules/ftello-tests (Files): Likewise.
36043         * modules/futimens-tests (Files): Likewise.
36044         * modules/getaddrinfo-tests (Files): Likewise.
36045         * modules/getcwd-tests (Files): Likewise.
36046         * modules/getdelim-tests (Files): Likewise.
36047         * modules/getdtablesize-tests (Files): Likewise.
36048         * modules/getgroups-tests (Files): Likewise.
36049         * modules/gethostname-tests (Files): Likewise.
36050         * modules/getline-tests (Files): Likewise.
36051         * modules/getopt-posix-tests (Files): Likewise.
36052         * modules/gettimeofday-tests (Files): Likewise.
36053         * modules/glob-tests (Files): Likewise.
36054         * modules/iconv-tests (Files): Likewise.
36055         * modules/inet_ntop-tests (Files): Likewise.
36056         * modules/inet_pton-tests (Files): Likewise.
36057         * modules/isblank-tests (Files): Likewise.
36058         * modules/lchown-tests (Files): Likewise.
36059         * modules/ldexpl-tests (Files): Likewise.
36060         * modules/link-tests (Files): Likewise.
36061         * modules/linkat-tests (Files): Likewise.
36062         * modules/lseek-tests (Files): Likewise.
36063         * modules/lstat-tests (Files): Likewise.
36064         * modules/mbrtowc-tests (Files): Likewise.
36065         * modules/mbsinit-tests (Files): Likewise.
36066         * modules/mbsnrtowcs-tests (Files): Likewise.
36067         * modules/mbsrtowcs-tests (Files): Likewise.
36068         * modules/memchr-tests (Files): Likewise.
36069         * modules/memcmp-tests (Files): Likewise.
36070         * modules/memmem-tests (Files): Likewise.
36071         * modules/memrchr-tests (Files): Likewise.
36072         * modules/mkdir-tests (Files): Likewise.
36073         * modules/mkfifo-tests (Files): Likewise.
36074         * modules/mkfifoat-tests (Files): Likewise.
36075         * modules/mknod-tests (Files): Likewise.
36076         * modules/nanosleep-tests (Files): Likewise.
36077         * modules/nl_langinfo-tests (Files): Likewise.
36078         * modules/obstack-printf-tests (Files): Likewise.
36079         * modules/open-tests (Files): Likewise.
36080         * modules/openat-tests (Files): Likewise.
36081         * modules/perror-tests (Files): Likewise.
36082         * modules/pipe2-tests (Files): Likewise.
36083         * modules/poll-tests (Files): Likewise.
36084         * modules/popen-tests (Files): Likewise.
36085         * modules/posix_spawn-tests (Files): Likewise.
36086         * modules/posix_spawnp-tests (Files): Likewise.
36087         * modules/pread-tests (Files): Likewise.
36088         * modules/printf-posix-tests (Files): Likewise.
36089         * modules/pty-tests (Files): Likewise.
36090         * modules/random_r-tests (Files): Likewise.
36091         * modules/rawmemchr-tests (Files): Likewise.
36092         * modules/readlink-tests (Files): Likewise.
36093         * modules/remove-tests (Files): Likewise.
36094         * modules/rename-tests (Files): Likewise.
36095         * modules/renameat-tests (Files): Likewise.
36096         * modules/rmdir-tests (Files): Likewise.
36097         * modules/round-tests (Files): Likewise.
36098         * modules/roundf-tests (Files): Likewise.
36099         * modules/roundl-tests (Files): Likewise.
36100         * modules/select-tests (Files): Likewise.
36101         * modules/setenv-tests (Files): Likewise.
36102         * modules/sigaction-tests (Files): Likewise.
36103         * modules/sleep-tests (Files): Likewise.
36104         * modules/snprintf-posix-tests (Files): Likewise.
36105         * modules/snprintf-tests (Files): Likewise.
36106         * modules/sprintf-posix-tests (Files): Likewise.
36107         * modules/stat-tests (Files): Likewise.
36108         * modules/strcasestr-tests (Files): Likewise.
36109         * modules/strchrnul-tests (Files): Likewise.
36110         * modules/strerror-tests (Files): Likewise.
36111         * modules/strsignal-tests (Files): Likewise.
36112         * modules/strstr-tests (Files): Likewise.
36113         * modules/strtod-tests (Files): Likewise.
36114         * modules/strverscmp-tests (Files): Likewise.
36115         * modules/symlink-tests (Files): Likewise.
36116         * modules/symlinkat-tests (Files): Likewise.
36117         * modules/times-tests (Files): Likewise.
36118         * modules/trunc-tests (Files): Likewise.
36119         * modules/truncf-tests (Files): Likewise.
36120         * modules/truncl-tests (Files): Likewise.
36121         * modules/tsearch-tests (Files): Likewise.
36122         * modules/uname-tests (Files): Likewise.
36123         * modules/unlink-tests (Files): Likewise.
36124         * modules/unsetenv-tests (Files): Likewise.
36125         * modules/usleep-tests (Files): Likewise.
36126         * modules/utimensat-tests (Files): Likewise.
36127         * modules/vasprintf-tests (Files): Likewise.
36128         * modules/vdprintf-posix-tests (Files): Likewise.
36129         * modules/vfprintf-posix-tests (Files): Likewise.
36130         * modules/vprintf-posix-tests (Files): Likewise.
36131         * modules/vsnprintf-posix-tests (Files): Likewise.
36132         * modules/vsnprintf-tests (Files): Likewise.
36133         * modules/vsprintf-posix-tests (Files): Likewise.
36134         * modules/wcrtomb-tests (Files): Likewise.
36135         * modules/wcsnrtombs-tests (Files): Likewise.
36136         * modules/wcsrtombs-tests (Files): Likewise.
36137         * modules/wcwidth-tests (Files): Likewise.
36138         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36139         * tests/test-isinf.c (isinf): Likewise.
36140         * tests/test-isnan.c (isnan): Likewise.
36141         * tests/test-signbit.c (signbit): Likewise.
36142         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36143         declaration, either as macro or with correct signature.
36144         (select): Ensure function under test is declared with correct
36145         signature in correct header.
36146         * tests/test-atexit.c (atexit): Likewise.
36147         * tests/test-btowc.c (btowc): Likewise.
36148         * tests/test-canonicalize-lgpl.c (realpath)
36149         (canonicalize_file_name): Likewise.
36150         * tests/test-ceilf1.c (ceilf): Likewise.
36151         * tests/test-ceill.c (ceill): Likewise.
36152         * tests/test-chown.c (chown): Likewise.
36153         * tests/test-dprintf-posix.c (dprintf): Likewise.
36154         * tests/test-dup2.c (dup2): Likewise.
36155         * tests/test-dup3.c (dup3): Likewise.
36156         * tests/test-duplocale.c (duplocale): Likewise.
36157         * tests/test-fchdir.c (fchdir): Likewise.
36158         * tests/test-fchownat.c (fchownat): Likewise.
36159         * tests/test-fcntl.c (fcntl): Likewise.
36160         * tests/test-fdopendir.c (fdopendir): Likewise.
36161         * tests/test-fflush.c (fflush): Likewise.
36162         * tests/test-flock.c (flock): Likewise.
36163         * tests/test-floorf1.c (floorf): Likewise.
36164         * tests/test-floorl.c (floorl): Likewise.
36165         * tests/test-fnmatch.c (fnmatch): Likewise.
36166         * tests/test-fopen.c (fopen): Likewise.
36167         * tests/test-fprintf-posix.c (fprintf): Likewise.
36168         * tests/test-freopen.c (freopen): Likewise.
36169         * tests/test-frexp.c (frexp): Likewise.
36170         * tests/test-frexpl.c (frexpl): Likewise.
36171         * tests/test-fseek.c (fseek): Likewise.
36172         * tests/test-fseeko.c (fseeko): Likewise.
36173         * tests/test-fstatat.c (fstatat): Likewise.
36174         * tests/test-fsync.c (fsync): Likewise.
36175         * tests/test-ftell.c (ftell): Likewise.
36176         * tests/test-ftello.c (ftello): Likewise.
36177         * tests/test-futimens.c (futimens): Likewise.
36178         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36179         (gai_strerror): Likewise.
36180         * tests/test-getcwd.c (getcwd): Likewise.
36181         * tests/test-getdelim.c (getdelim): Likewise.
36182         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36183         * tests/test-getgroups.c (getgroups): Likewise.
36184         * tests/test-gethostname.c (gethostname): Likewise.
36185         * tests/test-getline.c (getline): Likewise.
36186         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36187         Likewise.
36188         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36189         * tests/test-glob.c (glob, globfree): Likewise.
36190         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36191         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36192         * tests/test-inet_pton.c (inet_pton): Likewise.
36193         * tests/test-isblank.c (isblank): Likewise.
36194         * tests/test-lchown.c (lchown): Likewise.
36195         * tests/test-ldexpl.c (ldexpl): Likewise.
36196         * tests/test-link.c (link): Likewise.
36197         * tests/test-linkat.c (linkat): Likewise.
36198         * tests/test-lseek.c (lseek): Likewise.
36199         * tests/test-lstat.c (lstat): Likewise.
36200         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36201         * tests/test-mbsinit.c (mbsinit): Likewise.
36202         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36203         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36204         * tests/test-memchr.c (memchr): Likewise.
36205         * tests/test-memcmp.c (memcmp): Likewise.
36206         * tests/test-memmem.c (memmem): Likewise.
36207         * tests/test-memrchr.c (memrchr): Likewise.
36208         * tests/test-mkdir.c (mkdir): Likewise.
36209         * tests/test-mkdirat.c (mkdirat): Likewise.
36210         * tests/test-mkfifo.c (mkfifo): Likewise.
36211         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36212         * tests/test-mknod.c (mknod): Likewise.
36213         * tests/test-nanosleep.c (nanosleep): Likewise.
36214         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36215         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36216         Likewise.
36217         * tests/test-open.c (open): Likewise.
36218         * tests/test-openat.c (openat): Likewise.
36219         * tests/test-perror.c (perror): Likewise.
36220         * tests/test-pipe2.c (pipe2): Likewise.
36221         * tests/test-poll.c (poll): Likewise.
36222         * tests/test-popen.c (popen, pclose): Likewise.
36223         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36224         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36225         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36226         (posix_spawn_file_actions_destroy)
36227         (posix_spawn_file_actions_addclose)
36228         (posix_spawn_file_actions_addopen)
36229         (posix_spawn_file_actions_adddup2): Likewise.
36230         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36231         * tests/test-pread.c (pread): Likewise.
36232         * tests/test-printf-posix.c (printf): Likewise.
36233         * tests/test-pty.c (openpty, forkpty): Likewise.
36234         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36235         (random_r): Likewise.
36236         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36237         * tests/test-readlink.c (readlink): Likewise.
36238         * tests/test-remove.c (remove): Likewise.
36239         * tests/test-rename.c (rename): Likewise.
36240         * tests/test-renameat.c (renameat): Likewise.
36241         * tests/test-rmdir.c (rmdir): Likewise.
36242         * tests/test-round1.c (round): Likewise.
36243         * tests/test-roundf1.c (roundf): Likewise.
36244         * tests/test-roundl.c (roundl): Likewise.
36245         * tests/test-setenv.c (setenv): Likewise.
36246         * tests/test-sigaction.c (sigaction): Likewise.
36247         * tests/test-sleep.c (sleep): Likewise.
36248         * tests/test-snprintf.c (snprintf): Likewise.
36249         * tests/test-sprintf-posix.c (sprintf): Likewise.
36250         * tests/test-stat.c (stat): Likewise.
36251         * tests/test-stpncpy.c (stpncpy): Likewise.
36252         * tests/test-strcasestr.c (strcasestr): Likewise.
36253         * tests/test-strchrnul.c (strchrnul): Likewise.
36254         * tests/test-strerror.c (strerror): Likewise.
36255         * tests/test-strsignal.c (strsignal): Likewise.
36256         * tests/test-strstr.c (strstr): Likewise.
36257         * tests/test-strtod.c (strtod): Likewise.
36258         * tests/test-strverscmp.c (strverscmp): Likewise.
36259         * tests/test-symlink.c (symlink): Likewise.
36260         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36261         * tests/test-times.c (times): Likewise.
36262         * tests/test-trunc1.c (trunc): Likewise.
36263         * tests/test-truncf1.c (truncf): Likewise.
36264         * tests/test-truncl.c (truncl): Likewise.
36265         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36266         Likewise.
36267         * tests/test-uname.c (uname): Likewise.
36268         * tests/test-unlink.c (unlink): Likewise.
36269         * tests/test-unlinkat.c (unlinkat): Likewise.
36270         * tests/test-unsetenv.c (unsetenv): Likewise.
36271         * tests/test-usleep.c (usleep): Likewise.
36272         * tests/test-utimensat.c (utimensat): Likewise.
36273         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36274         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36275         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36276         * tests/test-vprintf-posix.c (vprintf): Likewise.
36277         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36278         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36279         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36280         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36281         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36282         * tests/test-wcwidth.c (wcwidth): Likewise.
36283
36284         build: pull in conditional headers during GNULIB_POSIXCHECK
36285         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36286         definitions from any conditionally-included headers.
36287         * lib/stdlib.in.h (includes): Likewise.
36288         * lib/unistd.in.h (includes): Likewise.
36289
36290 2009-12-24  Bruno Haible  <bruno@clisp.org>
36291
36292         * tests/test-argv-iter.c: Include header file being tested immediately
36293         after config.h.
36294         * tests/test-base64.c: Likewise.
36295         * tests/test-flock.c: Likewise.
36296         * tests/test-fsync.c: Likewise.
36297         * tests/test-getdate.c: Likewise.
36298         * tests/test-getndelim2.c: Likewise.
36299         * tests/test-isfinite.c: Likewise.
36300         * tests/test-isinf.c: Likewise.
36301         * tests/test-strerror.c: Likewise.
36302         * tests/test-strsignal.c: Likewise.
36303
36304 2009-12-23  Eric Blake  <ebb9@byu.net>
36305
36306         unistd: work around cygwin bug
36307         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36308         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36309         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36310
36311 2009-12-23  Bruno Haible  <bruno@clisp.org>
36312
36313         localename: More tests.
36314         * tests/test-localename.c (SIZEOF): New macro.
36315         (categories): New variable.
36316         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36317         test_locale_name_default): Add test w.r.t. thread locale.
36318         (test_locale_name_thread): New function.
36319         (main): Invoke it.
36320
36321         localename: Make aware of thread locale.
36322         * lib/localename.h (gl_locale_name_thread): New declaration.
36323         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36324         behaviour with respect to thread locale.
36325         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36326         <langinfo.h>, glthread/lock.h.
36327         (SIZE_BITS): New macro.
36328         (string_hash): New function.
36329         (struct hash_node): New type.
36330         (HASH_TABLE_SIZE): New macro.
36331         (struniq_hash_table, struniq_lock): New variables.
36332         (struniq): New function.
36333         (gl_locale_name_thread): New function.
36334         (gl_locale_name): Invoke it.
36335         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36336         * modules/localename (Depends-on): Add lock.
36337         Reported by Mike Gran <spk121@yahoo.com>.
36338
36339 2009-12-23  Eric Blake  <ebb9@byu.net>
36340
36341         va-args: new module
36342         * modules/va-args: New file.
36343         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36344         * MODULES.html.sh (Core language properties): Mention it.
36345
36346         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36347         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36348         named alias for __attribute__((__unused__)).
36349         * lib/chown.c: Update client.
36350         * lib/fchmodat.c: Likewise.
36351         * lib/fts.c: Likewise.
36352         * lib/getdate.y: Likewise.
36353         * lib/getgroups.c: Likewise.
36354         * lib/getopt.c: Likewise.
36355         * lib/getugroups.c: Likewise.
36356         * lib/mkdir.c: Likewise.
36357         * lib/mkfifo.c: Likewise.
36358         * lib/mkfifoat.c: Likewise.
36359         * lib/mknod.c: Likewise.
36360         * lib/mknodat.c: Likewise.
36361         * lib/readlink.c: Likewise.
36362         * lib/se-context.in.h: Likewise.
36363         * lib/se-selinux.in.h: Likewise.
36364         * lib/sockets.c: Likewise.
36365         * lib/symlink.c: Likewise.
36366         * lib/symlinkat.c: Likewise.
36367         * lib/unicodeio.c: Likewise.
36368         * lib/unistr.h: Likewise.
36369         * tests/test-areadlink.c: Likewise.
36370         * tests/test-areadlinkat.c: Likewise.
36371         * tests/test-filenamecat.c: Likewise.
36372         * tests/test-fseeko.c: Likewise.
36373         * tests/test-ftello.c: Likewise.
36374         * tests/test-getdate.c: Likewise.
36375         * tests/test-getgroups.c: Likewise.
36376         * tests/test-gethostname.c: Likewise.
36377         * tests/test-quotearg.c: Likewise.
36378         * tests/test-version-etc.c: Likewise.
36379         * tests/test-xalloc-die.c: Likewise.
36380         * tests/test-xfprintf-posix.c: Likewise.
36381         * tests/test-xprintf-posix.c: Likewise.
36382         * tests/test-xvasprintf.c: Likewise.
36383
36384         tests: avoid compiler warnings
36385         * tests/test-fcntl.c (main): Delete unused parameters.
36386         * tests/test-freopen-safer.c (main): Likewise.
36387         * tests/test-xalloc-die.c (main): Mark unused parameters.
36388         * tests/test-fseeko.c (main): Likewise.
36389         * tests/test-ftello.c (main): Likewise.
36390         * tests/test-nanosleep.c (main): Avoid declaration warning.
36391         * tests/test-sleep.c (main): Likewise.
36392         * tests/test-unsetenv.c (main): Silence warning about string
36393         literal.
36394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36395
36396 2009-12-23  Bruno Haible  <bruno@clisp.org>
36397
36398         * tests/test-localename.c (test_locale_name): New function, extracted
36399         from main. Also test mixed situations.
36400         (test_locale_name_posix, test_locale_name_environ,
36401         test_locale_name_default): New functions.
36402         (main): Invoke them all.
36403         * modules/localename-tests (configure.ac): Test for newlocale.
36404
36405 2009-12-23  Bruno Haible  <bruno@clisp.org>
36406
36407         unistd: Ensure getcwd gets declared before being overridden.
36408         * lib/unistd.in.h: Conditionally include <io.h>.
36409
36410 2009-12-22  Bruno Haible  <bruno@clisp.org>
36411
36412         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36413         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36414         (gl_WCHAR_H): Invoke it.
36415         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36416         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36417         Reported by Karl Berry <karl@freefriends.org>.
36418
36419 2009-12-22  Eric Blake  <ebb9@byu.net>
36420
36421         math, unistd: avoid redundant includes
36422         * lib/math.in.h (isnan): No need to re-include <math.h>.
36423         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36424
36425         getsubopt: work around cygwin bug
36426         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36427         avoid conflicting with system getsubopt.
36428         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36429         bug.
36430
36431         getopt: synchronize from glibc
36432         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36433         parameter order.  Adjust all callers.
36434         (_getopt_internal_r, main): Adjust quoting in error messages.
36435         Drop considerations for outdated POSIX 1003.2 error message.
36436         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36437         callers.
36438         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36439
36440         test-getopt: test stderr behavior
36441         * modules/getopt-posix-tests (Depends-on): Add dup2.
36442         * tests/test-getopt.c (ASSERT): Avoid stderr.
36443         (main): Move stderr to a temporary file.
36444         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36445         Instead, add parameter to inform caller if output occurred.
36446         (test_getopt): Adjust all existing tests to expect silence, and
36447         add new tests of leading ":".
36448         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36449         glibc shortcomings with leading "-:" or "+:" in optstring.
36450         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36451         Likewise.
36452         * doc/posix-functions/getopt.texi (getopt): Likewise.
36453
36454         test-getopt: enhance test
36455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36456         supports optind=0.
36457         * tests/test-getopt.c (OPTIND_MIN): Move...
36458         * tests/test-getopt.h (OPTIND_MIN): ...here.
36459         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36460         Require that optind=0 works, since modern BSD supports it in
36461         addition to optreset, and since coreutils expects it.
36462         (test_getopt_long_only): New test.
36463         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36464         glibc shortcomings with 'W;', and enforcement of optind=0.
36465         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36466         Likewise.
36467
36468 2009-12-21  Bruno Haible  <bruno@clisp.org>
36469
36470         localename: Improvements for MacOS X and Cygwin.
36471         * lib/localename.h (gl_locale_name_environ): New declaration.
36472         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36473         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36474         (gl_locale_name_posix): Invoke it.
36475         (gl_locale_name_default): Add comments. Use Windows native API also on
36476         Cygwin.
36477
36478 2009-12-21  Bruno Haible  <bruno@clisp.org>
36479
36480         Update list of Win32 locale ids.
36481         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36482         (LANG_SAMI): Renamed from LANG_SAAMI.
36483         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36484         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36485         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36486         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36487         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36488         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36489         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36490         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36491         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36492         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36493         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36494         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36495         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36496         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36497         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36498         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36499         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36500         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36501         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36502         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36503         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36504         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36505         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36506         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36507         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36508         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36509         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36510         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36511         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36512         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36513         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36514         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36515         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36516         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36517         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36518         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36519         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36520         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36521         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36522         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36523         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36524         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36525         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36526         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36527         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36528         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36529         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36530         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36531         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36532         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36533         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36534         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36535         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36536         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36537         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36538         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36539         Add more languages and countries for Sami, Sorbian. Add more countries
36540         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36541         for Pashto. Change country for Syriac, Tswana.
36542
36543 2009-12-21  Eric Blake  <ebb9@byu.net>
36544
36545         test-utimens: avoid spurious failure
36546         * tests/test-chown.h (nap): Factor...
36547         * tests/nap.h: ...into new file.
36548         * tests/test-lchown.h (nap): Avoid duplication.
36549         * tests/test-utimens-common.h (nap): Use shared implementation,
36550         necessary on file systems with 1-second resolution.
36551         * modules/chown-tests (Files): Include new file.
36552         * modules/fdutimensat-tests (Files): Likewise.
36553         * modules/futimens-tests (Files): Likewise.
36554         * modules/lchown-tests (Files): Likewise.
36555         * modules/openat-tests (Files): Likewise.
36556         * modules/utimens-tests (Files): Likewise.
36557         * modules/utimensat-tests (Files): Likewise.
36558
36559 2009-12-19  Eric Blake  <ebb9@byu.net>
36560
36561         futimens, utimensat: work around Linux bug
36562         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36563         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36564         * lib/utimensat.c (rpl_utimensat): Work around it.
36565         * lib/futimens.c (rpl_futimens): Adjust comment.
36566
36567         utimens: work around Linux ctime bug
36568         * lib/utimens.c (detect_ctime_bug): New helper function.
36569         (update_timespec): Differentiate between workaround needed for
36570         this bug vs. what is needed for systems that lack utimensat.
36571         (fdutimens, lutimens): Work around bug.
36572
36573         utimens: check for ctime update
36574         * tests/test-utimens-common.h (check_ctime): Define.
36575         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36576         * tests/test-futimens.h (test_futimens): Likewise.
36577         * tests/test-lutimens.h (test_lutimens): Likewise.
36578         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36579         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36580
36581 2009-12-19  Bruno Haible  <bruno@clisp.org>
36582
36583         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36584         * tests/test-dprintf-posix2.sh: New file.
36585         * tests/test-dprintf-posix2.c: New file.
36586         * modules/dprintf-posix-tests (Files): Add them.
36587         (configure.ac): Check for getrlimit and setrlimit.
36588         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36589
36590 2009-12-19  Bruno Haible  <bruno@clisp.org>
36591
36592         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36593         * tests/test-fprintf-posix3.sh: New file.
36594         * tests/test-fprintf-posix3.c: New file.
36595         * modules/fprintf-posix-tests (Files): Add them.
36596         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36597
36598 2009-12-19  Eric Blake  <ebb9@byu.net>
36599
36600         dirfd: fix prototype
36601         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36602         * lib/dirfd.c (dirfd): Likewise.
36603
36604         canonicalize: reduce memory usage
36605         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36606         allocation to size.
36607         Reported by Solar Designer <solar@openwall.com>.
36608
36609 2009-12-19  Bruno Haible  <bruno@clisp.org>
36610
36611         New module attribute 'Applicability'.
36612         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36613         * gnulib-tool: New option --extract-applicability.
36614         (func_usage): Document it.
36615         (sed_extract_prog): Recognize it.
36616         (func_get_applicability): New function.
36617         (func_import): Generalize handling of 'link-warning' module.
36618         * modules/link-warning (Applicability): New section.
36619         * modules/arg-nonnull (Applicability): New section.
36620         Repoted by Simon Josefsson <simon@josefsson.org>.
36621
36622 2009-12-19  Bruno Haible  <bruno@clisp.org>
36623
36624         fflush: tweak
36625         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36626         * lib/fseeko.c (rpl_fseeko): Likewise.
36627
36628 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36629
36630         * lib/gl_list.h: Fix typo in comment.
36631
36632 2009-12-16  Eric Blake  <ebb9@byu.net>
36633
36634         fcntl: use to simplify other modules
36635         * modules/cloexec (Depends-on): Add fcntl.
36636         * modules/fchdir (Depends-on): Likewise.
36637         * modules/fd-safer-flag (Depends-on): Likewise.
36638         * modules/unistd-safer (Depends-on): Likewise.
36639         * modules/dup3 (configure.ac): Set module indicator.
36640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36641         missing.
36642         * lib/fchdir.c (_gl_register_dup): Fix comment.
36643         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36644         * lib/dup-safer.c (dup_safer): Likewise.
36645         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36646         * lib/dup3.c (dup3): Likewise.
36647         * tests/test-fchdir.c (main): Enhance test.
36648         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36649
36650         fcntl: port portions of fcntl to mingw
36651         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36652         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36653         replacement for mingw.
36654         * modules/fcntl (Description): Update.
36655         (Depends-on): Add dup2.
36656         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36657         * modules/fcntl-h (Makefile.am): Substitute it.
36658         * lib/fcntl.in.h (fcntl): Update declaration.
36659         (F_DUPFD, F_GETFD): New macros, when needed.
36660         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36661         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36662         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36663         we now guarantee.
36664
36665         fcntl: work around cygwin bug in F_DUPFD
36666         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36667         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36668         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36669         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36670         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36671
36672         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36673         * modules/fcntl (Files): List new files.
36674         (configure.ac): Run a test.
36675         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36676         * lib/fcntl.c (rpl_fcntl): Likewise.
36677         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36678         (gl_FCNTL_H): Always replace fcntl.h.
36679         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36680         * lib/fcntl.in.h (fcntl): Declare replacement.
36681         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36682         needed, plus a witness.
36683         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36684         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36685         * tests/test-fcntl.c: New file.
36686         * modules/fcntl-tests: Likewise.
36687
36688         binary-io: avoid potential compilation warning
36689         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36690         directives.
36691
36692         fflush: avoid compilation error on NetBSD
36693         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36694         between off_t and fpos_t, since the latter is sometimes a struct.
36695         * lib/fseeko.c (rpl_fseeko): Likewise.
36696         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36697
36698 2009-12-15  Eric Blake  <ebb9@byu.net>
36699
36700         fcntl-h, stdio, sys_ioctl: fix declarations
36701         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36702         function must not take arguments.
36703         * lib/sys_ioctl.in.h (ioctl): Likewise.
36704         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36705         (open): Add a link warning.
36706
36707 2009-12-15  Jim Meyering  <meyering@redhat.com>
36708
36709         areadlink, areadlink-with-size: relax license to LGPLv2+
36710         * modules/areadlink (License): Relax to LGPLv2+.
36711         * modules/areadlink-with-size (License): Likewise.
36712
36713 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36714             Bruno Haible  <bruno@clisp.org>
36715
36716         *printf: Fix memory leak.
36717         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36718         * lib/vfprintf.c (vfprintf): Likewise.
36719         * lib/dprintf.c (dprintf): Likewise.
36720         * lib/vdprintf.c (vdprintf): Likewise.
36721
36722 2009-12-14  Eric Blake  <ebb9@byu.net>
36723
36724         accept4: adjust module dependencies
36725         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36726
36727         utimens: one more try at avoiding compiler warning
36728         * lib/utimens.c (lutimens): Lower scope of result.
36729
36730 2009-12-13  Bruno Haible  <bruno@clisp.org>
36731
36732         Move the malloc checking from module 'list' to new module 'xlist'.
36733         * modules/xlist: New file.
36734         * lib/gl_xlist.h: New file.
36735         * lib/gl_xlist.c: New file.
36736         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36737         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36738         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36739         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36740         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36741         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36742         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36743         gl_sortedlist_nx_add): New declarations.
36744         (struct gl_list_implementation): Rename and change methods accordingly.
36745         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36746         (gl_list_nx_create): Renamed from gl_list_create.
36747         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36748         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36749         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36750         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36751         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36752         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36753         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36754         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36755         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36756         gl_list_create_empty.
36757         (gl_list_nx_create): Renamed from gl_list_create.
36758         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36759         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36760         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36761         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36762         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36763         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36764         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36765         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36766         * lib/gl_array_list.c: Don't include xalloc.h.
36767         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36768         NULL upon out-of-memory.
36769         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36770         out-of-memory.
36771         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36772         Change return type to 'int'.
36773         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36774         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36775         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36776         upon out-of-memory.
36777         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36778         upon out-of-memory.
36779         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36780         upon out-of-memory.
36781         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36782         upon out-of-memory.
36783         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36784         out-of-memory.
36785         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36786         Update.
36787         (gl_array_list_implementation): Update.
36788         * lib/gl_carray_list.c: Don't include xalloc.h.
36789         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36790         Return NULL upon out-of-memory.
36791         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36792         out-of-memory.
36793         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36794         Change return type to 'int'.
36795         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36796         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36797         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36798         upon out-of-memory.
36799         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36800         upon out-of-memory.
36801         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36802         out-of-memory.
36803         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36804         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36805         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36806         Update.
36807         (gl_carray_list_implementation): Update.
36808         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36809         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36810         gl_linked_create_empty. Return NULL upon out-of-memory.
36811         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36812         out-of-memory.
36813         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36814         Change return type to 'int'. Return -1 upon out-of-memory.
36815         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36816         out-of-memory.
36817         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36818         upon out-of-memory.
36819         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36820         upon out-of-memory.
36821         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36822         NULL upon out-of-memory.
36823         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36824         upon out-of-memory.
36825         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36826         out-of-memory.
36827         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36828         Update.
36829         * lib/gl_linked_list.c: Don't include xalloc.h.
36830         (gl_linked_list_implementation): Update.
36831         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36832         (add_to_bucket): Change return type to 'int'.
36833         (gl_linkedhash_list_implementation): Update.
36834         * lib/gl_anytree_list1.h (free_subtree): New function.
36835         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36836         gl_tree_create_empty. Return NULL upon out-of-memory.
36837         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36838         Change return type to 'int'. Return -1 upon out-of-memory.
36839         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36840         out-of-memory.
36841         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36842         (gl_tree_remove_node): New function, moved here from
36843         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36844         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36845         Update.
36846         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36847         malloc, not xmalloc. Return NULL upon out-of-memory.
36848         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36849         out-of-memory.
36850         (gl_tree_remove_node_from_tree): New function, extracted from
36851         gl_tree_remove_node.
36852         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36853         upon out-of-memory.
36854         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36855         out-of-memory.
36856         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36857         upon out-of-memory.
36858         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36859         upon out-of-memory.
36860         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36861         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36862         not xmalloc. Return NULL upon out-of-memory.
36863         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36864         out-of-memory.
36865         (gl_tree_remove_node_from_tree): New function, extracted from
36866         gl_tree_remove_node.
36867         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36868         upon out-of-memory.
36869         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36870         out-of-memory.
36871         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36872         upon out-of-memory.
36873         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36874         upon out-of-memory.
36875         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36876         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36877         gl_anytree_list1.h before gl_anyavltree_list2.h.
36878         (gl_avltree_list_implementation): Update.
36879         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36880         gl_anytree_list1.h before gl_anyavltree_list2.h.
36881         (gl_rbtree_list_implementation): Update.
36882         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36883         Change return type to 'int'. Return -1 upon out-of-memory. Use
36884         __builtin_expect.
36885         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36886         (gl_avltreehash_list_implementation): Update.
36887         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36888         (gl_rbtreehash_list_implementation): Update.
36889         * modules/array-list (Depends-on): Remove xalloc.
36890         * modules/carray-list (Depends-on): Likewise.
36891         * modules/linked-list (Depends-on): Likewise.
36892         * modules/linkedhash-list (Depends-on): Likewise.
36893         * modules/avltree-list (Depends-on): Likewise.
36894         * modules/rbtree-list (Depends-on): Likewise.
36895         * modules/avltreehash-list (Depends-on): Likewise.
36896         * modules/rbtreehash-list (Depends-on): Likewise.
36897
36898         * modules/xsublist: New file.
36899         * lib/gl_xsublist.h: New file.
36900         * lib/gl_xsublist.c: New file.
36901         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36902         (gl_sublist_nx_create): New declaration.
36903         * lib/gl_sublist.c: Don't include xalloc.h.
36904         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36905         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36906         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36907         Change return type to 'int'. Return -1 upon out-of-memory.
36908         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36909         upon out-of-memory.
36910         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36911         NULL upon out-of-memory.
36912         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36913         upon out-of-memory.
36914         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36915         NULL upon out-of-memory.
36916         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36917         NULL upon out-of-memory.
36918         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36919         upon out-of-memory.
36920         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36921         (gl_sublist_list_implementation): Update.
36922         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36923         upon out-of-memory.
36924         * modules/sublist (Depends-on): Remove xalloc.
36925
36926         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36927         * tests/test-carray_list.c: Likewise.
36928         * tests/test-linked_list.c: Likewise.
36929         * tests/test-linkedhash_list.c: Likewise.
36930         * tests/test-avltree_list.c: Likewise.
36931         * tests/test-rbtree_list.c: Likewise.
36932         * tests/test-avltreehash_list.c: Likewise.
36933         * tests/test-rbtreehash_list.c: Likewise.
36934         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36935         * modules/carray-list-tests (Makefile.am): Likewise.
36936         * modules/linked-list-tests (Makefile.am): Likewise.
36937         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36938         * modules/avltree-list-tests (Makefile.am): Likewise.
36939         * modules/rbtree-list-tests (Makefile.am): Likewise.
36940         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36941         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36942
36943         * NEWS: Mention the changes.
36944
36945         * lib/clean-temp.c: Include gl_xlist.h.
36946         * modules/clean-temp (Depends-on): Add xlist.
36947
36948         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36949         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36950
36951         * tests/test-array_oset.c: Include gl_xlist.h.
36952         * modules/array-oset-tests (Depends-on): Add xlist.
36953
36954         Reported by José E. Marchesi <jemarch@gnu.org>.
36955
36956 2009-12-13  Bruno Haible  <bruno@clisp.org>
36957
36958         Move the malloc checking from module 'oset' to new module 'xoset'.
36959         * modules/xoset: New file.
36960         * lib/gl_xoset.h: New file.
36961         * lib/gl_xoset.c: New file.
36962         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36963         declarations.
36964         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36965         (struct gl_oset_implementation): Rename and change methods accordingly.
36966         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36967         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36968         'int'. Mark as __warn_unused_result__.
36969         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36970         gl_oset_create_empty.
36971         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36972         'int'.
36973         * lib/gl_array_oset.c: Don't include xalloc.h.
36974         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36975         malloc, not xmalloc.
36976         (grow): Change return type to 'int'. Don't call xalloc_die.
36977         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36978         to 'int'.
36979         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36980         'int'.
36981         (gl_array_oset_implementation): Update.
36982         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36983         gl_tree_create_empty.
36984         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36985         'int'.
36986         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36987         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36988         xmalloc.
36989         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36990         not xmalloc.
36991         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36992         xmalloc.
36993         (gl_avltree_oset_implementation): Update.
36994         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36995         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36996         xmalloc.
36997         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36998         not xmalloc.
36999         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37000         xmalloc.
37001         (gl_rbtree_oset_implementation): Update.
37002         * modules/array-oset (Depends-on): Remove xalloc.
37003         * modules/avltree-oset (Depends-on): Likewise.
37004         * modules/rbtree-oset (Depends-on): Likewise.
37005         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37006         * tests/test-avltree_oset.c: Likewise.
37007         * tests/test-rbtree_oset.c: Likewise.
37008         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37009         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37010         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37011         * NEWS: Mention the change.
37012
37013 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37014
37015         maint.mk: allow a project to override release-prep commands
37016         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37017         commands into a new rule.
37018         (release-prep): New rule.
37019         (release-prep-hook): New overridable variable.
37020
37021 2009-12-13  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37024
37025 2009-12-13  Jim Meyering  <meyering@redhat.com>
37026
37027         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37028         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37029
37030 2009-12-12  Bruno Haible  <bruno@clisp.org>
37031
37032         duplocale: Tweak.
37033         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37034
37035 2009-12-12  Karl Berry  <karl@gnu.org>
37036
37037         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37038
37039 2009-12-12  Bruno Haible  <bruno@clisp.org>
37040
37041         * m4/po.m4: Undo incorrect untabification.
37042
37043 2009-12-12  Bruno Haible  <bruno@clisp.org>
37044
37045         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37046         * modules/c-strtod (Depends-on): Add locale.
37047         * modules/c-strtold (Depends-on): Likewise.
37048
37049 2009-12-12  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37052
37053 2009-12-11  Eric Blake  <ebb9@byu.net>
37054
37055         setenv: relax requirement in light of POSIX ruling
37056         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37057         not NULL.
37058         * tests/test-setenv.c (main): Relax test.
37059         * tests/test-unsetenv.c (main): Likewise.
37060         * doc/posix-functions/setenv.texi (setenv): Document this.
37061         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37062
37063 2009-12-11  Bruno Haible  <bruno@clisp.org>
37064
37065         New module 'fd-safer-flag'.
37066         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37067         * lib/dup-safer.c (dup_safer_flag): Remove function.
37068         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37069         * lib/fd-safer.c (fd_safer_flag): Remove function.
37070         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37071         * modules/cloexec (configure.ac): Drop indicator macro.
37072         * modules/fd-safer-flag: New file.
37073         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37074         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37075         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37076
37077 2009-12-11  Bruno Haible  <bruno@clisp.org>
37078
37079         Tests for module 'nl_langinfo'.
37080         * modules/nl_langinfo-tests: New file.
37081         * tests/test-nl_langinfo.sh: New file.
37082         * tests/test-nl_langinfo.c: New file.
37083
37084         New module 'nl_langinfo'.
37085         * lib/nl_langinfo.c: New file.
37086         * m4/nl_langinfo.m4: New file.
37087         * modules/nl_langinfo: New file.
37088         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37089
37090 2009-12-11  Bruno Haible  <bruno@clisp.org>
37091
37092         Tests for module 'langinfo'.
37093         * modules/langinfo-tests: New file.
37094         * tests/test-langinfo.c: New file.
37095
37096         New module 'langinfo'.
37097         * lib/langinfo.in.h: New file.
37098         * m4/langinfo_h.m4: New file.
37099         * modules/langinfo: New file.
37100         * doc/posix-headers/langinfo.texi: Mention the new module.
37101
37102 2009-12-11  Bruno Haible  <bruno@clisp.org>
37103
37104         * lib/config.charset: Untabify.
37105
37106 2009-12-11  Bruno Haible  <bruno@clisp.org>
37107
37108         * modules/unistd-safer (configure.ac): Drop indicator macro.
37109
37110 2009-12-11  Bruno Haible  <bruno@clisp.org>
37111
37112         Move pipe2-safer code to its own file.
37113         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37114         * lib/pipe-safer.c (pipe2_safer): Remove function.
37115         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37116         (Makefile.am): Add it to lib_SOURCES.
37117
37118 2009-12-10  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37121
37122 2009-12-10  Bruno Haible  <bruno@clisp.org>
37123
37124         Declare which arguments expect non-NULL values, for GCC and clang.
37125         * build-aux/arg-nonnull.h: New file.
37126         * modules/arg-nonnull: New file.
37127         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37128         (inet_ntop, inet_pton): Use it.
37129         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37130         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37131         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37132         (open, openat): Use it.
37133         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37134         (fnmatch): Use it.
37135         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37136         (getopt, getopt_long, getopt_long_only): Use it.
37137         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37138         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37139         Use it.
37140         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37141         (iconv_open): Use it.
37142         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37143         (strtoimax, strtoumax): Use it.
37144         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37145         (duplocale): Use it.
37146         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37147         (frexp, frexpl): Use it.
37148         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37149         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37150         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37151         (tsearch, tfind, tdelete, twalk): Use it.
37152         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37153         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37154         sigpending): Use it.
37155         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37156         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37157         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37158         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37159         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37160         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37161         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37162         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37163         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37164         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37165         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37166         Use it.
37167         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37168         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37169         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37170         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37171         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37172         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37173         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37174         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37175         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37176         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37177         strtoull, unsetenv): Use it.
37178         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37179         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37180         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37181         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37182         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37183         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37184         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37185         (strcasecmp, strncasecmp): Use it.
37186         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37187         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37188         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37189         rpl_setsockopt): Use it.
37190         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37191         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37192         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37193         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37194         (gettimeofday): Use it.
37195         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37196         (times): Use it.
37197         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37198         (uname): Use it.
37199         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37200         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37201         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37202         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37203         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37204         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37205         unlinkat, write): Use it.
37206         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37207         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37208         * lib/argv-iter.h: Include arg-nonnull.h.
37209         (_ATTRIBUTE_NONNULL_): Remove macro.
37210         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37211         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37212         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37213         optimization.
37214         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37215         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37216         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37217         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37218         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37219         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37220         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37221         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37222         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37223         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37224         * modules/dirent (Depends-on): Add arg-nonnull.
37225         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37226         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37227         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37228         * modules/fnmatch (Depends-on): Add arg-nonnull.
37229         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37230         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37231         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37232         * modules/glob (Depends-on): Add arg-nonnull.
37233         (Makefile.am): Insert arg-nonnull.h into glob.h.
37234         * modules/iconv_open (Depends-on): Add arg-nonnull.
37235         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37236         * modules/inttypes (Depends-on): Add arg-nonnull.
37237         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37238         * modules/locale (Depends-on): Add arg-nonnull.
37239         (Makefile.am): Insert arg-nonnull.h into locale.h.
37240         * modules/math (Depends-on): Add arg-nonnull.
37241         (Makefile.am): Insert arg-nonnull.h into math.h.
37242         * modules/netdb (Depends-on): Add arg-nonnull.
37243         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37244         * modules/search (Depends-on): Add arg-nonnull.
37245         (Makefile.am): Insert arg-nonnull.h into search.h.
37246         * modules/signal (Depends-on): Add arg-nonnull.
37247         (Makefile.am): Insert arg-nonnull.h into signal.h.
37248         * modules/spawn (Depends-on): Add arg-nonnull.
37249         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37250         * modules/stdio (Depends-on): Add arg-nonnull.
37251         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37252         * modules/stdlib (Depends-on): Add arg-nonnull.
37253         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37254         * modules/string (Depends-on): Add arg-nonnull.
37255         (Makefile.am): Insert arg-nonnull.h into string.h.
37256         * modules/strings (Depends-on): Add arg-nonnull.
37257         (Makefile.am): Insert arg-nonnull.h into strings.h.
37258         * modules/sys_socket (Depends-on): Add arg-nonnull.
37259         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37260         * modules/sys_stat (Depends-on): Add arg-nonnull.
37261         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37262         * modules/sys_time (Depends-on): Add arg-nonnull.
37263         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37264         * modules/sys_times (Depends-on): Add arg-nonnull.
37265         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37266         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37267         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37268         * modules/time (Depends-on): Add arg-nonnull.
37269         (Makefile.am): Insert arg-nonnull.h into time.h.
37270         * modules/unistd (Depends-on): Add arg-nonnull.
37271         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37272         * modules/wchar (Depends-on): Add arg-nonnull.
37273         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37274         * modules/argv-iter (Depends-on): Add arg-nonnull.
37275         * tests/test-canonicalize.c (null_ptr): New function.
37276         (main): Use it.
37277         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37278         (main): Use it.
37279         * tests/test-memmem.c (null_ptr): New function.
37280         (main): Use it.
37281         Reported by Jim Meyering.
37282
37283 2009-12-10  Bruno Haible  <bruno@clisp.org>
37284
37285         Use spaces for indentation, not tabs.
37286         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37287         * m4/*.m4: Untabify.
37288         * build-aux/*.h: Untabify.
37289         * tests/**/*.[hc]: Untabify.
37290         * README: New section "Indent with spaces, not TABs", based on
37291         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37292         * NEWS: Mention the change.
37293
37294 2009-12-10  Bruno Haible  <bruno@clisp.org>
37295
37296         pty test: Fix link error.
37297         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37298         test_pty_LDADD.
37299
37300 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37301
37302         * modules/pty: New file.
37303         * modules/pty-tests: New file.
37304         * m4/pty.m4: New file.
37305         * tests/test-pty.c: New file.
37306         * doc/glibc-headers/pty.texi: Modified.
37307         * doc/glibc-functions/forkpty.texi: Modified.
37308         * doc/glibc-functions/openpty.texi: Modified.
37309
37310 2009-12-10  Bruno Haible  <bruno@clisp.org>
37311
37312         Avoid syntax error in C++ mode.
37313         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37314
37315 2009-12-10  Bruno Haible  <bruno@clisp.org>
37316
37317         Use sed with option -e.
37318         * gnulib-tool (func_version, func_emit_copyright_notice,
37319         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37320         option -e to sed.
37321         * modules/link-warning (Makefile.am): Likewise.
37322
37323 2009-12-10  Jim Meyering  <meyering@redhat.com>
37324
37325         mgetgroups: do not write bytes beyond end of malloc'd buffer
37326         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37327         username, we call getgroups with a one-element-shorter buffer,
37328         but still told it the length was original, max_n_groups.
37329
37330 2009-12-09  Eric Blake  <ebb9@byu.net>
37331
37332         cloexec: relax license
37333         * modules/cloexec (Maintainer): Add myself.
37334         (License): Use LGPL, not GPL.
37335
37336         link-warning: optimize generation
37337         * modules/link-warning (Makefile.am): Reduce process usage.
37338
37339 2009-12-09  Bruno Haible  <bruno@clisp.org>
37340
37341         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37342         workaround was added on 2009-11-17.
37343
37344 2009-12-09  Jim Meyering  <meyering@redhat.com>
37345             Bruno Haible  <bruno@clisp.org>
37346
37347         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37348         * modules/link-warning (Makefile.am): Make the comment-removing sed
37349         command more robust in the face of bootstrap-prepended comment lines.
37350
37351 2009-12-09  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37354         most one group.
37355
37356 2009-12-09  Simon Josefsson <simon@josefsson.org>
37357             Bruno Haible  <bruno@clisp.org>
37358
37359         * build-aux/link-warning.h: Add copyright notice.
37360         * modules/link-warning (Makefile.am): Generate link-warning.h from
37361         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37362         * NEWS: Mention change in link-warning module.
37363         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37364         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37365         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37366         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37367         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37368         * modules/math (Makefile.am): Add dependency to math.h.
37369         * modules/search (Makefile.am): Add dependency to search.h.
37370         * modules/signal (Makefile.am): Add dependency to signal.h.
37371         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37372         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37373         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37374         * modules/string (Makefile.am): Add dependency to string.h.
37375         * modules/strings (Makefile.am): Add dependency to strings.h.
37376         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37377         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37378         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37379         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37380         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37381         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37382         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37383         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37384         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37385
37386 2009-12-09  Bruno Haible  <bruno@clisp.org>
37387
37388         fchdir: Optimize away rpl_fstat when possible.
37389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37390         REPLACE_OPEN_DIRECTORY.
37391         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37392
37393 2009-12-09  Bruno Haible  <bruno@clisp.org>
37394
37395         * lib/fchdir.c: Update comment.
37396
37397 2009-12-09  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37400
37401 2009-12-08  Eric Blake  <ebb9@byu.net>
37402
37403         fchdir: avoid memory leak on re-registration.
37404         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37405
37406 2009-12-08  Jim Meyering  <meyering@redhat.com>
37407
37408         init.sh: avoid Solaris 10 /bin/sh portability problem
37409         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37410         sourced script:
37411           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37412           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37413           bar
37414         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37415         and two tests used that idiom.
37416         * tests/init.sh: Update suggested usage comments.
37417         (path_prepend_): New function, to be used in place
37418         of the --src-path=DIR option.
37419         (setup_): Move PATH-prepending code into path_prepend_.
37420         * tests/test-pread.sh: Adapt to new usage.
37421         * tests/test-xalloc-die.sh: Likewise.
37422
37423 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37424
37425         * doc/gnulib.texi (Glibc pty.h): Add.
37426         * doc/glibc-functions/forkpty.texi: Add.
37427         * doc/glibc-functions/openpty.texi: Add.
37428         Suggested by Bruno Haible.
37429
37430 2009-12-08  Eric Blake  <ebb9@byu.net>
37431
37432         fchdir: fix logic bugs
37433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37434         * tests/test-fchdir.c (main): Enhance test.
37435         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37436         is in use.
37437
37438         dup2: fix logic bugs
37439         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37440         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37441         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37442         exists.
37443         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37444
37445 2009-12-07  Eric Blake  <ebb9@byu.net>
37446
37447         unlink: fix m4 detection
37448         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37449
37450         unistd-safer: add unit test
37451         * modules/unistd-safer-tests: New file.
37452         * tests/test-dup-safer.c: Likewise.
37453         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37454         * tests/test-dup2.c (setmode): Likewise.
37455         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37456
37457         cloexec: preserve text vs. binary across dup_cloexec
37458         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37459         mode.
37460         * modules/dup2-tests (Depends-on): Add binary-io.
37461         * modules/cloexec-tests (Depends-on): Likewise.
37462         * tests/test-dup2.c (setmode, is_mode): New helpers.
37463         (main): Add tests that translation mode is preserved.
37464         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37465         Reported by Bruno Haible.
37466
37467         mgetgroups: reduce duplicate listings
37468         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37469         resulting array.
37470         * tests/test-chown.h (test_chown): Simplify client.
37471         * tests/test-lchown.h (test_lchown): Likewise.
37472
37473 2009-12-06  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37476         value.
37477
37478 2009-12-06  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/progname.c: Include stdio.h, stdlib.h.
37481         (set_program_name): Reject a NULL argument.
37482
37483 2009-12-05  Eric Blake  <ebb9@byu.net>
37484
37485         pipe2-safer: new module
37486         * modules/pipe2-safer: New file.
37487         * lib/unistd-safer.h (pipe2_safer): New prototype.
37488         * lib/unistd--.h (pipe2): New wrapper.
37489         * lib/pipe-safer.c (pipe2_safer): New function.
37490         * modules/pipe (Depends-on): Add pipe2-safer.
37491         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37492
37493         stdlib-safer: preserve cloexec flag for mkostemp[s]
37494         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37495         fd_safer_flag.
37496
37497         unistd-safer: allow preservation of cloexec status via flag
37498         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37499         prototypes.
37500         * lib/dup-safer.c (dup_safer_flag): New function.
37501         * lib/fd-safer.c (fd_safer_flag): Likewise.
37502         * modules/cloexec (configure.ac): Set witness.
37503
37504         test-dup2: enhance test
37505         * modules/dup2-tests (Depends-on): Add cloexec.
37506         * tests/test-dup2.c (main): Enhance test.
37507
37508         cloexec: add dup_cloexec
37509         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37510         header and comments.
37511         * lib/cloexec.c (set_cloexec_flag): Add comments.
37512         (dup_cloexec): New function, with mingw implementation borrowed
37513         from...
37514         * lib/w32spawn.h (dup_noinherit): ...here.
37515         * modules/execute (Depends-on): Add cloexec.
37516         * modules/pipe (Depends-on): Likewise.
37517         * modules/cloexec (Depends-on): Add dup2.
37518         * modules/cloexec-tests (Files): New file.
37519         * tests/test-cloexec.c: Likewise.
37520
37521         test-xalloc-die: fix test for mingw
37522         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37523         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37524         directory and .exe suffix off argv[0] output.
37525
37526         test-fseeko: fix test for mingw
37527         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37528         than undefining fseek, so test will pass on mingw.
37529
37530 2009-12-05  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/progname.h (set_program_name): Clarify specification.
37533         * lib/progname.c (set_program_name): Likewise.
37534         Reported by Jim Meyering.
37535
37536 2009-12-05  Jim Meyering  <meyering@redhat.com>
37537
37538         maint.mk: backslash-escape parens in default regexp
37539         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37540         backslash-escape the literal parentheses.
37541
37542         maint.mk: news-date-check: use grep -E
37543         * top/maint.mk (today): Define a Make variable, not a...
37544         (news-date-check): ...shell variable.
37545         (news-date-regexp): Use the Make variable.
37546         Use grep's -E option.  Change the failing diagnostic to mention
37547         the variable, $(news-date-regexp).
37548
37549 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37550
37551         maintainer-makefile: allow customization of NEWS entry format
37552         * top/maint.mk (news-date-regexp): New overridable variable.
37553         (news-date-check): Use it.
37554
37555 2009-12-04  Eric Blake  <ebb9@byu.net>
37556
37557         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37558         * lib/mgetgroups.h (xgetgroups): New prototype.
37559         * lib/mgetgroups.c (xgetgroups): New wrapper.
37560         (mgetgroups): Handle ENOSYS.
37561         * modules/mgetgroups (Depends-on): Add realloc.
37562         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37563
37564         mgetgroups: avoid argument promotion issues with -1
37565         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37566         for invalid gid_t.
37567         * tests/test-chown.h (getegid, test_chown): Likewise.
37568         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37569
37570 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37571
37572         exclude: Fix header file problems.
37573         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37574
37575 2009-12-01  Jim Meyering  <meyering@redhat.com>
37576
37577         fts: fts_open: do not let an empty string cause immediate failure
37578         This is required in support of GNU rm, for which the command
37579         "rm A '' B" must process and remove both A and B, in spite of
37580         the empty string argument.
37581         * lib/fts.c (fts_open): Do not let the presence of an empty string
37582         cause fts_open to fail immediately.  Most fts-using tools must be
37583         able to process all arguments, in order, and can be expected to
37584         diagnose such arguments themselves.
37585
37586 2009-11-30  Eric Blake  <ebb9@byu.net>
37587
37588         utimens: fix compilation error
37589         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37590         Declare variable at right scope.
37591
37592 2009-11-29  Jim Meyering  <meyering@redhat.com>
37593
37594         bootstrap: handle perl-5.11's changed --version output
37595         * build-aux/bootstrap (get_version): Handle perl separately,
37596         since perl-5.11's --version output is different.
37597
37598 2009-11-28  Jim Meyering  <meyering@redhat.com>
37599
37600         userspec: depend on the inttostr module, too
37601         * modules/userspec (Depends-on): Add inttostr.
37602
37603         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37604         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37605         number of MAXUID when it evaluates to (uid_t) -1.
37606         Likewise for group ID.  Reported by Matt McCutchen in
37607         <http://savannah.gnu.org/bugs/?28113>
37608
37609         userspec: reformat to use spaces, not TABs
37610         * lib/userspec.c: Expand TABs to spaces.
37611         Add Emacs' "indent-tabs-mode: nil" hint.
37612
37613 2009-11-27  Eric Blake  <ebb9@byu.net>
37614
37615         getopt-gnu: flush out another BSD bug
37616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37617         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37618         flush out BSD bug.
37619         * tests/test-getopt.h (test_getopt): End lists with NULL.
37620         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37621         (test_getopt_long_posix): Enhance test.
37622         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37623         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37624         getopt-gnu.
37625         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37626         Likewise.
37627
37628 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37629
37630         * modules/idpriv-droptemp-tests (Notice): Fix text.
37631
37632 2009-11-27  Jim Meyering  <meyering@redhat.com>
37633
37634         test-xalloc-die: avoid spurious failure due to libtool argv difference
37635         In a libtool-enabled project, this test would fail due to a difference
37636         in the emitted program name, e.g.,
37637         -test-xalloc-die: memory exhausted
37638         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37639         Use program to avoid that.
37640         * modules/xalloc-die-tests (Depends-on): Add progname.
37641         * tests/test-xalloc-die.c: Include progname.h".
37642         (program_name): Remove decl.
37643         (main): Call set_program_name.
37644         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37645
37646 2009-11-26  Richard Jones  <rjones@redhat.com>
37647
37648         w32sock: leave win32 error in place.
37649         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37650
37651 2009-11-26  Eric Blake  <ebb9@byu.net>
37652
37653         init.sh: suggest to use skip_ and fail_ functions in comments
37654         * tests/init.sh: Add a sentence.
37655
37656 2009-11-25  Bruno Haible  <bruno@clisp.org>
37657
37658         init.sh: add documentation in comments
37659         * tests/init.sh: Add some developer and user documentation.
37660
37661 2009-11-26  Jim Meyering  <meyering@redhat.com>
37662
37663         init.sh: accommodate even those who specify bogus srcdir manually
37664         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37665         configure-time tests to be sanitized, so that there is no need to
37666         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37667         (with no double quotes) suffices.  However, since tests may be
37668         invoked manually, and since you may explicitly set srcdir to the
37669         name of a directory containing spaces, do quote its uses here.
37670         * tests/test-pread.sh: Likewise.
37671         Suggested by Bruno Haible.
37672
37673         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37674         * tests/test-pread.sh: Write no data into the pipe, because
37675         test-pread actually reads none.  This avoids a diagnostic,
37676         "bash: echo: write error: Broken pipe", that arises in the unusual
37677         event something is ignoring SIGPIPE, and might be interpreted
37678         as some sort of failure.  Reported by Bruno Haible.
37679
37680 2009-11-25  Jim Meyering  <meyering@redhat.com>
37681
37682         test-pread: cover failure with ESPIPE and EINVAL
37683         * tests/test-pread.c (main): Test for failure, too.
37684         * tests/test-pread.sh: Invoke with stdin on a pipe.
37685         Suggested by Eric Blake.
37686
37687         pread: improvement and fix
37688         * modules/pread (Depends-on): Depend on lseek, for portability to
37689         e.g., mingw.  Suggested by Eric Blake.
37690         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37691
37692         unistd.in.h: correct declaration of pread
37693         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37694         Reported by Richard W.M. Jones.
37695
37696         test-pread.sh: distribute the test script
37697         * modules/pread-tests (Files): Include test-pread.sh.
37698
37699         test-pread.sh: clean up
37700         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37701         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37702         That is unnecessary, since it's always ".".
37703         Suggestion from Eric Blake.
37704
37705         test-pread.sh: make executable
37706         * tests/test-pread.sh: Set executable bit.
37707         Reported by Eric Blake.
37708
37709         correct typo in test-pread.sh
37710         * tests/test-pread.sh: Add #! line.
37711
37712         test pread
37713         * tests/test-pread.c: New file.
37714         * tests/test-pread.sh: Likewise.
37715         * modules/pread-tests: Likewise.
37716
37717         pread: new module
37718         * modules/pread: New file.
37719         * lib/unistd.in.h (pread): Define/declare.
37720         * lib/pread.c (pread): New file.
37721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37722         * modules/unistd (Makefile.am): Substitute witnesses.
37723         * doc/posix-functions/pread.texi (pread): Update.
37724         * MODULES.html.sh: Add pread.
37725
37726 2009-11-25  Jim Meyering  <meyering@redhat.com>
37727
37728         tests/init.sh: new file to be used via most *.sh tests
37729         * tests/init.sh: New file.
37730
37731 2009-11-25  Eric Blake  <ebb9@byu.net>
37732
37733         utimens: work around older Linux failure with symlinks
37734         * lib/utimens.c (lutimensat_works_really): New variable.
37735         (fdutimens, lutimens): Use it to manage kernels that support
37736         nanosecond times on files, but not on symlinks.
37737         Reported by OndÅ™ej Vašík.
37738
37739         utimes: fix configure grammar
37740         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37741
37742 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37743
37744         regex: Fix fastmap for multibyte character ranges.
37745         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37746         characters when a multibyte character range is included.
37747
37748 2009-11-22  Andy Wingo  <wingo@pobox.com>
37749
37750         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37751         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37752
37753 2009-11-24  Bruno Haible  <bruno@clisp.org>
37754
37755         doc: Most *_l functions exist in MacOS X 10.5.
37756         * doc/posix-functions/duplocale.texi: Update platforms list.
37757         * doc/posix-functions/freelocale.texi: Likewise.
37758         * doc/posix-functions/newlocale.texi: Likewise.
37759         * doc/posix-functions/uselocale.texi: Likewise.
37760         * doc/posix-functions/isalnum_l.texi: Likewise.
37761         * doc/posix-functions/isalpha_l.texi: Likewise.
37762         * doc/posix-functions/isblank_l.texi: Likewise.
37763         * doc/posix-functions/iscntrl_l.texi: Likewise.
37764         * doc/posix-functions/isdigit_l.texi: Likewise.
37765         * doc/posix-functions/isgraph_l.texi: Likewise.
37766         * doc/posix-functions/islower_l.texi: Likewise.
37767         * doc/posix-functions/isprint_l.texi: Likewise.
37768         * doc/posix-functions/ispunct_l.texi: Likewise.
37769         * doc/posix-functions/isspace_l.texi: Likewise.
37770         * doc/posix-functions/isupper_l.texi: Likewise.
37771         * doc/posix-functions/iswalnum_l.texi: Likewise.
37772         * doc/posix-functions/iswalpha_l.texi: Likewise.
37773         * doc/posix-functions/iswblank_l.texi: Likewise.
37774         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37775         * doc/posix-functions/iswctype_l.texi: Likewise.
37776         * doc/posix-functions/iswdigit_l.texi: Likewise.
37777         * doc/posix-functions/iswgraph_l.texi: Likewise.
37778         * doc/posix-functions/iswlower_l.texi: Likewise.
37779         * doc/posix-functions/iswprint_l.texi: Likewise.
37780         * doc/posix-functions/iswpunct_l.texi: Likewise.
37781         * doc/posix-functions/iswspace_l.texi: Likewise.
37782         * doc/posix-functions/iswupper_l.texi: Likewise.
37783         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37784         * doc/posix-functions/isxdigit_l.texi: Likewise.
37785         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37786         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37787         * doc/posix-functions/strcoll_l.texi: Likewise.
37788         * doc/posix-functions/strfmon_l.texi: Likewise.
37789         * doc/posix-functions/strftime_l.texi: Likewise.
37790         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37791         * doc/posix-functions/strxfrm_l.texi: Likewise.
37792         * doc/posix-functions/tolower_l.texi: Likewise.
37793         * doc/posix-functions/toupper_l.texi: Likewise.
37794         * doc/posix-functions/towctrans_l.texi: Likewise.
37795         * doc/posix-functions/towlower_l.texi: Likewise.
37796         * doc/posix-functions/towupper_l.texi: Likewise.
37797         * doc/posix-functions/wcscoll_l.texi: Likewise.
37798         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37799         * doc/posix-functions/wctrans_l.texi: Likewise.
37800         * doc/posix-functions/wctype_l.texi: Likewise.
37801         * doc/glibc-functions/strptime_l.texi: Likewise.
37802         * doc/glibc-functions/strtod_l.texi: Likewise.
37803         * doc/glibc-functions/strtof_l.texi: Likewise.
37804         * doc/glibc-functions/strtol_l.texi: Likewise.
37805         * doc/glibc-functions/strtold_l.texi: Likewise.
37806         * doc/glibc-functions/strtoll_l.texi: Likewise.
37807         * doc/glibc-functions/strtoul_l.texi: Likewise.
37808         * doc/glibc-functions/strtoull_l.texi: Likewise.
37809         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37810         * doc/glibc-functions/wcstod_l.texi: Likewise.
37811         * doc/glibc-functions/wcstof_l.texi: Likewise.
37812         * doc/glibc-functions/wcstol_l.texi: Likewise.
37813         * doc/glibc-functions/wcstold_l.texi: Likewise.
37814         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37815         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37816         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37817
37818 2009-11-24  Bruno Haible  <bruno@clisp.org>
37819
37820         duplocale: Fix logic bug.
37821         * lib/duplocale.c: Don't include <langinfo.h>.
37822         (_NL_LOCALE_NAME): Remove macro.
37823         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37824         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37825
37826 2009-11-23  Jim Meyering  <meyering@redhat.com>
37827
37828         test-update-copyright: don't hard-code /usr/bin/perl
37829         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37830         perl to print the current year.  Gilles Espinasse reported that
37831         the replaced use of perl was hard-coded as /usr/bin/perl.
37832
37833 2009-11-23  Bruno Haible  <bruno@clisp.org>
37834
37835         duplocale: Add support for glibc 2.3.x.
37836         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37837
37838 2009-11-22  Bruno Haible  <bruno@clisp.org>
37839
37840         vasnprintf: Tiny optimization.
37841         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37842         MacOS X.
37843
37844 2009-11-22  Bruno Haible  <bruno@clisp.org>
37845
37846         Tests for module 'duplocale'.
37847         * modules/duplocale-tests: New file.
37848         * tests/test-duplocale.c: New file.
37849
37850         New module 'duplocale'.
37851         * m4/duplocale.m4: New file.
37852         * lib/locale.in.h (duplocale): New declaration.
37853         * lib/duplocale.c: New file.
37854         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37855         gl_LOCALE_H_DEFAULTS): New macros.
37856         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37857         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37858         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37859         REPLACE_DUPLOCALE.
37860         * modules/duplocale: New file.
37861         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37862
37863 2009-11-22  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/locale-tests (configure.ac): Test for newlocale function.
37866         * tests/test-locale.c: When the system has extended locale functions,
37867         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37868
37869         locale: Make locale_t available when possible.
37870         * lib/locale.in.h: Include <xlocale.h> when it exists.
37871         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37872         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37873         * modules/locale (Depends-on): Add extensions.
37874         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37875         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37876
37877 2009-11-22  Bruno Haible  <bruno@clisp.org>
37878
37879         Add comments.
37880         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37881         invocation.
37882         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37883         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37884         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37885
37886 2009-11-22  Bruno Haible  <bruno@clisp.org>
37887
37888         error: account for the possibility of freopen (stdout).
37889         * lib/error.c: Include <unistd.h>.
37890         (flush_stdout): New function, extracted from error and error_at_line.
37891         Determine stdout's fd dynamically.
37892         (error, error_at_line): Invoke flush_stdout.
37893         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37894         * modules/error (Depends-on): Add unistd.
37895
37896 2009-11-22  Bruno Haible  <bruno@clisp.org>
37897
37898         diffseq: Add comment.
37899         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37900
37901 2009-11-22  Jim Meyering  <meyering@redhat.com>
37902
37903         c-stack: avoid defining an unused static function
37904         * lib/c-stack.c (find_stack_direction): Do not define this function
37905         when it will not be used.
37906
37907         diffseq: avoid spurious gcc warnings
37908         * lib/diffseq.h (IF_LINT2): Define.
37909         (compareseq): Use it to initialize two members of "part".
37910         This avoids two used-uninitialized warnings.
37911
37912 2009-11-21  Jim Meyering  <meyering@redhat.com>
37913
37914         c-stack: avoid "ignoring return value of `write'" warning
37915         * lib/c-stack.c: Include "ignore-value.h".
37916         (die): Explicitly ignore each write return value.
37917         * modules/c-stack (Depends-on): Add ignore-value.
37918
37919 2009-11-21  Bruno Haible  <bruno@clisp.org>
37920
37921         diffseq: reduce scope of variable 'best'.
37922         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37923         variable, earlier used for two different purposes.
37924
37925 2009-11-21  Jim Meyering  <meyering@redhat.com>
37926
37927         diffseq: remove useless assignment to "best"
37928         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37929         assignment.  At that point "best" is already guaranteed to be zero.
37930
37931 2009-11-20  Eric Blake  <ebb9@byu.net>
37932
37933         build: mention ftp redirector in release announcements
37934         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37935         values that used to come from cfg.mk; mention FTP redirect URL.
37936         * build-aux/announce-gen: Mention the mirror list.
37937         Suggested by Karl Berry.
37938
37939         nanosleep: improve port to mingw
37940         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37942         LIB_NANOSLEEP, but only when needed.
37943         * modules/select (Link): Document LIBSOCKET.
37944         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37945         enough.
37946
37947         nanosleep: work around cygwin bug
37948         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37949         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37950         bug.
37951         (getnow): Delete, not needed.
37952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37953         LIB_CLOCK_GETTIME.
37954         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37955         clock-time, gettime.
37956         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37957         bug.
37958         * modules/nanosleep-tests: New test.
37959         * tests/test-nanosleep.c: New file.
37960
37961         sleep: work around cygwin bug
37962         * lib/sleep.c (rpl_sleep): Work around the bug.
37963         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37964         (gl_PREREQ_SLEEP): Delete unused macro.
37965         * modules/sleep (Depends-on): Add verify.
37966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37967         * modules/unistd (Makefile.am): Substitute witness.
37968         * lib/unistd.in.h (sleep): Update prototype.
37969         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37970         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37971         * modules/sleep-tests (Depends-on): Check for alarm.
37972
37973 2009-11-20  Jim Meyering  <meyering@redhat.com>
37974
37975         maint.mk: improve sc_prohibit_magic_number_exit
37976         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37977         so it does not match uses like System.exit(1).
37978         Add comments showing how to correct all offenders.
37979
37980 2009-11-19  Eric Blake  <ebb9@byu.net>
37981
37982         xalloc-die-tests: add missing library
37983         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37984
37985         test-xvasprintf: silence compiler warnings
37986         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37987         empty string from gcc.
37988
37989 2009-11-19  Jim Meyering  <meyering@redhat.com>
37990
37991         xfreopen: new module, from coreutils
37992         * modules/xfreopen: New module.
37993         * lib/xfreopen.c: New file.
37994         * lib/xfreopen.h: New file.
37995         * MODULES.html.sh (File stream based Input/Output"): Add it.
37996
37997 2009-11-19  Eric Blake  <ebb9@byu.net>
37998
37999         manywarnings: depend on warnings
38000         * modules/manywarnings (Depends-on): Add warnings.
38001
38002         build: avoid compiler warnings
38003         * lib/select.c (rpl_select): Delete unused variable.
38004         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38005
38006 2009-11-18  Eric Blake  <ebb9@byu.net>
38007
38008         tests: avoid false negative with --with-packager
38009         * tests/test-version-etc.sh: Discard packager information.
38010         * tests/test-argp-version-etc-1.sh: Likewise.
38011         Reported by Mike Frysinger.
38012
38013         utimens: fix regression on Solaris
38014         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38015         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38016         can only change fd timestamps via futimesat.  Instead, use an
38017         additional witness macro to avoid BSD bug.
38018         Reported by Jim Meyering.
38019
38020 2009-11-17  Eric Blake  <ebb9@byu.net>
38021
38022         usleep: use it to simplify tests
38023         * modules/stat-time-tests (Depends-on): Add usleep.
38024         (configure.ac): Drop usleep check.
38025         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38026         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38027         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38028         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38029         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38030         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38031         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38032         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38033         Likewise.
38034         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38035         * tests/test-lchown.h (nap): Likewise.
38036         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38037         * tests/test-stat-time.c (nap): Likewise.
38038         * tests/test-utimens-common.h (nap): Update comments.
38039
38040         usleep: new module
38041         * modules/usleep: New file.
38042         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38043         * lib/usleep.c (usleep): Likewise.
38044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38045         * modules/unistd (Makefile.am): Substitute witnesses.
38046         * lib/unistd.in.h (usleep): Add declaration.
38047         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38048         * MODULES.html.sh (Date and time): Likewise.
38049         * modules/usleep-tests (Depends-on): New test.
38050         * tests/test-usleep.c: New file.
38051
38052         chown: work around OpenBSD bug
38053         * lib/chown.c (rpl_chown): Work around the bug.
38054         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38055         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38056         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38057         * modules/chown (Depends-on): Add stdbool.
38058         * modules/lchown (Depends-on): Likewise.
38059         * doc/posix-functions/chown.texi (chown): Document the bug.
38060         * doc/posix-functions/lchown.texi (lchown): Likewise.
38061         * tests/test-lchown.h (test_chown): Relax test.
38062
38063         mkstemp: avoid conflict with C++ keyword template
38064         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38065         * lib/mkostemp.c (mkostemp): Likewise.
38066         * lib/mkostemps.c (mkostemps): Likewise.
38067         * lib/mkstemp.c (mkstemp): Likewise.
38068         * lib/mkstemps.c (mkstemps): Likewise.
38069
38070         xalloc-die-tests: optimize
38071         * tests/test-xalloc-die.sh: Reduce number of processes.
38072
38073 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38074
38075         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38076         patch from ludo@gnu.org (Ludovic Courtès).
38077
38078 2009-11-17  Jim Meyering  <meyering@redhat.com>
38079
38080         version-etc: use proper license string
38081         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38082         * modules/version-etc-fsf: Likewise.
38083
38084 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38085
38086         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38087         printed to stdout.  Deal with EOL differences.
38088
38089 2009-11-17  Eric Blake  <ebb9@byu.net>
38090
38091         unsetenv: work around Solaris bug
38092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38093         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38094         Reported by Jim Meyering.
38095
38096         vasnprintf: avoid compiler warnings
38097         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38098         variables.
38099         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38100
38101 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38102
38103         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38104         settings since xalloc-die is no longer the self test,
38105         xalloc-die.sh is.
38106
38107 2009-11-17  Jim Meyering  <meyering@redhat.com>
38108
38109         test-xalloc-die.sh: make the code agree with the commit log
38110         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38111         at the end, just in case you happen to have a test-xalloc-die
38112         program in some other PATH directory.
38113
38114         test-xalloc-die.sh: fix a portability bug
38115         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38116         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38117         Otherwise, argv[0] (as often seen in diagnostics) would be too
38118         system-dependent, sometimes with, and sometimes without the leading "./".
38119
38120         version-etc-fsf: relax license to LGPLv3+
38121         * modules/version-etc-fsf (License): Relax license.
38122
38123 2009-11-16  Eric Blake  <ebb9@byu.net>
38124
38125         xalloc-die-tests: avoid printing null pointer
38126         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38127         shell script.
38128         * tests/test-xalloc-die.c (program_name): Declare.
38129         * tests/test-xalloc-die.sh (tmpfiles): New file.
38130
38131         setenv, unsetenv: work around various bugs
38132         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38133         (setenv) [HAVE_SETENV]: Work around bugs.
38134         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38136         for bugs.
38137         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38138         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38140         * modules/stdlib (Makefile.am): Update substitutions.
38141         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38142         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38143         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38144         * modules/setenv-tests: New test.
38145         * modules/unsetenv-tests: Likewise.
38146         * tests/test-setenv.c: New file.
38147         * tests/test-unsetenv.c: Likewise.
38148
38149 2009-11-16  Jim Meyering  <meyering@redhat.com>
38150
38151         version-etc: relax license to LGPLv3+
38152         * modules/version-etc (License): Relax license.
38153
38154         better AC_REQUIRE expanded-before-required-warning avoidance
38155         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38156         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38157         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38158         which is no longer needed.
38159
38160 2009-11-16  Eric Blake  <ebb9@byu.net>
38161
38162         test-freading: clean up temporary file
38163         * tests/test-freading.c (main): Remove file on success, and use
38164         ASSERT more liberally.
38165         Reported by Jim Meyering.
38166
38167 2009-11-16  Jim Meyering  <meyering@redhat.com>
38168
38169         avoid new AC_REQUIRE expanded-before-required warnings
38170         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38171         merely using it.
38172         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38173         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38174
38175 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38176
38177         * tests/test-xalloc-die.c: New file.
38178         * modules/xalloc-die-tests: New file.
38179         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38180         XFAIL_TESTS so it can be appended by modules.
38181
38182 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38183
38184         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38185         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38186
38187 2009-11-14  Eric Blake  <ebb9@byu.net>
38188
38189         fnmatch: avoid compiler warning
38190         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38191         to silence compiler warning about mismatch signedness in ?:.
38192         Reported by Robert Millan.
38193
38194         intprops: add double-inclusion guard
38195         * lib/intprops.h: Allow idempotent includes.
38196         Suggested by Bruce Korb.
38197
38198         openat: detect Solaris fchownat bug
38199         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38200         penalizing glibc chownat when only lchownat is broken.
38201         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38202         trailing slash bugs.
38203         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38204         * modules/openat-tests (Files): Include more files.
38205         (Depends-on): Add mgetgroups, sleep, stat-time.
38206         (configure.ac): Add additional checks.
38207         (Makefile.am): Build new test.
38208         * tests/test-fchownat.c: New file.
38209
38210         lchown: detect Solaris and FreeBSD bug
38211         * lib/lchown.c (rpl_lchown): Work around bug.
38212         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38214         * modules/unistd (Makefile.am): Populate it.
38215         * lib/unistd.in.h (lchown): Update declaration.
38216         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38217         * modules/lchown-tests: New file.
38218         * tests/test-lchown.h (test_lchown): Likewise.
38219         * tests/test-lchown.c (main): Likewise.
38220
38221         chown: detect Solaris and FreeBSD bug
38222         * lib/chown.c (rpl_chown): Work around bug.
38223         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38224         (gl_PREREQ_CHOWN): Delete.
38225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38226         * modules/unistd (Makefile.am): Populate it.
38227         * lib/unistd.in.h (chown): Update declaration.
38228         * lib/lchown.c (chown): Update client.
38229         * modules/lchown (Depends-on): Add lstat.
38230         * doc/posix-functions/chown.texi (chown): Document the bug.
38231         * doc/posix-functions/getgroups.texi (getgroups): Document
38232         getgroups pitfall.
38233         * modules/chown-tests: New file.
38234         * tests/test-chown.h (test_chown): Likewise.
38235         * tests/test-chown.c (main): Likewise.
38236
38237 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38238
38239         gnulib-tool: correctly detect absence of m4 directories
38240         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38241
38242 2009-11-14  Jim Meyering  <meyering@redhat.com>
38243
38244         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38245         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38246
38247 2009-11-14  John W. Eaton  <jwe@gnu.org>
38248
38249         strftime.h: wrap funtion declaration in extern "C" block
38250         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38251
38252 2009-11-13  Eric Blake  <ebb9@byu.net>
38253
38254         getgroups: avoid compiler warning
38255         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38256
38257         getgroups: work around FreeBSD bug
38258         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38259         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38260         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38261         * tests/test-getgroups.c (main): Fix buffer overrun.
38262
38263         getgroups: avoid compilation failure
38264         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38265         * modules/getgroups (Depends-on): Add stdint.
38266
38267 2009-11-13  Jim Meyering  <meyering@redhat.com>
38268
38269         test-getgroups: avoid compilation failure
38270         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38271
38272 2009-11-13  Eric Blake  <ebb9@byu.net>
38273
38274         mgetgroups: new module, taken from coreutils
38275         * modules/mgetgroups: New file.
38276         * lib/mgetgroups.h: Likewise.
38277         * lib/mgetgroups.c (mgetgroups): Likewise.
38278         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38279         * MODULES.html.sh (Users and groups): Mention it.
38280
38281         getgroups: don't expose GETGROUPS_T to user
38282         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38283         an element at a time if GETGROUPS_T is wrong size.
38284         * lib/getugroups.h (getugroups): Change signature.
38285         * lib/unistd.in.h (getgroups): Likewise.
38286         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38287         signature needs fixing.
38288         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38289         AC_TYPE_GETGROUPS.
38290         * modules/group-member (Depends-on): Add getgroups.
38291         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38292         (group_member): Rely on getgroups replacement.
38293         * lib/getugroups.c (getugroups): Use gid_t.
38294         * tests/test-getgroups.c (main): Likewise.
38295         * NEWS: Mention the signature change.
38296         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38297         problem with signature.
38298         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38299         GETGROUPS_T is still useful for setgroups.
38300
38301         getgroups, getugroups: provide stubs for mingw
38302         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38303         * lib/getugroups.c (getugroups): Likewise.
38304         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38305         function.  Modernize replacement scheme.
38306         (gl_PREREQ_GETGROUPS): Delete.
38307         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38308         * modules/getgroups (configure.ac): Declare witness.
38309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38310         * modules/unistd (Depends-on): Substitute witness.
38311         * lib/unistd.in.h (getgroups): Declare replacement.
38312
38313         getgroups: avoid calling exit
38314         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38315         drop xalloc.
38316         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38317         dependencies.
38318         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38319         exiting, in the rare case of malloc failure.
38320
38321         getgroups: fix logic error
38322         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38323         has more than 20 groups.
38324         * modules/getgroups-tests: New test.
38325         * tests/test-getgroups.c: New file.
38326
38327 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38328
38329         * tests/test-base64.c: Improve.
38330
38331 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38332
38333         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38334         Blake <ebb9@byu.net>.
38335
38336 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38337
38338         * tests/test-xvasprintf.c: Add %s%s related checks.
38339
38340 2009-11-12  Eric Blake  <ebb9@byu.net>
38341
38342         version-etc: match standards.texi style
38343         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38344         and use <> only for URLs.
38345
38346 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38347
38348         fts: do not fail on a submount during traversal
38349         * lib/fts.c (fts_build): Read the stat info again after opening
38350         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38351         Original report at http://bugzilla.redhat.com/501848.
38352
38353 2009-11-12  Jim Meyering  <meyering@redhat.com>
38354
38355         bootstrap: sync from coreutils
38356         * build-aux/bootstrap (bootstrap_epilogue): New function.
38357         Use git_modules_config in one more place.  This make bootstrap's
38358         --gnulib-srcdir option more useful for testing.
38359
38360         bootstrap: generalize autoheader check
38361         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38362         AC_CONFIG_HEADERS.
38363
38364 2009-11-11  Eric Blake  <ebb9@byu.net>
38365
38366         mkfifoat: use new modules for Solaris and BSD bugs
38367         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38368         * lib/mkfifoat.c (mknodat): Split...
38369         * lib/mknodat.c (mknodat): ...into new file.
38370         * modules/mkfifoat (Files): Ship new file.
38371         (Depends-on): Add mkfifo, mknod.
38372         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38373         (Depends-on): Add symlink.
38374         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38375         redundant with test_mkfifo.h.
38376         (do_mkfifoat, do_mknodat): New helpers.
38377
38378         mknod: new module
38379         * modules/mknod: New file.
38380         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38381         * lib/mknod.c (mknod): Likewise.
38382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38383         defaults.
38384         * modules/sys_stat (Makefile.am): Substitute them.
38385         * lib/sys_stat.in.h (mknod): Declare replacement.
38386         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38387         Document it.
38388         * doc/posix-functions/mknod.texi (mknod): Likewise.
38389         * modules/mknod-tests: New test.
38390         * tests/test-mknod.c: Likewise.
38391
38392         mkfifo: new module
38393         * modules/mkfifo: New file.
38394         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38395         * lib/mkfifo.c (mkfifo): Likewise.
38396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38397         defaults.
38398         * modules/sys_stat (Makefile.am): Substitute them.
38399         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38400         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38401         Document it.
38402         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38403         * modules/mkfifo-tests: New test.
38404         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38405         from test-mkfifoat.c.
38406         * tests/test-mkfifo.c: New file.
38407
38408         readlink: detect FreeBSD bug
38409         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38410         slash on symlink.
38411         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38412         * tests/test-readlink.h (test_readlink): Enhance test.
38413
38414         symlink: detect FreeBSD bug
38415         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38416         slash on symlink.
38417         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38418         * tests/test-symlink.h (test_symlink): Enhance test.
38419
38420 2009-11-10  Eric Blake  <ebb9@byu.net>
38421
38422         link: detect FreeBSD bug
38423         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38424         symlink.
38425         * doc/posix-functions/link.texi (link): Document the bug.
38426         * tests/test-link.h (test_link): Enhance test.
38427         * tests/test-linkat.c (main): Update caller.
38428
38429         unlink, remove: detect FreeBSD bug
38430         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38431         slash on symlink.
38432         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38433         * doc/posix-functions/remove.texi (remove): Likewise.
38434         * tests/test-unlink.h (test_unlink): Enhance test.
38435         * tests/test-remove.c (main): Likewise.
38436
38437 2009-11-09  Eric Blake  <ebb9@byu.net>
38438
38439         rename: detect FreeBSD bug
38440         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38441         slash on symlink.
38442         * modules/renameat-tests (Depends-on): Add filenamecat.
38443         * tests/test-rename.h (test_rename): Allow one more errno.
38444         * tests/test-renameat.c (main): Likewise.
38445         * doc/posix-functions/rename.texi (rename): Document the bug.
38446
38447         open: detect FreeBSD bug
38448         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38449         symlink.
38450         * doc/posix-functions/open.texi (open): Document the bug.
38451         * doc/posix-functions/utimes.texi (utimes): Likewise.
38452         * tests/test-open.h (test_open): Add parameters, and test symlink
38453         handling.
38454         * tests/test-open.c (main): Adjust caller.
38455         * tests/test-fcntl-safer.c (main): Likewise.
38456         * modules/open-tests (Depends-on): Add stdbool, symlink.
38457         * modules/fcntl-safer-tests (Depends-on): Likewise.
38458         * tests/test-openat.c (main): Add test-open tests.
38459
38460         stat: detect FreeBSD bug
38461         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38462         symlink.
38463         * doc/posix-functions/stat.texi (stat): Document the bug.
38464         * tests/test-stat.h (test_stat_func): Add argument.
38465         * tests/test-stat.c (main): Adjust caller.
38466         * tests/test-fstatat.c (main): Likewise.
38467         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38468         Reported by Jim Meyering.
38469
38470 2009-11-09  James Youngman  <jay@gnu.org>
38471
38472         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38473         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38474
38475 2009-11-08  Jim Meyering  <meyering@redhat.com>
38476
38477         utimens: remove invalid futimesat call
38478         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38479         It used the file descriptor of the target file as the DIR_FD
38480         parameter and NULL as the file name.  That caused failure with
38481         errno == EFAULT on FreeBSD-8.0-rc2
38482
38483 2009-11-07  Eric Blake  <ebb9@byu.net>
38484
38485         fflush, freadseek: use fseeko, not fseek
38486         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38487         (clear_ungetc_buffer): Avoid potential problems on large files.
38488         * lib/freadseek.c (freadseek): Likewise.
38489         * modules/freadseek (Depends-on): Add fseeko.
38490         * modules/fseek (configure.ac): Set a witness.
38491         * tests/test-fflush.c (main): Use fseeko.
38492         * tests/test-fpurge.c (fseek): Disable link warning.
38493         * tests/test-freadable.c (fseek): Likewise.
38494         * tests/test-freading.c (fseek): Likewise.
38495         * tests/test-fseeko.c (fseek): Likewise.
38496         * tests/test-ftell.c (fseek): Likewise.
38497         * tests/test-ftello.c (fseek): Likewise.
38498         * tests/test-fwritable.c (fseek): Likewise.
38499         * tests/test-fwriting.c (fseek): Likewise.
38500
38501 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38502
38503         * modules/memchr (Depends-on): Drop getpagesize dependency.
38504
38505 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38506
38507         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38508         Reported by Ludovic Courtès.
38509         * build-aux/pmccabe2html: Improve example usage.
38510         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38511
38512 2009-11-06  Jim Meyering  <meyering@redhat.com>
38513
38514         do-release-commit-and-tag: New module.
38515         Automate the release-commit and tag process.
38516         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38517         * modules/do-release-commit-and-tag: New file.
38518         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38519
38520 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38521
38522         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38523         because test-select.c uses inet_pton.
38524
38525 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38526
38527         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38528         GETADDRINFO_LIB.  Bump serial number.
38529         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38530         Suggested by Eric Blake <ebb9@byu.net>.
38531
38532 2009-11-05  Eric Blake  <ebb9@byu.net>
38533
38534         strtod: detect darwin bug
38535         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38536         Reported by Leo Davis.
38537
38538         freopen-safer: new module
38539         * modules/freopen-safer: New module.
38540         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38541         * lib/freopen-safer.c (freopen_safer): New file.
38542         * lib/stdio-safer.h (freopen_safer): New declaration.
38543         * lib/stdio--.h (freopen): New override.
38544         * MODULES.html.sh (File stream based Input/Output): Mention it.
38545         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38546         freopen-safer module.
38547         * doc/posix-functions/stderr.texi (stderr): Likewise.
38548         * doc/posix-functions/stdin.texi (stdin): Likewise.
38549         * doc/posix-functions/stdout.texi (stdout): Likewise.
38550         * modules/freopen-safer-tests: New test.
38551         * tests/test-reopen-safer.c: New file.
38552
38553 2009-11-05  Jim Meyering  <meyering@redhat.com>
38554
38555         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38556         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38557
38558 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38559
38560         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38561
38562 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38563
38564         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38565
38566 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38567
38568         Fix link error.
38569         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38570         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38571
38572 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38573
38574         * tests/test-func.c: Also test value of __func__.
38575
38576 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38577
38578         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38579         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38580
38581 2009-11-05  Bruno Haible  <bruno@clisp.org>
38582
38583         Fix link error.
38584         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38585         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38586         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38587
38588 2009-11-05  Bruno Haible  <bruno@clisp.org>
38589
38590         Tests for module 'inet_pton'.
38591         * modules/inet_pton-tests: New file.
38592         * tests/test-inet_pton.c: New file.
38593
38594 2009-11-05  Bruno Haible  <bruno@clisp.org>
38595
38596         Tests for module 'inet_ntop'.
38597         * modules/inet_ntop-tests: New file.
38598         * tests/test-inet_ntop.c: New file.
38599
38600 2009-11-04  Eric Blake  <ebb9@byu.net>
38601
38602         stdlib-safer: wrap all mkstemp variants
38603         * modules/mkostemp (configure.ac): Set witness.
38604         * modules/mkostemps (configure.ac): Likewise.
38605         * modules/mkstemps (configure.ac): Likewise.
38606         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38607         (mkstemps_safer): Wrap more functions.
38608         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38609         wrapping.
38610         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38611         (mkstemps_safer): Implement the wrappers.
38612
38613         mkstemps, mkostemps: new modules
38614         * modules/mkostemps: New module.
38615         * modules/mkstemps: Likewise.
38616         * lib/mkostemps.c (mkostemps): New file.
38617         * lib/mkstemps.c (mkstemps): Likewise.
38618         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38619         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38621         * modules/stdlib (Makefile.am): Substitute them.
38622         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38623         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38624         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38625         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38626         * MODULES.html.sh (File system functions): Mention them.
38627
38628         tempname: resync from glibc
38629         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38630         same values for __GT_FILE as glibc.  Abort even when assertions
38631         are disabled.
38632         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38633         match its value otherwise.  Allow idempotent inclusion.
38634         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38635         * lib/mkostemp.c (mkostemp): Likewise.
38636         * lib/mkstemp.c (mkstemp): Likewise.
38637         * lib/tmpfile.c (tmpfile): Likewise.
38638         * NEWS: Document this.
38639
38640         utimens: fix use of futimens on older Linux
38641         * lib/utimens.c (fdutimens): Use updated, rather than original,
38642         timespec to avoid bug in older Linux kernel.
38643         Reported by Simon Josefsson.
38644
38645 2009-11-04  Bruno Haible  <bruno@clisp.org>
38646
38647         Make num_processors more flexible and consistent.
38648         * lib/nproc.h (enum nproc_query): New type.
38649         (num_processors): Add a 'query' argument.
38650         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38651         (num_processors): Add a 'query' argument. Test the value of the
38652         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38653         mingw, count the number of CPUs available for the current process.
38654         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38655         Check for sched_getaffinity and sched_getaffinity_np.
38656         * modules/nproc (Depends-on): Add c-ctype, extensions.
38657         * NEWS: Mention the change.
38658
38659 2009-11-03  Bruno Haible  <bruno@clisp.org>
38660
38661         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38662
38663 2009-11-03  Jim Meyering  <meyering@redhat.com>
38664
38665         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38666         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38667         if it is defined.
38668
38669 2009-11-02  Eric Blake  <ebb9@byu.net>
38670
38671         mktime, timegm: share common declaration
38672         * lib/mktime-internal.h: New file.
38673         * lib/mktime.c: Use it rather than open-coding a declaration.
38674         * lib/timegm.c: Likewise.
38675         * modules/mktime (Files): Ship it.
38676         * modules/timegm (Files): Likewise.
38677         Suggested by Bruno Haible.
38678
38679         test-update-copyright: update test to match script changes
38680         * tests/test-update-copyright.sh: Avoid hard-coding perl
38681         location.  Don't update *.bak created by earlier runs.
38682
38683 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38684             Simon Josefsson  <simon@josefsson.org>
38685             Bruno Haible  <bruno@clisp.org>
38686
38687         Fix link error on Solaris 8.
38688         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38689         also in libnsl. Define also INET_PTON_LIB.
38690         * modules/inet_pton (Link): New section.
38691
38692 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38693             Bruno Haible  <bruno@clisp.org>
38694
38695         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38696         * modules/inet_ntop (Link): New section.
38697         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38698
38699 2009-11-02  Eric Blake  <ebb9@byu.net>
38700
38701         maint: avoid compiler warnings in m4 macros
38702         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38703         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38704
38705 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38706
38707         * m4/pmccabe2html.m4: Remove file.
38708         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38709         function.  Change maintainer.
38710         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38711         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38712         Courtès).
38713
38714 2009-10-31  Eric Blake  <ebb9@byu.net>
38715
38716         fseeko: fix m4 regression
38717         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38718         regression from 2009-10-27.
38719         Reported by Ralf Wildenhues.
38720
38721 2009-10-31  Jim Meyering  <meyering@redhat.com>
38722
38723         inttostr: aesthetics and improved (compile-time) safety
38724         Define inttype_is_signed rather than inttype_is_unsigned,
38725         since the sole use is via "#if inttype_is_signed".
38726         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38727         inttype_is_unsigned.
38728         * lib/offtostr.c (inttype_is_signed): Likewise.
38729         * lib/uinttostr.c (inttype_is_signed): Likewise.
38730         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38731         * lib/inttostr.c (inttostr): Use verify to cross-check the
38732         inttype_is_signed value and the signedness of the actual type.
38733         * modules/inttostr (Depends-on): Add verify.
38734
38735 2009-10-30  Eric Blake  <ebb9@byu.net>
38736
38737         build: avoid compiler warnings
38738         * lib/fchmodat.c (lchmod): Mark unused variables.
38739         * lib/getopt.c (_getopt_initialize): Likewise.
38740         * lib/mktime.c (__mktime_internal): Provide prototype.
38741         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38742         older gcc that do not understand #pragma GCC diagnostic.
38743         * lib/uinttostr.c (inttype_is_unsigned): Define.
38744         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38745
38746 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38747
38748         stat: fix compilation on AIX
38749         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38750         only see struct stat64.
38751
38752 2009-10-30  Eric Blake  <ebb9@byu.net>
38753
38754         exclude: make more robust
38755         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38756         rather than masking a coding bug.
38757         Suggested by Bruno Haible.
38758
38759 2009-10-30  Jim Meyering  <meyering@redhat.com>
38760
38761         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38762         Rather than putting #!/usr/bin/perl on the first line,
38763         start with a variant of what's recommended by "man perlrun" that
38764         invokes the first "perl" program from your shell's search path.
38765         * build-aux/gitlog-to-changelog: Replace #!... as above.
38766         Add a "Local Variables" perl mode setting.
38767         Prompted by a patch from Ludovic Courtès.
38768         Improved by Eric Blake.
38769         * build-aux/useless-if-before-free: Likewise.
38770         * build-aux/announce-gen: Likewise.
38771         * build-aux/update-copyright: Likewise.
38772
38773 2009-10-29  Eric Blake  <ebb9@byu.net>
38774
38775         filenamecat-lgpl: adjust clients
38776         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38777         filenamecat.
38778         * modules/renameat (Depends-on): Likewise.
38779
38780         filenamecat: split into filenamecat-lgpl
38781         * modules/filenamecat-lgpl: New module.
38782         * modules/filenamecat (Files): Move library-safe files into
38783         filenamecat-lgpl.
38784         (Depends-on): Add filenamecat-lgpl.
38785         (configure.ac): Declare witness.
38786         * lib/filenamecat.h (file_name_concat): Only declare when using
38787         GPL module.
38788         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38789         Move...
38790         * lib/filenamecat-lgpl.c: ...into new file.
38791         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38792         (gl_FILE_NAME_CONCAT): Use it.
38793         * MODULES.html.sh (File system functions): Mention new module.
38794
38795         argp: avoid memory leak
38796         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38797         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38798         base_name, since the latter malloc()s and can call exit().
38799         Leak introduced 2006-07-03.
38800
38801         dirname-lgpl: adjust clients that don't need full dirname
38802         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38803         * modules/filenamecat (Depends-on): Likewise.
38804         * modules/linkat (Depends-on): Likewise.
38805         * modules/mkancesdirs (Depends-on): Likewise.
38806         * modules/mkdir (Depends-on): Likewise.
38807         * modules/openat (Depends-on): Likewise.
38808         * modules/savewd (Depends-on): Likewise.
38809         * modules/rename (Depends-on): Likewise.
38810         (License): Relax license.
38811         * modules/mkdir-tests (Depends-on): Drop progname.
38812         (Makefile.am): Delete unneeded LDADD.
38813         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38814
38815         dirname: split into dirname-lgpl
38816         * modules/dirname-lgpl: New module.
38817         * modules/dirname (Files): Move library-safe files into
38818         dirname-lgpl.
38819         (Depends-on): Add dirname-lgpl.
38820         (configure.ac): Declare witness.
38821         * modules/double-slash-root (License): Relax license.
38822         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38823         module.
38824         * lib/dirname.c (dir_len, mdir_name): Move...
38825         * lib/dirname-lgpl.c: ...into new file.
38826         * lib/basename.c (last_component, base_len): Move...
38827         * lib/basename-lgpl.c: ...into new file.
38828         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38829         (gl_DIRNAME): Use it.
38830         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38831         Mention new module.
38832         * modules/dirname-tests (Depends-on): Add progname.
38833         * tests/test-dirname.c (program_name): Delete.
38834
38835         mkdir: make safe for libraries
38836         * modules/mkdir (Depends-on): Drop xalloc.
38837         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38838         exit.
38839
38840         tests: avoid some compiler warnings
38841         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38842         literals.
38843         * tests/test-memchr.c (main): Avoid type mismatch.
38844         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38845         * tests/test-base64.c (main): Likewise.
38846         * tests/test-getdelim.c (main): Likewise.
38847         * tests/test-gethostname.c (main): Likewise.
38848         * tests/test-getline.c (main): Likewise.
38849         * tests/test-netinet_in.c (main): Likewise.
38850         * tests/test-select.c (open_server_socket, main): Likewise.
38851         * tests/test-select-stdin.c (main): Likewise.
38852         * tests/test-sockets.c (main): Likewise.
38853         * tests/test-strsignal.c (main): Likewise.
38854         * tests/test-sys_select.c (main): Likewise.
38855         * tests/test-sys_socket.c (main): Likewise.
38856         * tests/test-u64.c (main): Likewise.
38857         * tests/test-xfprintf-posix.c (main): Likewise.
38858         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38859
38860         sockets: avoid compiler warning
38861         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38862
38863         maint: detect usage(1) and other suspicious exits
38864         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38865
38866 2009-10-29  Jim Meyering  <meyering@redhat.com>
38867
38868         timespec: long-to-int truncation could make timespec_cmp malfunction
38869         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38870         a multiple of 2^32 nanoseconds as no difference.
38871
38872 2009-10-28  Jim Meyering  <meyering@redhat.com>
38873
38874         fprintftime: wrap macro code argument in "do {...} while(0)"
38875         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38876         cpy macro must be a statement that can be followed by a semicolon.
38877         Now that the else clause contains a comment and is hence longer
38878         than one line, I require curly braces.  That in turn requires
38879         that we wrap this code block in the standard do...while(0).
38880
38881         fprintftime: remove stray semicolon from previous change
38882         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38883
38884         fprintftime: avoid a warning about ignored fwrite return value
38885         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38886         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38887         that is unsafe.
38888         * modules/fprintftime (Depends-on): Add ignore-value.
38889
38890         exclude: avoid an unwarranted warning
38891         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38892
38893 2009-10-27  Eric Blake  <ebb9@byu.net>
38894
38895         fseek: avoid compilation failure when fflush is replaced
38896         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38897         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38898         module is in use.
38899         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38900         module is not in use; since REPLACE_FSEEK worked otherwise.
38901         (GNULIB_FTELLO): Likewise for ftell.
38902         Reported by Ian Beckwith and others.
38903
38904 2009-10-27  Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38907         Reported by Jim Meyering.
38908
38909 2009-10-27  Jim Meyering  <jim@meyering.net>
38910             Bruno Haible  <bruno@clisp.org>
38911
38912         Avoid warning despite dropping the return value of fwrite.
38913         * lib/unicodeio.c: Include ignore-value.h.
38914         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38915         * modules/unicodeio (Depends-on): Add ignore-value.
38916
38917 2009-10-26  Eric Blake  <ebb9@byu.net>
38918
38919         areadlinkat: fix fallback path
38920         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38921         pointer and zero.
38922
38923 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38924
38925         Use a better IO block size for modern systems
38926         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38927         * lib/md2.c: Likewise.
38928         * lib/md4.c: Likewise.
38929         * lib/md5.c: Likewise.
38930         * lib/sha1.c: Likewise.
38931         * lib/sha256.c: Likewise.
38932         * lib/sha512.c: Likewise.
38933
38934 2009-10-22  Eric Blake  <ebb9@byu.net>
38935
38936         tests: avoid several compiler warnings
38937         * tests/test-getcwd.c (main): Avoid buffer underflow.
38938         * tests/test-getdate.c (main): String literals are not safe with
38939         putenv, so use setenv.  Declare unused argument.
38940         * modules/getdate-tests (Depends-on): Add setenv.
38941         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38942         problems with string literals in char *.
38943         * tests/test-hash.c (main): Avoid shadowing declaration.
38944         (insert_new): Treat string literals as char const *.
38945         * tests/test-getopt.h (test_getopt): Likewise.
38946         (getopt_loop): Alter types to minimize casting elsewhere.
38947         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38948         (test_getopt_long_posix): Likewise.
38949         (do_getopt_long): Add wrapper to minimize casting.
38950         * tests/test-atexit.c (clear_temp_file): Use void.
38951         * tests/test-areadlink-with-size.c (main): Declare unused
38952         arguments.
38953         * tests/test-areadlink.c (main): Likewise.
38954         * tests/test-areadlinkat-with-size.c (main): Likewise.
38955         * tests/test-areadlinkat.c (main): Likewise.
38956         * tests/test-canonicalize-lgpl.c (main): Likewise.
38957         * tests/test-canonicalize.c (main): Likewise.
38958         * tests/test-dirent-safer.c (main): Likewise.
38959         * tests/test-dirname.c (main): Likewise.
38960         * tests/test-dup2.c (main): Likewise.
38961         * tests/test-fchdir.c (main): Likewise.
38962         * tests/test-fcntl-h.c (main): Likewise.
38963         * tests/test-fcntl-safer.c (main): Likewise.
38964         * tests/test-fdopendir.c (main): Likewise.
38965         * tests/test-fdutimensat.c (main): Likewise.
38966         * tests/test-fflush.c (main): Likewise.
38967         * tests/test-filenamecat.c (main): Likewise.
38968         * tests/test-filevercmp.c (main): Likewise.
38969         * tests/test-fopen-safer.c (main): Likewise.
38970         * tests/test-fopen.c (main): Likewise.
38971         * tests/test-fpending.c (main): Likewise.
38972         * tests/test-fpurge.c (main): Likewise.
38973         * tests/test-freading.c (main): Likewise.
38974         * tests/test-fstatat.c (main): Likewise.
38975         * tests/test-fsync.c (main): Likewise.
38976         * tests/test-futimens.c (main): Likewise.
38977         * tests/test-getndelim2.c (main): Likewise.
38978         * tests/test-gettimeofday.c (main): Likewise.
38979         * tests/test-getopt.c (main): Likewise.
38980         * tests/test-i-ring.c (main): Likewise.
38981         * tests/test-inttypes.c (main): Likewise.
38982         * tests/test-link.c (main): Likewise.
38983         * tests/test-lstat.c (main): Likewise.
38984         * tests/test-math.c (main): Likewise.
38985         * tests/test-md5.c (main): Likewise.
38986         * tests/test-memchr2.c (main): Likewise.
38987         * tests/test-memrchr.c (main): Likewise.
38988         * tests/test-mkdir.c (main): Likewise.
38989         * tests/test-mkdirat.c (main): Likewise.
38990         * tests/test-mkfifoat.c (main): Likewise.
38991         * tests/test-open.c (main): Likewise.
38992         * tests/test-openat-safer.c (main): Likewise.
38993         * tests/test-openat.c (main): Likewise.
38994         * tests/test-quotearg.c (main): Likewise.
38995         * tests/test-rawmemchr.c (main): Likewise.
38996         * tests/test-readlink.c (main): Likewise.
38997         * tests/test-remove.c (main): Likewise.
38998         * tests/test-rename.c (main): Likewise.
38999         * tests/test-renameat.c (main): Likewise.
39000         * tests/test-rmdir.c (main): Likewise.
39001         * tests/test-sha1.c (main): Likewise.
39002         * tests/test-signal.c (main): Likewise.
39003         * tests/test-sigaction.c (main): Likewise.
39004         * tests/test-stat.c (main): Likewise.
39005         * tests/test-stat-time.c (main): Likewise.
39006         * tests/test-stddef.c (main): Likewise.
39007         * tests/test-stdint.c (main): Likewise.
39008         * tests/test-stdio.c (main): Likewise.
39009         * tests/test-stdlib.c (main): Likewise.
39010         * tests/test-strchrnul.c (main): Likewise.
39011         * tests/test-strerror.c (main): Likewise.
39012         * tests/test-string.c (main): Likewise.
39013         * tests/test-strtod.c (main): Likewise.
39014         * tests/test-strverscmp.c (main): Likewise.
39015         * tests/test-symlink.c (main): Likewise.
39016         * tests/test-symlinkat.c (main): Likewise.
39017         * tests/test-sys_stat.c (main): Likewise.
39018         * tests/test-sys_time.c (main): Likewise.
39019         * tests/test-time.c (main): Likewise.
39020         * tests/test-unistd.c (main): Likewise.
39021         * tests/test-unlink.c (main): Likewise.
39022         * tests/test-unlinkat.c (main): Likewise.
39023         * tests/test-utimens.c (main): Likewise.
39024         * tests/test-utimensat.c (main): Likewise.
39025         * tests/test-version-etc.c (main): Likewise.
39026         * tests/test-wchar.c (main): Likewise.
39027         * tests/test-wctype.c (main): Likewise.
39028         * tests/test-xprintf-posix.c (main): Likewise.
39029         * tests/test-posixtm.c (main): Likewise.
39030         (STREQ): Delete unused macro.
39031         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39032         shadowed variables.
39033         * tests/test-memchr.c (main): Likewise.
39034
39035 2009-10-21  Eric Blake  <ebb9@byu.net>
39036
39037         areadlinkat: avoid failure on older glibc
39038         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39039         rather than mis-comparing 0 against FUNC_RESULT of char*.
39040
39041 2009-10-21  Bruno Haible  <bruno@clisp.org>
39042
39043         * modules/stpncpy (License): Relicense under LGPLv2+.
39044         Reported by David Lutterkort <lutter@redhat.com>.
39045
39046 2009-10-20  Eric Blake  <ebb9@byu.net>
39047
39048         utimensat: work around Solaris 9 bug
39049         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39050         has trailing slash bugs.
39051         * tests/test-lutimens.h (test_lutimens): Enhance test.
39052         * tests/test-utimens.h (test_utimens): Likewise.
39053         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39054         * doc/posix-functions/utimes.texi (utimes): Likewise.
39055         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39056         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39057         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39058         * doc/posix-functions/futimens.texi (futimens): Likewise.
39059
39060         fdutimensat: new module
39061         * modules/fdutimensat: New file.
39062         * lib/fdutimensat.c (fdutimensat): Likewise.
39063         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39064         * MODULES.html.sh (File system functions): Mention module.
39065         * modules/fdutimensat-tests: New test.
39066         * tests/test-fdutimensat.c: Likewise.
39067
39068         doc: regenerate INSTALL
39069         * doc/INSTALL: Reflect recent autoconf update.
39070         * doc/INSTALL.ISO: Likewise.
39071         * doc/INSTALL.UTF-8: Likewise.
39072
39073 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39074
39075         acl: warn if ACL support is not detected
39076         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39077
39078 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39079
39080         * lib/nproc.h: Add extern "C" block for C++.
39081
39082 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39083             Bruno Haible  <bruno@clisp.org>
39084
39085         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39086         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39087         * doc/posix-functions/isalpha.texi: Likewise.
39088         * doc/posix-functions/isblank.texi: Likewise.
39089         * doc/posix-functions/iscntrl.texi: Likewise.
39090         * doc/posix-functions/isdigit.texi: Likewise.
39091         * doc/posix-functions/isgraph.texi: Likewise.
39092         * doc/posix-functions/islower.texi: Likewise.
39093         * doc/posix-functions/isprint.texi: Likewise.
39094         * doc/posix-functions/ispunct.texi: Likewise.
39095         * doc/posix-functions/isspace.texi: Likewise.
39096         * doc/posix-functions/isupper.texi: Likewise.
39097         * doc/posix-functions/isxdigit.texi: Likewise.
39098
39099 2009-10-18  Bruno Haible  <bruno@clisp.org>
39100
39101         Tests for module 'isblank'.
39102         * modules/isblank-tests: New file.
39103         * tests/test-isblank.c: New file.
39104
39105         New module 'isblank'.
39106         * lib/isblank.c: New file.
39107         * m4/isblank.m4: New file.
39108         * modules/isblank: New file.
39109         * doc/posix-functions/isblank.texi: Mention the new module.
39110
39111 2009-10-18  Bruno Haible  <bruno@clisp.org>
39112
39113         New module 'ctype'.
39114         * lib/ctype.in.h: New file.
39115         * m4/ctype.m4: New file.
39116         * modules/ctype: New file.
39117         * doc/posix-headers/ctype.texi: Mention the new module.
39118
39119 2009-10-18  Jim Meyering  <meyering@redhat.com>
39120
39121         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39122         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39123         right after its initialization, rather than farther down.
39124         Keeping these in close proximity makes it easier to ensure
39125         that each such variable is initialized.  E.g.,
39126
39127             LIB_CLOCK_GETTIME=
39128             AC_SUBST([LIB_CLOCK_GETTIME])
39129
39130         This change also increments these serial numbers.
39131         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39132         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39134
39135 2009-10-18  Bruno Haible  <bruno@clisp.org>
39136
39137         Don't let environment variables perturb build.
39138         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39139         (gl_PREREQ_GETHRXTIME): ... not here.
39140
39141 2009-10-18  Bruno Haible  <bruno@clisp.org>
39142
39143         Avoid symlink attack in localcharset module.
39144         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39145         (O_NOFOLLOW): Define fallback.
39146         (get_charset_aliases): Don't open the file if it is a symbolic link.
39147         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39148         gl_FCNTL_H.
39149         (gl_FCNTL_H): Require it.
39150         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39151         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39152         Reported by Fergal Glynn <fglynn@veracode.com>.
39153
39154 2009-10-18  Bruno Haible  <bruno@clisp.org>
39155
39156         Implement nproc for mingw.
39157         * lib/nproc.c: Include <windows.h>
39158         (num_processors): On native Windows platforms, try GetSystemInfo.
39159
39160 2009-10-18  Bruno Haible  <bruno@clisp.org>
39161
39162         Implement nproc for IRIX.
39163         * lib/nproc.c: Include <sys/sysmp.h>.
39164         (num_processors): On IRIX systems, try sysmp.
39165         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39166
39167 2009-10-18  Bruno Haible  <bruno@clisp.org>
39168
39169         Implement nproc for HP-UX.
39170         * lib/nproc.c: Include <sys/pstat.h>
39171         (num_processors): On HP-UX systems, try pstat_getdynamic.
39172         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39173         pstat_getdynamic.
39174
39175 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39176             Bruno Haible  <bruno@clisp.org>
39177
39178         Implement nproc for NetBSD, OpenBSD.
39179         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39180         (ARRAY_SIZE): New macro.
39181         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39182         * m4/nproc.m4: New file.
39183         * modules/nproc (Files): Add m4/nproc.m4.
39184         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39185         (Makefile.am): Instead, augment lib_SOURCES.
39186
39187 2009-10-18  Bruno Haible  <bruno@clisp.org>
39188
39189         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39190         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39191         sys/param.h.
39192
39193 2009-10-16  Eric Blake  <ebb9@byu.net>
39194
39195         utimensat: new module
39196         * modules/utimensat: New file.
39197         * lib/utimensat.c (utimensat): Likewise.
39198         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39199         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39200         so we can work around Linux bugs.
39201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39202         * modules/sys_stat (Makefile.am): Substitute them.
39203         * lib/sys_stat.in.h (utimensat): Declare it.
39204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39206         * modules/utimensat-tests: New test.
39207         * tests/test-utimensat.c: Likewise.
39208
39209         utimens: let lutimens work on non-symlinks
39210         * lib/utimens.c (lutimens): Fall back to utimens rather than
39211         failing with ENOSYS, when file is not a symlink.
39212         (utimens): Reduce redirection.
39213         * tests/test-lutimens.h (test_lutimens): Update test to cover
39214         non-symlinks.
39215         * tests/test-utimens.h (test_utimens): Update test to cover
39216         symlinks.
39217         * tests/test-utimens.c (main): Update caller.
39218
39219         utimens: cache whether utimensat syscall works
39220         * lib/utimens.c (utimensat_works_really): New cache variable.
39221         (fdutimens, lutimens): Use it to avoid failing syscall.
39222
39223         test-stat-time, test-utimens: improve portability
39224         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39225         ext4 on alpha, and for cygwin.
39226         * tests/test-utimens-common.h: New file.
39227         (nap): Factor delays into single function.
39228         * tests/test-lutimens.h (test_lutimens): Use new header.
39229         * tests/test-futimens.h (test_futimens): Likewise.
39230         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39231         timestamps to occur from same machine, as was done previously for
39232         test_utimens.
39233         * modules/utimens-tests (Files): Ship new file.
39234         * modules/futimens-tests (Files): Likewise.
39235         Reported in part by Jim Meyering.
39236
39237         sys_stat: sort replacement declarations
39238         * lib/sys_stat.in.h: Sort declarations.
39239         * lib/futimens.c (futimens): Fix typo.
39240
39241 2009-10-15  Jim Meyering  <meyering@redhat.com>
39242
39243         don't let environment settings perturb build
39244         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39245         could cause a configure-time and/or build-time malfunction.
39246         Typically, a configure-time function-in-library test is performed
39247         via code like this:
39248
39249           LIB_VAR=
39250           AC_SUBST([LIB_VAR])
39251           prefix_saved_LIBS=$LIBS
39252             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39253                        [test "$ac_cv_search_FUNC" = "none required" ||
39254                         LIB_VAR=$ac_cv_search_FUNC])
39255           LIBS=$prefix_saved_LIBS
39256
39257         However, in each of the files affected by this change, the LIB_VAR=
39258         initialization was omitted.  Thus, when set in the environment, its
39259         value would propagate into generated Makefiles when FUNC is not found
39260         in LIB_NAME.
39261         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39262         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39264
39265 2009-10-14  Eric Blake  <ebb9@byu.net>
39266
39267         fchdir: avoid infinite recursion in mingw
39268         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39269         recursing.
39270
39271         test-stat-time: port to mingw
39272         * tests/test-stat-time.c (force_unlink): Return a value.
39273         (test_ctime) [W32]: Fix compilation error.
39274         (nap): Don't call usleep with too large an argument.  Use
39275         force_unlink.
39276         * doc/pastposix-functions/usleep.texi (usleep): Document the
39277         portability issue.
39278
39279 2009-10-13  Jim Meyering  <meyering@redhat.com>
39280
39281         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39282         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39283         * modules/pipe-filter-ii: Likewise.
39284         * modules/sys_socket-tests: Likewise.
39285         * modules/tsearch-tests: Likewise.
39286         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39287         (check): Depend on it.
39288
39289 2009-10-12  Eric Blake  <ebb9@byu.net>
39290
39291         utimens-tests: port to NFS file systems
39292         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39293         comparisons to avoid spurious failures from timestamp drift
39294         between NFS machines.
39295
39296 2009-10-12  Eric Blake  <ebb9@byu.net>
39297
39298         stat-time-tests: minor cleanups
39299         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39300         * tests/test-stat-time.c (nap): Separate assignment from call.
39301         Suggested by Paolo Bonzini and Bruno Haible.
39302
39303         sys_stat: guarantee struct timespec
39304         * lib/sys_stat.in.h (includes): Always include <time.h>
39305         * modules/sys_stat (Depends-on): Add time.
39306         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39307         mode_t permission values.
39308         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39309         get at subsecond timestamps.
39310
39311 2009-10-10  Eric Blake  <ebb9@byu.net>
39312
39313         futimens: new module
39314         * modules/futimens: New file.
39315         * lib/futimens.c (futimens): Likewise.
39316         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39317         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39318         we can work around Linux bugs.
39319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39320         * modules/sys_stat (Makefile.am): Substitute them.
39321         * lib/sys_stat.in.h (futimens): Declare it.
39322         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39323         * doc/posix-functions/futimens.texi (futimens): Likewise.
39324         * modules/futimens-tests: New test.
39325         * tests/test-futimens.c: Likewise.
39326
39327         utimens: introduce fdutimens
39328         * lib/utimens.h (fdutimens): New prototype.
39329         * lib/utimens.c (gl_futimens): Move guts...
39330         (fdutimens): ...to new interface.
39331         * tests/test-utimens.c (do_fdutimens): Use it.
39332
39333         utimens: add UTIME_NOW and UTIME_OMIT support
39334         * lib/utimens.c (validate_timespec, update_timespec): New helper
39335         functions.
39336         (gl_futimens, lutimens): Use them.
39337         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39338         stdbool, sys_stat.
39339         (Link): Mention resulting library dependency.
39340         * modules/utimecmp (Link): Likewise.
39341         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39342         (Makefile.am): Pick up library dependency.
39343         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39344         definition.
39345         * tests/test-sys_stat.c: Test the definitions.
39346         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39347         * NEWS: Document library dependency.
39348
39349         utimecmp: support symlink timestamps
39350         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39351         hashing when possible.  Use pathconf when available.
39352         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39353         * modules/utimecmp (Depends-on): Add lstat.
39354
39355         utimens: add lutimens interface
39356         * lib/utimens.c (lutimens): New function.
39357         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39358         * lib/utimens.h (lutimens): Declare new interface.
39359         * tests/test-utimens.c (main): Enhance test.
39360         * tests/test-lutimens.h (test_lutimens): New file.
39361         * modules/utimens-tests (Files): Distribute it.
39362         (Depends-on): Add symlink.
39363         (configure.ac): Check for usleep.
39364
39365         utimens: validate futimens usage
39366         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39367         fewer syscalls on failure later on.  Avoid compiler warning on
39368         mingw.
39369         * modules/utimens (Depends-on): Add dup2.
39370
39371         utimens: add test
39372         * modules/utimens-tests: New test.
39373         * tests/test-utimens.h: New file.
39374         * tests/test-futimens.h: Likewise.
39375         * tests/test-utimens.c: Likewise.
39376
39377         doc: mention timestamp portability issues
39378         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39379         instead.
39380         * doc/posix-functions/utime.texi (utime): Likewise.
39381         * doc/posix-functions/utimes.texi (utimes): Likewise.
39382         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39383         instead.
39384         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39385         module.
39386         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39387         Mention weakness with symlink timestamps.
39388         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39389         to utimensat/futimens instead.
39390         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39391
39392         test-dup2: enhance test
39393         * tests/test-dup2.c (main): Also check AT_FDCWD.
39394
39395         test-stat-time: avoid more spurious failures
39396         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39397         xfs; and avoid race if the two timestamps cross quantization edge.
39398
39399         relocatable: prefer 'file system' over 'filesystem'
39400         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39401         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39402         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39403         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39404         * lib/relocatable.c (compute_curr_prefix): Likewise.
39405
39406 2009-10-10  Jim Meyering  <meyering@redhat.com>
39407
39408         stat-time-tests: check for the usleep function
39409         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39410
39411 2009-10-10  Bruno Haible  <bruno@clisp.org>
39412
39413         * modules/xnanosleep: Put the Link section after the Include section.
39414
39415 2009-10-09  Eric Blake  <ebb9@byu.net>
39416
39417         dup2: work around FreeBSD 6.1 bug
39418         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39419         * doc/posix-functions/dup2.texi (dup2): Document it.
39420         Reported by Nelson H. F. Beebe and Jim Meyering.
39421
39422         test-stat-time: port to buggy NFS clients
39423         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39424         (test_ctime): Also skip test if mtime and ctime are skewed.
39425
39426         maint: prefer 'file system' over 'filesystem'
39427         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39428         * doc/posix-functions/lstat.texi (lstat): Likewise.
39429         * lib/file-has-acl.c (file_has_acl): Likewise.
39430         * lib/fwriteerror.c [TEST]: Likewise.
39431         * tests/test-areadlink.h (test_areadlink): Likewise.
39432         * tests/test-areadlinkat-with-size.c (main): Likewise.
39433         * tests/test-areadlinkat.c (main): Likewise.
39434         * tests/test-canonicalize-lgpl.c (main): Likewise.
39435         * tests/test-canonicalize.c (main): Likewise.
39436         * tests/test-fstatat.c (main): Likewise.
39437         * tests/test-linkat.c (main): Likewise.
39438         * tests/test-lstat.h (test_lstat_func): Likewise.
39439         * tests/test-mkdir.h (test_mkdir): Likewise.
39440         * tests/test-readlink.h (test_readlink): Likewise.
39441         * tests/test-remove.c (main): Likewise.
39442         * tests/test-rename.h (test_rename): Likewise.
39443         * tests/test-renameat.c (main): Likewise.
39444         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39445         * tests/test-symlink.h (test_symlink): Likewise.
39446         * tests/test-symlinkat.c (main): Likewise.
39447         * tests/test-unlink.h (test_unlink_func): Likewise.
39448         * tests/test-unlinkat.c (main): Likewise.
39449
39450         maint: make realtime library usage explicit
39451         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39452         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39453         * modules/settime (Link): Likewise.
39454         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39455
39456         test-stat-time: speed up execution
39457         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39458         warning on mingw.
39459         (nap): New helper function.
39460         (prepare_test): Use it to reduce sleep time.
39461         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39462         execution.
39463         * modules/stat-time-tests (configure.ac): Check for usleep.
39464
39465 2009-10-09  Jim Meyering  <meyering@redhat.com>
39466
39467         selinux-h: always use getfilecon wrappers
39468         * lib/getfilecon.c: New file.
39469         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39470         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39471         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39472         (fgetfilecon): Provide a stub.
39473         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39474         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39475         file unconditionally.
39476         When <selinux/selinux.h> is found, arrange to use wrappers.
39477         * modules/selinux-h (Files): Add getfilecon.c.
39478         (Makefile.am): Substitute include-next-related bits
39479         into the now-always-generated selinux/selinux.h file.
39480         * doc/glibc-functions/lgetfilecon.texi: New file.
39481         * doc/glibc-functions/fgetfilecon.texi: New file.
39482         * doc/glibc-functions/getfilecon.texi: New file.
39483         * doc/glibc-functions/getfilecon-desc.texi: New file.
39484         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39485         which to pull in the new files.
39486         * MODULES.html.sh (Misc): Add selinux-h.
39487
39488 2009-10-08  Jim Meyering  <meyering@redhat.com>
39489
39490         unistd: fix comment typo
39491         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39492
39493 2009-10-08  Eric Blake  <ebb9@byu.net>
39494
39495         areadlink: use SIZE_MAX consistently
39496         * modules/areadlink (Depends-on): Add stdint.
39497         * modules/areadlink-with-size (Depends-on): Likewise.
39498         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39499         gives NULL; drop sys/types, since unistd gives size_t; and add
39500         stdint for SIZE_MAX.
39501         (SIZE_MAX): Rely on headers.
39502         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39503         and add stdint.
39504         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39505         (SIZE_MAX): Likewise.
39506         (INITIAL_BUF_SIZE): Turn into enum.
39507         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39508
39509 2009-10-08  Jim Meyering  <meyering@redhat.com>
39510
39511         areadlinkat: avoid compilation failure
39512         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39513         Fix typo in comment.
39514
39515 2009-10-07  Eric Blake  <ebb9@byu.net>
39516
39517         areadlinkat-with-size: new module
39518         * modules/areadlinkat-with-size: New module.
39519         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39520         * lib/areadlink.h (areadlinkat): Declare it.
39521         * MODULES.html.sh (File system functions): Mention it.
39522         * modules/areadlinkat-with-size-tests: New test.
39523         * tests/test-areadlinkat-with-size.c: New file.
39524
39525         xreadlinkat: new module
39526         * modules/xreadlinkat: New module.
39527         * lib/xreadlinkat.c (xreadlinkat): New file.
39528         * lib/xreadlink.h (xreadlinkat): Declare it.
39529         * MODULES.html.sh (File system functions): Mention it.
39530
39531         areadlinkat: new module
39532         * lib/at-func.c (FUNC_FAIL): New define.
39533         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39534         * modules/areadlinkat: New module.
39535         * lib/linkat.c (areadlinkat): Move...
39536         * lib/areadlinkat.c (areadlinkat): ...to new file.
39537         * lib/areadlink.h (areadlinkat): Declare it.
39538         * modules/linkat (Depends-on): Add areadlinkat.
39539         * MODULES.html.sh (File system functions): Mention it.
39540         * modules/areadlinkat-tests: New test.
39541         * tests/test-areadlinkat.c: New file.
39542
39543         areadlink, areadlink-with-size: add tests
39544         * modules/areadlink-tests: New test.
39545         * modules/areadlink-with-size-tests: Likewise.
39546         * tests/test-areadlink.h: New file.
39547         * tests/test-areadlink.c: Likewise.
39548         * tests/test-areadlink-with-size.c: Likewise.
39549
39550         maint: minor cleanups
39551         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39552         _UNUSED_PARAMETER_ instead.
39553         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39554         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39555         * modules/linkat-tests (Files): Distribute test-link.h.
39556
39557         openat, utimens: whitespace cleanup
39558         * lib/openat.c: Prefer space throughout, rather than mix of 8
39559         spaces vs. tabs.
39560         * lib/at-func.c: Likewise.
39561         * lib/utimens.c: Likewise.
39562
39563         openat: avoid using wrong fd
39564         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39565         working directory chooses same fd.
39566         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39567
39568         mkdir, mkdirat: fix cygwin 1.5.x bug
39569         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39570         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39571         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39572         bug.
39573         (gl_PREREQ_MKDIR): Delete unused macro.
39574         * modules/mkdir (Files): Track file rename.
39575         (configure.ac): Update macro name.
39576         * modules/openat (Depends-on): Add mkdir.
39577         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39578
39579         mkdir, mkdirat: add tests
39580         * modules/mkdir-tests: New test.
39581         * tests/test-mkdir.h: New file.
39582         * tests/test-mkdir.c: Likewise.
39583         * tests/test-mkdirat.c: Likewise.
39584         * modules/openat-tests (Files): Add new files.
39585         (Makefile.am): Run new test.
39586
39587 2009-10-06  Eric Blake  <ebb9@byu.net>
39588
39589         doc: tweak *at function documentation
39590         * doc/posix-functions/faccessat.texi (faccessat): Mention
39591         known issue with replacement.
39592         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39593         * doc/posix-functions/linkat.texi (linkat): Likewise.
39594         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39595         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39596         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39597         * doc/posix-functions/renameat.texi (renameat): Likewise.
39598         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39599
39600         openat: fix GNU/Hurd bug in unlinkat
39601         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39602         broken.
39603         * doc/posix-functions/unlink.texi (unlink): Document this.
39604         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39605
39606         fdopendir: fix GNU/Hurd bug
39607         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39608         allowing non-directory fds.
39609         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39611         * modules/dirent (Makefile.am): Substitute it.
39612         * lib/dirent.in.h (fdopendir): Declare replacement.
39613         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39614         * tests/test-fdopendir.c (main): Test something other than
39615         /dev/null, since on Hurd that behaves like a directory.
39616
39617         test-symlink: port to GNU/Hurd
39618         * tests/test-symlink.h (test_symlink): Relax expected errno.
39619
39620         doc: tweak more cygwin information
39621         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39622         now compatible with glibc.
39623         * doc/posix-functions/getopt.texi (getopt): Likewise.
39624
39625         getopt-gnu: add another test
39626         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39627         guarantee behavior relied on by m4.
39628         * tests/test-getopt.c (main): Use it.
39629         * modules/getopt-posix-tests (Depends-on): Add setenv.
39630         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39631
39632         getopt: fix compilation on darwin
39633         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39634         include.
39635         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39636         Reported by Ludovic Courtès.
39637
39638 2009-10-06  Bruno Haible  <bruno@clisp.org>
39639
39640         * modules/size_max (Description): Discourage its use.
39641         Reported by Simon Josefsson.
39642
39643 2009-10-06  Jim Meyering  <meyering@redhat.com>
39644
39645         linkat: avoid compilation failure
39646         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39647
39648 2009-10-05  Eric Blake  <ebb9@byu.net>
39649
39650         linkat: support Linux 2.6.17
39651         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39652         linkat on Linux, but allow cache variable override.
39653         * lib/linkat.c (rpl_linkat): Define override.
39654         * modules/linkat (Depends-on): Add symlinkat.
39655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39656         * modules/unistd (Makefile.am): Substitute it.
39657         * lib/unistd.in.h (linkat): Declare replacement.
39658         Reported by Pádraig Brady.
39659
39660         quotearg: port test to systems with C.UTF-8 locale
39661         * tests/test-quotearg.c (struct result_strings): Add another
39662         member, differentiating between C.ASCII and C.UTF-8 handling.
39663         (compare_strings): Add parameter.
39664         (main): Adjust all callers.
39665
39666         getopt: avoid clash with FreeBSD _getopt_internal
39667         * lib/getopt.in.h (_getopt_internal): Override the name.
39668         * lib/getopt_int.h (includes): Pick up any overrides.
39669         Reported by Reuben Thomas.
39670
39671         hash: allow C89 compilation
39672         * lib/hash.c (check_tuning): Move declaration before statement.
39673         Reported by Reuben Thomas.
39674
39675 2009-10-05  Karl Berry  <karl@gnu.org>
39676
39677         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39678
39679 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39680             Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/uname.c (uname): Use a table-driven algorithm to compute
39683         Windows NT versions.
39684
39685 2009-10-04  Bruno Haible  <bruno@clisp.org>
39686
39687         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39688         program_invocation_short_name.
39689         * modules/progname (configure.ac): Test for presence of
39690         program_invocation_short_name.
39691         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39692
39693 2009-10-04  Bruno Haible  <bruno@clisp.org>
39694
39695         * lib/progname.c (set_program_name): Fix comment.
39696         Reported by Jim Meyering.
39697
39698 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39699             Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/uname.c: Include <string.h>.
39702         (uname): Do only one call to GetVersionEx in the common case.
39703
39704 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39705             Bruno Haible  <bruno@clisp.org>
39706
39707         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39708         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39709         (uname): Add support for Windows CE and various non-x86 CPU types.
39710
39711 2009-10-03  Bruno Haible  <bruno@clisp.org>
39712
39713         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39714         invocation to tests/configure.ac.
39715         Reported by Ian Beckwith <ianb@erislabs.net>.
39716
39717 2009-10-02  Eric Blake  <ebb9@byu.net>
39718
39719         fchdir: avoid compiler warning
39720         * lib/fchdir.c (canonicalize_file_name)
39721         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39722
39723         test-open: support mingw errno values
39724         * tests/test-open.h (test_open): Relax test.
39725         * tests/test-fopen.h (test_fopen): Likewise.
39726         * tests/test-openat-safer.c (main): Likewise.
39727
39728         open: fix opening directory on mingw
39729         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39730
39731         test-open: on GNU/Hurd, /dev/null is a directory
39732         * tests/test-fopen.h (main): Rename...
39733         (test_fopen): ...to this.  Use a guaranteed non-directory when
39734         confirming open behavior on trailing slash.
39735         * tests/test-openat-safer.c (main): Likewise.
39736         * tests/test-open.h (main): Likewise....
39737         (test_open): ...to this.
39738         * tests/test-fopen.c (main): Adjust caller.
39739         * tests/test-fopen-safer.c (main): Likewise.
39740         * tests/test-open.c (main): Likewise.
39741         * tests/test-fcntl-safer.c (main): Likewise.
39742         Reported by Samuel Thibault.
39743
39744         rename, fchdir: don't ignore chdir failure
39745         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39746         * lib/rename.c (rpl_rename) [W32]: Likewise.
39747         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39748         an empty destination directory if source cannot be renamed,
39749         although there is still possibility for failure.
39750         * doc/posix-functions/rename.texi (rename): Document the race.
39751         Reported by Jim Meyering.
39752
39753         maint: cleanup whitespace in recent commits
39754         * lib/rename.c (rpl_rename): Remove tabs.
39755         * tests/test-link.h (test_link): Likewise.
39756         * lib/fchdir.c (get_name): Likewise.
39757         Reported by Jim Meyering.
39758
39759 2009-10-02  Ben Pfaff  <blp@gnu.org>
39760
39761         relocatable-prog-wrapper: Add missing dependency on
39762         double-slash-root.
39763         * modules/relocatable-prog-wrapper: Add dependency.
39764         Reported by Ian Beckwith <ianb@erislabs.net>.
39765
39766 2009-10-02  Eric Blake  <ebb9@byu.net>
39767
39768         renameat: fix Solaris bugs
39769         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39770         needed fixing.
39771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39772         * modules/stdio (Makefile.am): Substitute it.
39773         * lib/stdio.in.h (renameat): Declare replacement.
39774         * lib/renameat.c (rpl_renameat): Implement fix.
39775
39776         renameat: new module
39777         * modules/renameat: New file.
39778         * lib/renameat.c (renameat): Likewise.
39779         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39781         * modules/stdio (Makefile.am): Substitute them.
39782         * lib/stdio.in.h (renameat): Declare it.
39783         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39784         * doc/posix-functions/renameat.texi (renameat): Likewise.
39785         * modules/renameat-tests: New test.
39786         * tests/test-renameat.c: Likewise.
39787
39788         rename: fix mingw bugs
39789         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39790         directory overwrite bugs.
39791
39792         rename: fix another cygwin 1.5 bug
39793         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39794         checks.
39795         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39796         unnecessary cygwin workarounds.  Also work around bug with moving
39797         full directory onto an empty one.
39798         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39799
39800         rename-dest-slash: merge into rename module
39801         * modules/rename-dest-slash (Status): Mark obsolete.
39802         (Depends-on): Add rename.
39803         (Files): Let rename do it all.
39804         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39805         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39806         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39807         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39808         * lib/rename.c (rpl_rename): Update comments.
39809
39810         rename: fix cygwin 1.5.x bugs
39811         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39812         * lib/rename.c (rpl_rename): Work around them.
39813         * modules/rename (Depends-on): Add same-inode.
39814
39815         rename: fix Solaris 10 bug
39816         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39817         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39818         was the only bug.
39819
39820         rename: fix Solaris 9 bug
39821         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39822         on non-directory.  Avoid calling exit.
39823         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39824         strdup.
39825         * modules/rename-tests (Depends-on): Drop lstat.
39826         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39827         (gl_PREREQ_RENAME): Delete unused macro.
39828
39829         rename-dest-slash: fix NetBSD bug
39830         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39831         links.
39832         * modules/rename-dest-slash (Depends-on): Add same-inode.
39833
39834         rename-tests: new test, exposes several platform bugs
39835         * modules/rename-tests: New file.
39836         * tests/test-rename.h: Likewise.
39837         * tests/test-rename.c: Likewise.
39838         * doc/posix-functions/rename.texi (rename): Improve documentation,
39839         including bugs that will eventually be fixed in gnulib.
39840
39841 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39842
39843         * lib/uname.c: Include <stdlib.h>
39844         (uname): Assume version info is available.
39845
39846 2009-10-02  Jim Meyering  <meyering@redhat.com>
39847
39848         gnu-web-doc-update: correct --help output
39849         * build-aux/gnu-web-doc-update: Make --help output relevant.
39850
39851         gnu-web-doc-update: add standard options
39852         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39853
39854         gnu-web-doc-update: New module.
39855         Use this script to automatically update the on-line web documentation
39856         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39857         * modules/gnu-web-doc-update: New file, from coreutils.
39858         * build-aux/gnu-web-doc-update: New script.
39859
39860 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39861
39862         link: LoadLibrary is not needed.
39863         * lib/link.c: Use GetModuleHandle.
39864
39865 2009-10-01  Eric Blake  <ebb9@byu.net>
39866
39867         getopt: bump serial number
39868         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39869         change.
39870
39871         tests: tighten link, rmdir, and remove tests
39872         * tests/test-link.h (includes): No need to use <config.h> here.
39873         Clean up if directory hard link was created, otherwise test for
39874         trailing '.'.
39875         * tests/test-linkat.c (main): Simplify.
39876         * tests/test-remove.c (main): Enhance test for trailing '.'.
39877         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39878
39879 2009-10-01  Jim Meyering  <meyering@redhat.com>
39880
39881         maint.mk: requiring "make major" was annoying, for a "minor" release.
39882         What is intended is "stable", to contrast with alpha and beta,
39883         so require "make stable", not "make major".
39884         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39885         (get_tool_versions): Likewise.
39886         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39887
39888 2009-09-30  Ben Pfaff  <blp@gnu.org>
39889
39890         Fix broken build of replacement for Windows tmpfile().
39891         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39892         flags argument added along with the 'mkostemp' module.
39893
39894 2009-09-28  Bruno Haible  <bruno@clisp.org>
39895
39896         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39897         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39898         to 'remove_elt'.
39899         (gl_list_remove): Update.
39900         * lib/gl_list.c (gl_list_remove): Update.
39901         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39902         to 'remove_elt'.
39903         (gl_oset_remove): Update.
39904         * lib/gl_list.c (gl_oset_remove): Update.
39905         Reported by Eric Blake.
39906
39907 2009-09-28  Eric Blake  <ebb9@byu.net>
39908
39909         doc: mention yet more cygwin 1.7 status
39910         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39911         cygwin.
39912         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39913         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39914
39915         argp: fix test failure
39916         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39917         that are not upper-case.  Pass correct range to tolower.
39918
39919 2009-09-27  Jim Meyering  <meyering@redhat.com>
39920
39921         test-yesno: work around sparc-dash here-document infelicity
39922         Without this change, the literal \177 byte in a here document
39923         would make dash 0.5.5.1-3 access uninitialized memory.
39924         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39925         Instead, use a marker, "@", and filter through tr to create the desired
39926         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39927
39928 2009-09-27  Bruno Haible  <bruno@clisp.org>
39929
39930         Disable untested support for new flavours of ACLs on AIX.
39931         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39932         progress.
39933         * lib/set-mode-acl.c (qset_acl): Likewise.
39934
39935 2008-12-07  Bruno Haible  <bruno@clisp.org>
39936
39937         Add support for new flavours of ACLs on AIX. (Untested.)
39938         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39939         (file_has_acl): Add support for newer AIX.
39940         * lib/set-mode-acl.c (qset_acl): Likewise.
39941         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39942         Rainer Tammer <tammer@tammer.net>.
39943
39944 2009-09-26  Eric Blake  <ebb9@byu.net>
39945
39946         argp: fix compilation of getopt
39947         * lib/getopt.in.h (includes): Use different guard than glibc.
39948         Reported by Sergey Poznyakoff.
39949
39950         doc: mention more cygwin 1.7 status
39951         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39952         bug.
39953         * doc/posix-functions/execl.texi (execl): Likewise.
39954         * doc/posix-functions/execle.texi (execle): Likewise.
39955         * doc/posix-functions/execlp.texi (execlp): Likewise.
39956         * doc/posix-functions/execv.texi (execv): Likewise.
39957         * doc/posix-functions/execve.texi (execve): Likewise.
39958         * doc/posix-functions/execvp.texi (execvp): Likewise.
39959         * doc/glibc-functions/canonicalize_file_name.texi
39960         (canonicalize_file_name): Cygwin 1.7 now provides this.
39961         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39962         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39963         on AT_SYMLINK_NOFOLLOW.
39964
39965 2009-09-24  Eric Blake  <ebb9@byu.net>
39966
39967         test-linkat: make test more robust
39968         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39969
39970         getopt: fix inclusion guards for cygwin
39971         * modules/getopt-posix (Depends-on): Add include-next.
39972         (Makefile.am): Substitute more items in replacement header.
39973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39974         <getopt.h>.
39975         * lib/getopt.in.h (includes): Use split inclusion guard, and
39976         prefer <getopt.h> over include <unistd.h> when one is present.
39977         (option): Also override name of 'struct option'.
39978
39979         same-inode: revert prior change; it is not yet ready
39980         * NEWS: Undo mention of this change.
39981         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39982         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39983         * lib/cycle-check.c (cycle_check): Likewise.
39984         * lib/same.c (same_name): Likewise.
39985         * lib/at-func2.c (at_func2): Likewise.
39986
39987 2009-09-23  Eric Blake  <ebb9@byu.net>
39988
39989         linkat: new module
39990         * modules/linkat: New file.
39991         * lib/at-func2.c (at_func2): Likewise.
39992         * lib/linkat.c (linkat): Likewise.
39993         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39994         * lib/openat-priv.h (at_func2): Add declaration.
39995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39996         * modules/unistd (Makefile.am): Substitute them.
39997         * lib/unistd.in.h (linkat): Declare it.
39998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39999         * doc/posix-functions/linkat.texi (linkat): Likewise.
40000         * doc/posix-functions/link.texi (link): Tweak wording.
40001         * tests/test-link.c (main): Move guts...
40002         * tests/test-link.h (test_link): ...into new file.
40003         * modules/linkat-tests: New test.
40004         * tests/test-linkat.c: Likewise.
40005         * modules/link-tests (Files): Ship new file.
40006         (Depends-on): Add stdbool.
40007
40008         dirname: add library-safe mdir_name
40009         * lib/dirname.h (mdir_name): New prototype.
40010         * lib/dirname.c (dir_name): Move guts...
40011         (mdir_name): ...to new function that avoids xalloc_die.
40012
40013         fchdir: another mingw fix
40014         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40015         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40016         on mingw (where it has not yet been ported), and make it optional
40017         elsewhere.
40018         (_gl_register_fd): Use it.
40019
40020         same-inode: make SAME_INODE tri-state, to port to mingw
40021         * NEWS: Mention this change.
40022         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40023         st_ino always being 0.
40024         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40025         * lib/cycle-check.c (cycle_check): Likewise.
40026         * lib/same.c (same_name): Likewise.
40027
40028         lstat: avoid mingw compilation error
40029         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40030         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40031         lstat ourselves.
40032         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40033         was adequate.
40034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40035         the checks for lstat.
40036         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40037
40038         link: fix test failure on Solaris 9
40039         * lib/link.c (rpl_link): Don't assume link will catch bogus
40040         trailing slash on source.
40041
40042         test-symlinkat: enhance test
40043         * tests/test-readlink.c (main): Move guts...
40044         * tests/test-readlink.h (test_readlink): ...into new file.
40045         * tests/test-symlink.c (main): Move guts...
40046         * tests/test-symlink.h (test_symlink): ...into new file.
40047         * tests/test-symlinkat.c (main): Use new files for further
40048         coverage.
40049         (do_symlink, do_readlink): New helper functions.
40050         * modules/symlink-tests (Files): Ship new file.
40051         (Depends-on): Add stdbool.
40052         * modules/readlink-tests (Files): Ship new file.
40053         (Depends-on): Add stdbool.
40054         * modules/symlinkat-tests (Files): Use new files.
40055
40056 2009-09-23  Eric Blake  <ebb9@byu.net>
40057
40058         readlink: document portability issue with symlink length
40059         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40060         systems have bogus st_size on symlinks, and mention the
40061         areadlink-with-size module.
40062         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40063         * doc/posix-functions/readlink.texi (readlink): Mention the
40064         areadlink module, and ERANGE failure.
40065         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40066         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40067
40068         readlink: fix Solaris 9 bug with trailing slash
40069         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40070         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40071         * doc/posix-functions/readlink.texi (readlink): Document this.
40072         * modules/readlink-tests: New test.
40073         * tests/test-readlink.c: Likewise.
40074
40075         readlink: fix cygwin 1.5.x bug with return type
40076         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40077         * lib/unistd.in.h (readlink): Use ssize_t.
40078         * lib/readlink.c (readlink): Likewise.
40079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40080         * modules/unistd (Makefile.am): Substitute it.
40081         * lib/unistd.in.h (readlink): Declare replacement.
40082         * doc/posix-functions/readlink.texi (readlink): Document this.
40083
40084         symlink: use throughout gnulib
40085         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40086         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40087         symlink is not used.
40088         * modules/symlinkat (Depends-on): Add symlink.
40089         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40090         * modules/canonicalize-tests (Depends-on): Likewise.
40091         * modules/lstat-tests (Depends-on): Likewise.
40092         * modules/openat-tests (Depends-on): Likewise.
40093         * modules/remove-tests (Depends-on): Likewise.
40094         * modules/rmdir-tests (Depends-on): Likewise.
40095         * modules/unlink-tests (Depends-on): Likewise.
40096         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40097         * tests/test-canonicalize.c (symlink): Likewise.
40098         * tests/test-fstatat.c (symlink): Likewise.
40099         * tests/test-lstat.c (symlink): Likewise.
40100         * tests/test-remove.c (symlink): Likewise.
40101         * tests/test-rmdir.c (symlink): Likewise.
40102         * tests/test-unlink.c (symlink): Likewise.
40103         * tests/test-unlinkat.c (symlink): Likewise.
40104
40105         symlink: new module, for Solaris 9 bug
40106         * modules/symlink: New file.
40107         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40108         * lib/symlink.c: Likewise.
40109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40110         * modules/unistd (Makefile.am): Substitute them.
40111         * lib/unistd.in.h (symlink): Declare replacement.
40112         * MODULES.html.sh (File system functions): Mention it.
40113         * doc/posix-functions/symlink.texi (symlink): Likewise.
40114         * modules/symlink-tests: New test.
40115         * tests/test-symlink.c: Likewise.
40116
40117 2009-09-23  Bruno Haible  <bruno@clisp.org>
40118
40119         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40120         when needed.
40121         Test case: gnulib-tool --import --with-tests atexit inttypes.
40122         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40123
40124 2009-09-23  Bruno Haible  <bruno@clisp.org>
40125
40126         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40127         subcommand, not in a subshell.
40128
40129 2009-09-22  Eric Blake  <ebb9@byu.net>
40130
40131         unistd: sort replacement declarations
40132         * lib/unistd.in.h: Sort declarations.
40133
40134         open, openat: minor optimization
40135         * lib/open.c (open): If open succeeded, len is non-zero.
40136         * lib/openat.c (rpl_openat): Likewise.
40137
40138         link-follow: ensure correct result
40139         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40140         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40141         distinguish between possible failures.
40142
40143 2009-09-21  Eric Blake  <ebb9@byu.net>
40144
40145         fts: avoid compiler warning
40146         * lib/fts.c (dirent_inode_sort_may_be_useful)
40147         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40148
40149 2009-09-19  Bruno Haible  <bruno@clisp.org>
40150
40151         * lib/progreloc.c (canonicalize_file_name): New declaration.
40152
40153 2009-09-19  Eric Blake  <ebb9@byu.net>
40154
40155         link: fix quoting
40156         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40157
40158         openat: fix openat bugs on Solaris 9
40159         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40160         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40161         * modules/openat (Depends-on): Add open.
40162         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40163         * modules/fcntl-h (Makefile.am): Substitute it.
40164         * lib/fcntl.in.h (openat): Declare replacement.
40165         * doc/posix-functions/openat.texi (openat): Document this.
40166
40167         openat: move fstatat and unlinkat into correct files
40168         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40169         compiled.
40170         * lib/openat.c (fstatat, unlinkat): Move...
40171         * lib/fstatat.c (fstatat): ...into correct files.
40172         * lib/unlinkat.c (unlinkat): Likewise.
40173
40174         openat: fix unlinkat bugs on Solaris 9
40175         * lib/unlinkat.c (unlinkat): New file.
40176         * modules/openat (Depends-on): Add unlink.
40177         (Files): Distribute it.
40178         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40179         trailing slash behavior is broken.
40180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40181         * modules/unistd (Makefile.am): Substitute it.
40182         * lib/unistd.in.h (unlinkat): Declare replacement.
40183         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40184
40185         openat: fix fstatat bugs on Solaris 9
40186         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40187         stat.
40188         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40189
40190         test-unlinkat: enhance test, to expose Solaris 9 bug
40191         * tests/test-unlink.c (main): Factor guts...
40192         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40193         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40194         * tests/test-rmdir.c (main): Adjust caller.
40195         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40196         (unlinker): New helper function.
40197         (rmdirat): Enhance check.
40198         * modules/rmdir-tests (Depends-on): Add stdbool.
40199         * modules/unlink-tests (Depends-on): Likewise.
40200         (Files): Add test-unlink.h.
40201         * modules/openat-tests (Files): Likewise.
40202         (Depends-on): Add unlinkdir.
40203
40204         test-fstatat: new test, to expose Solaris 9 bugs
40205         * tests/test-stat.c (main): Factor guts...
40206         * tests/test-stat.h (test_stat_func): ...into new file.
40207         * tests/test-lstat.c (main): Factor guts...
40208         * tests/test-lstat.h (test_lstat_func): ...into new file.
40209         * tests/test-fstatat.c: New file.
40210         * modules/stat-tests (Files): Add test-stat.h.
40211         * modules/lstat-tests (Files): Add test-lstat.h.
40212         (Depends-on): Add stdbool.
40213         * modules/openat-tests (Depends-on): Add pathmax.
40214         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40215         (Makefile.am): Run new test.
40216
40217         remove: new module, for mingw and Solaris 9 bugs
40218         * modules/remove: New file.
40219         * lib/remove.c: Likewise.
40220         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40222         * modules/stdio (Makefile.am): Use them.
40223         * lib/stdio.in.h (remove): Declare replacement.
40224         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40225         * doc/posix-functions/remove.texi (remove): Likewise.
40226         * modules/remove-tests: New test.
40227         * tests/test-remove.c: Likewise.
40228
40229         unlink: new module, for Solaris 9 bug
40230         * modules/unlink: New file.
40231         * lib/unlink.c: Likewise.
40232         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40234         * modules/unistd (Makefile.am): Use them.
40235         * lib/unistd.in.h (stat): Declare replacement.
40236         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40237         * doc/posix-functions/unlink.texi (unlink): Likewise.
40238         * modules/unlink-tests: New test.
40239         * tests/test-unlink.c: Likewise.
40240
40241         lstat: fix Solaris 9 bug
40242         * lib/lstat.c (lstat): Also check for trailing slash on
40243         non-symlink, non-directories.  Use stat module to simplify logic.
40244         * doc/posix-functions/lstat.texi (lstat): Document it.
40245         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40246         (configure.ac): Check for symlink.
40247         * tests/test-lstat.c (main): Add more tests.
40248
40249         stat: add as dependency to other modules
40250         * modules/chown (Depends-on): Add stat.
40251         * modules/euidaccess (Depends-on): Likewise.
40252         * modules/fchdir (Depends-on): Likewise.
40253         * modules/isdir (Depends-on): Likewise.
40254         * modules/link (Depends-on): Likewise.
40255         * modules/lstat (Depends-on): Likewise.
40256         * modules/mkdir-p (Depends-on): Likewise.
40257         * modules/modechange (Depends-on): Likewise.
40258         * modules/open (Depends-on): Likewise.
40259         * modules/readlink (Depends-on): Likewise.
40260         * modules/same (Depends-on): Likewise.
40261
40262         stat: fix Solaris 9 bug
40263         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40264         slash.
40265         * lib/stat.c (rpl_stat): Work around it.
40266         * doc/posix-functions/stat.texi (stat): Update documentation.
40267
40268         stat: new module, for mingw bug
40269         * modules/stat: New file.
40270         * lib/stat.c: Likewise.
40271         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40273         * modules/sys_stat (Makefile.am): Use them.
40274         * lib/sys_stat.in.h (stat): Declare replacement.
40275         * lib/openat.c (fstatat): Deal with lstat and stat being function
40276         macros.
40277         * modules/openat (Depends-on): Add inline.
40278         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40279         * doc/posix-functions/stat.texi (stat): Likewise.
40280         * modules/stat-tests: New test.
40281         * tests/test-stat.c: Likewise.
40282
40283 2009-09-19  Jim Meyering  <meyering@redhat.com>
40284
40285         syntax-check: detect unnecessary inclusion of canonicalize.h
40286         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40287
40288 2009-09-19  Eric Blake  <ebb9@byu.net>
40289
40290         canonicalize-lgpl: adjust clients to use correct header
40291         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40292         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40293         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40294         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40295         * lib/progreloc.c (includes): Likewise.
40296
40297 2009-09-19  Jim Meyering  <meyering@redhat.com>
40298
40299         test-posixtm.c: correct a comment
40300         * tests/test-posixtm.c: Correct first-line comment.
40301         Spotted by Eric Blake.
40302
40303 2009-09-16  Jim Meyering  <meyering@redhat.com>
40304
40305         posixtm-tests: make T const-correct; add a test case
40306         * tests/test-posixtm.c (T): Declare const.
40307         Add a test for -(2^31+1).
40308         Remove useless can-succeed-only-in-2002 test.
40309
40310         posixtm-tests: adjust the sole failing test
40311         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40312         expected output matches what mktime now produces.  Cross-checked via
40313         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40314
40315         posixtm: move #ifdef'd tests into a new module
40316         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40317         * tests/test-posixtm.c: ... this new file.
40318         * modules/posixtm-tests: New module.
40319
40320 2009-09-19  Eric Blake  <ebb9@byu.net>
40321
40322         openat: simplify use of at-func.c
40323         * lib/at-func.c (includes): Include prerequisites here, to
40324         simplify requirements on client files.
40325         * lib/openat-priv.h: Add double-inclusion guard.
40326         * lib/faccessat.c (includes): Simplify.
40327         * lib/fchmodat.c (includes): Likewise.
40328         * lib/fchownat.c (includes): Likewise.
40329         * lib/mkdirat.c (includes): Likewise.
40330         * lib/mkfifoat.c (includes): Likewise.
40331         * lib/symlinkat.c (includes): Likewise.
40332
40333         openat: allow return of fd 0
40334         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40335         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40336         unistd-safer.
40337         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40338         <fcntl.h>; this module does not leak fds.
40339         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40340         must be allowed to return 0, leaving openat_safer to add the
40341         safety.
40342         (openat_permissive): Avoid writing to just-opened fd 2 if
40343         restoring the current directory fails.
40344         * lib/openat-die.c (openat_restore_fail): Add comment.
40345         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40346         (save_cwd): Guarantee safe fd, but without use of open_safer.
40347         * tests/test-openat.c: New test.
40348         * modules/openat-tests (Files, Makefile.am): Distribute and build
40349         new file.
40350
40351         relocatable-prog-wrapper: fix build
40352         * modules/relocatable-prog-wrapper (Files): Update name of
40353         canonicalize m4 file, broken on 2009-09-17.
40354         Reported by emad hajjar <aleppos@hotmail.com>.
40355
40356 2009-09-19  Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40359         * lib/safe-alloc.c: Likewise.
40360         Reported by Ian Beckwith <ianb@erislabs.net>.
40361
40362 2009-09-18  Bruno Haible  <bruno@clisp.org>
40363
40364         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40365         Reported by <erobles@sensacd.com.mx>.
40366
40367 2009-09-17  Eric Blake  <ebb9@byu.net>
40368
40369         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40370         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40371         slashes when checking if last component is missing.
40372         * tests/test-canonicalize.c (main): Test this.
40373
40374         canonicalize, canonicalize-lgpl: honor // if distinct from /
40375         * modules/canonicalize (Files): Add double-slash-root.m4.
40376         * modules/canonicalize-lgpl (Files): Likewise.
40377         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40378         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40379         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40380         fallback definition.
40381         (canonicalize_filename_mode): Use it to protect //.
40382         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40383         (__realpath): Likewise.
40384         * tests/test-canonicalize.c (main): Test this.
40385         * tests/test-canonicalize-lgpl.c (main): Likewise.
40386         * modules/canonicalize-tests (Depends-on): Add same-inode.
40387         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40388
40389         canonicalize-lgpl: fix glibc bug with trailing slash
40390         * m4/canonicalize-lgpl.m4: Move contents...
40391         * m4/canonicalize.m4: ...here.
40392         (gl_CANONICALIZE_LGPL): Factor realpath check...
40393         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40394         glibc 2.3.5 bug, fixed 2005-04-27.
40395         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40396         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40397         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40398         * modules/canonicalize-lgpl (Files): Manage file rename.
40399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40400         * modules/stdlib (Makefile.am): Substitute witness.
40401         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40402         is needed.
40403         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40404         replacement is required.
40405         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40406         * doc/glibc-functions/canonicalize_file_name.texi
40407         (canonicalize_file_name): Document this.
40408         * doc/posix-functions/realpath.texi (realpath): Likewise.
40409
40410         canonicalize-lgpl: reject non-directory with trailing slash
40411         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40412         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40413         catches failures in glibc 2.3.5.
40414         * tests/test-canonicalize.c (main): Likewise.
40415
40416         canonicalize-lgpl: use native realpath if it works
40417         * lib/canonicalize-lgpl.c (realpath): Guard with
40418         FUNC_REALPATH_WORKS.
40419         * lib/stdlib.in.h (realpath): Make declaration optional based on
40420         HAVE_REALPATH.
40421         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40422         native realpath works.
40423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40424         * modules/stdlib (Makefile.am): Substitute witness.
40425
40426         canonicalize, canonicalize-lgpl: use <stdlib.h>
40427         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40428         (Include): Mention <stdlib.h>.
40429         (configure.ac): Mention functions we provide.
40430         * modules/canonicalize (configure.ac): Likewise.
40431         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40432         realpath if canonicalize_file_name is missing.
40433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40434         * modules/stdlib (Makefile.am): Substitute witnesses.
40435         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40436         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40437         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40438         * NEWS: Document this.
40439         * doc/glibc-functions/canonicalize_file_name.texi
40440         (canonicalize_file_name): Likewise.
40441         * doc/posix-functions/realpath.texi (realpath): Likewise.
40442         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40443
40444         test-canonicalize: consolidate into single C program
40445         * tests/test-canonicalize.sh: Delete; move setup into...
40446         * tests/test-canonicalize.c (main): ...the program, making it
40447         easier to run in debugger.  Add some tests.
40448         * modules/canonicalize-tests (Files): Remove unused file.
40449         (Depends-on): Add progname.
40450         (configure.ac, Makefile.am): Simplify.
40451
40452         test-canonicalize-lgpl: consolidate into single C program
40453         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40454         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40455         easier to run in debugger.  Add some tests.
40456         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40457         (configure.ac, Makefile.am): Simplify.
40458
40459         canonicalize: avoid resolvepath
40460         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40461         unnecessary checks.
40462         * lib/canonicalize.c (includes): Simplify.
40463         (canonicalize_file_name): Drop resolvepath implementation.
40464         * modules/canonicalize (Depends-on): Drop filenamecat.
40465
40466         canonicalize: don't lose errno
40467         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40468         over calls to free.
40469
40470         canonicalize: simplify errno handling
40471         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40472         assignment.
40473
40474         canonicalize, canonicalize-lgpl: update module dependencies
40475         * modules/canonicalize (Depends-on): Add extensions, lstat,
40476         pathmax, stdlib.
40477         (Files): Drop pathmax.h.
40478         (configure.ac): Adjust macro name.
40479         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40480         lstat, stdlib, sys_stat.
40481         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40482         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40483         extensions.
40484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40485         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40486         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40487         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40488         declaration, if available.
40489         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40490         we can rely on the readlink module.
40491         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40492         (includes): Use <unistd.h> unconditionally.
40493
40494 2009-09-17  Eric Blake  <ebb9@byu.net>
40495
40496         maint: make Include sections of modules consistent
40497         * modules/alloca: Use only header name; no need to list #include.
40498         * modules/alloca-opt: Likewise.
40499         * modules/arpa_inet: Likewise.
40500         * modules/canon-host: Likewise.
40501         * modules/configmake: Likewise.
40502         * modules/dirent: Likewise.
40503         * modules/eealloc: Likewise.
40504         * modules/environ: Likewise.
40505         * modules/fchdir: Likewise.
40506         * modules/fcntl: Likewise.
40507         * modules/fcntl-h: Likewise.
40508         * modules/gethrxtime: Likewise.
40509         * modules/gettime: Likewise.
40510         * modules/ignore-value: Likewise.
40511         * modules/inet_ntop: Likewise.
40512         * modules/inet_pton: Likewise.
40513         * modules/inttypes: Likewise.
40514         * modules/isnand-nolibm: Likewise.
40515         * modules/isnanf-nolibm: Likewise.
40516         * modules/mbchar: Likewise.
40517         * modules/mbfile: Likewise.
40518         * modules/mbiter: Likewise.
40519         * modules/mbuiter: Likewise.
40520         * modules/netdb: Likewise.
40521         * modules/netinet_in: Likewise.
40522         * modules/nproc: Likewise.
40523         * modules/pagealign_alloc: Likewise.
40524         * modules/poll: Likewise.
40525         * modules/printf-frexp: Likewise.
40526         * modules/pthread: Likewise.
40527         * modules/putenv: Likewise.
40528         * modules/random_r: Likewise.
40529         * modules/relocatable-prog: Likewise.
40530         * modules/search: Likewise.
40531         * modules/select: Likewise.
40532         * modules/selinux-h: Likewise.
40533         * modules/settime: Likewise.
40534         * modules/signal: Likewise.
40535         * modules/size_max: Likewise.
40536         * modules/socklen: Likewise.
40537         * modules/ssize_t: Likewise.
40538         * modules/stdarg: Likewise.
40539         * modules/stdbool: Likewise.
40540         * modules/stddef: Likewise.
40541         * modules/stdint: Likewise.
40542         * modules/stdio: Likewise.
40543         * modules/stdlib: Likewise.
40544         * modules/string: Likewise.
40545         * modules/strings: Likewise.
40546         * modules/sys_file: Likewise.
40547         * modules/sys_ioctl: Likewise.
40548         * modules/sys_select: Likewise.
40549         * modules/sys_socket: Likewise.
40550         * modules/sys_stat: Likewise.
40551         * modules/sys_time: Likewise.
40552         * modules/sys_times: Likewise.
40553         * modules/sys_utsname: Likewise.
40554         * modules/sys_wait: Likewise.
40555         * modules/sysexits: Likewise.
40556         * modules/time: Likewise.
40557         * modules/times: Likewise.
40558         * modules/tmpfile: Likewise.
40559         * modules/trim: Likewise.
40560         * modules/unistd: Likewise.
40561         * modules/wchar: Likewise.
40562         * modules/wctype: Likewise.
40563
40564 2009-09-17  Bruno Haible  <bruno@clisp.org>
40565
40566         Make getdate.y compile on QNX and NetBSD 5 / i386.
40567         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40568         TIME_T_FITS_IN_LONG_INT.
40569         * lib/getdate.y (long_time_t): New type.
40570         (relative_time): Change type of 'seconds' field to long_time_t.
40571         (get_date): Update types of local variables. Check against overflow
40572         during conversion from long_time_t to time_t.
40573         Reported by Matt Kraai <kraai@ftbfs.org>
40574         and Hasso Tepper <hasso@netbsd.org>.
40575
40576 2009-09-17  Bruno Haible  <bruno@clisp.org>
40577
40578         * modules/COPYING: Update copyright years.
40579         * modules/README: Likeiwse.
40580         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40581         Reported by Ian Beckwith <ianb@erislabs.net>.
40582
40583 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40584
40585         * users.txt: Update references for gnuit package.
40586
40587 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40588
40589         * m4/getdelim.m4: Fix typo in copyright line.
40590
40591 2009-09-17  Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/atoll.c: Use the standard header with GPL copyright.
40594         * lib/argz.in.h: Likewise.
40595         * lib/glob.c: Likewise.
40596         * lib/glob-libc.h: Likewise.
40597         * lib/random_r.c: Likewise.
40598         * lib/siglist.h: Likewise.
40599         * lib/strsignal.c: Likewise.
40600         Reported by Ian Beckwith <ianb@erislabs.net>.
40601
40602 2009-09-17  Eric Blake  <ebb9@byu.net>
40603
40604         rmdir: ensure correct dependency order
40605         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40606
40607 2009-09-17  Bruno Haible  <bruno@clisp.org>
40608
40609         Disable assertion that fails on NetBSD 5 / i386.
40610         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40611         Reported by Sam Steingold <sds@gnu.org>
40612         and Hasso Tepper <hasso@netbsd.org>.
40613
40614 2009-09-16  Eric Blake  <ebb9@byu.net>
40615
40616         unlinkdir: port to mingw
40617         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40618         on which no one can unlink a directory.
40619
40620         stdlib: sort witness names
40621         * modules/stdlib (Makefile.am): Sort replacements.
40622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40623         * lib/stdlib.in.h: Likewise.
40624
40625         parse-duration-tests: avoid link failure
40626         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40627         LIBINTL.
40628         Reported by Tom G. Christensen.
40629
40630         openat-tests: ensure unlinkat behaves like rmdir
40631         * tests/test-rmdir.c (main): Factor guts...
40632         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40633         * modules/rmdir-tests (Files): Ship new file.
40634         * modules/openat-tests: New test.
40635         * tests/test-unlinkat.c: Likewise.
40636
40637         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40638         * modules/rmdir-errno (Status, Notice): Now obsolete.
40639
40640         rmdir: work around cygwin 1.5.x and mingw bugs
40641         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40642         * lib/rmdir.c (rmdir): Work around it.
40643         * modules/rmdir (Status, Notice): No longer obsolete.
40644         (Files): Add dos.m4.
40645         (Depends-on): Add unistd.
40646         (configure.ac): Set witnesses.
40647         (License): Relax to LGPLv2+.
40648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40649         * modules/unistd (Makefile.am): Substitute witnesses.
40650         * lib/unistd.in.h (rmdir): Declare replacement.
40651         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40652         * modules/rmdir-tests: New tests.
40653         * tests/test-rmdir.c: Likewise.
40654
40655 2009-09-15  Eric Blake  <ebb9@byu.net>
40656
40657         fchdir: improve use of replacement functions
40658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40661         REPLACE_CLOSEDIR.
40662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40663         * modules/sys_stat (Makefile.am): Substitute correct witness.
40664         * modules/dirent (Makefile.am): Likewise.
40665         * modules/unistd (Makefile.am): Likewise.
40666         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40667         * lib/unistd.in.h (dup): Likewise.
40668         * lib/sys_stat.in.h (fstat): Likewise.
40669
40670         maint: ignore gnulib-tool temp files
40671         * .gitignore: Ignore files created during gnulib-tool --test.
40672
40673 2009-09-13  Jim Meyering  <meyering@redhat.com>
40674
40675         posixtm: don't reject a time that specify "60" as the number of seconds
40676         * lib/posixtm.c (posixtime): The code to reject invalid dates
40677         would also reject a time specified with the .60 suffix.
40678         But POSIX allows that, in order to accommodate leap seconds.
40679         So don't reject it.
40680         (main): Adjust tests accordingly.
40681         * modules/posixtm (Depends-on): Add stpcpy.
40682
40683 2009-09-11  Jim Meyering  <meyering@redhat.com>
40684
40685         announce-gen: include [$release_type] in emitted Subject:
40686         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40687         e.g., [stable] in the emitted Subject: line.
40688
40689 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40690
40691         Remove obsolete macros from several modules.
40692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40693         obsolete Autoconf macros with their modern counterparts.
40694         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40695         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40697         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40699         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40701         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40702         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40703         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40704         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40706         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40707         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40708         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40709         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40710         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40711         * m4/time_r.m4 (gl_TIME_R): Likewise.
40712         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40713         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40714         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40715
40716         Fix copyright header in build-aux scripts.
40717         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40718         recommendation.
40719         * build-aux/ncftpput-ftp: Likewise.
40720         * build-aux/update-copyright: Likewise.
40721
40722 2009-09-09  Eric Blake  <ebb9@byu.net>
40723
40724         test-link: allow Linux choice of errno
40725         * tests/test-link.c (main): Relax test for alternate error.
40726
40727         strndup: fix improper m4 caching
40728         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40729         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40730         (gl_PREREQ_STRNDUP): Delete.
40731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40732         * modules/string (Makefile.am): Substitute it.
40733         * lib/string.in.h (strndup): Modernize prototype.
40734
40735         getcwd: port to mingw
40736         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40737         different from the POSIX assumptions made throughout the getcwd
40738         module; fortunately, the mingw getcwd does not need replacement.
40739         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40740         * modules/getcwd-tests: New test.
40741         * tests/test-getcwd.c: Likewise.
40742
40743         link: fix platform bugs
40744         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40745         * lib/link.c (link): Work around them.  Fix related mingw bug.
40746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40747         * modules/unistd (Makefile.am): Substitute it.
40748         * lib/unistd.in.h (link): Declare replacement.
40749         * doc/posix-functions/link.texi (link): Document this.
40750         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40751
40752         test-link: consolidate into single C program, test more cases
40753         * tests/test-link.sh: Delete.
40754         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40755         at least Cygwin and Solaris.
40756         * modules/link-tests (Files): Remove unused file.
40757         (Depends-on): Add errno, sys_stat.
40758         (Makefile.am): Simplify.
40759
40760 2009-09-08  Bruno Haible  <bruno@clisp.org>
40761
40762         Work around towlower, towupper bug on mingw.
40763         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40764         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40765         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40766         * doc/posix-functions/towupper.texi: Likewise.
40767         Reported by Eric Blake.
40768
40769 2009-09-08  Jim Meyering  <meyering@redhat.com>
40770
40771         build: don't try to run autoheader if we don't use it
40772         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40773         is not used in configure.ac.
40774
40775 2009-09-08  Eric Blake  <ebb9@byu.net>
40776
40777         euidaccess: fix compilation error
40778         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40779
40780         rawmemchr: relax license
40781         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40782         okay.
40783         Reported by Jim Meyering.
40784
40785         mkfifoat: new module
40786         * modules/mkfifoat: New file.
40787         * lib/mkfifoat.c: Likewise.
40788         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40789         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40790         * modules/sys_stat (Makefile.am): Use them.
40791         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40792         * MODULES.html.sh (File system functions): Mention module.
40793         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40794         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40795         * modules/mkfifoat-tests: New test.
40796         * tests/test-mkfifoat.c: Likewise.
40797
40798         strchrnul: relax license
40799         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40800         okay.
40801         Reported by Jim Meyering.
40802
40803 2009-09-08  Eric Blake  <ebb9@byu.net>
40804
40805         fstatat: fix compilation on Solaris
40806         * lib/fstatat.c (includes): Add fcntl.h.
40807         Reported by Pádraig Brady.
40808
40809 2009-09-07  Eric Blake  <ebb9@byu.net>
40810
40811         rename: modernize replacement
40812         * modules/rename (Depends-on): Add stdio.
40813         (configure.ac): Declare witness.
40814         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40815         stdio take care of replacement.
40816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40817         * modules/stdio (Makefile.am): Substitute them.
40818         * lib/stdio.in.h (rename): Declare replacement.
40819         * lib/rename.c (includes): Allow cross-compilation to non-windows
40820         machines.
40821         * doc/posix-functions/rename.texi (rename): Improve
40822         documentation.
40823
40824         stdio: sort witness names
40825         * modules/stdio (Makefile.am): Sort replacements.
40826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40827         * lib/stdio.in.h: Likewise.
40828
40829         getcwd: minor cleanups
40830         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40831         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40832
40833         openat: provide more convenience names
40834         * modules/faccessat (configure.ac): Add C witness.
40835         * lib/unistd.in.h (readlinkat): Fix typo.
40836         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40837         convenience wrappers.
40838         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40839         wrappers in syntax checks.
40840
40841 2009-09-06  Eric Blake  <ebb9@byu.net>
40842
40843         doc: fix comments in recent patches
40844         * lib/faccessat.c: Mention correct function.
40845         * lib/fchmodat.c: Likewise.
40846         * lib/fchownat.c: Likewise.
40847         * lib/symlinkat.c: Likewise.
40848         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40849         constants.
40850
40851         faccessat, symlinkat: continue cleanup of previous patch
40852         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40853         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40854         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40856         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40857         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40858         set.
40859
40860 2009-09-06  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40863         (fstatat): Declare if GNULIB_FSTATAT is set.
40864         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40865         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40866         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40867         * modules/fcntl-h (Files): Remove m4/openat.m4.
40868         * modules/sys_stat (Files): Remove m4/openat.m4.
40869         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40870         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40871         * modules/unistd (Files): Remove m4/openat.m4.
40872         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40873         GNULIB_OPENAT.
40874         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40875         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40876         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40877         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40878         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40879         gl_OPENAT_DEFAULTS.
40880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40881         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40882         Don't require gl_OPENAT_DEFAULTS.
40883         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40884         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40885         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40886         (gl_OPENAT_DEFAULTS): Remove macro.
40887
40888 2009-09-06  Bruno Haible  <bruno@clisp.org>
40889
40890         * modules/openat (configure.ac): Remove unneeded witness.
40891
40892 2009-09-06  Bruno Haible  <bruno@clisp.org>
40893
40894         Set errno to ENOSYS when a function is entirely unsupported.
40895         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40896         EOPNOTSUPP.
40897         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40898         * modules/chown (Depends-on): Remove errno.
40899
40900 2009-09-06  Bruno Haible  <bruno@clisp.org>
40901
40902         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40903
40904 2009-09-06  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40907
40908 2009-09-06  Ben Pfaff  <blp@gnu.org>
40909             Bruno Haible  <bruno@clisp.org>
40910
40911         Work around a glibc bug in strtok_r.
40912         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40913         Undefine if UNDEFINE_STRTOK_R is set.
40914         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40916         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40917         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40918         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40919         UNDEFINE_STRTOK_R.
40920         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40921
40922 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40923
40924         exclude: minor fix
40925         * lib/exclude.c: Include wctype.h
40926
40927 2009-09-06  Akim Demaille  <demaille@gostai.com>
40928
40929         bootstrap: improve error message
40930         * build-aux/bootstrap (find_tool): Upon failure, report the list
40931         of candidates.
40932         Honor the initial value of the envvar.
40933
40934 2009-09-05  Eric Blake  <ebb9@byu.net>
40935
40936         symlinkat: new module
40937         * modules/symlinkat: New file.
40938         * lib/symlinkat.c: Likewise.
40939         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40941         * modules/unistd (Makefile.am): Use them.
40942         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40943         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40944         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40945         * MODULES.html.sh (File system functions): Mention module.
40946         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40947         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40948         * modules/symlinkat-tests: New test.
40949         * tests/test-symlinkat.c: Likewise.
40950
40951         test-openat-safer: add more checks
40952         * tests/test-openat-safer.c (main): Check more code paths.
40953
40954 2009-09-05  Jim Meyering  <meyering@redhat.com>
40955
40956         syntax-check: detect unnecessary inclusion of openat.h
40957         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40958
40959 2009-09-05  Bruno Haible  <bruno@clisp.org>
40960
40961         Support towlower, towupper.
40962         * doc/posix-functions/towlower.texi: Mention module wctype.
40963         * doc/posix-functions/towupper.texi: Likewise.
40964         * lib/wctype.in.h (towlower, towupper): New functions.
40965         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40966         (ASSERT): New macro.
40967         (e): New variable.
40968         (main): Test also towlower, towupper. Test WEOF argument.
40969         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40970
40971 2009-09-05  Bruno Haible  <bruno@clisp.org>
40972
40973         Fix conversion behaviour when the input is invalid.
40974         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40975         mark occurring in first pass of indirect conversion.
40976         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40977         input.
40978         Found by clang's static analyzer.
40979
40980 2009-09-05  Bruno Haible  <bruno@clisp.org>
40981
40982         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40983         where direct conversion is possible.
40984
40985 2009-09-04  Eric Blake  <ebb9@byu.net>
40986
40987         openat: fail with ENOENT on empty name
40988         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40989         buffer.
40990
40991         link-follow: fix logic bug in prior patch
40992         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40993         reversed sense of yes and no in prior patch.  Avoid confusing
40994         compilation failure with desired semantics.
40995
40996         link-follow: accomodate mingw and cross-compilation
40997         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40998         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40999         cross-compilation results to -1, to make linkat easier to
41000         implement when cross-compiling.  Trivially support mingw.
41001         * modules/link-follow (configure.ac): Call new name.
41002         * NEWS: Mention this.
41003
41004 2009-09-03  Eric Blake  <ebb9@byu.net>
41005
41006         faccessat: compile replacement
41007         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41008         needed.
41009
41010         fts: fix compilation error
41011         * lib/fts.c (includes): Re-add "openat.h", for
41012         openat_needs_fchdir.
41013
41014         faccessat: new module
41015         * modules/faccessat: New file.
41016         * lib/faccessat.c: Likewise.
41017         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41019         * modules/unistd (Makefile.am): Use it.
41020         * lib/unistd.in.h (faccessat): Declare it.
41021         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41022         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41023         * MODULES.html.sh (File system functions): Mention it.
41024         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41025         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41026
41027         euidaccess: prefer POSIX over non-standard implementation
41028         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41029         * lib/euidaccess.c (euidaccess): Use it if available.
41030
41031         openat: make template easier to use
41032         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41033         AT_FUNC_F2 to be undefined.
41034         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41035         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41036         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41037         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41038         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41039         Likewise.
41040         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41041         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41042         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41043         Likewise.
41044
41045         openat: declare in POSIX headers
41046         * NEWS: Mention this.
41047         * modules/openat (configure.ac): Declare witnesses.
41048         (Depends-on): Add fcntl-h, sys_stat, unistd.
41049         (Include): Mention correct headers.
41050         * modules/fcntl-h (Depends-on): Add link-warning.
41051         (Files): Add openat.m4.
41052         (Makefile.am): Substitute witnesses.
41053         * modules/sys_stat (Files, Makefile.am): Likewise.
41054         * modules/unistd (Files, Makefile.am): Likewise.
41055         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41056         (gl_OPENAT_DEFAULTS): New macro.
41057         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41059         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41060         (SYS_STAT_H): Remove unused variable.
41061         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41062         * lib/fcntl--.h (includes): Remove unneeded header.
41063         * lib/openat-safer.c (includes): Likewise.
41064         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41065         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41066         appropriate headers.
41067         (__OPENAT_PREFIX): Delete.
41068         * lib/fcntl.in.h (openat): Provide declaration.
41069         (AT_FDCWD): Fix Solaris bug.
41070         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41071         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41072         * lib/fchmodat.c (includes):  Adjust to find declaration.
41073         * lib/fchownat.c (includes): Likewise.
41074         * lib/mkdirat.c (includes): Likewise.
41075         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41076         still visible.
41077
41078 2009-09-02  Eric Blake  <ebb9@byu.net>
41079
41080         errno: use consistently
41081         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41082         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41083         * lib/canonicalize.c (ELOOP): Likewise.
41084         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41085         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41086         * lib/lchown.c (EOPNOTSUPP): Likewise.
41087         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41088         * lib/savewd.c (ESTALE): Likewise.
41089         * lib/settime.c (ENOSYS): Likewise.
41090         * lib/utimens.c (ENOSYS): Likewise.
41091         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41092         * lib/chdir-safer.c (ELOOP): Likewise.
41093         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41094         * modules/c-stack (Depends-on): Add errno.
41095         * modules/canonicalize (Depends-on): Likewise.
41096         * modules/chdir-safer (Depends-on): Likewise.
41097         * modules/fdopendir (Depends-on): Likewise.
41098         * modules/inet_ntop (Depends-on): Likewise.
41099         * modules/inet_pton (Depends-on): Likewise.
41100         * modules/lchown (Depends-on): Likewise.
41101         * modules/openat (Depends-on): Likewise.
41102         * modules/savewd (Depends-on): Likewise.
41103         * modules/settime (Depends-on): Likewise.
41104         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41105
41106         fts: avoid leaking fds
41107         * modules/fts (Depends-on): Add cloexec.
41108         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41109         flag.
41110
41111         fts: make directory fds more robust
41112         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41113         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41114
41115         backupfile, chdir-long, fts, savedir: make safer
41116         * lib/backupfile.c (includes): Use "dirent--.h", since
41117         numbered_backup can write to stderr during readdir.
41118         * lib/savedir.c (includes): Likewise.
41119         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41120         emulation can write to stderr on failure.
41121         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41122         * lib/getcwd.c: Document why opendir_safer is unused.
41123         * lib/glob.c: Likewise.
41124         * lib/scandir.c: Likewise.
41125         * lib/openat-proc.c: Likewise, for open_safer.
41126         * modules/backupfile (Depends-on): Add dirent-safer.
41127         * modules/savedir (Depends-on): Likewise.
41128         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41129         * modules/chdir-long (Depends-on): Add openat-safer.
41130
41131         openat-safer: new module
41132         * modules/openat-safer: New file.
41133         * lib/openat-safer.c: Likewise.
41134         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41135         * lib/fcntl-safer.h (openat_safer): Declare.
41136         * lib/fcntl--.h (openat): Override.
41137         * MODULES.html.sh (File descriptor based I/O): Mention it.
41138         * lib/openat.h: Add double-inclusion guards.
41139         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41140         "fcntl--.h", so we can implement openat.
41141         * modules/openat-safer-tests: New test.
41142         * tests/test-openat-safer.c: New file.
41143
41144         dirent-safer: new module
41145         * modules/dirent-safer: New file.
41146         * lib/dirent--.h: Likewise.
41147         * lib/dirent-safer.h: Likewise.
41148         * lib/opendir-safer.c: Likewise.
41149         * m4/dirent-safer.m4: Likewise.
41150         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41151         * modules/dirent-safer-tests: New test.
41152         * tests/test-dirent-safer.c: New file.
41153         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41154
41155         fdopendir: optimize on mingw
41156         * lib/unistd.in.h (_gl_directory_name): New prototype.
41157         * lib/fchdir.c (_gl_directory_name): Implement it.
41158         (fchdir): Use it to simplify implementation.
41159         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41160         fchdir, when available, to avoid calling [f]chdir().
41161
41162         fdopendir: split into its own module
41163         * lib/openat.c (fdopendir): Move...
41164         * lib/fdopendir.c: ...into new file.
41165         * modules/fdopendir: New module.
41166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41167         * modules/openat (Depends-on): Add fdopendir.
41168         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41169         fdopendir here.
41170         * modules/savedir (Depends-on): Only need fdopendir, not full
41171         openat.
41172         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41173         * lib/openat.h (fdopendir): Drop prototype.
41174         * lib/dirent.in.h (fdopendir): Provide prototype.
41175         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41176         * modules/dirent (Makefile.am): Substitute them.
41177         * MODULES.html.sh (File system functions): Mention it.
41178         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41179         * modules/fdopendir-tests: New file.
41180         * tests/test-fdopendir.c: Likewise.
41181
41182         fchdir: use more consistent macro convention
41183         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41184         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41185         REPLACE_FCHDIR, rather than relying on config.h macros.
41186         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41187         inside a single make-time REPLACE_FCHDIR block, rather than using
41188         the config.h FCHDIR_REPLACEMENT.
41189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41190         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41191         Manage fstat replacement.
41192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41193         REPLACE_FCHDIR.
41194         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41195         (Makefile.am): Substitute REPLACE_FCHDIR.
41196         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41197         FCHDIR_REPLACEMENT.
41198         * lib/dup-safer.c (dup_safer): Likewise.
41199         * lib/dup2.c (rpl_dup2): Likewise.
41200         * lib/dup3.c (rpl_dup3): Likewise.
41201         * lib/open.c (rpl_open): Likewise.
41202
41203         fchdir: simplify error handling, and support dup3
41204         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41205         stdbool, malloc-posix, realloc-posix.
41206         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41207         (ensure_dirs_slot): Return false on allocation failure.
41208         (rpl_dup2): Delete.
41209         (_gl_register_dup): New function.
41210         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41211         (_gl_register_fd): Close fd on allocation failure.
41212         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41213         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41214         prototype.
41215         (rpl_dup2_fchdir): Delete prototype.
41216         * lib/open.c (open): Update caller.
41217         * lib/dup2.c (dup2): Track fchdir metadata.
41218         * lib/dup3.c (dup3): Likewise.
41219         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41221
41222 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41223
41224         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41225         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41226         don't pass arguments to AC_OUTPUT.
41227
41228 2009-09-02  Bruno Haible  <bruno@clisp.org>
41229
41230         * modules/mkdtemp (License): Relicense under LGPLv2+.
41231         Reported by Paolo Bonzini.
41232
41233 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41234
41235         Replace uses of obsolete autoconf macros in Jim's modules.
41236         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41237         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41238         can evoke a warning from autoconf when run with -Wobsolete
41239         enabled.  They were declared obsolete for good reasons (see
41240         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41241         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41242         should not continue using the deprecated macros.
41243         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41244         obsolete Autoconf macros with modern counterparts.
41245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41246         * m4/dos.m4 (gl_AC_DOS): Likewise.
41247         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41248         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41249         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41250         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41251         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41252         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41253         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41254         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41255         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41256         Likewise.
41257         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41258         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41259         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41260         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41261         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41262         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41263
41264 2009-09-01  Eric Blake  <ebb9@byu.net>
41265
41266         fchdir: fix off-by-one bug in previous patch
41267         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41268         (_gl_unregister_fd): Delete useless if.
41269
41270 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41271
41272         maint.mk: sort the list of syntax-check rules
41273         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41274         easier to get a sense of progress when the rules are run sequentially
41275         and take a long time.
41276
41277 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41278
41279         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41280         * modules/netinet_in: Likewise.
41281         * modules/sys_file: Likewise.
41282         * modules/sys_ioctl: Likewise.
41283         * modules/sys_select: Likewise.
41284         * modules/sys_socket: Likewise.
41285         * modules/sys_stat: Likewise.
41286         * modules/sys_time: Likewise.
41287         * modules/sys_times: Likewise.
41288         * modules/sys_utsname: Likewise.
41289         * modules/sys_wait: Likewise.
41290
41291 2009-09-01  Jim Meyering  <meyering@redhat.com>
41292
41293         fts: help ensure that return values are not ignored
41294         * lib/fts_.h (__GNUC_PREREQ): Define.
41295         (__attribute_warn_unused_result__): Define.
41296         (fts_children, fts_close, fts_open, fts_read): Declare with
41297         __attribute_warn_unused_result__.
41298
41299         fts: fts_close now fails also when closing a dir file descriptor fails
41300         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41301         and propagate to caller, along with errno.
41302
41303         announce-gen: correct formatting in --help output
41304         * build-aux/announce-gen (usage): Move the one-line description in
41305         --help output "up", to where it belongs, just after Usage:.
41306
41307 2009-08-31  Eric Blake  <ebb9@byu.net>
41308
41309         fchdir: port to mingw
41310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41311         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41312         opened, then use a substitute.
41313         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41314         replacement.
41315         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41316         (_gl_register_fd): No need to check stat if open already filters
41317         all directories.
41318         (fchdir): Fix error condition to match POSIX.
41319         * modules/fchdir (Depends-on): Add sys_stat.
41320         * doc/posix-functions/open.texi (open): Document the limitation.
41321         * modules/fchdir-tests: New file.
41322         * tests/test-fchdir.c: Likewise.
41323
41324         canonicalize: allow cross-testing from cygwin to mingw
41325         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41326         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41327         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41328         Likewise.
41329         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41330         target does not support symlinks.
41331         * tests/test-canonicalize-lgpl.sh: Likewise.
41332
41333         chown: avoid compilation warning on mingw
41334         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41335         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41336         mingw.
41337         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41338         * modules/chown (Depends-on): Add errno.
41339
41340 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41341
41342         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41343         command.
41344
41345 2009-08-31  Jim Meyering  <meyering@redhat.com>
41346
41347         canonicalize: remove useless initialization
41348         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41349         initialization of local, "end".
41350
41351 2009-08-30  Bruno Haible  <bruno@clisp.org>
41352
41353         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41354         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41355         ENOSYS.
41356
41357 2009-08-30  Bruno Haible  <bruno@clisp.org>
41358
41359         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41360         /usr/xpg4/bin/tr when it exists.
41361         * tests/test-pipe-filter-gi1.sh: Likewise.
41362
41363 2009-08-30  Bruno Haible  <bruno@clisp.org>
41364
41365         Work around deficient /usr/bin/id program on Solaris.
41366         * tests/test-file-has-acl.sh (ID): New variable.
41367         * tests/test-set-mode-acl.sh (ID): Likewise.
41368         * tests/test-copy-acl.sh (ID): Likewise.
41369         * tests/test-copy-file.sh (ID): Likewise.
41370
41371 2009-08-30  Bruno Haible  <bruno@clisp.org>
41372
41373         New module 'xstriconveh'.
41374         * lib/xstriconveh.h: New file.
41375         * lib/xstriconveh.c: New file.
41376         * modules/xstriconveh: New file.
41377
41378 2009-08-30  Bruno Haible  <bruno@clisp.org>
41379
41380         Make it easier to use mem_cd_iconveh.
41381         * lib/striconveh.h (iconveh_t): New type.
41382         (iconveh_open, iconveh_close): New declarations.
41383         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41384         with a single 'const iconveh_t *' argument.
41385         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41386         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41387         with a single 'const iconveh_t *' argument.
41388         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41389         * tests/test-striconveh.c (main): Update.
41390         * NEWS: Mention the change.
41391
41392 2009-08-30  Bruno Haible  <bruno@clisp.org>
41393
41394         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41395         problem.
41396
41397 2009-08-30  Bruno Haible  <bruno@clisp.org>
41398
41399         Work around iconv_open problem on Solaris.
41400         * lib/iconv_open-solaris.gperf: New file.
41401         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41403         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41404         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41405         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41406         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41407
41408 2009-08-29  Jim Meyering  <meyering@redhat.com>
41409
41410         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41411         * top/maint.mk (cvs-check): Remove target; it was just an alias
41412         to the better-named vc-diff-check.
41413         (maintainer-distcheck): Remove rule.  It was used only from
41414         the (alpha/beta/major) target, and all of its commands but one
41415         were coreutils-specific.
41416         (vc-dist): Remove rule.
41417         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41418         Run vc-diff-check, not vc-dist.
41419         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41420
41421 2009-08-27  Bruno Haible  <bruno@clisp.org>
41422
41423         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41424         of 0.
41425
41426 2009-08-27  Bruno Haible  <bruno@clisp.org>
41427
41428         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41429         compilers.
41430         * doc/func.texi: Document the SunPRO C bug.
41431
41432 2009-08-27  Bruno Haible  <bruno@clisp.org>
41433
41434         Fix link error on Solaris.
41435         * tests/test-parse-duration.c (xstrdup): Remove function.
41436
41437 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41438
41439         ignore-value: handle pointer types, too
41440         * lib/ignore-value.h (__attribute__): Remove definition.
41441         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41442         of a more concise and more-often effective "(void) i" statement.
41443         (ignore_ptr): New function to suppress warnings from functions that
41444         return pointers, and to make it explicit that one function doesn't
41445         handle all cases.
41446
41447 2009-08-25  Bruno Haible  <bruno@clisp.org>
41448
41449         dup2: work around a Linux bug.
41450         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41451         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41452         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41453         Reported by Simon Josefsson.
41454
41455 2009-08-25  Jim Meyering  <meyering@redhat.com>
41456
41457         libguestfs uses gnulib
41458         * users.txt: Add libguestfs.
41459
41460 2009-08-24  Eric Blake  <ebb9@byu.net>
41461
41462         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41463         * lib/pipe2.c (includes): Add binary-io.h.
41464         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41465
41466 2009-08-24  Bruno Haible  <bruno@clisp.org>
41467
41468         Tolerate declared but missing accept4 syscall.
41469         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41470         available.
41471         * lib/sys_socket.in.h (accept4): If the function is already present,
41472         override it.
41473         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41474         * modules/accept4 (Makefile.am): Compile accept4.c always.
41475         Reported by Paolo Bonzini and Eric Blake.
41476
41477 2009-08-23  Bruno Haible  <bruno@clisp.org>
41478
41479         New module 'accept4'.
41480         * lib/sys_socket.in.h (accept4): New declaration.
41481         * lib/accept4.c: New file.
41482         * m4/accept4.m4: New file.
41483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41484         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41485         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41486         HAVE_ACCEPT4.
41487         * modules/accept4: New file.
41488         * doc/glibc-functions/accept4.texi: Mention the new module.
41489
41490 2009-08-24  Jim Meyering  <meyering@redhat.com>
41491
41492         progname: also set global program_invocation_name, when possible
41493         Before this change, a libtool-enabled program that calls glibc's
41494         error function would report the program name as
41495         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41496         * modules/progname (configure.ac): Check for a declaration of
41497         program_invocation_name.
41498         * lib/progname.c:  Include <errno.h>.
41499         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41500         Set program_invocation_name.
41501
41502 2009-08-23  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/dup3.c: Include <string.h>.
41505
41506 2009-08-23  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41509         * lib/pipe2.c (pipe2): Likewise.
41510         Suggested by Eric Blake.
41511
41512 2009-08-23  Bruno Haible  <bruno@clisp.org>
41513
41514         Tolerate declared but missing dup3 syscall.
41515         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41516         * lib/unistd.in.h (dup3): If the function is already present,
41517         override it.
41518         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41519         * modules/dup3 (Makefile.am): Compile dup3.c always.
41520         Reported by Paolo Bonzini.
41521
41522 2009-08-23  Bruno Haible  <bruno@clisp.org>
41523
41524         Tolerate declared but missing pipe2 syscall.
41525         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41526         available.
41527         * lib/unistd.in.h (pipe2): If the function is already present,
41528         override it.
41529         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41530         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41531         Reported by Paolo Bonzini.
41532
41533 2009-08-23  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/pipe2.c (pipe2): Move #ifs inside function.
41536
41537 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41538
41539         quotearg: document limitations of quote_these_too
41540         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41541         those limitations are created.
41542         * lib/quotearg.h (set_char_quoting): Document that digits and
41543         letters that are special after backslash are not permitted.
41544         (quotearg_char): Cross-reference set_char_quoting documentation.
41545
41546 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41547
41548         quotearg: implement custom_quoting_style
41549         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41550         right_quote fields.
41551         (set_custom_quoting): New public function.
41552         (quotearg_buffer_restyled): Add left_quote and right_quote
41553         arguments, handle them very much like locale quoting, and update
41554         all uses.
41555         (quotearg_n_custom): New public function.
41556         (quotearg_n_custom_mem): New public function.
41557         (quotearg_custom): New public function.
41558         (quotearg_custom_mem): New public function.
41559         * lib/quotearg.h: Prototype and document new public functions.
41560         (enum quoting_style): For escape_quoting_style and
41561         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41562         ignored even though they're otherwise like c_quoting_style.
41563         Add custom_quoting_style member and document with comparison to
41564         clocale_quoting_style.
41565         * tests/test-quotearg.c (custom_quotes): New array.
41566         (custom_results): New array.
41567         (main): Extend to test custom quoting.
41568
41569 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41570
41571         quotearg: fix right quote escaping when it's in quote_these_too
41572         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41573         quote, be sure to prepend only one backslash.
41574         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41575         (main): Test it.
41576
41577 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41578
41579         quotearg-tests: test escaping of embedded locale quotes
41580         * tests/test-quotearg.c (struct result_strings): Add member for
41581         new input.
41582         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41583         (inputs): Add new input.
41584         (results_g): Add expected results.
41585         (flag_results): Likewise.
41586         (locale_results): Likewise.
41587         (compare_strings): Check those.
41588
41589 2009-08-23  Bruno Haible  <bruno@clisp.org>
41590
41591         Tests for module 'dup3'.
41592         * modules/dup3-tests: New file.
41593         * tests/test-dup3.c: New file.
41594
41595         New module 'dup3'.
41596         * lib/unistd.in.h (dup3): New declaration.
41597         * lib/dup3.c: New file.
41598         * m4/dup3.m4: New file.
41599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41600         HAVE_DUP3.
41601         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41602         * modules/dup3: New file.
41603         * doc/glibc-functions/dup3.texi: Mention the new module.
41604
41605 2009-08-23  Bruno Haible  <bruno@clisp.org>
41606
41607         Tweak the dup2 test.
41608         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41609         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41610         the test file is still empty. Fix argument order of lseek.
41611
41612 2009-08-23  Bruno Haible  <bruno@clisp.org>
41613
41614         Avoid test link errors when the modules getopt-gnu, gettext are used.
41615         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41617
41618 2009-08-23  Bruno Haible  <bruno@clisp.org>
41619
41620         Fix getdtablesize() on mingw.
41621         * lib/getdtablesize.c (getdtablesize): Implement differently.
41622         * lib/unistd.in.h (getdtablesize): Improve comment.
41623
41624 2009-08-23  Bruno Haible  <bruno@clisp.org>
41625
41626         New module 'mkostemp'.
41627         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41628         * lib/stdlib.in.h (mksotemp): New declaration.
41629         * lib/mkostemp.c: New file, from glibc with modifications.
41630         * lib/tempname.h (GT_FILE): Remove outdated comment.
41631         (gen_tempname): Add flags argument.
41632         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41633         (__GT_FILE): Map to 1.
41634         (small_open, large_open): Remove macros.
41635         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41636         * lib/mkstemp.c (mkstemp): Update.
41637         * lib/mkdtemp.c (mkdtemp): Likewise.
41638         * m4/mkostemp.m4: New file.
41639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41640         HAVE_MKOSTEMP.
41641         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41642         HAVE_MKOSTEMP.
41643         * modules/mkostemp: New file, based on modules/mkstemp.
41644         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41645         * NEWS: Mention the change.
41646
41647 2009-08-23  Bruno Haible  <bruno@clisp.org>
41648
41649         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41650         Reported by Eric Blake.
41651
41652 2009-08-23  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41655         Reported by Eric Blake.
41656
41657 2009-08-23  Bruno Haible  <bruno@clisp.org>
41658
41659         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41660         * modules/pipe2 (Depends-on): Likewise.
41661
41662 2009-08-23  Eric Blake  <ebb9@byu.net>
41663
41664         fcntl-h: add O_TTY_INIT support
41665         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41666         * tests/test-fcntl-h.c (o): Test it.
41667         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41668
41669         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41670         * modules/fcntl: Move <fcntl.h> header replacement...
41671         * modules/fcntl-h: ...to new name, so as not to collide with
41672         like-named function.
41673         * tests/test-fcntl.c: Rename...
41674         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41675         * modules/fcntl-tests: Rename...
41676         * modules/fcntl-h-tests: ...to this.  Update test file name.
41677         * modules/chdir-long (Depends-on): Update clients.
41678         * modules/chdir-safer (Depends-on): Likewise.
41679         * modules/fcntl-safer (Depends-on): Likewise.
41680         * modules/fts (Depends-on): Likewise.
41681         * modules/mkancesdirs (Depends-on): Likewise.
41682         * modules/mkdir-p (Depends-on): Likewise.
41683         * modules/open (Depends-on): Likewise.
41684         * modules/savewd (Depends-on): Likewise.
41685         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41686         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41687
41688 2009-08-22  Bruno Haible  <bruno@clisp.org>
41689
41690         * modules/binary-io (License): Relicense under LGPL.
41691         * modules/pipe2 (License): Likewise.
41692
41693 2009-08-22  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41696         return value.
41697         * lib/pipe-filter-gi.c (filter_init): Likewise.
41698         Reported by Eric Blake.
41699
41700 2009-08-22  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41703         * modules/pipe (Depends-on): Add pipe2.
41704
41705 2009-08-22  Bruno Haible  <bruno@clisp.org>
41706
41707         Tests for module 'pipe2'.
41708         * modules/pipe2-tests: New file.
41709         * tests/test-pipe2.c: New file.
41710
41711         New module 'pipe2'.
41712         * lib/unistd.in.h (pipe2): New declaration.
41713         * lib/pipe2.c: New file.
41714         * m4/pipe2.m4: New file.
41715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41716         HAVE_PIPE2.
41717         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41718         * modules/pipe2: New file.
41719         * doc/glibc-functions/pipe2.texi: Mention the new module.
41720
41721 2009-08-22  Bruno Haible  <bruno@clisp.org>
41722
41723         Reference some new glibc functions.
41724         * doc/glibc-functions/accept4.texi: New file.
41725         * doc/glibc-functions/dup3.texi: New file.
41726         * doc/glibc-functions/mkostemp.texi: New file.
41727         * doc/glibc-functions/pipe2.texi: New file.
41728         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41729         (Glibc sys/socket.h): Refer to accept4.
41730         (Glibc unistd.h): Refer to dup3, pipe2.
41731         Reported by Eric Blake.
41732
41733 2009-08-22  Jim Meyering  <meyering@redhat.com>
41734             Bruno Haible  <bruno@clisp.org>
41735
41736         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41737         This makes it so packages using automake-1.11's silent-rules option
41738         can print e.g., a single "GEN    configmake.h" line, rather than
41739         the 30+ statements that perform the job.  If you want to see the
41740         actual commands, you can still run "make V=1".
41741         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41742         so that make output is abbreviated when those variables are defined
41743         appropriately.
41744         * modules/argz: Likewise.
41745         * modules/arpa_inet: Likewise.
41746         * modules/byteswap: Likewise.
41747         * modules/configmake: Likewise.
41748         * modules/dirent: Likewise.
41749         * modules/errno: Likewise.
41750         * modules/fcntl: Likewise.
41751         * modules/float: Likewise.
41752         * modules/fnmatch: Likewise.
41753         * modules/getopt-posix: Likewise.
41754         * modules/glob: Likewise.
41755         * modules/iconv_open: Likewise.
41756         * modules/inttypes: Likewise.
41757         * modules/localcharset: Likewise.
41758         * modules/locale: Likewise.
41759         * modules/math: Likewise.
41760         * modules/netdb: Likewise.
41761         * modules/netinet_in: Likewise.
41762         * modules/poll: Likewise.
41763         * modules/posix_spawnp-tests: Likewise.
41764         * modules/sched: Likewise.
41765         * modules/search: Likewise.
41766         * modules/selinux-h: Likewise.
41767         * modules/signal: Likewise.
41768         * modules/spawn: Likewise.
41769         * modules/stdarg: Likewise.
41770         * modules/stdbool: Likewise.
41771         * modules/stddef: Likewise.
41772         * modules/stdint: Likewise.
41773         * modules/stdio: Likewise.
41774         * modules/stdlib: Likewise.
41775         * modules/string: Likewise.
41776         * modules/strings: Likewise.
41777         * modules/sys_file: Likewise.
41778         * modules/sys_ioctl: Likewise.
41779         * modules/sys_select: Likewise.
41780         * modules/sys_socket: Likewise.
41781         * modules/sys_stat: Likewise.
41782         * modules/sys_time: Likewise.
41783         * modules/sys_times: Likewise.
41784         * modules/sys_utsname: Likewise.
41785         * modules/sys_wait: Likewise.
41786         * modules/sysexits: Likewise.
41787         * modules/time: Likewise.
41788         * modules/unistd: Likewise.
41789         * modules/wchar: Likewise.
41790         * modules/wctype: Likewise.
41791
41792 2009-08-22  Jim Meyering  <meyering@redhat.com>
41793
41794         announce-gen: detect write failure
41795         * build-aux/announce-gen: Add Coda at end.
41796         Remove equivalent-but-more-verbose block at top.
41797
41798 2009-08-19  Akim Demaille  <demaille@gostai.com>
41799
41800         bootstrap: --help to stdout.
41801         * bootstrap (usage): Don't send --help to stderr.
41802         Use a here doc instead of a long string.
41803
41804 2009-08-21  Eric Blake  <ebb9@byu.net>
41805
41806         test-popen-safer: split from test-popen
41807         * tests/test-popen.c (main): Move...
41808         * tests/test-popen.h: ...into new file.
41809         * tests/test-popen-safer2.c: New file.
41810         * modules/popen-tests (Files): Add test-popen.h.
41811         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41812         Suggested by Bruno Haible.
41813
41814         test-fcntl-safer: split from test-open
41815         * tests/test-open.c (main): Move...
41816         * tests/test-open.h: ...into new file.
41817         * tests/test-fcntl-safer.c: New file.
41818         * modules/open-tests (Files): Add test-open.h.
41819         * modules/fcntl-safer-tests: New file.
41820         Suggested by Bruno Haible.
41821
41822         test-fopen-safer: split from test-fopen
41823         * tests/test-fopen.c (main): Move...
41824         * tests/test-fopen.h: ...into new file.
41825         * tests/test-fopen-safer.c: New file.
41826         * modules/fopen-tests (Files): Add test-fopen.h.
41827         * modules/fopen-safer-tests: New file.
41828         Suggested by Bruno Haible.
41829
41830 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41831
41832         popen-safer: test O_CLOEXEC at run-time.
41833         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41834
41835 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41836
41837         fcntl: move more flags to the header
41838         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41839         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41840         * lib/fcntl.in.h: Do both things here.
41841
41842 2009-08-21  Jim Meyering  <meyering@redhat.com>
41843
41844         consistently remove $@-t before redirecting to it
41845         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41846         * modules/alloca-opt: Likewise.
41847         * modules/byteswap: Likewise.
41848         * modules/fnmatch: Likewise.
41849         * modules/getopt-posix: Likewise.
41850         * modules/glob: Likewise.
41851         * modules/poll: Likewise.
41852         * modules/posix_spawnp-tests: Likewise.
41853         * modules/sys_socket: Likewise.
41854         * modules/sysexits: Likewise.
41855
41856 2009-08-21  Eric Blake  <ebb9@byu.net>
41857
41858         popen: simplify access to original popen
41859         * lib/popen.c (rpl_popen): No need to worry about popen being a
41860         macro.
41861         Reported by Bruno Haible.
41862
41863 2009-08-20  Eric Blake  <ebb9@byu.net>
41864
41865         build: avoid some compiler warnings
41866         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41867         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41868         type.
41869         (new_exclude_segment, excluded_file_pattern_p)
41870         (excluded_file_name_p): Reduce scope.
41871         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41872         old-style declaration.
41873
41874 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41875
41876         * tests/test-exclude1.sh: Handle Windows EOL.
41877         * tests/test-exclude2.sh: Likewise.
41878         * tests/test-exclude3.sh: Likewise.
41879         * tests/test-exclude4.sh: Likewise.
41880         * tests/test-exclude5.sh: Likewise.
41881         * tests/test-exclude6.sh: Likewise.
41882         * tests/test-exclude7.sh: Likewise.
41883
41884 2009-08-19  Akim Demaille  <demaille@gostai.com>
41885
41886         bootstrap: find sha1sum when named gsha1sum.
41887         * bootstrap (find_tool): New.
41888         ($SHA1SUM): New.
41889         Use it.
41890
41891 2009-08-20  Jim Meyering  <meyering@redhat.com>
41892
41893         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41894         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41895         expression that converts "." in a file name to "\." in the resulting
41896         regexp.  Start with a dummy statement, so that prior shell variable
41897         definitions are expanded portably.  Reported by Simon Josefsson.
41898
41899 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41900
41901         Fix polling for writeability of a screen buffer.
41902         * lib/poll.c: Distinguish input and screen buffers for the
41903         Win32 implementation.
41904         * lib/select.c: Likewise.
41905
41906 2009-08-19  Eric Blake  <ebb9@byu.net>
41907
41908         popen-safer: prevent popen from clobbering std descriptors
41909         * modules/popen-safer: New file.
41910         * lib/popen-safer.c: Likewise.
41911         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41912         * lib/stdio--.h (popen): Provide override.
41913         * lib/stdio-safer.h (popen_safer): Provide declaration.
41914         * tests/test-popen.c (includes): Partially test this.
41915         * modules/popen-safer-tests: New file, for more tests.
41916         * tests/test-popen-safer.c: Likewise.
41917         * MODULES.html.sh (file stream based Input/Output): Mention it.
41918
41919         tests: test some of the *-safer modules
41920         * modules/fopen-safer (Depends-on): Add fopen.
41921         * modules/fcntl-safer (Depends-on): Add fcntl.
41922         * modules/stdlib-safer (Depends-on): Add stdlib.
41923         (configure.ac): Set indicator.
41924         * modules/unistd-safer (configure.ac): Likewise.
41925         * modules/tmpfile-safer (configure.ac): Likewise.
41926         (Depends-on): Add tmpfile.
41927         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41928         active.
41929         * tests/test-fopen.c (includes): Test safer versions when they are
41930         in use.
41931         * tests/test-open.c (includes): Likewise.
41932
41933         popen: fix cygwin 1.5 bug when stdin closed
41934         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41935         * modules/popen: New file.
41936         * modules/popen-tests: Likewise.
41937         * tests/test-popen.c: Likewise.
41938         * m4/popen.m4: Likewise.
41939         * lib/popen.c: Likewise.
41940         * lib/stdio.in.h (popen): New declaration.
41941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41942         * modules/stdio (Makefile.am): Likewise.
41943         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41944
41945 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41946
41947         maint.mk: give full control over update-copyright exclusions
41948         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41949         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41950         (update-copyright): Don't force inclusion of top-level
41951         ChangeLog.  Don't force exclusion of all COPYING files, but make
41952         them the default exclusion instead.
41953
41954 2009-08-16  Bruno Haible  <bruno@clisp.org>
41955
41956         Fix test failures on Solaris 10.
41957         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41958         tests when Solaris iconv() is used.
41959         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41960         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41961         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41962         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41963         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41964
41965 2009-08-16  Bruno Haible  <bruno@clisp.org>
41966
41967         Fix test failures on Solaris 10.
41968         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41969         'tr' program and pass it as first argument.
41970         * tests/test-pipe-filter-gi1.sh: Likewise.
41971         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41972         program as first argument.
41973         * tests/test-pipe-filter-gi1.c (main): Likewise.
41974
41975 2009-08-16  Eric Blake  <ebb9@byu.net>
41976
41977         fpurge: fix previous commits
41978         * modules/fpurge (Makefile.am): Make replacement conditional,
41979         partially reverting 2007-04-29 change; missed in previous
41980         attempt.
41981         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41982         is missing.
41983
41984 2009-08-16  Bruno Haible  <bruno@clisp.org>
41985
41986         Clarify fpurge's effect on the file position.
41987         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41988         * tests/test-fpurge.c (main): Make a second pass for checking the file
41989         position.
41990
41991 2009-08-16  Bruno Haible  <bruno@clisp.org>
41992
41993         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41994         declaration of fpurge is missing.
41995         * tests/test-fpurge.c (main): Check that the file has not more contents
41996         than expected. Close the file before removing it.
41997
41998 2009-08-15  Eric Blake  <ebb9@byu.net>
41999
42000         fpurge: don't wrap working cygwin implementation
42001         * lib/fpurge.c (fpurge): Fix comment typo.
42002         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42003         1.7 to avoid replacement.
42004         * tests/test-fpurge.c (main): Enhance test.
42005
42006 2009-08-15  Eric Blake  <ebb9@byu.net>
42007         and Jim Meyering  <meyering@redhat.com>
42008
42009         test-update-copyright: skip if perl is insufficient
42010         * tests/test-update-copyright.sh: Failure to run maintainer tool
42011         should not cause testsuite failure on cygwin 1.5.
42012
42013 2009-08-14  Eric Blake  <ebb9@byu.net>
42014
42015         doc: mention more functions added in cygwin 1.7.0
42016         * doc/posix-headers/limits.texi (limits.h): Update for recent
42017         cygwin additions.
42018         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42019         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42020         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42021         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42022         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42023
42024 2009-08-14  Eric Blake  <ebb9@byu.net>
42025
42026         maint.mk: simplify update-copyright rule
42027         * top/maint.mk (update-copyright-local): Delete, and document how
42028         to do it in cfg.mk instead.
42029         (update-copyright-exclude-regexp): Delete, and document how to do
42030         it in .x-update-copyright instead.
42031         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42032         exclude ChangeLog.
42033
42034 2009-08-14  Bruno Haible  <bruno@clisp.org>
42035
42036         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42037
42038 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42039
42040         maint.mk: support update-copyright-env
42041         * top/maint.mk (update-copyright-env): Define place-holder.
42042         (update-copyright): Expand $(update-copyright-env) before
42043         invoking update-copyright.
42044
42045 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42046
42047         update-copyright: implement forced reformatting
42048         * build-aux/update-copyright: Implement and document
42049         UPDATE_COPYRIGHT_FORCE.
42050         * tests/test-update-copyright.sh: Test it.
42051
42052 2009-08-14  Eric Blake  <ebb9@byu.net>
42053         and Bruno Haible  <bruno@clisp.org>
42054
42055         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42056         * tests/test-locale.c: Revert previous patch related to NULL.
42057         * tests/test-stdio.c: Likewise.
42058         * tests/test-stdlib.c: Likewise.
42059         * tests/test-string.c: Likewise.
42060         * tests/test-unistd.c: Likewise.
42061         * modules/time-tests (Depends-on): Add verify.
42062         * modules/wchar-tests (Depends-on): Likewise.
42063         * tests/test-time.c: Test for NULL compliance.
42064         * tests/test-wchar.c: Likewise.
42065         * modules/locale (Depends-on): Add stddef.
42066         * modules/stdio (Depends-on): Likewise.
42067         * modules/stdlib (Depends-on): Likewise.
42068         * modules/string (Depends-on): Likewise.
42069         * modules/time (Depends-on): Likewise.
42070         * modules/unistd (Depends-on): Likewise.
42071         * modules/wchar (Depends-on): Likewise.
42072         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42073         * lib/stdlib.in.h (includes): Likewise.
42074         * lib/string.in.h (includes): Likewise.
42075         * lib/time.in.h (includes): Likewise.
42076         * lib/unistd.in.h (includes): Likewise.
42077         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42078         replaced.
42079         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42080         * m4/stddef_h.m4: New file.
42081         * modules/stddef: Likewise.
42082         * lib/stddef.in.h: Likewise.
42083         * modules/stddef-tests: Likewise.
42084         * tests/test-stddef.c: Likewise.
42085         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42086         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42087         * doc/posix-headers/locale.texi (locale.h): Likewise.
42088         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42089         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42090         * doc/posix-headers/string.texi (string.h): Likewise.
42091         * doc/posix-headers/time.texi (time.h): Likewise.
42092         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42093         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42094
42095 2009-08-14  Eric Blake  <ebb9@byu.net>
42096
42097         doc: improve git diff of texinfo files
42098         * .gitattributes: Add rule for *.texi files, with hint on how to
42099         use it.
42100         Copied from m4, and based on a report by Bruno Haible.
42101
42102 2009-08-14  Bruno Haible  <bruno@clisp.org>
42103
42104         Disable multithread support by default on Cygwin 1.5.x for real.
42105         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42106
42107 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42108
42109         update-copyright: much ado about intervals
42110         * build-aux/update-copyright: Implement and document
42111         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42112         of copyright year intervals.
42113         Also, document UPDATE_COPYRIGHT_YEAR.
42114         * tests/test-update-copyright.sh: Test it.
42115
42116         update-copyright: convert 2-digit to 4-digit years
42117         * build-aux/update-copyright: Implement and document.
42118         * tests/test-update-copyright.sh: Update.
42119
42120 2009-08-14  Jim Meyering  <meyering@redhat.com>
42121
42122         test-exclude: avoid coreutils "make check" failure
42123         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42124         just as in test-argmatch.c.
42125
42126 2009-08-13  Eric Blake  <ebb9@byu.net>
42127
42128         test-dup2: fix bad assumption
42129         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42130         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42131
42132         test-version-etc: fix CRLF portability issue
42133         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42134         recognize \r.
42135         * tests/test-argp-version-etc-1.sh: Likewise.
42136
42137         getopt: update client modules
42138         * modules/argp (Depends-on): Use getopt-gnu.
42139         * modules/git-merge-changelog (Depends-on): Likewise.
42140         * modules/long-options (Depends-on): Likewise.
42141         * modules/xstrtol (Depends-on): Likewise.
42142
42143 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42144
42145         * tests/test-version-etc.sh: Don't fail on different
42146         project/version.  Don't fail on CRLF differences.  Rewrite to use
42147         multiple -e instead of multiple sed forks, suggested by Eric Blake
42148         <ebb9@byu.net>.
42149         * tests/test-argp-version-etc-1.sh: Likewise.
42150
42151 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42152
42153         * tests/test-version-etc.sh: Don't fail on different
42154         project/version.
42155
42156 2009-08-12  Bruno Haible  <bruno@clisp.org>
42157
42158         Tests for modules 'getopt-posix', 'getopt-gnu'.
42159         * modules/getopt-posix-tests: New file.
42160         * tests/test-getopt.c: New file.
42161         * tests/test-getopt.h: New file.
42162         * tests/test-getopt_long.h: New file.
42163
42164         New modules 'getopt-posix', 'getopt-gnu'.
42165         * modules/getopt-gnu: New file, renamed from modules/getopt.
42166         * modules/getopt-posix: New file.
42167         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42168         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42169         (gl_GETOPT): Remove macro.
42170         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42171         Disable the test against BSD systems that declare optreset. Test
42172         against mingw bug. Test against lack of support of optional arguments
42173         on many platforms.
42174         * doc/glibc-headers/getopt.texi: Update module name and list of
42175         relevant platforms.
42176         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42177         'getopt-gnu' and more portability problems.
42178         * NEWS: Mention the changes.
42179
42180 2009-08-12  Bruno Haible  <bruno@clisp.org>
42181
42182         Ensure that optarg etc. get declared by <unistd.h>.
42183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42184         AC_USE_SYSTEM_EXTENSIONS.
42185         * modules/getopt (Depends-on): Add 'extensions'.
42186
42187 2009-08-12  Bruno Haible  <bruno@clisp.org>
42188
42189         Avoid test link errors.
42190         * modules/pipe-filter-ii-tests (Makefile.am): Define
42191         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42192         * modules/pipe-filter-gi-tests (Makefile.am): Define
42193         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42195
42196 2009-08-12  Bruno Haible  <bruno@clisp.org>
42197
42198         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42199         gl_GETOPT_SUBSTITUTE before.
42200         (gl_GETOPT): Use it.
42201         * m4/argp.m4 (gl_ARGP): Update.
42202         Reported by Sergey Poznyakoff.
42203
42204         * m4/getopt.m4: Reorder macros.
42205         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42206         (gl_GETOPT_SUBSTITUTE): Remove macro.
42207
42208 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42209
42210         Minor improvement in gitlog-to-changelog
42211
42212         * build-aux/gitlog-to-changelog: New option `--format' makes
42213         output format string configurable.
42214
42215 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42216
42217         Optimize exclude: use hash tables for non-wildcard patterns.
42218
42219         * lib/exclude.c: Include hash.h and mbuiter.h
42220         (struct exclude_pattern, exclude_segment): New data types.
42221         (struct exclude): Rewrite.
42222         (fnmatch_pattern_has_wildcards): New function.
42223         (new_exclude_segment, free_exclude_segment): New functions.
42224         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42225         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42226         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42227         * modules/exclude: Depend on hash and mbuiter.
42228
42229         * modules/exclude-tests: New file.
42230         * tests/test-exclude.c: New file.
42231         * tests/test-exclude1.sh: New file.
42232         * tests/test-exclude2.sh: New file.
42233         * tests/test-exclude3.sh: New file.
42234         * tests/test-exclude4.sh: New file.
42235         * tests/test-exclude5.sh: New file.
42236         * tests/test-exclude6.sh: New file.
42237         * tests/test-exclude7.sh: New file.
42238
42239 2009-08-12  Bruno Haible  <bruno@clisp.org>
42240
42241         Ensure that getopt() gets declared by <unistd.h>.
42242         * lib/unistd.in.h: Conditionally include getopt.h.
42243         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42244         Set GNULIB_UNISTD_H_GETOPT.
42245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42246         GNULIB_UNISTD_H_GETOPT.
42247         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42248
42249 2009-08-12  Bruno Haible  <bruno@clisp.org>
42250
42251         Clarify logic.
42252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42253         gl_replace_getopt instead of GETOPT_H.
42254
42255 2009-08-12  Bruno Haible  <bruno@clisp.org>
42256
42257         * m4/getopt.m4: Add comments.
42258
42259 2009-08-12  Bruno Haible  <bruno@clisp.org>
42260
42261         Disable multithread support by default on Cygwin 1.5.x.
42262         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42263         set gl_use_threads=no if not specified otherwise.
42264
42265 2009-08-11  Bruno Haible  <bruno@clisp.org>
42266
42267         Avoid compilation error on NetBSD 5.0.
42268         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42269         * tests/test-stdio.c: Likewise.
42270         * tests/test-stdlib.c: Likewise.
42271         * tests/test-string.c: Likewise.
42272         * tests/test-unistd.c: Likewise.
42273         Reported by Greg Troxel <gdt@ir.bbn.com>
42274         at <https://savannah.gnu.org/support/?106973>.
42275
42276 2009-08-11  Bruno Haible  <bruno@clisp.org>
42277
42278         * modules/dup2-tests (Depends-on): Remove close.
42279
42280         Undo 2009-07-19 commit.
42281         * modules/acl-tests (Depends-on): Remove close.
42282         * modules/binary-io-tests (Depends-on): Likewise.
42283         * modules/closein-tests (Depends-on): Likewise.
42284         * modules/flock-tests (Depends-on): Likewise.
42285         * modules/fsync-tests (Depends-on): Likewise.
42286         * modules/lseek-tests (Depends-on): Likewise.
42287         * modules/pipe-tests (Depends-on): Likewise.
42288         * modules/posix_spawn-tests (Depends-on): Likewise.
42289         * modules/posix_spawnp-tests (Depends-on): Likewise.
42290         * modules/stat-time-tests (Depends-on): Likewise.
42291         * modules/yesno-tests (Depends-on): Likewise.
42292
42293 2009-08-10  Bruno Haible  <bruno@clisp.org>
42294
42295         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42296
42297 2009-08-10  Bruno Haible  <bruno@clisp.org>
42298
42299         Fix a gcc warning.
42300         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42301
42302 2009-08-10  Bruno Haible  <bruno@clisp.org>
42303
42304         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42305         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42306         not only the first time.
42307         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42308         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42309         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42310         is 1, not only the the first time.
42311
42312 2009-08-10  Bruno Haible  <bruno@clisp.org>
42313
42314         Make it possible to use module 'gethostname' without module 'close'.
42315         * lib/unistd.in.h (close): Evoke a link error only if
42316         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42318         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42319         * modules/unistd (Makefile.am): Substitute
42320         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42321         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42322         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42324         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42325         * modules/sys_ioctl (Makefile.am): Substitute
42326         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42327         * modules/socket (configure.ac): On native Windows, set
42328         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42329         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42330         Reported by Sam Steingold <sds@gnu.org>.
42331
42332 2009-08-10  Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42335         * modules/ioctl (configure.ac): Likewise.
42336
42337 2009-08-10  Bruno Haible  <bruno@clisp.org>
42338
42339         Avoid collision between gnulib wrapper and libintl wrapper.
42340         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42341         already defined in intl/printf.c.
42342         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42343         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42344
42345 2009-08-09  Bruno Haible  <bruno@clisp.org>
42346
42347         Make <sys/select.h> really self-contained, also on Solaris 10.
42348         * lib/sys_select.in.h: Include <string.h>.
42349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42350         Solaris 10 problem.
42351         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42352         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42353         Reported by Jim Meyering.
42354
42355 2009-08-09  Bruno Haible  <bruno@clisp.org>
42356
42357         Avoid warnings from 'aclocal' that are due to a use of macro name
42358         AM_XGETTEXT_OPTION that is not defined in automake.
42359         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42360         automake.
42361         * modules/error (configure.ac): Likewise.
42362         * modules/propername (configure.ac): Likewise.
42363         * modules/vasprintf (configure.ac): Likewise.
42364         * modules/verror (configure.ac): Likewise.
42365         * modules/xprintf (configure.ac): Likewise.
42366         * modules/xvasprintf (configure.ac): Likewise.
42367
42368 2009-08-08  Bruno Haible  <bruno@clisp.org>
42369
42370         Avoid compilation error in C++ mode.
42371         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42372         Reported by Sam Steingold <sds@gnu.org>.
42373
42374 2009-08-08  Bruno Haible  <bruno@clisp.org>
42375
42376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42377         for the various Unix platforms.
42378         * doc/posix-headers/limits.texi: Update platforms list regarding
42379         HOST_NAME_MAX.
42380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42381
42382 2009-08-07  Jim Meyering  <meyering@redhat.com>
42383
42384         selinux-at: fix typo in a comment
42385         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42386         Spotted by Paolo Bonzini.
42387
42388         selinux-at: remove redundant m4 code, add documentation
42389         * modules/selinux-at (configure.ac): Remove redundant code.
42390         LIB_SELINUX is already set via the dependent module, selinux-h.
42391         (Include): Add quotes around selinux-at.h.
42392         * lib/selinux-at.h: Add documentation.
42393         Reported by Bruno Haible in
42394         http://marc.info/?l=gnulib-bug&m=124958988300749
42395
42396 2009-08-07  Bruno Haible  <bruno@clisp.org>
42397
42398         Avoid link error on MacOS X 10.3 and 10.4.
42399         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42400         on non-ELF systems.
42401         * lib/argp-pv.c (argp_program_version): Likewise.
42402         Reported by Simon Josefsson.
42403
42404 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42405
42406         * tests/test-version-etc.sh: Use $EXEEXT.
42407
42408 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42409
42410         update-copyright: update documentation to point to maint.mk
42411         * build-aux/update-copyright: Here.
42412
42413 2009-08-06  Jim Meyering  <meyering@redhat.com>
42414
42415         maint.mk: support update-copyright-local
42416         * top/maint.mk (update-copyright-local): Define place-holder.
42417         (update-copyright): Depend on $(update-copyright-local).
42418
42419 2009-08-06  Jim Meyering  <meyering@redhat.com>
42420
42421         selinux-at: new module
42422         Initially written for coreutils, this module will soon be
42423         used by findutils, too.
42424         * MODULES.html.sh [Misc]: Add selinux-at.
42425         * lib/selinux-at.h: New file, from coreutils.
42426         * lib/selinux-at.c: Likewise.
42427         * modules/selinux-at: Likewise.
42428         (License): Change from LGPL to GPL, since it depends
42429         on the GPL'd openat module.
42430
42431         doc: update README
42432         * README: Remove references to cogito.
42433         Remove cvs-repo-updating instructions from 2007.
42434         Don't imply that CVS is better if you have limited disk space.
42435
42436 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42437
42438         update-copyright: support C-style comments
42439         * build-aux/update-copyright: Implement and document.
42440         * tests/test-update-copyright.sh: Test.
42441
42442 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42443
42444         update-copyright: support omitted "(C)"
42445         * build-aux/update-copyright: Implement and document.  Also,
42446         allow variable whitespace before "(C)".
42447         * tests/test-update-copyright.sh: Test.
42448
42449 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42450
42451         update-copyright: don't trip on non-FSF copyright statements
42452         * build-aux/update-copyright: Fix so that the first correctly
42453         formatted FSF copyright statement is recognized no matter what
42454         appears before it.  Update documentation.
42455         * tests/test-update-copyright.sh: Test that.
42456
42457 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42458
42459         update-copyright: clean up code a little
42460         * build-aux/update-copyright: Append "_re" to the name of any
42461         variable holding a regular expression.
42462         Replace "old" and "new" with "stmt" in variable names.
42463         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42464         handled correctly.
42465         Format code more consistently.
42466
42467 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42468
42469         update-copyright-tests: improve portability
42470         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42471         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42472
42473 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42474
42475         update-copyright: support @copyright{} and &copy;
42476         * build-aux/update-copyright: Implement and document.
42477         * tests/test-update-copyright.sh: Test.
42478
42479 2009-08-04  Jim Meyering  <meyering@redhat.com>
42480
42481         update-copyright-tests: correctly test EOL=\r\n handling
42482         * tests/test-update-copyright.sh: Put \r at the end of some lines
42483         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42484
42485         maint.mk: make update-copyright exclusion list more configurable
42486         * top/maint.mk (update-copyright): Default to excluding COPYING,
42487         but allow an override, in case someone does want to update that file.
42488
42489         maint.mk: don't update copyright date in COPYING
42490         * top/maint.mk (update-copyright): Exclude COPYING.
42491
42492         maint.mk: add a copyright-updating rule
42493         * top/maint.mk (update-copyright): New rule.
42494         Derived from coreutils/Makefile.am.
42495
42496         update-copyright: rename some variables
42497         * build-aux/update-copyright: Rename a few variables for clarity.
42498         Tweak syntax.  List Joel E. Denny as coauthor.
42499
42500 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42501
42502         update-copyright: fix bug for 2-digit last year and add tests
42503         * build-aux/update-copyright: Fix bug.
42504         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42505         specified.
42506         * modules/update-copyright-tests: New
42507         * tests/test-update-copyright.sh: New.
42508
42509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42510
42511         update-copyright: handle leading tabs in line prefix
42512         * build-aux/update-copyright: Count leading tabs as 8 spaces
42513         when computing margin.  This helps with the formatting of
42514         ChangeLogs, for example.
42515         Fix documentation a little.
42516
42517 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42518
42519         update-copyright: support EOL=\r\n
42520         * build-aux/update-copyright: Implement that.
42521
42522 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42523
42524         update-copyright: automatically format copyright statements
42525         * build-aux/update-copyright: Implement that.
42526         Also, be a little more predictable and safer by always failing
42527         when the full copyright format is not perfectly recognized as an
42528         unbroken whole.  Discussed at
42529         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42530         Rewrite documentation.
42531
42532 2009-08-03  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42535
42536 2009-08-02  Bruno Haible  <bruno@clisp.org>
42537
42538         Tests for module 'uname'.
42539         * modules/uname-tests: New file.
42540         * tests/test-uname.c: New file.
42541
42542         New module 'uname'.
42543         * lib/uname.c: New file.
42544         * m4/uname.m4: New file.
42545         * modules/uname: New file.
42546         * doc/posix-functions/uname.texi: Mention the new module.
42547
42548 2009-08-02  Bruno Haible  <bruno@clisp.org>
42549
42550         Tests for module 'sys_utsname'.
42551         * modules/sys_utsname-tests: New file.
42552         * tests/test-sys_utsname.c: New file.
42553
42554         New module 'sys_utsname'.
42555         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42556         * m4/sys_utsname_h.m4: New file.
42557         * modules/sys_utsname: New file.
42558         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42559
42560 2009-08-02  Bruno Haible  <bruno@clisp.org>
42561
42562         Implicitly initialize the sockets library.
42563         * lib/gethostname.c: Include sockets.h.
42564         (rpl_gethostname): Invoke gl_sockets_startup.
42565         * lib/socket.c: Include sockets.h.
42566         (rpl_socket): Invoke gl_sockets_startup.
42567         * modules/gethostname (Depends-on): Add sockets.
42568         * modules/socket (Depends-on): Likewise.
42569         * tests/test-poll.c: Don't include sockets.h.
42570         (main): Don't invoke gl_sockets_startup.
42571         * tests/test-select.c: Don't include sockets.h.
42572         (main): Don't invoke gl_sockets_startup.
42573
42574 2009-08-02  Bruno Haible  <bruno@clisp.org>
42575
42576         Allow multiple calls to gl_sockets_startup.
42577         * lib/sockets.c (initialized_sockets_version): New variable.
42578         (gl_sockets_startup): Do nothing if already called for this or a higher
42579         version.
42580         (gl_sockets_cleanup): Reset initialized_sockets_version.
42581
42582 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42583
42584         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42585         different project/version.
42586
42587 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42588             Bruno Haible  <bruno@clisp.org>
42589
42590         Tests for module 'pipe-filter-gi'.
42591         * modules/pipe-filter-gi-tests: New file.
42592         * tests/test-pipe-filter-gi1.sh: New file.
42593         * tests/test-pipe-filter-gi1.c: New file.
42594         * tests/test-pipe-filter-gi2.sh: New file.
42595         * tests/test-pipe-filter-gi2-main.c: New file.
42596         * tests/test-pipe-filter-gi2-child.c: New file.
42597
42598         New module 'pipe-filter-gi'.
42599         * lib/pipe-filter-gi.c: New file.
42600         * modules/pipe-filter-gi: New file.
42601
42602 2009-08-02  Bruno Haible  <bruno@clisp.org>
42603             Paolo Bonzini  <bonzini@gnu.org>
42604
42605         Tests for module 'pipe-filter-ii'.
42606         * modules/pipe-filter-ii-tests: New file.
42607         * tests/test-pipe-filter-ii1.sh: New file.
42608         * tests/test-pipe-filter-ii1.c: New file.
42609         * tests/test-pipe-filter-ii2.sh: New file.
42610         * tests/test-pipe-filter-ii2-main.c: New file.
42611         * tests/test-pipe-filter-ii2-child.c: New file.
42612
42613         New module 'pipe-filter-ii'.
42614         * lib/pipe-filter.h: New file.
42615         * lib/pipe-filter-ii.c: New file.
42616         * lib/pipe-filter-aux.h: New file.
42617         * modules/pipe-filter-ii: New file.
42618
42619 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42620
42621         * lib/gc-libgcrypt.c: Change copyright to FSF.
42622         * lib/gc-gnulib.c: Likewise.
42623
42624 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42625
42626         * lib/gethostname.c: Include limits.h.
42627
42628 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42629             Bruno Haible  <bruno@clisp.org>
42630
42631         Ensure HOST_NAME_MAX as part of the gethostname module.
42632         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42633         define also HOST_NAME_MAX.
42634         * tests/test-gethostname.c: Include <limits.h>.
42635         (main): Check also HOST_NAME_MAX.
42636         * doc/posix-headers/limits.texi: Document the mingw problem.
42637
42638 2009-08-02  Bruno Haible  <bruno@clisp.org>
42639
42640         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42641         Add comments.
42642
42643 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42644
42645         * lib/gethostname.c: Add Windows wrapper.
42646         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42647         * modules/gethostname: Depend on sys_socket & errno, for also
42648         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42649         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42650
42651 2009-07-31  Jim Meyering  <meyering@redhat.com>
42652
42653         getloadavg: fix symbol name in comment
42654         * lib/getloadavg.c: Correct a typo I introduced when adding
42655         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42656         Matt Kraai spotted the problem.
42657
42658 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42659
42660         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42661         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42662         code also if ! defined N_NAME_POINTER.
42663         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42664         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42665         but the n_name member is a 12-byte array.
42666
42667 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42668
42669         update-copyright: generalize comment handling
42670         * build-aux/update-copyright: Handle copyright statements
42671         within more comment styles.
42672         Document usage.
42673         Report any file with an external copyright holder or parse failure.
42674
42675 2009-07-29  Jim Meyering  <meyering@redhat.com>
42676
42677         mktime: correct setting of REPLACE_MKTIME
42678         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42679
42680         update-copyright: new module
42681         * modules/update-copyright: New file.
42682         * build-aux/update-copyright: New file.
42683         * MODULES.html.sh (maint+release support): Add update-copyright.
42684
42685 2009-07-27  Bruno Haible  <bruno@clisp.org>
42686
42687         Fix compilation error when <ctime> is used and mktime is replaced.
42688         * lib/time.in.h (mktime): New declaration.
42689         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42690         REPLACE_MKTIME instead of defining mktime in config.h.
42691         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42692         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42693         Reported by Ross McFarland <rwmcfa1@neces.com>.
42694
42695 2009-07-27  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42698         Reported by Matt Kraai <mkraai@beckman.com>.
42699
42700 2009-07-25  Jim Meyering  <meyering@redhat.com>
42701
42702         maint.mk: avoid warnings about missing files
42703         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42704         diagnostic when .prev-version does not exist.
42705         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42706         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42707         nonexistent cfg.mk.
42708         Suggestions from Simon Josefsson.
42709
42710 2009-07-25  Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42713         defined as macros. Needed on QNX 6.4.1.
42714         Reported by Matt Kraai <mkraai@beckman.com>.
42715
42716 2009-07-23  Jim Meyering  <meyering@redhat.com>
42717
42718         maint.mk: invoke "make dist" with a working value of XZ_OPT
42719         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42720
42721 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42722
42723         Make fseeko.c compile on QNX.
42724         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42725
42726 2009-07-22  Peter Simons  <simons@cryp.to>
42727
42728         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42729         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42730         * lib/md4.h: Likewise.
42731         * lib/md5.h: Likewise.
42732         * lib/sha1.h: Likewise.
42733         * lib/sha256.h: Likewise.
42734         * lib/sha512.h: Likewise.
42735
42736         tests-sha1: don't assign literal string to 'char *' variable
42737         * tests/test-sha1.c (main): Declare locals with "const" to match
42738         attributes of the right hand side.
42739
42740 2009-07-21  Eric Blake  <ebb9@byu.net>
42741
42742         dup2: fix more mingw problems
42743         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42744         fd to itself.
42745         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42746         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42747         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42748         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42749         care of mingw bugs.
42750
42751 2009-07-21  Jim Meyering  <meyering@redhat.com>
42752
42753         vc-list-files: avoid failure when /bin/sh is dash
42754         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42755         On some Debian based systems, /bin/sh is a symlink to dash, and running
42756         this command would omit the "/" following each 'tests' prefix:
42757           dash -x build-aux/vc-list-files -C . tests
42758         That is because bash and dash work differently:
42759           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42760           bash ok
42761           dash odd
42762
42763 2009-07-21  Eric Blake  <ebb9@byu.net>
42764
42765         dup2-tests: test previous patch
42766         * modules/dup2-tests: New file.
42767         * tests/test-dup2.c: Likewise.
42768         * tests/test-open.c (main): Avoid unspecified behavior.
42769         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42770         test.
42771
42772         dup2: work around mingw and cygwin 1.5 bug
42773         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42775         * modules/unistd (Makefile.am): Substitute it.
42776         * lib/unistd.in.h (dup2): Declare the replacement.
42777         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42778         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42779         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42780         * modules/execute (Depends-on): Add dup2.
42781         * modules/fseterr (Depends-on): Likewise.
42782         * modules/pipe (Depends-on): Likewise.
42783         * modules/posix_spawn-internal (Depends-on): Likewise.
42784
42785 2009-07-21  Bruno Haible  <bruno@clisp.org>
42786
42787         * modules/.gitattributes: New file.
42788
42789 2009-07-20  Bruno Haible  <bruno@clisp.org>
42790
42791         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42792         (main): Use it.
42793
42794 2009-07-20  Eric Blake  <ebb9@byu.net>
42795
42796         test-pipe: make a bit more robust.
42797         * tests/test-pipe.c (myerr): Allow error messages regardless of
42798         what we do to stderr.
42799         (test_pipe): Rearrange to avoid deadlock.
42800         (child_main): Try a larger read, to ensure we avoided deadlock.
42801         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42802         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42803         if misused.
42804
42805 2009-07-19  Jim Meyering  <meyering@redhat.com>
42806
42807         fts: avoid false-positive cycle-detection
42808         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42809         for each new command line argument.
42810
42811 2009-07-19  Bruno Haible  <bruno@clisp.org>
42812
42813         Fix build error on mingw with the modules sys_select and unistd.
42814         * modules/acl-tests (Depends-on): Add close.
42815         * modules/binary-io-tests (Depends-on): Likewise.
42816         * modules/closein-tests (Depends-on): Likewise.
42817         * modules/flock-tests (Depends-on): Likewise.
42818         * modules/fsync-tests (Depends-on): Likewise.
42819         * modules/lseek-tests (Depends-on): Likewise.
42820         * modules/pipe-tests (Depends-on): Likewise.
42821         * modules/posix_spawn-tests (Depends-on): Likewise.
42822         * modules/posix_spawnp-tests (Depends-on): Likewise.
42823         * modules/stat-time-tests (Depends-on): Likewise.
42824         * modules/yesno-tests (Depends-on): Likewise.
42825
42826 2009-07-19  Bruno Haible  <bruno@clisp.org>
42827
42828         Unify conditionals.
42829         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42830         macros, not at the compiler macros.
42831         * lib/pipe.c: Likewise.
42832         * lib/execute.c: Likewise.
42833         * lib/spawni.c: Likewise.
42834
42835 2009-07-19  Bruno Haible  <bruno@clisp.org>
42836
42837         Fix handling of closed stdin/stdout/stderr on mingw.
42838         * lib/w32spawn.h: Include unistd.h.
42839         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42840         file descriptor with O_NOINHERIT flag.
42841         (fd_safer_noinherit): New function, based on fd-safer.c.
42842         (dup_safer_noinherit): New function, based on dup-safer.c.
42843         (undup_safer_noinherit): New function.
42844         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42845         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42846         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42847         instead of fd_safer.
42848         * tests/test-pipe.c: Include <windows.h>.
42849         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42850         result.
42851
42852         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42853         from main.
42854         (test_pipe): Pass an extra argument for disambiguation.
42855         (main): Invoke parent_main or child_main.
42856
42857         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42858         consistently.
42859
42860 2009-07-18  Eric Blake  <ebb9@byu.net>
42861
42862         test-pipe: fix mingw build
42863         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42864
42865 2009-07-18  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/pipe-tests (Makefile.am): Fix typo.
42868
42869 2009-07-18  Eric Blake  <ebb9@byu.net>
42870
42871         error: fix mingw build
42872         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42873         Reported by Bruno Haible.
42874
42875         error: avoid undefined use of stdout
42876         * lib/error.c (error, error_at_line): Check that fd 1 is open
42877         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42878         is handling faults and the close_stdout module wants to report the
42879         detection of closed stdout as an error.
42880
42881 2009-07-17  Eric Blake  <ebb9@byu.net>
42882
42883         pipe: be robust in face of closed fds
42884         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42885         should cause child to misbehave.
42886         * modules/pipe-tests: New module.
42887         * tests/test-pipe.c: New file.
42888         * tests/test-pipe.sh: New file.
42889         Reported by Akim Demaille.
42890
42891 2009-07-14  Bruno Haible  <bruno@clisp.org>
42892
42893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42894         Reported by anonymous kc.
42895
42896 2009-07-07  Jim Meyering  <meyering@redhat.com>
42897
42898         maint.mk: don't look for translatable strings in *.m4 or *.mk
42899         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42900         when searching for translatable strings.
42901
42902 2009-07-05  Jim Meyering  <meyering@redhat.com>
42903
42904         remove superfluous parentheses in STREQ definition
42905         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42906         * lib/getugroups.c (STREQ): Likewise.
42907         * lib/fnmatch.c (STREQ): Likewise.
42908         Spotted by Bruno Haible.
42909
42910 2009-07-04  Jim Meyering  <meyering@redhat.com>
42911
42912         argv-iter: new module
42913         * MODULES.html.sh: Add argv-iter.
42914         * lib/argv-iter.c, lib/argv-iter.h: New files.
42915         * modules/argv-iter: New file.
42916         * modules/argv-iter-tests: New file.
42917         * tests/test-argv-iter.c: Test it.
42918
42919 2009-07-04  Bruno Haible  <bruno@clisp.org>
42920
42921         Fix assertion.
42922         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42923         contains more exact copies of a given entry than file2, leave the extra
42924         copies unpaired rather than aborting.
42925         Reported by Eric Blake.
42926
42927 2009-07-02  Bruno Haible  <bruno@clisp.org>
42928
42929         Speedup git-merge-changelog for git cherry-pick.
42930         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42931         (entries_mapping_get): New function, extracted from compute_mapping.
42932         (entries_mapping_reverse_get): New function.
42933         (compute_mapping): Add a 'full' argument. Return the result in a
42934         'struct entries_mapping'.
42935         (main): Update. Access the mappings through entries_mapping_get.
42936         Reported by Eric Blake.
42937
42938 2009-07-02  Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42941         best_i.
42942
42943 2009-07-02  Bruno Haible  <bruno@clisp.org>
42944
42945         Speed up approximate search for matching ChangeLog entries.
42946         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42947         argument. Call fstrcmp_bounded instead of fstrcmp.
42948         (compute_mapping, try_split_merged_entry, main): Update callers.
42949
42950 2009-07-02  Bruno Haible  <bruno@clisp.org>
42951
42952         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42953
42954 2009-06-30  Bruno Haible  <bruno@clisp.org>
42955
42956         Reduce the number of uc_is_cased calls.
42957         * lib/unicase.h (casing_suffix_context_t): Add
42958         'first_char_except_ignorable' field.
42959         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42960         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42961         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42962         Update initializer.
42963         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42964         case-ignorable characters.
42965         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42966         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42967         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42968         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42969         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42970
42971 2009-06-30  Bruno Haible  <bruno@clisp.org>
42972
42973         Tests for module 'unicase/ignorable'.
42974         * modules/unicase/ignorable-tests: New file.
42975         * tests/unicase/test-ignorable.c: New file, generated by
42976         gen-uni-tables.
42977
42978         Tests for module 'unicase/cased'.
42979         * modules/unicase/cased-tests: New file.
42980         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42981         * tests/unicase/test-predicate-part1.h: New file, derived from
42982         tests/unictype/test-predicate-part1.h.
42983         * tests/unicase/test-predicate-part2.h: New file, same as
42984         tests/unictype/test-predicate-part2.h.
42985
42986         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42987         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42988         (output_casing_properties): New function.
42989         (main): Call it.
42990         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42991         * lib/unicase/cased.c: Include unictype/bitmap.h.
42992         (uc_is_cased): Define through a bitmap lookup.
42993         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42994         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42995         (uc_is_case_ignorable): Define through a bitmap lookup.
42996         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42997         lib/unictype/bitmap.h.
42998         (Depends-on): Add inline. Clean up.
42999         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43000         lib/unictype/bitmap.h.
43001         (Depends-on): Add inline. Clean up.
43002         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43003         recognition.
43004         * tests/unicase/test-u16-tolower.c (main): Likewise.
43005         * tests/unicase/test-u32-tolower.c (main): Likewise.
43006
43007 2009-06-30  Bruno Haible  <bruno@clisp.org>
43008
43009         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43010         * lib/unicase/u16-casemap.c: Likewise.
43011         * lib/unicase/u32-casemap.c: Likewise.
43012
43013 2009-06-29  Bruno Haible  <bruno@clisp.org>
43014
43015         Define u32_casefold as a wrapper around u32_ct_casefold.
43016         * lib/unicase/u32-casefold.c: Update.
43017         * modules/unicase/u32-casefold (Depends-on): Add
43018         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43019         unicase/empty-suffix-context. Clean up.
43020
43021         Define u16_casefold as a wrapper around u16_ct_casefold.
43022         * lib/unicase/u16-casefold.c: Update.
43023         * modules/unicase/u16-casefold (Depends-on): Add
43024         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43025         unicase/empty-suffix-context. Clean up.
43026
43027         Define u8_casefold as a wrapper around u8_ct_casefold.
43028         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43029         * lib/unicase/u8-casefold.c: Update.
43030         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43031         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43032
43033         Define u32_totitle as a wrapper around u32_ct_totitle.
43034         * lib/unicase/u32-totitle.c: Update.
43035         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43036         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43037
43038         Define u16_totitle as a wrapper around u16_ct_totitle.
43039         * lib/unicase/u16-totitle.c: Update.
43040         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43041         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43042
43043         Define u8_totitle as a wrapper around u8_ct_totitle.
43044         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43045         functions.
43046         (FUNC): Delegate to U_CT_TOTITLE.
43047         * lib/unicase/u8-totitle.c: Update.
43048         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43049         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43050
43051         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43052         invocation.
43053         * modules/unicase/u32-tolower (Depends-on): Add
43054         unicase/empty-prefix-context, unicase/empty-suffix-context.
43055
43056         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43057         invocation.
43058         * modules/unicase/u16-tolower (Depends-on): Add
43059         unicase/empty-prefix-context, unicase/empty-suffix-context.
43060
43061         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43062         * modules/unicase/u8-tolower (Depends-on): Add
43063         unicase/empty-prefix-context, unicase/empty-suffix-context.
43064
43065         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43066         invocation.
43067         * modules/unicase/u32-toupper (Depends-on): Add
43068         unicase/empty-prefix-context, unicase/empty-suffix-context.
43069
43070         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43071         invocation.
43072         * modules/unicase/u16-toupper (Depends-on): Add
43073         unicase/empty-prefix-context, unicase/empty-suffix-context.
43074
43075         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43076         * modules/unicase/u8-toupper (Depends-on): Add
43077         unicase/empty-prefix-context, unicase/empty-suffix-context.
43078
43079         New module 'unicase/u32-ct-casefold'.
43080         * lib/unicase/u32-ct-casefold.c: New file.
43081         * modules/unicase/u32-ct-casefold: New file.
43082
43083         New module 'unicase/u16-ct-casefold'.
43084         * lib/unicase/u16-ct-casefold.c: New file.
43085         * modules/unicase/u16-ct-casefold: New file.
43086
43087         New module 'unicase/u8-ct-casefold'.
43088         * lib/unicase/u8-ct-casefold.c: New file.
43089         * lib/unicase/u-ct-casefold.h: New file, derived from
43090         lib/unicase/u-casefold.h.
43091         * modules/unicase/u8-ct-casefold: New file.
43092
43093         New module 'unicase/u32-ct-totitle'.
43094         * lib/unicase/u32-ct-totitle.c: New file.
43095         * modules/unicase/u32-ct-totitle: New file.
43096
43097         New module 'unicase/u16-ct-totitle'.
43098         * lib/unicase/u16-ct-totitle.c: New file.
43099         * modules/unicase/u16-ct-totitle: New file.
43100
43101         New module 'unicase/u8-ct-totitle'.
43102         * lib/unicase/u8-ct-totitle.c: New file.
43103         * lib/unicase/u-ct-totitle.h: New file, derived from
43104         lib/unicase/u-totitle.h.
43105         * modules/unicase/u8-ct-totitle: New file.
43106
43107         New module 'unicase/u32-ct-tolower'.
43108         * lib/unicase/u32-ct-tolower.c: New file.
43109         * modules/unicase/u32-ct-tolower: New file.
43110
43111         New module 'unicase/u16-ct-tolower'.
43112         * lib/unicase/u16-ct-tolower.c: New file.
43113         * modules/unicase/u16-ct-tolower: New file.
43114
43115         New module 'unicase/u8-ct-tolower'.
43116         * lib/unicase/u8-ct-tolower.c: New file.
43117         * modules/unicase/u8-ct-tolower: New file.
43118
43119         New module 'unicase/u32-ct-toupper'.
43120         * lib/unicase/u32-ct-toupper.c: New file.
43121         * modules/unicase/u32-ct-toupper: New file.
43122
43123         New module 'unicase/u16-ct-toupper'.
43124         * lib/unicase/u16-ct-toupper.c: New file.
43125         * modules/unicase/u16-ct-toupper: New file.
43126
43127         New module 'unicase/u8-ct-toupper'.
43128         * lib/unicase/u8-ct-toupper.c: New file.
43129         * modules/unicase/u8-ct-toupper: New file.
43130
43131         Add context arguments to u*_casemap functions.
43132         * lib/unicase/unicasemap.h: Include unicase.h.
43133         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43134         suffix_context arguments.
43135         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43136         functions.
43137         (FUNC): Add prefix_context and suffix_context arguments. Use
43138         uc_is_cased and uc_is_case_ignorable.
43139         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43140         * lib/unicase/u16-casemap.c: Likewise.
43141         * lib/unicase/u32-casemap.c: Likewise.
43142         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43143         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43144         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43145         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43146         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43147         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43148
43149         New module 'unicase/u32-suffix-context'.
43150         * lib/unicase/u32-suffix-context.c: New file.
43151         * modules/unicase/u32-suffix-context: New file.
43152
43153         New module 'unicase/u16-suffix-context'.
43154         * lib/unicase/u16-suffix-context.c: New file.
43155         * modules/unicase/u16-suffix-context: New file.
43156
43157         New module 'unicase/u8-suffix-context'.
43158         * lib/unicase/u8-suffix-context.c: New file.
43159         * lib/unicase/u-suffix-context.h: New file.
43160         * modules/unicase/u8-suffix-context: New file.
43161
43162         New module 'unicase/empty-suffix-context'.
43163         * lib/unicase/empty-suffix-context.c: New file.
43164         * modules/unicase/empty-suffix-context: New file.
43165
43166         New module 'unicase/u32-prefix-context'.
43167         * lib/unicase/u32-prefix-context.c: New file.
43168         * modules/unicase/u32-prefix-context: New file.
43169
43170         New module 'unicase/u16-prefix-context'.
43171         * lib/unicase/u16-prefix-context.c: New file.
43172         * modules/unicase/u16-prefix-context: New file.
43173
43174         New module 'unicase/u8-prefix-context'.
43175         * lib/unicase/u8-prefix-context.c: New file.
43176         * lib/unicase/u-prefix-context.h: New file.
43177         * lib/unicase/context.h: New file.
43178         * modules/unicase/u8-prefix-context: New file.
43179
43180         New module 'unicase/empty-prefix-context'.
43181         * lib/unicase/empty-prefix-context.c: New file.
43182         * modules/unicase/empty-prefix-context: New file.
43183
43184         New module 'unicase/ignorable'.
43185         * lib/unicase/ignorable.c: New file.
43186         * modules/unicase/ignorable: New file.
43187
43188         New module 'unicase/cased'.
43189         * lib/unicase/caseprop.h: New file.
43190         * lib/unicase/cased.c: New file.
43191         * modules/unicase/cased: New file.
43192
43193         New functions for case mapping of substrings.
43194         * lib/unicase.h (casing_prefix_context_t): New type.
43195         (unicase_empty_prefix_context): New variable.
43196         (u8_casing_prefix_context, u16_casing_prefix_context,
43197         u32_casing_prefix_context, u8_casing_prefixes_context,
43198         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43199         declarations.
43200         (casing_suffix_context_t): New type.
43201         (unicase_empty_suffix_context): New variable.
43202         (u8_casing_suffix_context, u16_casing_suffix_context,
43203         u32_casing_suffix_context, u8_casing_suffixes_context,
43204         u16_casing_suffixes_context, u32_casing_suffixes_context,
43205         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43206         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43207         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43208         declarations.
43209
43210 2009-06-28  Jim Meyering  <meyering@redhat.com>
43211
43212         boostrap: indent only with spaces
43213         * build-aux/bootstrap: Indent only with spaces, never TABs.
43214
43215         bootstrap: split long lines
43216         * build-aux/bootstrap: Keep line length < 80.
43217
43218         bootstrap: sync from coreutils
43219         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43220         just as autoreconf does.  Verify a list of prerequisite
43221         package-name,version-number pairs if defined in bootstrap.conf.
43222         Refer to README-prereq, if prerequisites are not satisfied.
43223
43224 2009-06-27  Eric Blake  <ebb9@byu.net>
43225
43226         tests: add test for bogus NULL definition
43227         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43228         * tests/test-stdlib.c: Likewise.
43229         * tests/test-string.c: Likewise.
43230         * tests/test-locale.c: Likewise.
43231         * tests/test-unistd.c: Likewise.
43232         * modules/stdio-tests (Depends-on): Add verify.
43233         * modules/stdlib-tests (Depends-on): Likewise.
43234         * modules/string-tests (Depends-on): Likewise.
43235         * modules/locale-tests (Depends-on): Likewise.
43236         * modules/unistd-tests (Depends-on): Likewise.
43237
43238 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43239
43240         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43241         self-explaining comment.
43242         * m4/selinux-selinux-h: Update serial.
43243         (gl_LIBSELINUX): New macro, adding a warning for missing development
43244         packages to code extracted from...
43245         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43246         Add warning for missing development packages here, too.
43247
43248 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43249
43250         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43251
43252 2009-06-25  Eric Blake  <ebb9@byu.net>
43253
43254         version-etc: fix regression
43255         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43256         gcc.
43257         (version_etc): Use it, to catch bugs with trailing NULL.
43258         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43259         (version_etc_va): Fix logic bug.
43260         * modules/version-etc-tests: Add test.
43261         * tests/test-version-etc.c: New file.
43262         * tests/test-version-etc.sh: Likewise.
43263
43264 2009-06-25  Sam Steingold  <sds@gnu.org>
43265
43266         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43267         mbtowc declaration.
43268
43269 2009-06-25  Eric Blake  <ebb9@byu.net>
43270
43271         fpurge: migrate into <stdio.h>
43272         * lib/fpurge.h: Delete...
43273         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43274         * lib/fpurge.c (fpurge): Change declaring header.
43275         * modules/fpurge (Files): Drop deleted file.
43276         (Depends-on): Add stdio.
43277         (configure.ac): Set witness.
43278         * modules/stdio (Makefile.am): Support fpurge macros.
43279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43280         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43281         * lib/fflush.c: Update client.
43282         * tests/test-fpurge.c: Likewise.
43283         * NEWS: Mention the change.
43284
43285 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43286
43287         * lib/argp-version-etc.c (program_authors): Add const
43288         qualifier.
43289         * lib/version-etc.c: Fix typos in the comments.
43290         * modules/argp-version-etc: Depends on version-etc.
43291
43292 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43293
43294         argp-version-etc: new module.
43295
43296         * lib/argp-version-etc.c: New file.
43297         * lib/argp-version-etc.h: New file.
43298         * modules/argp-version-etc: New file.
43299         * modules/argp-version-etc-tests: New file.
43300         * tests/test-argp-version-etc.c: New test.
43301         * tests/test-argp-version-etc-1.sh: New test.
43302
43303 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43304
43305         Provide additional interfaces and documentation for version-etc
43306         module.
43307
43308         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43309         interfaces.
43310         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43311         prototypes.
43312
43313 2009-06-24  Bruno Haible  <bruno@clisp.org>
43314
43315         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43316         HAVE_LIB${NAME} macro.
43317         Reported by Sam Steingold <sds@gnu.org>.
43318
43319 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43320
43321         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43322         needed.
43323
43324 2009-06-21  Bruno Haible  <bruno@clisp.org>
43325
43326         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43327         work.
43328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43329         together with LIB${NAME}, LTLIB${NAME}.
43330         Reported by Sam Steingold <sds@gnu.org>.
43331
43332 2009-06-20  Jim Meyering  <meyering@redhat.com>
43333
43334         tests: make sc_require_test_exit_idiom more generic
43335         * top/maint.mk (Exit_witness_file): New overridable variable.
43336         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43337         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43338
43339 2009-06-19  Jim Meyering  <meyering@redhat.com>
43340
43341         hash: reverse order of src/dst parameters in an internal interface
43342         * lib/hash.c (transfer_entries): Reverse order of parameters to
43343         put DST before SRC.  Adjust callers.
43344
43345         tests: test-hash: avoid wholesale duplication
43346         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43347         Instead, use a loop and add a single conditional.
43348
43349         tests: test-hash: allow seed selection via a command line argument
43350         * tests/test-hash.c (get_seed): New function.
43351         (main): Use it.
43352
43353 2009-06-19  Eric Blake  <ebb9@byu.net>
43354
43355         hash: avoid memory leak on allocation failure
43356         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43357         failure.  Factor repeated algorithm...
43358         (transfer_entries): ...into new helper routine.
43359         (hash_delete): React to hash_rehash return value.
43360
43361         hash: reduce memory pressure in hash_rehash no-op case
43362         * lib/hash.c (next_prime): Avoid overflow.
43363         (hash_initialize): Factor bucket size computation...
43364         (compute_bucket_size): ...into new helper function.
43365         (hash_rehash): Use new function and open coding to reduce memory
43366         pressure, and avoid a memory leak in USE_OBSTACK code.
43367         Reported by Jim Meyering.
43368
43369 2009-06-18  Eric Blake  <ebb9@byu.net>
43370
43371         hash: make rotation more obvious
43372         * modules/hash (Depends-on): Add bitrotate and stdint.
43373         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43374         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43375         (SIZE_MAX): Rely on headers for definition.
43376         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43377         (raw_hasher): Use rotr_sz.
43378         Suggested by Jim Meyering.
43379
43380         hash: fix memory leak in last patch
43381         * lib/hash.c (hash_rehash): Avoid memory leak.
43382
43383         hash: avoid no-op rehashing
43384         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43385
43386         hash: provide default callback functions
43387         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43388         (hash_initialize): Use them as defaults.
43389         * tests/test-hash.c (main): Test this.
43390
43391         hash: minor optimization
43392         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43393         when possible.
43394         (hash_initialize): Document this promise.
43395         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43396         * tests/test-hash.c (hash_compare_strings): Test this.
43397
43398 2009-06-18  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43401         going to be replaced anyway.
43402
43403 2009-06-18  Bruno Haible  <bruno@clisp.org>
43404
43405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43406         in one place.
43407         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43408         be replaced anyway.
43409
43410 2009-06-18  Eric Blake  <ebb9@byu.net>
43411
43412         hash: check for resize before insertion
43413         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43414         threshold before insertion, so that a pathological hash_rehash
43415         that fills every bucket can still trigger another rehash.
43416
43417 2009-06-18  Jim Meyering  <meyering@redhat.com>
43418
43419         hash-tests: add a loop around the small tests
43420         * tests/test-hash.c (main): Repeat small tests with selected
43421         small initial table sizes.
43422
43423 2009-06-17  Eric Blake  <ebb9@byu.net>
43424
43425         hash: minor cleanups
43426         * lib/hash.h (hash_entry): Make opaque, by moving...
43427         * lib/hash.c (hash_entry): ...here.
43428         (hash_insert): Clarify restrictions on what can be inserted.
43429         (hash_get_next): Clarify when it is safe to remove an element
43430         during traversal.
43431         (check_tuning): Skip verification when tuning is known safe.
43432         (hash_initialize): Clarify restrictions on tuning.
43433
43434 2009-06-17  Jim Meyering  <jim@meyering.net>
43435         and Eric Blake  <ebb9@byu.net>
43436
43437         hash-tests: new module
43438         * modules/hash-tests: New file.
43439         * tests/test-hash.c: New file.
43440
43441 2009-06-17  Eric Blake  <ebb9@byu.net>
43442
43443         strstr-simple: document new module
43444         * MODULES.html.sh: Document new module.
43445
43446         strstr, strcasestr: replace on platforms with broken memchr
43447         * modules/strstr: Split into...
43448         * modules/strstr-simple: ...new module that does not care about
43449         performance, but does care about glibc bug.
43450         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43451         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43452         if platform memchr is broken, per Debian bug 521737.
43453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43454         memchr.
43455         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43456         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43457         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43458         * modules/mountlist (Depends-on): Add strstr-simple.
43459         * modules/gen-uni-tables (Depends-on): Likewise.
43460         * modules/argz (Depends-on): Add strstr.
43461
43462 2009-06-17  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/posix_spawn-internal (Depends-on): Add errno.
43465
43466 2009-06-17  Bruno Haible  <bruno@clisp.org>
43467
43468         Define missing ESTALE on Interix 3.5.
43469         * lib/errno.in.h (ESTALE): Assign a value if missing.
43470         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43472         missing.
43473         * doc/posix-headers/errno.texi: Mention the Interix bug.
43474         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43475
43476 2009-06-15  Eric Blake  <ebb9@byu.net>
43477
43478         memchr, memchr2: add valgrind exception
43479         * lib/memchr.valgrind: New file.
43480         * lib/memchr2.valgrind: New file.
43481         * modules/memchr (Files): Distribute valgrind file.
43482         * modules/memchr2 (Files): Likewise.
43483
43484         docs: memchr is no longer obsolete
43485         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43486         * lib/string.in.h (memchr): Simplify logic.
43487
43488 2009-06-14  Jim Meyering  <meyering@redhat.com>
43489
43490         link-follow: fix the "checking..." message to not mention trailing slash
43491         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43492         never considered trailing slashes.
43493
43494 2009-06-14  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/memchr.m4: Mention also the bug on IA-64.
43497         * doc/posix-functions/memchr.texi: Likewise.
43498
43499 2009-06-12  Eric Blake  <ebb9@byu.net>
43500
43501         memchr: detect broken x86_64 and alpha implementations
43502         * modules/memchr-tests (Depends-on): Move mmap detection...
43503         * modules/memchr (Depends-on): ...here.
43504         (configure.ac): Set indicator.
43505         * lib/string.in.h (memchr): Declare replacement.
43506         * modules/string (Makefile.am): Trigger replacement.
43507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43509         bugs.
43510         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43511         * modules/getpagesize (License): Relax license.
43512
43513 2009-06-11  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/idpriv.h: Add more references.
43516
43517 2009-06-08  Bruno Haible  <bruno@clisp.org>
43518
43519         Tests for module 'idpriv-droptemp'.
43520         * modules/idpriv-droptemp-tests: New file.
43521         * tests/test-idpriv-droptemp.sh: New file.
43522         * tests/test-idpriv-droptemp.su.sh: New file.
43523         * tests/test-idpriv-droptemp.c: New file.
43524
43525         New module 'idpriv-droptemp'.
43526         * lib/idpriv-droptemp.c: New file.
43527         * modules/idpriv-droptemp: New file.
43528
43529 2009-06-08  Bruno Haible  <bruno@clisp.org>
43530
43531         Tests for module 'idpriv-drop'.
43532         * modules/idpriv-drop-tests: New file.
43533         * tests/test-idpriv-drop.sh: New file.
43534         * tests/test-idpriv-drop.su.sh: New file.
43535         * tests/test-idpriv-drop.c: New file.
43536
43537         New module 'idpriv-drop'.
43538         * lib/idpriv.h: New file.
43539         * lib-idpriv-drop.c: New file.
43540         * m4/idpriv.m4: New file.
43541         * modules/idpriv-drop: New file.
43542
43543 2009-06-08  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43552
43553 2009-06-08  Eric Blake  <ebb9@byu.net>
43554
43555         test-strstr: use memory fence, when possible
43556         * tests/test-strstr.c (main): Use memory fence, in order to be
43557         more likely to trigger Debian bug 521737.
43558         * modules/strstr-tests (Files): Pull in additional files.
43559
43560         memchr: no longer obsolete, for wider field testing
43561         * modules/memchr (Status, Notice): Delete, this module is no
43562         longer obsolete.
43563         * modules/vasnprintf (Depends-on): Add memchr.
43564
43565 2009-06-07  Jim Meyering  <meyering@redhat.com>
43566
43567         hash: declare some functions with the warn_unused_result attribute
43568         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43569
43570 2009-06-07  Bruno Haible  <bruno@clisp.org>
43571
43572         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43573         Reported by Eric Blake.
43574
43575 2009-06-06  Eric Blake  <ebb9@byu.net>
43576
43577         test-alignof: fix typo with long double
43578         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43579         compiler error.
43580
43581 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43582
43583         Escape non-texinfo { and }s.
43584         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43585         markup error.
43586
43587 2009-06-04  Jim Meyering  <meyering@redhat.com>
43588
43589         gitlog-to-changelog: don't infloop on an empty commit log
43590         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43591         Reported by Boris Petersen <transacid@centerim.org>.
43592
43593 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43594
43595         version-etc: extend for packagers
43596         Add three new configure options, intended for packagers:
43597           --with-packager="packager name"
43598           --with-packager-version="packager-specific version"
43599           --with-packager-bug-reports="packager bug reporting"
43600         An example with coreutils:
43601           $ ./configure \
43602             --with-packager=Gentoo \
43603             --with-packager-bug-report=http://bugs.gentoo.org/ \
43604             --with-packager-version="patchset 1.6"
43605           $ ./src/ls --version | head -n2
43606           ls (GNU coreutils) 7.1-dirty
43607           Packaged by Gentoo (patchset 1.6)
43608         Note that the bug reporting info via --help doesn't show up because
43609         coreutils uses its own custom emit_bug_reporting_address() implementation
43610         in src/system.h.  If it didn't, it'd look like:
43611           $ ./src/ls --help | tail -n4
43612           Report bugs to <bug-coreutils@gnu.org>.
43613           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43614           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43615           General help using GNU software: <http://www.gnu.org/gethelp/>.
43616         * lib/version-etc.c: Print new information, if provided.
43617         * m4/version-etc.m4: New file.
43618         * modules/version-etc (Files): Add m4/version-etc.m4.
43619         (configure.ac): Add gl_VERSION_ETC.
43620
43621 2009-05-31  Bruno Haible  <bruno@clisp.org>
43622
43623         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43624         and 'int64_t'.
43625         * modules/alignof-tests (Dependencies): Add stdint.
43626         Reported by Eric Blake.
43627
43628 2009-05-31  Bruno Haible  <bruno@clisp.org>
43629
43630         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43631         restriction due to compiler bugs.
43632         Reported by Eric Blake.
43633
43634 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43635             Bruno Haible  <bruno@clisp.org>
43636
43637         Fix test-alignof failure.
43638         * lib/alignof.h (alignof_slot): New macro.
43639         (alignof_type): New macro, with the same semantics as the previous
43640         'alignof'.
43641         (alignof): Alias to alignof_slot.
43642         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43643         check that the results are usable as constant expressions.
43644
43645 2009-05-31  Bruno Haible  <bruno@clisp.org>
43646
43647         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43648         * tests/test-memchr.c (main): Check that memchr does not read past the
43649         first occurrence of the byte.
43650         * tests/test-strstr.c (main): Update comment.
43651         Suggested by Eric Blake.
43652
43653 2009-05-30  Bruno Haible  <bruno@clisp.org>
43654
43655         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43656         detail how to use dumpbin.
43657         Reported by David Byron <dbyron@dbyron.com>.
43658
43659 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43660
43661         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43662
43663 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43664
43665         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43666
43667 2009-05-28  Bruno Haible  <bruno@clisp.org>
43668
43669         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43670         build-aux/ files.
43671
43672 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43673
43674         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43675
43676 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43677
43678         * gnulib-tool (sed_transform_main_lib_file)
43679         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43680         regexps.
43681
43682 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43683
43684         * tests/test-strstr.c: Add another self-test.
43685         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43686         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43687
43688 2009-05-23  Bruno Haible  <bruno@clisp.org>
43689
43690         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43691         change.
43692
43693 2009-05-21  Bruno Haible  <bruno@clisp.org>
43694
43695         Simplify use of mode_t varargs.
43696         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43697         uses 'mode_t' or 'int'.
43698         * lib/openat.c (openat): Likewise.
43699         * lib/open-safer.c (open_safer): Likewise.
43700         * m4/mode_t.m4: New file.
43701         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43702         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43703         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43704         * modules/open (Files): Add m4/mode_t.m4.
43705         * modules/openat (Files): Likewise.
43706         * modules/fcntl-safer (Files): Likewise.
43707         Suggested by Eric Blake.
43708
43709 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43710
43711         * doc/glibc-functions/fallocate.texi: New file.
43712         * doc/gnulib.texi: Include it.
43713
43714 2009-05-21  Eric Blake  <ebb9@byu.net>
43715             Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43718         invocations.
43719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43720
43721 2009-05-21  Eric Blake  <ebb9@byu.net>
43722             Bruno Haible  <bruno@clisp.org>
43723
43724         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43725         include_next. Fix of 2008-11-20 commit.
43726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43727         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43728         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43729         NEXT_MATH_H.
43730         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43731         instead of NEXT_MATH_H.
43732
43733 2009-05-21  Bruno Haible  <bruno@clisp.org>
43734
43735         Avoid redefinition warnings for SIZE_MAX.
43736         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43737         Reported by Simon Josefsson.
43738
43739 2009-05-21  Bruno Haible  <bruno@clisp.org>
43740
43741         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43742         AC_CACHE_VAL.
43743
43744 2009-05-20  Bruno Haible  <bruno@clisp.org>
43745
43746         Make zeroptr.h work on mingw.
43747         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43748         mprotect.
43749         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43750         * modules/memchr2-tests (configure.ac): Likewise.
43751         * modules/memcmp-tests (configure.ac): Likewise.
43752         * modules/memmem-tests (configure.ac): Likewise.
43753         * modules/memrchr-tests (configure.ac): Likewise.
43754         Reported by Simon Josefsson.
43755
43756 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43757
43758         * tests/test-glob.c: Include string.h for strcmp prototype.
43759
43760 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43761
43762         * modules/getdelim (Depends-on): Add explicit stdint, although it
43763         was implicitly already pulled in via realloc-posix.
43764         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43765
43766 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43767
43768         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43769         G. Christensen" <tgc@jupiterrise.com>.
43770         * m4/sys_socket_h.m4: Check for sa_family_t.
43771         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43772         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43773         * tests/test-sys_socket.c: Check that sa_family_t works.
43774
43775 2009-05-18  Eric Blake  <ebb9@byu.net>
43776
43777         maint.mk: allow gnulib_dir in VPATH build
43778         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43779
43780 2009-05-15  Jim Meyering  <meyering@redhat.com>
43781
43782         maint.mk: Give gnulib_dir a default definition.
43783         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43784         Thus, most packages no longer need to specify this variable in cfg.mk
43785
43786 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43787
43788         rename.m4: fix typos that would make non-mingw cross-configure fail
43789         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43790
43791 2009-05-13  Eric Blake  <ebb9@byu.net>
43792
43793         mmap-anon: avoid out-of-order autoconf expansion
43794         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43795         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43796         * modules/memchr-tests (Depends-on): Add extensions.
43797         * modules/memchr2-tests (Depends-on): Add extensions.
43798         * modules/memcmp-tests (Depends-on): Add extensions.
43799         * modules/memmem-tests (Depends-on): Add extensions.
43800         * modules/memrchr-tests (Depends-on): Add extensions.
43801
43802 2009-05-13  Bruno Haible  <bruno@clisp.org>
43803
43804         Make some tests ISO C 99 compliant.
43805         * tests/zerosize-ptr.h: New file.
43806         * tests/test-memchr.c: Include zerosize-ptr.h.
43807         (main): Use a zero-size object pointer instead of NULL.
43808         * tests/test-memchr2.c: Include zerosize-ptr.h.
43809         (main): Use a zero-size object pointer instead of NULL.
43810         * tests/test-memcmp.c: Include zerosize-ptr.h.
43811         (main): Use a zero-size object pointer instead of NULL.
43812         * tests/test-memmem.c: Include zerosize-ptr.h.
43813         (main): Use a zero-size object pointer instead of NULL.
43814         * tests/test-memrchr.c: Include zerosize-ptr.h.
43815         (main): Use a zero-size object pointer instead of NULL.
43816         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43817         m4/mmap-anon.m4.
43818         (Depends-on): Add getpagesize.
43819         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43820         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43821         m4/mmap-anon.m4.
43822         (Depends-on): Add getpagesize.
43823         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43824         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43825         m4/mmap-anon.m4.
43826         (Depends-on): Add getpagesize.
43827         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43828         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43829         m4/mmap-anon.m4.
43830         (Depends-on): Add getpagesize.
43831         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43832         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43833         m4/mmap-anon.m4.
43834         (Depends-on): Add getpagesize.
43835         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43836
43837 2009-05-12  Bruno Haible  <bruno@clisp.org>
43838
43839         Tests for module 'alignof'.
43840         * modules/alignof-tests: New file.
43841         * tests/test-alignof.c: New file.
43842
43843 2009-05-12  Bruno Haible  <bruno@clisp.org>
43844
43845         Fix alignof macro.
43846         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43847         vendor compilers that are always correct.
43848
43849 2009-05-12  Bruno Haible  <bruno@clisp.org>
43850
43851         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43852         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43853         not whether its fully works.
43854
43855 2009-05-12  Bruno Haible  <bruno@clisp.org>
43856
43857         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43858
43859 2009-05-12  Jim Meyering  <meyering@redhat.com>
43860
43861         * top/maint.mk: Adjust backslash alignment.
43862
43863 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43864
43865         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43866
43867 2009-05-11  Eric Blake  <ebb9@byu.net>
43868
43869         argp: avoid undefined behavior
43870         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43871         macros.
43872
43873 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43874
43875         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43876         user.name to prevent git commit from complaining.
43877
43878 2009-05-10  Bruno Haible  <bruno@clisp.org>
43879
43880         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43881         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43882         it rewrites every file name only once.
43883         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43884
43885 2009-05-08  Bruno Haible  <bruno@clisp.org>
43886
43887         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43888         instead of 'max'.
43889
43890 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43891
43892         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43893         sockaddr_storage test.
43894
43895 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43896
43897         * modules/sys_socket (Makefile.am): Substitute
43898         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43899         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43900         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43901         * tests/test-sys_socket.c: Check sockaddr_storage.
43902
43903 2009-05-08  Bruno Haible  <bruno@clisp.org>
43904
43905         New module 'alignof'.
43906         * lib/alignof.h: New file.
43907         * modules/alignof: New file.
43908
43909 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43910             Bruno Haible  <bruno@clisp.org>
43911
43912         Fix test-file-has-acl on FreeBSD.
43913         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43914         mask is implicitly added.
43915         * tests/test-file-has-acl.c: Include <signal.h>.
43916         (main): Terminate the test after 5 seconds.
43917         * modules/acl-tests (configure.ac): Check for alarm function.
43918
43919 2009-05-04  Bruno Haible  <bruno@clisp.org>
43920
43921         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43922         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43923         * modules/errno (configure.ac): Drop AC_REQUIRE.
43924         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43925         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43926
43927 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43928
43929         * modules/glob-tests: New module.
43930         * tests/test-glob.c: Add.
43931
43932 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43933
43934         * modules/fnmatch-tests: New module.
43935         * tests/test-fnmatch.c: Add.
43936
43937 2009-05-04  Eric Blake  <ebb9@byu.net>
43938
43939         maint: make the new no-submodule-changes rule VPATH-safe
43940         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43941
43942 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43943             Bruno Haible  <bruno@clisp.org>
43944
43945         acl: Fix infinite loop on FreeBSD.
43946         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43947         of return value from acl_get_entry.
43948         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43949         Likewise.
43950
43951 2009-05-03  Bruno Haible  <bruno@clisp.org>
43952
43953         * lib/acl-internal.h (acl_entries): Clarify return value.
43954         * lib/acl_entries.c (acl_entries): Likewise.
43955
43956 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43957
43958         Bug fix in acl module.
43959         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43960
43961 2009-05-03  Bruno Haible  <bruno@clisp.org>
43962
43963         Create gperf-generated file in the source dir, not in the build dir.
43964         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43965         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43966         * modules/unicase/locale-language (unicase/locale-languages.h):
43967         Likewise.
43968         * modules/unicase/special-casing (unicase/special-casing-table.h):
43969         Likewise.
43970         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43971         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43972         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43973         Reported by Ralf Wildenhues.
43974
43975 2009-05-03  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/fnmatch (Description, configure.ac): Taken from
43978         fnmatch-posix.
43979         * modules/fnmatch-posix: Turn into a symbolic reference to the
43980         'fnmatch' module, and deprecate.
43981         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43982
43983 2009-05-03  Bruno Haible  <bruno@clisp.org>
43984
43985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43986         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43987         Reported by Ralf Wildenhues.
43988
43989 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43990
43991         * m4/fnmatch.m4: Fix fnmatch re-define.
43992
43993 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43994
43995         priv-set: new module and tests; adapt write-any-file
43996         * lib/priv-set.c: New file.
43997         * lib/priv-set.h: New file.
43998         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43999         * lib/write-any-file.c: Simplify by using priv-set module.
44000         * m4/priv-set.m4: New file.
44001         * modules/priv-set: New file.
44002         * modules/unlinkdir: Add dependency on priv-set module.
44003         * modules/write-any-file: Likewise.
44004
44005         Tests for module 'priv-set'.
44006         * modules/priv-set-tests: New file.
44007         * tests/test-priv-set.c: New file.
44008
44009 2009-05-03  Jim Meyering  <meyering@redhat.com>
44010             Bruno Haible  <bruno@clisp.org>
44011
44012         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44013         use the converted UTF-8 variant of the name instead.
44014
44015 2009-05-03  Jim Meyering  <meyering@redhat.com>
44016
44017         tests: tighten some getdate tests
44018         * tests/test-getdate.c (main): Tighten tests: require equality,
44019         not just greater than.  Set TZ envvar to UTC0.
44020
44021 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44022
44023         getdate: correctly interpret "next monday" when run on a Monday
44024         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44025         that e.g., "next tues" (when run on a tuesday) results in a date
44026         that is one week in the future, and not today's date.
44027         I.e., add a week when the wday is the same as the current one.
44028         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44029         and earlier by Martin Bernreuther and Jan Minář.
44030         * tests/test-getdate.c (main): Check that "next DAY" is always in
44031         the future and that "last DAY" is always in the past.
44032
44033 2009-05-02  Jim Meyering  <meyering@redhat.com>
44034
44035         build: ensure that a release build fails when a submodule is unclean
44036         * top/maint.mk (no-submodule-changes): New rule.
44037         (alpha beta major): Depend on it.
44038
44039 2009-05-02  Bruno Haible  <bruno@clisp.org>
44040
44041         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44042         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44043         shell variable gl_fnmatch_required to detect which variant is
44044         requested.
44045         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44046         gl_FUNC_FNMATCH_POSIX.
44047         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44048         exclude fnmatch-posix.
44049
44050 2009-05-02  Bruno Haible  <bruno@clisp.org>
44051
44052         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44053         * modules/mbsrtowcs (License): Change to LGPLv2+.
44054         * modules/strnlen1 (License): Likewise.
44055         Reported by Simon Josefsson.
44056
44057 2009-05-02  Bruno Haible  <bruno@clisp.org>
44058
44059         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44060         "cross".
44061         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44062         gnulib-tool was called with option --source-base=lib.
44063
44064 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44065
44066         Use automake *-local hooks without commands, for extensibility.
44067         * modules/localcharset (Makefile.am): Rename install-exec-local
44068         rule to install-exec-localcharset, and make it a prerequisite of
44069         install-exec-local.  Likewise, rename the uninstall-local rule to
44070         uninstall-localcharset, and make it a prerequisite of the former.
44071
44072 2009-05-01  Bruno Haible  <bruno@clisp.org>
44073
44074         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44075         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44076         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44078         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44079         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44080         m4/locale-zh.m4, m4/codeset.m4.
44081
44082         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44083         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44084         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44085         m4/locale-zh.m4.
44086
44087         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44088         REPLACE_WCRTOMB if mbstate_t must be replaced.
44089         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44090         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44091
44092 2009-05-01  Bruno Haible  <bruno@clisp.org>
44093
44094         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44095         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44096         dngettext, dcngettext, textdomain, bindtextdomain,
44097         bind_textdomain_codeset): Undefine before redefining.
44098
44099 2009-04-30  Bruno Haible  <bruno@clisp.org>
44100
44101         Fix bug introduced on 2009-04-25.
44102         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44103         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44104         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44105         is defined.
44106         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44107         is defined.
44108         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44109         is defined.
44110         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44111
44112 2009-04-28  Bruno Haible  <bruno@clisp.org>
44113
44114         Comment tweaks.
44115         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44116         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44117         * lib/unicase.h (u*_casexfrm): Likewise.
44118         Reported by Paolo Bonzini.
44119
44120 2009-04-28  Bruno Haible  <bruno@clisp.org>
44121
44122         Fix a compilation error.
44123         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44124         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44125         Reported by Jim Meyering.
44126
44127 2009-04-27  Bruno Haible  <bruno@clisp.org>
44128
44129         New module 'libunistring'.
44130         * modules/libunistring: New file.
44131         * m4/libunistring.m4: New file.
44132         * MODULES.html.sh (Unicode string functions): Add it.
44133
44134 2009-04-27  Eric Blake  <ebb9@byu.net>
44135
44136         maint.mk: allow package-specific header to provide <config.h>
44137         * top/maint.mk (sc_require_config_h): New variable.
44138         (sc_require_config_h, sc_require_config_h_first): Use it.
44139
44140 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44141
44142         * top/maint.mk (sc_avoid_if_before_free): Except
44143         useless-if-before-free script.
44144
44145 2009-04-27  Eric Blake  <ebb9@byu.net>
44146
44147         maintainer-makefile: depend on all required helper scripts
44148         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44149         useless-if-before-free.
44150         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44151         version, rather than assuming gnulib checkout is available.
44152         Reported by Simen Josefsson.
44153
44154 2009-04-26  Bruno Haible  <bruno@clisp.org>
44155
44156         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44157         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44158         "../" or "..".
44159
44160 2009-04-26  Bruno Haible  <bruno@clisp.org>
44161
44162         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44163         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44164         AC_LIB_HAVE_LINKFLAGS.
44165
44166 2009-04-26  Bruno Haible  <bruno@clisp.org>
44167
44168         Simplify calling convention of u*_conv_from_encoding.
44169         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44170         u32_conv_from_encoding): Expect a resultbuf argument and return the
44171         result directly as a pointer.
44172         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44173         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44174         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44175         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44176         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44177         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44178         Update.
44179         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44180         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44181         * lib/vasnprintf.c (VASNPRINTF): Update.
44182         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44183         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44184         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44185         * NEWS: Mention the change.
44186
44187 2009-04-26  Bruno Haible  <bruno@clisp.org>
44188
44189         Simplify calling convention of u*_conv_to_encoding.
44190         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44191         u32_conv_to_encoding): Expect a resultbuf argument and return the
44192         result directly as a pointer.
44193         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44194         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44195         freeing scaled_offsets if mem_iconveha failed.
44196         * lib/unicase/u-casexfrm.h (FUNC): Update.
44197         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44198         * lib/vasnprintf.c (VASNPRINTF): Update.
44199         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44200         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44201         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44202         * NEWS: Mention the change.
44203
44204 2009-04-26  Bruno Haible  <bruno@clisp.org>
44205
44206         Avoid test failures on AIX and OSF/1.
44207         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44208         malloc(0).
44209         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44210         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44211         Likewise.
44212         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44213         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44214         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44215         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44216         * doc/posix-functions/malloc.texi: Document the portability problem
44217         related to malloc(0).
44218
44219 2009-04-26  Bruno Haible  <bruno@clisp.org>
44220
44221         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44222         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44223         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44224
44225 2009-04-25  Bruno Haible  <bruno@clisp.org>
44226
44227         Avoid link error when creating a namespace clean library.
44228         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44229         as macro with arguments if already defined as an alias.
44230         * lib/signbitf.c (gl_signbitf): Don't undefine.
44231         * lib/signbitd.c (gl_signbitd): Don't undefine.
44232         * lib/signbitl.c (gl_signbitl): Don't undefine.
44233
44234 2009-04-25  Jim Meyering  <meyering@redhat.com>
44235
44236         vc-list-files: fix another quoting bug
44237         * build-aux/vc-list-files: Avoid sed backslash expansion
44238         of pathological directory names.
44239
44240 2009-04-25  Eric Blake  <ebb9@byu.net>
44241
44242         vc-list-files: fix shell quoting error
44243         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44244         timestamp.
44245
44246 2009-04-25  Jim Meyering  <meyering@redhat.com>
44247
44248         vc-list-files: restore lost functionality with subdir argument
44249         * build-aux/vc-list-files: When given a non-"." sub-directory
44250         argument, substitute the $dir/ prefix back onto each resulting name.
44251         Otherwise, coreutils' root_tests check would fail.
44252
44253 2009-04-24  Eric Blake  <ebb9@byu.net>
44254
44255         vc-list-files: ignore git symlinks
44256         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44257         than ls-files, to ignore git symlinks.
44258
44259         maint.mk: import improvements from m4
44260         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44261         (move_if_change): Delete unused macro.
44262         (news-date-check, vc-diff-check): Support VPATH builds.
44263         (announcement): Likewise.  Split --bootstrap-tools list...
44264         (boostrap-tools): ...into separate list, which can be overridden
44265         in cfg.mk.
44266         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44267         requiring dependency on useless-if-before-free module.
44268         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44269         Support VPATH builds.
44270
44271 2009-04-24  Jim Meyering  <meyering@redhat.com>
44272
44273         maint.mk: remove coreutils-specific rules and variables
44274         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44275         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44276         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44277
44278         maint.mk: remove obsolete rule
44279         * top/maint.mk (rel-check): Remove rule.
44280         (WGET, WGETFLAGS): Remove now-unused variables.
44281
44282 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44283
44284         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44285         consistency.
44286
44287         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44288         '$(PATH_SEPARATOR)' instead of ':'.
44289
44290 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44291
44292         * lib/getopt1.c (main): Use 'const' for static array.
44293
44294 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44295
44296         * top/maint.mk: Sync with coreutils.
44297         * NEWS: Explain incompatibilities.
44298
44299 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44300             Bruno Haible  <bruno@clisp.org>
44301
44302         Fix cross-compilation results.
44303         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44304         statement, as third argument of AC_TRY_RUN.
44305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44306         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44307         Likewise.
44308         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44309         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44310         Likewise.
44311         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44312         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44313         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44314
44315 2009-04-20  Bruno Haible  <bruno@clisp.org>
44316
44317         Avoid test failure on mingw.
44318         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44319
44320 2009-04-20  Bruno Haible  <bruno@clisp.org>
44321
44322         Avoid compilation error on mingw.
44323         * modules/localename-tests (Depends-on): Add locale.
44324
44325 2009-04-19  Bruno Haible  <bruno@clisp.org>
44326
44327         Support for building a shared library on Windows platforms.
44328         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44329         (main): Test the presence of UNINORM_NFC here.
44330         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44331         (main): Test the presence of UNINORM_NFD here.
44332         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44333         (main): Test the presence of UNINORM_NFKC here.
44334         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44335         (main): Test the presence of UNINORM_NFKD here.
44336
44337 2009-04-19  Bruno Haible  <bruno@clisp.org>
44338
44339         Avoid a compiler warning.
44340         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44341         Change type of variable 'sequence'.
44342
44343 2009-04-19  Bruno Haible  <bruno@clisp.org>
44344
44345         * modules/configmake (Makefile.am): When the contents of configmake.h
44346         does not change, arrange to preserve its modification time.
44347
44348 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44349
44350         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44351         gettext domain.
44352
44353 2009-04-16  Jim Meyering  <meyering@redhat.com>
44354
44355         useless-if-before-free: improve conversion code
44356         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44357         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44358
44359 2009-04-14  Bruno Haible  <bruno@clisp.org>
44360
44361         * modules/fcntl (Depends-on): Add extensions.
44362         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44363
44364 2009-04-12  Ben Pfaff  <blp@gnu.org>
44365
44366         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44367         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44368
44369 2009-03-20  Ben Pfaff  <blp@gnu.org>
44370
44371         Make rename replace existing destinations on Windows.
44372         * m4/rename.m4: Add test for Mingw.
44373         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44374         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44375         * doc/posix-functions/rename.texi: Document.
44376
44377 2009-04-10  Bruno Haible  <bruno@clisp.org>
44378
44379         New include file "iconveh.h".
44380         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44381         * lib/striconveh.h: Include it.
44382         (enum iconv_ilseq_handler): Remove definition.
44383         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44384         striconveh.h.
44385         * lib/striconveha.c: Include striconveh.h.
44386         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44387         * modules/striconveh (Files): Add lib/iconveh.h.
44388         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44389         lib/striconveh.h.
44390
44391 2009-04-10  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/uniconv.h: Update comment.
44394
44395 2009-04-10  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44398         always.
44399         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44400         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44402         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44403         "unistring-notinline.h", so that the function gets defined always.
44404         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44405         * lib/unistr/u8-uctomb.c: Likewise.
44406         * lib/unistr/u16-mbtouc.c: Likewise.
44407         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44408         * lib/unistr/u16-uctomb.c: Likewise.
44409         * lib/unistr/u32-mbtouc.c: Likewise.
44410         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44411         * lib/unistr/u32-uctomb.c: Likewise.
44412
44413 2009-04-10  Bruno Haible  <bruno@clisp.org>
44414
44415         Mark 'utime' obsolete.
44416         * modules/utime (Status, Notice): New sections.
44417         Suggested by Jim Meyering.
44418
44419         Fix cross-compile guess for utime test.
44420         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44421         autoconf.
44422         * doc/posix-functions/utime.texi: Give more precisions.
44423         Reported by Jan <ipif@ymail.com>.
44424
44425 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44426
44427         filevercmp: correct today's change
44428         * lib/filevercmp.c: Also handle coreutils' test inputs.
44429         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44430
44431         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44432         for reporting it.
44433         * lib/filevercmp.c: Special handle for "", "." and "..".
44434         * tests/test-filevercmp.c: Enlarge the set suite.
44435
44436 2009-04-07  Jim Meyering  <meyering@redhat.com>
44437
44438         useless-if-before-free: show how to remove braced useless free, too
44439         * build-aux/useless-if-before-free: still only in a comment, though.
44440
44441 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44442
44443         maint.mk: import changes to syntax-check macros from coreutils
44444         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44445         Use them in the relevant macros.
44446
44447 2009-04-06  Bruno Haible  <bruno@clisp.org>
44448
44449         Fix unportable use of bit-fields.
44450         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44451         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44452         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44453
44454 2009-04-06  Bruno Haible  <bruno@clisp.org>
44455
44456         Avoid test failures on AIX and OSF/1.
44457         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44458         that malloc(0) = NULL.
44459         * tests/unicase/test-u8-tolower.c (check): Likewise.
44460         * tests/unicase/test-u8-totitle.c (check): Likewise.
44461         * tests/unicase/test-u8-toupper.c (check): Likewise.
44462         * tests/unicase/test-u16-casefold.c (check): Likewise.
44463         * tests/unicase/test-u16-tolower.c (check): Likewise.
44464         * tests/unicase/test-u16-totitle.c (check): Likewise.
44465         * tests/unicase/test-u16-toupper.c (check): Likewise.
44466         * tests/unicase/test-u32-casefold.c (check): Likewise.
44467         * tests/unicase/test-u32-tolower.c (check): Likewise.
44468         * tests/unicase/test-u32-totitle.c (check): Likewise.
44469         * tests/unicase/test-u32-toupper.c (check): Likewise.
44470         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44471         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44472         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44473         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44474         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44475         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44476         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44477         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44478         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44479         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44480         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44481         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44482
44483 2009-04-05  Bruno Haible  <bruno@clisp.org>
44484
44485         Work around an autoconf limitation.
44486         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44487         comment line if it would be longer than 3 KB.
44488
44489 2009-04-05  Bruno Haible  <bruno@clisp.org>
44490
44491         Avoid test failure with libiconv-1.13.
44492         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44493         of the expected test results.
44494
44495 2009-04-05  Bruno Haible  <bruno@clisp.org>
44496
44497         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44498         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44499         that it should be installed.
44500
44501 2009-04-05  Bruno Haible  <bruno@clisp.org>
44502
44503         * gnulib-tool: New option --copy-file.
44504         (func_usage): Document it.
44505         (func_dest_tmpfilename): Moved out of func_import.
44506         (func_add_file, func_update_file): New functions, extracted from
44507         func_import.
44508         (func_import): Update.
44509
44510 2009-04-05  Karl Berry  <karl@gnu.org>
44511
44512         * README: prominently mention gnulib-tool.
44513         Rearrange sections so getting the code is near the top.
44514
44515 2009-04-05  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/unicase.h: Mention u*_cmp2.
44518         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44519         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44520         * lib/unicase/ulc-casecmp.c: Likewise.
44521         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44522         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44523         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44524         unistr/u8-cmp.
44525         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44526         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44527         unistr/u16-cmp.
44528         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44529         unistr/u32-cmp.
44530
44531         * lib/uninorm.h: Mention u*_cmp2.
44532         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44533         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44534         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44535         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44536         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44537         unistr/u8-cmp.
44538         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44539         unistr/u16-cmp.
44540         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44541         unistr/u32-cmp.
44542
44543         New module 'unistr/u32-cmp2'.
44544         * lib/unistr/u32-cmp2.c: New file.
44545         * modules/unistr/u32-cmp2: New file.
44546
44547         New module 'unistr/u16-cmp2'.
44548         * lib/unistr/u16-cmp2.c: New file.
44549         * modules/unistr/u16-cmp2: New file.
44550
44551         New module 'unistr/u8-cmp2'.
44552         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44553         * lib/unistr/u8-cmp2.c: New file.
44554         * lib/unistr/u-cmp2.h: New file.
44555         * modules/unistr/u8-cmp2: New file.
44556
44557 2009-04-05  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/unictype.h (uc_property_is_valid): New macro.
44560         * tests/unictype/test-pr_byname.c (main): Use it.
44561
44562         * lib/unistr.h: Doc fixes.
44563         * lib/uniconv.h: Doc fixes.
44564         * lib/unictype.h: Doc fixes.
44565
44566 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44567
44568         Port coreutils 7.2 to Solaris 8.
44569
44570         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44571         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44572         for Solaris 8.  This is a bit of a hack, as it means it's the
44573         caller's responsibility to add -lnsl if needed, but most likely it
44574         won't be needed since only getaddrinfo uses this and getaddrinfo
44575         isn't needed on Solaris 8.
44576
44577         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44578         problem to Solaris 8 encountered with coreutils 7.2, which
44579         resulted in a message "fnmatch.c:292: warning: passing argument 4
44580         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44581         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44582
44583 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44584
44585         * m4/ld-version-script.m4: Add FIXME comment.
44586
44587 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44588
44589         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44590         SOVERSION variable.
44591
44592 2009-04-02  Bruno Haible  <bruno@clisp.org>
44593
44594         * Makefile (info, html, dvi, pdf): Combine the rules.
44595         Suggested by Jim Meyering.
44596
44597 2009-04-01  Bruno Haible  <bruno@clisp.org>
44598
44599         * Makefile (info, html, dvi, pdf): New targets.
44600         Reported by Reuben Thomas <rrt@sc3d.org>.
44601
44602 2009-04-01  Bruno Haible  <bruno@clisp.org>
44603
44604         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44605         can be put into PATH.
44606         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44607
44608 2009-04-01  Bruno Haible  <bruno@clisp.org>
44609
44610         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44611
44612 2009-04-01  Bruno Haible  <bruno@clisp.org>
44613
44614         Rename module 'visibility'.
44615         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44616         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44617         * doc/gnulib.texi: Update.
44618         * MODULES.html.sh (Misc): Update.
44619         * NEWS: Mention the change.
44620
44621 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44622
44623         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44624         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44625         Eric Blake <ebb9@byu.net> for review.
44626         * MODULES.html.sh: Add lib-msvc-compat.
44627         * doc/gnulib.texi: Link to new section.
44628         * m4/ld-output-def.m4: New file.
44629         * doc/ld-output-def.texi: New file.
44630
44631 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44632
44633         Rename ld-version-script to lib-symbol-versions.  Suggested by
44634         Bruno Haible <bruno@clisp.org>.
44635         * modules/ld-version-script: Renamed to lib-symbol-versions.
44636         * doc/ld-version-script.texi: Fix module name.
44637         * MODULES.html.sh: Add lib-symbol-versions.
44638
44639 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44640
44641         * modules/u64-tests: New file.
44642         * tests/test-u64.c: New file.
44643
44644 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44645
44646         * MODULES.html.sh: Mention u64.
44647         * modules/u64: New module.
44648         * modules/crypto/sha512: Depend on u64 module instead of providing
44649         u64.h.
44650
44651 2009-03-27  Eric Blake  <ebb9@byu.net>
44652
44653         test-strerror: make debugging EAI_SYSTEM easier
44654         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44655         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44656         failure was EAI_SYSTEM.
44657
44658 2009-03-25  Bruno Haible  <bruno@clisp.org>
44659
44660         Fix a problem with --enable-relocatable on Solaris 7.
44661         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44662         since 2008-02-24.
44663
44664 2009-03-25  Eric Blake  <ebb9@byu.net>
44665
44666         test-sockets: avoid gcc warning
44667         * tests/test-sockets.c (main): Silence compiler warning.
44668
44669 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44670
44671         New modules nproc, pthread, contributed by Glen Lenker.
44672
44673         * MODULES.html.sh: Add pthread, nproc.
44674         * lib/nproc.c: New file.
44675         * lib/nproc.h: New file.
44676         * lib/pthread.in.h: New file.
44677         * m4/pthread.m4: New file.
44678         * modules/nproc: New file.
44679         * modules/pthread: New file.
44680
44681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44682
44683         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44684         New variable.
44685
44686 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44687
44688         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44689         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44690         * tests/test-filevercmp.c: Add tests for backup suffixes.
44691
44692 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44693
44694         * modules/stdlib (Depends-on): Add stdint, needed when defining
44695         struct random_data on, for example, HP-UX 10.20.  Reported by
44696         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44697
44698 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44699
44700         * lib/readline.c (readline): Call fflush on stdout after printing
44701         prompt.
44702
44703 2009-03-20  Bruno Haible  <bruno@clisp.org>
44704
44705         Remove dependency from 'close' module to -lws2_32 on native Windows.
44706         * lib/close-hook.h: New file.
44707         * lib/close-hook.c: New file.
44708         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44709         w32sock.h.
44710         (_gl_close_fd_maybe_socket): Remove function.
44711         (rpl_close): Invoke execute_all_close_hooks instead of
44712         _gl_close_fd_maybe_socket.
44713         * lib/sockets.c: Include close-hook.h, w32sock.h.
44714         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44715         (close_sockets_hook): New variable.
44716         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44717         (gl_sockets_cleanup): Unregister it.
44718         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44719         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44720         * modules/close-hook: New file.
44721         * modules/close (Files): Remove lib/w32sock.h.
44722         (Depends-on): Add close-hook.
44723         (Link): Remove section.
44724         * modules/sockets (Files): Add lib/w32sock.h.
44725         (Depends-on): Add close-hook.
44726         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44727         invocation.
44728         * NEWS: Mention that LIB_CLOSE is gone.
44729
44730 2009-03-23  Eric Blake  <ebb9@byu.net>
44731
44732         signal-tests: test previous patch
44733         * tests/test-signal.c: New file.
44734         * modules/signal-tests: Likewise.
44735
44736         signal.h: always support 'volatile sig_atomic_t'
44737         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44738         (gl_SIGNAL_H_DEFAULTS): Add a default.
44739         * modules/signal (Makefile.am): Substitute if needed.
44740         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44741         users can blindly add volatile.
44742         * doc/posix-headers/signal.texi (signal.h): Document it.
44743         Reported by Matthew Woehlke.
44744
44745 2009-03-23  Jim Meyering  <meyering@redhat.com>
44746
44747         pathmax: PATH_MAX: use pathconf only when available
44748         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44749         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44750         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44751         This avoids a link failure in a PSP cross-compilation environment
44752         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44753
44754         * lib/vasnprintf.c (divide): Fix typo in comment.
44755
44756 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44757
44758         * gnulib-tool (func_filter_filelist): Fix comment.
44759
44760 2009-03-20  Bruno Haible  <bruno@clisp.org>
44761
44762         Make sockets.h self-contained.
44763         * lib/sockets.c: Include sockets.h first.
44764         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44765
44766 2009-03-19  Eric Blake  <ebb9@byu.net>
44767
44768         doc: mention more functions added in cygwin 1.7.0
44769         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44770         addition.
44771         * doc/posix-functions/log2f.texi: Likewise.
44772
44773 2009-03-19  Jim Meyering  <meyering@redhat.com>
44774
44775         fsusage: avoid syntax error due to statement-before-declaration
44776         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44777         after all declarations.  Reported by Matthew Woehlke in
44778         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44779
44780 2009-03-18  Eric Blake  <ebb9@byu.net>
44781
44782         build-aux/compile: sync from automake
44783         * build-aux/compile: New file, from automake.
44784         * config/srclist.txt: Mention build-aux/compile.
44785
44786 2009-03-17  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/git-merge-changelog.c: Fix typo in comment.
44789         Reported by Reuben Thomas <rrt@sc3d.org>.
44790
44791 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44792
44793         * m4/regex.m4: update and improve help for
44794         --without-included-regex.
44795
44796 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44797
44798         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44799         failure on missing include files.
44800
44801 2009-03-17  Eric Blake  <ebb9@byu.net>
44802
44803         doc: mention more functions added in cygwin 1.7.0
44804         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44805         addition.
44806         * doc/posix-functions/fwscanf.texi: Likewise.
44807         * doc/posix-functions/swprintf.texi: Likewise.
44808         * doc/posix-functions/swscanf.texi: Likewise.
44809         * doc/posix-functions/vfwprintf.texi: Likewise.
44810         * doc/posix-functions/vfwscanf.texi: Likewise.
44811         * doc/posix-functions/vswprintf.texi: Likewise.
44812         * doc/posix-functions/vswscanf.texi: Likewise.
44813         * doc/posix-functions/vwprintf.texi: Likewise.
44814         * doc/posix-functions/vwscanf.texi: Likewise.
44815         * doc/posix-functions/wcscasecmp.texi: Likewise.
44816         * doc/posix-functions/wcsdup.texi: Likewise.
44817         * doc/posix-functions/wcsftime.texi: Likewise.
44818         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44819         * doc/posix-functions/wprintf.texi: Likewise.
44820         * doc/posix-functions/wscanf.texi: Likewise.
44821         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44822
44823 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44824
44825         maint.mk: really add $(AM_MAKEFLAGS)
44826         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44827         was inadvertently omitted in the last commit.
44828         Spotted by Bruno Haible.
44829
44830         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44831         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44832         $(AM_MAKEFLAGS)' rather than plain `make'.
44833
44834         gnulib-tool: execute $MAKE not make
44835         * gnulib-tool: Default $MAKE to 'make'.
44836         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44837         than make.  Initialize $MAKE in the do-autobuild script.
44838
44839         gnulib-tool: use $MAKE not make in generated files
44840         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44841         make, in generated files.  Initialize $MAKE in the do-autobuild
44842         script.
44843
44844         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44845
44846         GNUmakefile: disable parallelism only for multiple, recursive targets
44847         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44848         additions in the Makefile.
44849         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44850         by Automake.
44851         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44852         are listed on the command line and at least one of them is
44853         listed in $(ALL_RECURSIVE_TARGETS).
44854
44855 2009-03-14  Bruno Haible  <bruno@clisp.org>
44856
44857         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44858         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44859         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44860         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44861         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44862         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44863         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44864         unistr/u8-uctomb.
44865         * modules/unistr/u8-strchr (Depends-on): Likewise.
44866         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44867         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44868         unistr/u16-uctomb.
44869         * modules/unistr/u16-strchr (Depends-on): Likewise.
44870         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44871
44872 2009-03-12  Bruno Haible  <bruno@clisp.org>
44873
44874         Work around select() bug on Interix 3.5.
44875         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44876         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44877         * m4/select.m4: New file.
44878         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44879         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44880         * modules/select (Files): Add m4/select.m4.
44881         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44882         * modules/nanosleep (Depends-on): Add select.
44883         * modules/poll (Depends-on): Likewise.
44884         * doc/posix-functions/select.texi: Mention the Interix bug.
44885         Reported by Markus Duft <mduft@gentoo.org>.
44886
44887         * lib/select.c: Renamed from lib/winsock-select.c.
44888         * modules/select (Files): Add lib/select.c, remove
44889         lib/winsock-select.c.
44890         (configure.ac): Update.
44891
44892 2009-03-12  Jim Meyering  <meyering@redhat.com>
44893
44894         avoid gcc warnings about unused macro definitions
44895         * lib/readtokens.c (STREQ): Remove unused definition.
44896         * lib/xmalloc.c (SIZE_MAX): Likewise.
44897         * lib/openat-die.c (N_): Likewise.
44898         * lib/mountlist.c (SIZE_MAX): Remove definition.
44899         Instead, include <stdint.h>.
44900         * lib/readutmp.c: Likewise.
44901         * modules/readutmp (Depends-on): Add stdint.
44902         * modules/mountlist (Depends-on): Add stdint.
44903         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44904
44905 2009-03-10  Bruno Haible  <bruno@clisp.org>
44906
44907         Tests for module 'mbmemcasecoll'.
44908         * modules/mbmemcasecoll-tests: New file.
44909         * tests/test-mbmemcasecoll1.sh: New file.
44910         * tests/test-mbmemcasecoll2.sh: New file.
44911         * tests/test-mbmemcasecoll3.sh: New file.
44912         * tests/test-mbmemcasecoll.c: New file.
44913
44914         New module 'mbmemcasecoll'.
44915         * lib/mbmemcasecoll.h: New file.
44916         * lib/mbmemcasecoll.c: New file.
44917         * modules/mbmemcasecoll: New file.
44918
44919         * tests/test-mbmemcasecmp.h: New file, extracted from
44920         tests/test-mbmemcasecmp.c.
44921         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44922         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44923         (main): Update.
44924         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44925
44926 2009-03-09  Bruno Haible  <bruno@clisp.org>
44927
44928         Tests for module 'mbmemcasecmp'.
44929         * modules/mbmemcasecmp-tests: New file.
44930         * tests/test-mbmemcasecmp1.sh: New file.
44931         * tests/test-mbmemcasecmp2.sh: New file.
44932         * tests/test-mbmemcasecmp3.sh: New file.
44933         * tests/test-mbmemcasecmp.c: New file.
44934
44935         New module 'mbmemcasecmp'.
44936         * lib/mbmemcasecmp.h: New file.
44937         * lib/mbmemcasecmp.c: New file.
44938         * modules/mbmemcasecmp: New file.
44939
44940 2009-03-09  Bruno Haible  <bruno@clisp.org>
44941
44942         Tests for module 'unicase/ulc-casecoll'.
44943         * modules/unicase/ulc-casecoll-tests: New file.
44944         * tests/unicase/test-ulc-casecoll1.sh: New file.
44945         * tests/unicase/test-ulc-casecoll2.sh: New file.
44946         * tests/unicase/test-ulc-casecoll.c: New file.
44947
44948         New module 'unicase/ulc-casecoll'.
44949         * lib/unicase.h (ulc_casecoll): New declaration.
44950         * lib/unicase/ulc-casecoll.c: New file.
44951         * modules/unicase/ulc-casecoll: New file.
44952
44953         New module 'unicase/ulc-casexfrm'.
44954         * lib/unicase.h (ulc_casexfrm): New declaration.
44955         * lib/unicase/ulc-casexfrm.c: New file.
44956         * modules/unicase/ulc-casexfrm: New file.
44957
44958 2009-03-09  Bruno Haible  <bruno@clisp.org>
44959
44960         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44961         invocations.
44962
44963         * m4/mbscasecmp.m4: Remove file.
44964         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44965         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44966
44967         * m4/mbscasestr.m4: Remove file.
44968         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44969         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44970
44971         * m4/mbschr.m4: Remove file.
44972         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44973         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44974
44975         * m4/mbscspn.m4: Remove file.
44976         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44977         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44978
44979         * m4/mbslen.m4: Remove file.
44980         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44981         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44982
44983         * m4/mbsncasecmp.m4: Remove file.
44984         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44985         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44986
44987         * m4/mbsnlen.m4: Remove file.
44988         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44989         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44990
44991         * m4/mbspbrk.m4: Remove file.
44992         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44993         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44994
44995         * m4/mbspcasecmp.m4: Remove file.
44996         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44997         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44998
44999         * m4/mbsrchr.m4: Remove file.
45000         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45001         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45002
45003         * m4/mbssep.m4: Remove file.
45004         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45005         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45006
45007         * m4/mbsspn.m4: Remove file.
45008         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45009         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45010
45011         * m4/mbsstr.m4: Remove file.
45012         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45013         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45014
45015         * m4/mbstok_r.m4: Remove file.
45016         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45017         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45018
45019         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45020
45021         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45022         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45023
45024         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45025
45026 2009-03-08  Bruno Haible  <bruno@clisp.org>
45027
45028         Tests for module 'unicase/ulc-casecmp'.
45029         * modules/unicase/ulc-casecmp-tests: New file.
45030         * tests/unicase/test-ulc-casecmp1.sh: New file.
45031         * tests/unicase/test-ulc-casecmp2.sh: New file.
45032         * tests/unicase/test-ulc-casecmp.c: New file.
45033
45034         New module 'unicase/ulc-casecmp'.
45035         * lib/unicase.h (ulc_casecmp): New declaration.
45036         * lib/unicase/ulc-casecmp.c: New file.
45037         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45038         'const SRC_UNIT *'.
45039         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45040         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45041         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45042         * modules/unicase/ulc-casecmp: New file.
45043
45044         Tests for module 'unicase/u32-is-cased'.
45045         * modules/unicase/u32-is-cased-tests: New file.
45046         * tests/unicase/test-u32-is-cased.c: New file.
45047
45048         Tests for module 'unicase/u16-is-cased'.
45049         * modules/unicase/u16-is-cased-tests: New file.
45050         * tests/unicase/test-u16-is-cased.c: New file.
45051
45052         Tests for module 'unicase/u8-is-cased'.
45053         * modules/unicase/u8-is-cased-tests: New file.
45054         * tests/unicase/test-u8-is-cased.c: New file.
45055         * tests/unicase/test-is-cased.h: New file.
45056
45057         New module 'unicase/u32-is-cased'.
45058         * lib/unicase/u32-is-cased.c: New file.
45059         * modules/unicase/u32-is-cased: New file.
45060
45061         New module 'unicase/u16-is-cased'.
45062         * lib/unicase/u16-is-cased.c: New file.
45063         * modules/unicase/u16-is-cased: New file.
45064
45065         New module 'unicase/u8-is-cased'.
45066         * lib/unicase/u8-is-cased.c: New file.
45067         * lib/unicase/u-is-cased.h: New file.
45068         * modules/unicase/u8-is-cased: New file.
45069
45070         Tests for module 'unicase/u32-is-casefolded'.
45071         * modules/unicase/u32-is-casefolded-tests: New file.
45072         * tests/unicase/test-u32-is-casefolded.c: New file.
45073
45074         Tests for module 'unicase/u16-is-casefolded'.
45075         * modules/unicase/u16-is-casefolded-tests: New file.
45076         * tests/unicase/test-u16-is-casefolded.c: New file.
45077
45078         Tests for module 'unicase/u8-is-casefolded'.
45079         * modules/unicase/u8-is-casefolded-tests: New file.
45080         * tests/unicase/test-u8-is-casefolded.c: New file.
45081         * tests/unicase/test-is-casefolded.h: New file.
45082
45083         New module 'unicase/u32-is-casefolded'.
45084         * lib/unicase/u32-is-casefolded.c: New file.
45085         * modules/unicase/u32-is-casefolded: New file.
45086
45087         New module 'unicase/u16-is-casefolded'.
45088         * lib/unicase/u16-is-casefolded.c: New file.
45089         * modules/unicase/u16-is-casefolded: New file.
45090
45091         New module 'unicase/u8-is-casefolded'.
45092         * lib/unicase/u8-is-casefolded.c: New file.
45093         * modules/unicase/u8-is-casefolded: New file.
45094
45095         Tests for module 'unicase/u32-is-titlecase'.
45096         * modules/unicase/u32-is-titlecase-tests: New file.
45097         * tests/unicase/test-u32-is-titlecase.c: New file.
45098
45099         Tests for module 'unicase/u16-is-titlecase'.
45100         * modules/unicase/u16-is-titlecase-tests: New file.
45101         * tests/unicase/test-u16-is-titlecase.c: New file.
45102
45103         Tests for module 'unicase/u8-is-titlecase'.
45104         * modules/unicase/u8-is-titlecase-tests: New file.
45105         * tests/unicase/test-u8-is-titlecase.c: New file.
45106         * tests/unicase/test-is-titlecase.h: New file.
45107
45108         New module 'unicase/u32-is-titlecase'.
45109         * lib/unicase/u32-is-titlecase.c: New file.
45110         * modules/unicase/u32-is-titlecase: New file.
45111
45112         New module 'unicase/u16-is-titlecase'.
45113         * lib/unicase/u16-is-titlecase.c: New file.
45114         * modules/unicase/u16-is-titlecase: New file.
45115
45116         New module 'unicase/u8-is-titlecase'.
45117         * lib/unicase/u8-is-titlecase.c: New file.
45118         * modules/unicase/u8-is-titlecase: New file.
45119
45120         Tests for module 'unicase/u32-is-lowercase'.
45121         * modules/unicase/u32-is-lowercase-tests: New file.
45122         * tests/unicase/test-u32-is-lowercase.c: New file.
45123
45124         Tests for module 'unicase/u16-is-lowercase'.
45125         * modules/unicase/u16-is-lowercase-tests: New file.
45126         * tests/unicase/test-u16-is-lowercase.c: New file.
45127
45128         Tests for module 'unicase/u8-is-lowercase'.
45129         * modules/unicase/u8-is-lowercase-tests: New file.
45130         * tests/unicase/test-u8-is-lowercase.c: New file.
45131         * tests/unicase/test-is-lowercase.h: New file.
45132
45133         New module 'unicase/u32-is-lowercase'.
45134         * lib/unicase/u32-is-lowercase.c: New file.
45135         * modules/unicase/u32-is-lowercase: New file.
45136
45137         New module 'unicase/u16-is-lowercase'.
45138         * lib/unicase/u16-is-lowercase.c: New file.
45139         * modules/unicase/u16-is-lowercase: New file.
45140
45141         New module 'unicase/u8-is-lowercase'.
45142         * lib/unicase/u8-is-lowercase.c: New file.
45143         * modules/unicase/u8-is-lowercase: New file.
45144
45145         Tests for module 'unicase/u32-is-uppercase'.
45146         * modules/unicase/u32-is-uppercase-tests: New file.
45147         * tests/unicase/test-u32-is-uppercase.c: New file.
45148
45149         Tests for module 'unicase/u16-is-uppercase'.
45150         * modules/unicase/u16-is-uppercase-tests: New file.
45151         * tests/unicase/test-u16-is-uppercase.c: New file.
45152
45153         Tests for module 'unicase/u8-is-uppercase'.
45154         * modules/unicase/u8-is-uppercase-tests: New file.
45155         * tests/unicase/test-u8-is-uppercase.c: New file.
45156         * tests/unicase/test-is-uppercase.h: New file.
45157
45158         New module 'unicase/u32-is-uppercase'.
45159         * lib/unicase/u32-is-uppercase.c: New file.
45160         * modules/unicase/u32-is-uppercase: New file.
45161
45162         New module 'unicase/u16-is-uppercase'.
45163         * lib/unicase/u16-is-uppercase.c: New file.
45164         * modules/unicase/u16-is-uppercase: New file.
45165
45166         New module 'unicase/u8-is-uppercase'.
45167         * lib/unicase/u8-is-uppercase.c: New file.
45168         * modules/unicase/u8-is-uppercase: New file.
45169
45170         New module 'unicase/u32-is-invariant'.
45171         * lib/unicase/u32-is-invariant.c: New file.
45172         * modules/unicase/u32-is-invariant: New file.
45173
45174         New module 'unicase/u16-is-invariant'.
45175         * lib/unicase/u16-is-invariant.c: New file.
45176         * modules/unicase/u16-is-invariant: New file.
45177
45178         New module 'unicase/u8-is-invariant'.
45179         * lib/unicase/u8-is-invariant.c: New file.
45180         * lib/unicase/invariant.h: New file.
45181         * lib/unicase/u-is-invariant.h: New file.
45182         * modules/unicase/u8-is-invariant: New file.
45183
45184         Tests for module 'unicase/u32-casecoll'.
45185         * modules/unicase/u32-casecoll-tests: New file.
45186         * tests/unicase/test-u32-casecoll.c: New file.
45187
45188         Tests for module 'unicase/u16-casecoll'.
45189         * modules/unicase/u16-casecoll-tests: New file.
45190         * tests/unicase/test-u16-casecoll.c: New file.
45191
45192         Tests for module 'unicase/u8-casecoll'.
45193         * modules/unicase/u8-casecoll-tests: New file.
45194         * tests/unicase/test-u8-casecoll.c: New file.
45195
45196         New module 'unicase/u32-casecoll'.
45197         * lib/unicase/u32-casecoll.c: New file.
45198         * modules/unicase/u32-casecoll: New file.
45199
45200         New module 'unicase/u16-casecoll'.
45201         * lib/unicase/u16-casecoll.c: New file.
45202         * modules/unicase/u16-casecoll: New file.
45203
45204         New module 'unicase/u8-casecoll'.
45205         * lib/unicase/u8-casecoll.c: New file.
45206         * lib/unicase/u-casecoll.h: New file.
45207         * modules/unicase/u8-casecoll: New file.
45208
45209         New module 'unicase/u32-casexfrm'.
45210         * lib/unicase/u32-casexfrm.c: New file.
45211         * modules/unicase/u32-casexfrm: New file.
45212
45213         New module 'unicase/u16-casexfrm'.
45214         * lib/unicase/u16-casexfrm.c: New file.
45215         * modules/unicase/u16-casexfrm: New file.
45216
45217         New module 'unicase/u8-casexfrm'.
45218         * lib/unicase/u8-casexfrm.c: New file.
45219         * lib/unicase/u-casexfrm.h: New file.
45220         * modules/unicase/u8-casexfrm: New file.
45221
45222         Tests for module 'unicase/u32-casecmp'.
45223         * modules/unicase/u32-casecmp-tests: New file.
45224         * tests/unicase/test-u32-casecmp.c: New file.
45225
45226         Tests for module 'unicase/u16-casecmp'.
45227         * modules/unicase/u16-casecmp-tests: New file.
45228         * tests/unicase/test-u16-casecmp.c: New file.
45229
45230         Tests for module 'unicase/u8-casecmp'.
45231         * modules/unicase/u8-casecmp-tests: New file.
45232         * tests/unicase/test-u8-casecmp.c: New file.
45233         * tests/unicase/test-casecmp.h: New file.
45234
45235         New module 'unicase/u32-casecmp'.
45236         * lib/unicase/u32-casecmp.c: New file.
45237         * modules/unicase/u32-casecmp: New file.
45238
45239         New module 'unicase/u16-casecmp'.
45240         * lib/unicase/u16-casecmp.c: New file.
45241         * modules/unicase/u16-casecmp: New file.
45242
45243         New module 'unicase/u8-casecmp'.
45244         * lib/unicase/u8-casecmp.c: New file.
45245         * lib/unicase/u-casecmp.h: New file.
45246         * modules/unicase/u8-casecmp: New file.
45247
45248         Tests for module 'unicase/u32-casefold'.
45249         * modules/unicase/u32-casefold-tests: New file.
45250         * tests/unicase/test-u32-casefold.c: New file.
45251
45252         Tests for module 'unicase/u16-casefold'.
45253         * modules/unicase/u16-casefold-tests: New file.
45254         * tests/unicase/test-u16-casefold.c: New file.
45255
45256         Tests for module 'unicase/u8-casefold'.
45257         * modules/unicase/u8-casefold-tests: New file.
45258         * tests/unicase/test-u8-casefold.c: New file.
45259
45260         New module 'unicase/u32-casefold'.
45261         * lib/unicase/u32-casefold.c: New file.
45262         * modules/unicase/u32-casefold: New file.
45263
45264         New module 'unicase/u16-casefold'.
45265         * lib/unicase/u16-casefold.c: New file.
45266         * modules/unicase/u16-casefold: New file.
45267
45268         New module 'unicase/u8-casefold'.
45269         * lib/unicase/u8-casefold.c: New file.
45270         * lib/unicase/u-casefold.h: New file.
45271         * modules/unicase/u8-casefold: New file.
45272
45273         New module 'unicase/tocasefold'.
45274         * lib/unicase/casefold.h: New file.
45275         * lib/unicase/tocasefold.c: New file.
45276         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45277         * modules/unicase/tocasefold: New file.
45278
45279         Tests for module 'unicase/u32-totitle'.
45280         * modules/unicase/u32-totitle-tests: New file.
45281         * tests/unicase/test-u32-totitle.c: New file.
45282
45283         Tests for module 'unicase/u16-totitle'.
45284         * modules/unicase/u16-totitle-tests: New file.
45285         * tests/unicase/test-u16-totitle.c: New file.
45286
45287         Tests for module 'unicase/u8-totitle'.
45288         * modules/unicase/u8-totitle-tests: New file.
45289         * tests/unicase/test-u8-totitle.c: New file.
45290
45291         New module 'unicase/u32-totitle'.
45292         * lib/unicase/u32-totitle.c: New file.
45293         * modules/unicase/u32-totitle: New file.
45294
45295         New module 'unicase/u16-totitle'.
45296         * lib/unicase/u16-totitle.c: New file.
45297         * modules/unicase/u16-totitle: New file.
45298
45299         New module 'unicase/u8-totitle'.
45300         * lib/unicase/u8-totitle.c: New file.
45301         * lib/unicase/u-totitle.h: New file.
45302         * modules/unicase/u8-totitle: New file.
45303
45304         Tests for module 'unicase/u32-tolower'.
45305         * modules/unicase/u32-tolower-tests: New file.
45306         * tests/unicase/test-u32-tolower.c: New file.
45307
45308         Tests for module 'unicase/u16-tolower'.
45309         * modules/unicase/u16-tolower-tests: New file.
45310         * tests/unicase/test-u16-tolower.c: New file.
45311
45312         Tests for module 'unicase/u8-tolower'.
45313         * modules/unicase/u8-tolower-tests: New file.
45314         * tests/unicase/test-u8-tolower.c: New file.
45315
45316         New module 'unicase/u32-tolower'.
45317         * lib/unicase/u32-tolower.c: New file.
45318         * modules/unicase/u32-tolower: New file.
45319
45320         New module 'unicase/u16-tolower'.
45321         * lib/unicase/u16-tolower.c: New file.
45322         * modules/unicase/u16-tolower: New file.
45323
45324         New module 'unicase/u8-tolower'.
45325         * lib/unicase/u8-tolower.c: New file.
45326         * modules/unicase/u8-tolower: New file.
45327
45328         Tests for module 'unicase/u32-toupper'.
45329         * modules/unicase/u32-toupper-tests: New file.
45330         * tests/unicase/test-u32-toupper.c: New file.
45331
45332         Tests for module 'unicase/u16-toupper'.
45333         * modules/unicase/u16-toupper-tests: New file.
45334         * tests/unicase/test-u16-toupper.c: New file.
45335
45336         Tests for module 'unicase/u8-toupper'.
45337         * modules/unicase/u8-toupper-tests: New file.
45338         * tests/unicase/test-u8-toupper.c: New file.
45339
45340         New module 'unicase/u32-toupper'.
45341         * lib/unicase/u32-toupper.c: New file.
45342         * modules/unicase/u32-toupper: New file.
45343
45344         New module 'unicase/u16-toupper'.
45345         * lib/unicase/u16-toupper.c: New file.
45346         * modules/unicase/u16-toupper: New file.
45347
45348         New module 'unicase/u8-toupper'.
45349         * lib/unicase/u8-toupper.c: New file.
45350         * modules/unicase/u8-toupper: New file.
45351
45352         New module 'unicase/u32-casemap'.
45353         * lib/unicase/u32-casemap.c: New file.
45354         * modules/unicase/u32-casemap: New file.
45355
45356         New module 'unicase/u16-casemap'.
45357         * lib/unicase/u16-casemap.c: New file.
45358         * modules/unicase/u16-casemap: New file.
45359
45360         New module 'unicase/u8-casemap'.
45361         * lib/unicase/unicasemap.h: New file.
45362         * lib/unicase/u8-casemap.c: New file.
45363         * lib/unicase/u-casemap.h: New file.
45364         * modules/unicase/u8-casemap: New file.
45365
45366         New module 'unicase/special-casing'.
45367         * lib/unicase/special-casing.h: New file.
45368         * lib/unicase/special-casing.c: New file.
45369         * lib/unicase/special-casing-table.gperf: New file, generated by
45370         gen-uni-tables.c.
45371         * modules/unicase/special-casing: New file.
45372
45373         Tests for module 'unicase/locale-language'.
45374         * modules/unicase/locale-language-tests: New file.
45375         * tests/unicase/test-locale-language.sh: New file.
45376         * tests/unicase/test-locale-language.c: New file.
45377
45378         New module 'unicase/locale-language'.
45379         * lib/unicase/locale-language.c: New file.
45380         * lib/unicase/locale-languages.gperf: New file.
45381         * modules/unicase/locale-language: New file.
45382
45383         Generate more tables for case conversion and case folding.
45384         * lib/gen-uni-tables.c (SCC_*): New enum items.
45385         (struct special_casing_rule): New type.
45386         (casing_rules, num_casing_rules, allocated_casing_rules): New
45387         variables.
45388         (add_casing_rule, fill_casing_rules): New functions.
45389         (struct casefold_rule): New type.
45390         (casefolding_rules, num_casefolding_rules,
45391         allocated_casefolding_rules): New variables.
45392         (fill_casefolding_rules): New function.
45393         (unicode_casefold): New variable.
45394         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45395         sort_casing_rules, output_casing_rules): New functions.
45396         (main): Accept to more arguments: SpecialCasing.txt and
45397         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45398         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45399         Output mapping for casefolding.
45400
45401         * lib/unicase.h: Include stdbool.h, uninorm.h.
45402         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45403         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45404         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45405         arguments.
45406         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45407         resultp arguments.
45408         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45409         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45410         resultp arguments.
45411         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45412         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45413         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45414         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45415         declarations.
45416         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45417
45418 2009-03-08  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45421         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45422         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45423         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45424
45425 2009-03-07  Bruno Haible  <bruno@clisp.org>
45426
45427         Adjust u*_normcmp, u*_normcoll API.
45428         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45429         u16_normcoll, u32_normcoll): Change failure conventions.
45430         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45431         errno and return -1.
45432         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45433
45434 2009-03-07  Bruno Haible  <bruno@clisp.org>
45435
45436         Tests for module 'uninorm/u32-normcoll'.
45437         * modules/uninorm/u32-normcoll-tests: New file.
45438         * tests/uninorm/test-u32-normcoll.c: New file.
45439
45440         Tests for module 'uninorm/u16-normcoll'.
45441         * modules/uninorm/u16-normcoll-tests: New file.
45442         * tests/uninorm/test-u16-normcoll.c: New file.
45443
45444         Tests for module 'uninorm/u8-normcoll'.
45445         * modules/uninorm/u8-normcoll-tests: New file.
45446         * tests/uninorm/test-u8-normcoll.c: New file.
45447
45448 2009-03-07  Bruno Haible  <bruno@clisp.org>
45449
45450         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45451         tests/uninorm/test-u32-normcmp.c.
45452         * tests/uninorm/test-u32-normcmp.c: Include it.
45453         (test_nonascii): New function, extracted from main. Add some more
45454         tests.
45455         (main): Invoke test_ascii and test_nonascii.
45456         * modules/uninorm/u32-normcmp-tests (Files): Add
45457         tests/uninorm/test-u32-normcmp.h.
45458         (Depends-on): Remove uninorm/u32-normcmp.
45459
45460         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45461         tests/uninorm/test-u16-normcmp.c.
45462         * tests/uninorm/test-u16-normcmp.c: Include it.
45463         (test_nonascii): New function, extracted from main. Add some more
45464         tests.
45465         (main): Invoke test_ascii and test_nonascii.
45466         * modules/uninorm/u16-normcmp-tests (Files): Add
45467         tests/uninorm/test-u16-normcmp.h.
45468         (Depends-on): Remove uninorm/u16-normcmp.
45469
45470         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45471         tests/uninorm/test-u8-normcmp.c.
45472         * tests/uninorm/test-u8-normcmp.c: Include it.
45473         (test_nonascii): New function, extracted from main. Add some more
45474         tests.
45475         (main): Invoke test_ascii and test_nonascii.
45476         * modules/uninorm/u8-normcmp-tests (Files): Add
45477         tests/uninorm/test-u8-normcmp.h.
45478         (Depends-on): Remove uninorm/u8-normcmp.
45479
45480 2009-03-07  Bruno Haible  <bruno@clisp.org>
45481
45482         New module 'uninorm/u32-normcoll'.
45483         * lib/uninorm/u32-normcoll.c: New file.
45484         * modules/uninorm/u32-normcoll: New file.
45485
45486         New module 'uninorm/u16-normcoll'.
45487         * lib/uninorm/u16-normcoll.c: New file.
45488         * modules/uninorm/u16-normcoll: New file.
45489
45490         New module 'uninorm/u8-normcoll'.
45491         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45492         declarations.
45493         * lib/uninorm/u8-normcoll.c: New file.
45494         * lib/uninorm/u-normcoll.h: New file.
45495         * modules/uninorm/u8-normcoll: New file.
45496
45497         New module 'uninorm/u32-normxfrm'.
45498         * lib/uninorm/u32-normxfrm.c: New file.
45499         * modules/uninorm/u32-normxfrm: New file.
45500
45501         New module 'uninorm/u16-normxfrm'.
45502         * lib/uninorm/u16-normxfrm.c: New file.
45503         * modules/uninorm/u16-normxfrm: New file.
45504
45505         New module 'uninorm/u8-normxfrm'.
45506         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45507         declarations.
45508         * lib/uninorm/u8-normxfrm.c: New file.
45509         * lib/uninorm/u-normxfrm.h: New file.
45510         * modules/uninorm/u8-normxfrm: New file.
45511
45512 2009-03-07  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45515         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45516         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45517
45518 2009-03-07  Bruno Haible  <bruno@clisp.org>
45519
45520         New module 'memxfrm'.
45521         * lib/memxfrm.h: New file.
45522         * lib/memxfrm.c: New file.
45523         * modules/memxfrm: New file.
45524
45525 2009-03-07  Bruno Haible  <bruno@clisp.org>
45526
45527         New module 'memcmp2'.
45528         * lib/memcmp2.h: New file.
45529         * lib/memcmp2.c: New file.
45530         * modules/memcmp2: New file.
45531
45532 2009-03-07  Bruno Haible  <bruno@clisp.org>
45533
45534         Tests for module 'uninorm/decomposing-form'.
45535         * modules/uninorm/decomposing-form-tests: New file.
45536         * tests/uninorm/test-decomposing-form.c: New file.
45537
45538         New module 'uninorm/decomposing-form'.
45539         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45540         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45541         Add 'decomposing_variant' field.
45542         * lib/uninorm/decomposing-form.c: New file.
45543         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45544         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45545         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45546         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45547         * modules/uninorm/decomposing-form: New file.
45548         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45549         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45550
45551 2009-03-07  Bruno Haible  <bruno@clisp.org>
45552
45553         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45554         strings.
45555
45556 2009-03-06  Bruno Haible  <bruno@clisp.org>
45557
45558         Tests for module 'uninorm/u32-normcmp'.
45559         * tests/uninorm/test-u32-normcmp.c: New file.
45560         * modules/uninorm/u32-normcmp-tests: New file.
45561
45562         Tests for module 'uninorm/u16-normcmp'.
45563         * tests/uninorm/test-u16-normcmp.c: New file.
45564         * modules/uninorm/u16-normcmp-tests: New file.
45565
45566         Tests for module 'uninorm/u8-normcmp'.
45567         * tests/uninorm/test-u8-normcmp.c: New file.
45568         * modules/uninorm/u8-normcmp-tests: New file.
45569
45570         New module 'uninorm/u32-normcmp'.
45571         * lib/uninorm/u32-normcmp.c: New file.
45572         * modules/uninorm/u32-normcmp: New file.
45573
45574         New module 'uninorm/u16-normcmp'.
45575         * lib/uninorm/u16-normcmp.c: New file.
45576         * modules/uninorm/u16-normcmp: New file.
45577
45578         New module 'uninorm/u8-normcmp'.
45579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45580         declarations.
45581         * lib/uninorm/u8-normcmp.c: New file.
45582         * lib/uninorm/u-normcmp.h: New file.
45583         * modules/uninorm/u8-normcmp: New file.
45584
45585 2009-03-06  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45588         Reported by Eric Blake.
45589
45590 2009-03-06  Eric Blake  <ebb9@byu.net>
45591             Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45594         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45595         condition.
45596         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45597         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45598         condition.
45599         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45600
45601 2009-03-06  Eric Blake  <ebb9@byu.net>
45602
45603         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45604         to avoid compiler warnings.
45605         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45606
45607 2009-03-05  Bruno Haible  <bruno@clisp.org>
45608
45609         * tests/test-ftell.c (main): Disable test beyond end of file on
45610         FreeMiNT.
45611         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45612
45613 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45614
45615         * lib/filevercmp.c: Move hidden files up in ordering.
45616         * tests/test-filevercmp.c: Add tests for hidden files.
45617
45618 2009-03-04  Bruno Haible  <bruno@clisp.org>
45619
45620         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45621         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45622         AM_CFLAGS.
45623         Reported by Simon Josefsson.
45624
45625 2009-03-03  Bruno Haible  <bruno@clisp.org>
45626
45627         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45628         Reported by Simon Josefsson.
45629
45630         * doc/ld-version-script.texi: Update node reference.
45631
45632 2009-03-03  Bruno Haible  <bruno@clisp.org>
45633
45634         * modules/visibility (License): Change to 'unlimited'.
45635         Suggested by Simon Josefsson.
45636
45637 2009-03-03  Jim Meyering  <meyering@redhat.com>
45638
45639         unlinkdir: cannot_unlink_dir may modify process state
45640         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45641         it's neither thread-safe nor appropriate for use in a library.
45642
45643 2009-03-03  Eric Blake  <ebb9@byu.net>
45644
45645         test-closein: silence test under Darwin
45646         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45647         care if it dies from EPIPE or EBADF.
45648
45649 2009-03-03  Bruno Haible  <bruno@clisp.org>
45650
45651         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45652         earlier.
45653         * doc/visibility.texi: Fix @node and @section.
45654
45655 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45656
45657         * doc/gnulib.texi: Link to sections for ld version script and
45658         visibility.
45659         * doc/visibility.texi: Add @node and @section.
45660         * modules/ld-version-script: New module.
45661         * m4/ld-version-script.m4: New file.
45662         * doc/ld-version-script.texi: New file.
45663
45664 2009-03-02  David Lutterkort  <lutter@redhat.com>
45665
45666         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45668
45669 2009-03-02  Bruno Haible  <bruno@clisp.org>
45670
45671         * doc/visibility.texi: Mention libtool's -export-symbols option.
45672
45673 2009-03-02  Jim Meyering  <meyering@redhat.com>
45674
45675         announce-gen: new option: --no-print-checksums
45676         * build-aux/announce-gen (usage): Describe it.
45677         (print_checksums): Print a newline here, not in the [*] footnote.
45678         (main): Honor it.
45679
45680 2009-03-01  Bruno Haible  <bruno@clisp.org>
45681
45682         Use socklen_t in the native Windows replacements prototypes.
45683         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45684         instead of 'int'.
45685         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45686         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45687         * modules/getsockopt (Depends-on): Add socklen.
45688         * modules/setsockopt (Depends-on): Add socklen.
45689
45690 2009-03-01  Bruno Haible  <bruno@clisp.org>
45691
45692         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45693         least 4.2.
45694
45695 2009-03-01  Eric Blake  <ebb9@byu.net>
45696             Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45699         error messages.
45700         * lib/wait-process.c (wait_subprocess): Omit error message about
45701         deadly signal sent to the child of termsigp != NULL.
45702
45703 2009-03-01  Eric Blake  <ebb9@byu.net>
45704
45705         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45706
45707 2009-03-01  Bruno Haible  <bruno@clisp.org>
45708
45709         Avoid a gcc warning.
45710         * tests/test-sched.c (b): Make global.
45711         Reported by Eric Blake.
45712
45713 2009-01-19  Martin Lambers  <marlam@marlam.de>
45714
45715         Provide POSIX semantics for socket timeout options on W32.
45716         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45717         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45718         * modules/setsockopt: Depend on sys_time module for struct timeval.
45719         * modules/getsockopt: Depend on sys_time module for struct timeval.
45720
45721 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45722
45723         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45724         __USE_GNU, for consistency with netdb.in.h.
45725         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45726
45727 2009-03-01  Bruno Haible  <bruno@clisp.org>
45728
45729         More support for FreeMiNT.
45730         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45731         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45732
45733 2009-03-01  Bruno Haible  <bruno@clisp.org>
45734
45735         More support for FreeMiNT.
45736         * lib/fpurge.c (fpurge): Correct last commit.
45737         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45738
45739 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45740
45741         Fix unportable awk script in vc-list-files.
45742         * build-aux/vc-list-files: In the replacement awk script, use
45743         substr with a second argument of 1, not zero.
45744         Report by Simon Josefsson.
45745
45746 2009-02-28  Bruno Haible  <bruno@clisp.org>
45747
45748         More support for FreeMiNT.
45749         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45750         to FreeMiNT today.
45751         * lib/fwriting.c (fwriting): Likewise.
45752         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45753
45754 2009-02-28  Bruno Haible  <bruno@clisp.org>
45755
45756         * tests/test-freadseek.c (main): Disable test beyond end of file on
45757         FreeMiNT.
45758         * tests/test-ftello.c (main): Likewise.
45759         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45760
45761 2009-02-28  Bruno Haible  <bruno@clisp.org>
45762
45763         Add tentative support for FreeMiNT.
45764         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45765         * lib/fpurge.c (fpurge): Likewise.
45766         * lib/freadable.c (freadable): Likewise.
45767         * lib/freading.c (freading): Likewise.
45768         * lib/freadptr.c (freadptr): Likewise.
45769         * lib/freadseek.c (freadptrinc): Likewise.
45770         * lib/fseeko.c (rpl_fseeko): Likewise.
45771         * lib/fseterr.c (fseterr): Likewise.
45772         * lib/fwritable.c (fwritable): Likewise.
45773         * lib/fwriting.c (fwriting): Likewise.
45774         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45775         Hourihane.
45776         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45777
45778 2009-02-28  Bruno Haible  <bruno@clisp.org>
45779
45780         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45781         SIGCHLD.
45782         Reported by Jim Meyering.
45783
45784 2009-02-28  Bruno Haible  <bruno@clisp.org>
45785
45786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45787         Mention the results of these tests on various platforms.
45788         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45789         order.
45790         * doc/posix-functions/printf.texi: Likewise.
45791         * doc/posix-functions/snprintf.texi: Likewise.
45792         * doc/posix-functions/sprintf.texi: Likewise.
45793         * doc/posix-functions/vfprintf.texi: Likewise.
45794         * doc/posix-functions/vprintf.texi: Likewise.
45795         * doc/posix-functions/vsnprintf.texi: Likewise.
45796         * doc/posix-functions/vsprintf.texi: Likewise.
45797         * doc/glibc-functions/obstack_printf.texi: Likewise.
45798         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45799
45800 2009-02-28  Bruno Haible  <bruno@clisp.org>
45801
45802         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45803         Reported by Loïc Minier <lool@dooz.org>.
45804
45805 2009-02-27  Bruno Haible  <bruno@clisp.org>
45806
45807         * gnulib-tool (func_import): Make the sed expression used to create the
45808         sed script for updating the .gitignore file POSIX compliant.
45809         Reported by Eric Blake.
45810
45811 2009-02-27  Bruno Haible  <bruno@clisp.org>
45812
45813         * gnulib-tool (sed): Don't alias as "sed --posix".
45814         Reported by Eric Blake.
45815
45816 2009-02-27  Bruno Haible  <bruno@clisp.org>
45817
45818         Avoid test link errors.
45819         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45820         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45821         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45822         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45824
45825 2009-02-27  Bruno Haible  <bruno@clisp.org>
45826
45827         Avoid spurious "(cached)" in configure output.
45828         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45829         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45830         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45831         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45832         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45833         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45834         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45835         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45836         Reported by Eric Blake.
45837
45838 2009-02-27  Eric Blake  <ebb9@byu.net>
45839
45840         printf: fix regression in previous patch
45841         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45842
45843 2009-02-27  Bruno Haible  <bruno@clisp.org>
45844
45845         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45846         value.
45847         * lib/stdint.in.h: Likewise.
45848         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45849
45850 2009-02-27  Eric Blake  <ebb9@byu.net>
45851
45852         doc: mention more functions added in cygwin 1.7.0
45853         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45854         addition.
45855         * doc/posix-functions/open_wmemstream.texi: Likewise.
45856         * doc/posix-functions/wcsnlen.texi: Likewise.
45857         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45858         * doc/posix-functions/wcstod.texi: Likewise.
45859         * doc/posix-functions/wcstof.texi: Likewise.
45860         * doc/posix-functions/wcstoimax.texi: Likewise.
45861         * doc/posix-functions/wcstok.texi: Likewise.
45862         * doc/posix-functions/wcstoumax.texi: Likewise.
45863
45864         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45865         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45866         * doc/posix-functions/fprintf.texi: Update.
45867         * doc/posix-functions/printf.texi: Update.
45868         * doc/posix-functions/snprintf.texi: Update.
45869         * doc/posix-functions/sprintf.texi: Update.
45870         * doc/posix-functions/vfprintf.texi: Update.
45871         * doc/posix-functions/vprintf.texi: Update.
45872         * doc/posix-functions/vsnprintf.texi: Update.
45873         * doc/posix-functions/vsprintf.texi: Update.
45874         * doc/glibc-functions/obstack_printf.texi: Update.
45875         * doc/glibc-functions/obstack_vprintf.texi: Update.
45876
45877 2009-02-26  Eric Blake  <ebb9@byu.net>
45878
45879         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45880         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45881         compilation bug by using runtime conversion.
45882         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45884         * modules/ceill-tests (Files): Use nan.h.
45885         * modules/floorl-tests (Files): Likewise.
45886         * modules/frexpl-tests (Files): Likewise.
45887         * modules/isnanl-tests (Files): Likewise.
45888         * modules/ldexpl-tests (Files): Likewise.
45889         * modules/roundl-tests (Files): Likewise.
45890         * modules/truncl-tests (Files): Likewise.
45891         * tests/test-ceill.c (main): Use a working NaN.
45892         * tests/test-floorl.c (main): Likewise.
45893         * tests/test-frexpl.c (main): Likewise.
45894         * tests/test-isnan.c (test_long_double): Likewise.
45895         * tests/test-isnanl.h (main): Likewise.
45896         * tests/test-ldexpl.h (main): Likewise.
45897         * tests/test-roundl.h (main): Likewise.
45898         * tests/test-truncl.h (main): Likewise.
45899         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45900
45901 2009-02-26  Eric Blake  <ebb9@byu.net>
45902             Bruno Haible  <bruno@clisp.org>
45903
45904         Work around a *printf bug with %ls on Solaris.
45905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45906         precision is specified, sprintf stops converting the wide string
45907         argument when the number of bytes that have been produced by this
45908         conversion equals or exceeds the precision.
45909         * doc/posix-functions/fprintf.texi: Update.
45910         * doc/posix-functions/printf.texi: Update.
45911         * doc/posix-functions/snprintf.texi: Update.
45912         * doc/posix-functions/sprintf.texi: Update.
45913         * doc/posix-functions/vfprintf.texi: Update.
45914         * doc/posix-functions/vprintf.texi: Update.
45915         * doc/posix-functions/vsnprintf.texi: Update.
45916         * doc/posix-functions/vsprintf.texi: Update.
45917         * doc/glibc-functions/obstack_printf.texi: Update.
45918         * doc/glibc-functions/obstack_vprintf.texi: Update.
45919
45920 2009-02-26  Eric Blake  <ebb9@byu.net>
45921
45922         stdlib: favor compiler check of random.h
45923         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45924         to avoid an ObjC random.h installed by Swarm.
45925
45926 2009-02-26  Bruno Haible  <bruno@clisp.org>
45927
45928         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45929         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45930         Reported by Gary V. Vaughan <gary@gnu.org>.
45931
45932 2009-02-26  Bruno Haible  <bruno@clisp.org>
45933
45934         Fix *printf behaviour regarding the %ls directive.
45935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45936         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45937         NEED_PRINTF_DIRECTIVE_LS.
45938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45939         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45941         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45942         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45943         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45944         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45949         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45953         * doc/posix-functions/fprintf.texi: Update.
45954         * doc/posix-functions/printf.texi: Update.
45955         * doc/posix-functions/snprintf.texi: Update.
45956         * doc/posix-functions/sprintf.texi: Update.
45957         * doc/posix-functions/vfprintf.texi: Update.
45958         * doc/posix-functions/vprintf.texi: Update.
45959         * doc/posix-functions/vsnprintf.texi: Update.
45960         * doc/posix-functions/vsprintf.texi: Update.
45961         * doc/glibc-functions/obstack_printf.texi: Update.
45962         * doc/glibc-functions/obstack_vprintf.texi: Update.
45963         Reported by Eric Blake.
45964
45965 2009-02-25  Bruno Haible  <bruno@clisp.org>
45966
45967         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45968         with known value.
45969         Reported by Gary V. Vaughan <gary@gnu.org>.
45970
45971 2009-02-25  Bruno Haible  <bruno@clisp.org>
45972
45973         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45974         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45975         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45976         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45977         Reported by Gary V. Vaughan <gary@gnu.org>.
45978
45979 2009-02-25  Bruno Haible  <bruno@clisp.org>
45980
45981         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45982         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45983         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45984         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45985         Reported by Gary V. Vaughan <gary@gnu.org>.
45986
45987 2009-02-25  Eric Blake  <ebb9@byu.net>
45988
45989         tests: skip fseek/ftell tests if ungetc is broken
45990         * m4/ungetc.m4: New file.
45991         * modules/fseek-tests: Split test, so ungetc dependency is
45992         separate from rest of test.
45993         * modules/fseeko-tests: Likewise.
45994         * modules/ftell-tests: Likewise.
45995         * modules/ftello-tests: Likewise.
45996         * tests/test-fseek.c (main): Isolate ungetc dependency.
45997         * tests/test-fseeko.c (main): Likewise.
45998         * tests/test-ftell.c (main): Likewise.
45999         * tests/test-ftello.c (main): Likewise.
46000         * tests/test-fseek2.sh: New file.
46001         * tests/test-fseeko2.sh: Likewise.
46002         * tests/test-ftell2.sh: Likewise.
46003         * tests/test-ftello2.sh: Likewise.
46004
46005 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46006
46007         test-getaddrinfo: fix usage of skip return code 77
46008         * tests/test-gettaddrinfo.c: Return skip code 77 only
46009         for first occurance of skip (4x77 is not 77)
46010
46011 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46012
46013         strtod: avoid C99 decl-after-statement
46014         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46015
46016 2009-02-24  Eric Blake  <ebb9@byu.net>
46017
46018         strtod: detect HP-UX 11.31 bug
46019         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46020         Reported by Gary V. Vaughan.
46021
46022 2009-02-23  Bruno Haible  <bruno@clisp.org>
46023
46024         Fix invalid read past end of memory block.
46025         * lib/vasnprintf.c (DCHAR_SET): Define.
46026         (local_wcslen): Define only when needed.
46027         (local_strnlen, local_wcsnlen): New functions.
46028         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46029         directives that involve a conversion ourselves.
46030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46031         wcsnlen, mbrtowc, wcrtomb.
46032         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46033         * tests/test-vasprintf-posix.c (test_function): Likewise.
46034         * tests/test-snprintf-posix.h (test_function): Likewise.
46035         * tests/test-sprintf-posix.h (test_function): Likewise.
46036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46037
46038 2009-02-22  Bruno Haible  <bruno@clisp.org>
46039
46040         Implement new clarified decomposition of Hangul syllables.
46041         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46042         of type LTV, return only a pairwise decomposition.
46043         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46044         Likewise.
46045         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46046         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46047         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46048
46049 2009-02-22  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46052         zero-length results and shrink excess allocated memory.
46053         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46054         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46055         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46056         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46057         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46058         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46059         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46060         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46061         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46062         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46063         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46064         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46065
46066 2009-02-21  Bruno Haible  <bruno@clisp.org>
46067
46068         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46069         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46070         spaces after a period. Put a space between a macro name and its
46071         argument list. Trivial rewordings.
46072         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46073         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46074         (main): Return 0 explicitly.
46075
46076 2009-02-21  Bruno Haible  <bruno@clisp.org>
46077
46078         Tests for module 'uninorm/filter'.
46079         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46080         * modules/uninorm/filter-tests: New file.
46081
46082         New module 'uninorm/filter'.
46083         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46084         uninorm_filter_flush, uninorm_filter_free): New declarations.
46085         * lib/uninorm/uninorm-filter.c: New file.
46086         * modules/uninorm/filter: New file.
46087
46088 2009-02-21  Bruno Haible  <bruno@clisp.org>
46089
46090         Tests for module 'uninorm/nfkc'.
46091         * tests/uninorm/test-nfkc.c: New file.
46092         * tests/uninorm/test-u8-nfkc.c: New file.
46093         * tests/uninorm/test-u16-nfkc.c: New file.
46094         * tests/uninorm/test-u32-nfkc.c: New file.
46095         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46096         * tests/uninorm/test-u32-nfkc-big.c: New file.
46097         * modules/uninorm/nfkc-tests: New file.
46098
46099         New module 'uninorm/nfkc'.
46100         * lib/uninorm/nfkc.c: New file.
46101         * modules/uninorm/nfkc: New file.
46102
46103         Tests for module 'uninorm/nfkd'.
46104         * tests/uninorm/test-nfkd.c: New file.
46105         * tests/uninorm/test-u8-nfkd.c: New file.
46106         * tests/uninorm/test-u16-nfkd.c: New file.
46107         * tests/uninorm/test-u32-nfkd.c: New file.
46108         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46109         * tests/uninorm/test-u32-nfkd-big.c: New file.
46110         * modules/uninorm/nfkd-tests: New file.
46111
46112         New module 'uninorm/nfkd'.
46113         * lib/uninorm/nfkd.c: New file.
46114         * modules/uninorm/nfkd: New file.
46115
46116         Tests for module 'uninorm/nfc'.
46117         * tests/uninorm/test-nfc.c: New file.
46118         * tests/uninorm/test-u8-nfc.c: New file.
46119         * tests/uninorm/test-u16-nfc.c: New file.
46120         * tests/uninorm/test-u32-nfc.c: New file.
46121         * tests/uninorm/test-u32-nfc-big.sh: New file.
46122         * tests/uninorm/test-u32-nfc-big.c: New file.
46123         * modules/uninorm/nfc-tests: New file.
46124
46125         New module 'uninorm/nfc'.
46126         * lib/uninorm/nfc.c: New file.
46127         * modules/uninorm/nfc: New file.
46128
46129         Tests for module 'uninorm/nfd'.
46130         * tests/uninorm/test-nfd.c: New file.
46131         * tests/uninorm/test-u8-nfd.c: New file.
46132         * tests/uninorm/test-u16-nfd.c: New file.
46133         * tests/uninorm/test-u32-nfd.c: New file.
46134         * tests/uninorm/test-u32-nfd-big.sh: New file.
46135         * tests/uninorm/test-u32-nfd-big.c: New file.
46136         * tests/uninorm/test-u32-normalize-big.h: New file.
46137         * tests/uninorm/test-u32-normalize-big.c: New file.
46138         * tests/uninorm/NormalizationTest.txt: New file, created from
46139         Unicode 5.1.0 NormalizationTest.txt.
46140         * modules/uninorm/nfd-tests: New file.
46141
46142         New module 'uninorm/nfd'.
46143         * lib/uninorm/nfd.c: New file.
46144         * modules/uninorm/nfd: New file.
46145
46146         New module 'uninorm/u32-normalize'.
46147         * lib/uninorm/u32-normalize.c: New file.
46148         * modules/uninorm/u32-normalize: New file.
46149
46150         New module 'uninorm/u16-normalize'.
46151         * lib/uninorm/u16-normalize.c: New file.
46152         * modules/uninorm/u16-normalize: New file.
46153
46154         New module 'uninorm/u8-normalize'.
46155         * lib/uninorm/u8-normalize.c: New file.
46156         * lib/uninorm/normalize-internal.h: New file.
46157         * lib/uninorm/u-normalize-internal.h: New file.
46158         * modules/uninorm/u8-normalize: New file.
46159
46160         New module 'uninorm/decompose-internal'.
46161         * lib/uninorm/decompose-internal.c: New file.
46162         * modules/uninorm/decompose-internal: New file.
46163
46164         Tests for module 'uninorm/composition'.
46165         * tests/uninorm/test-composition.c: New file.
46166         * modules/uninorm/composition-tests: New file.
46167
46168         New module 'uninorm/composition'.
46169         * lib/uninorm/composition.c: New file.
46170         * lib/uninorm/composition-table.gperf: New file, generated by
46171         gen-uni-tables.
46172         * modules/uninorm/composition: New file.
46173
46174         Tests for module 'uninorm/compat-decomposition'.
46175         * tests/uninorm/test-compat-decomposition.c: New file.
46176         * modules/uninorm/compat-decomposition-tests: New file.
46177
46178         New module 'uninorm/compat-decomposition'.
46179         * lib/uninorm/decompose-internal.h: New file.
46180         * lib/uninorm/compat-decomposition.c: New file.
46181         * modules/uninorm/compat-decomposition: New file.
46182
46183         Tests for module 'uninorm/canonical-decomposition'.
46184         * tests/uninorm/test-canonical-decomposition.c: New file.
46185         * modules/uninorm/canonical-decomposition-tests: New file.
46186
46187         New module 'uninorm/canonical-decomposition'.
46188         * lib/uninorm/canonical-decomposition.c: New file.
46189         * modules/uninorm/canonical-decomposition: New file.
46190
46191         Tests for module 'uninorm/decomposition'.
46192         * tests/uninorm/test-decomposition.c: New file.
46193         * modules/uninorm/decomposition-tests: New file.
46194
46195         New module 'uninorm/decomposition'.
46196         * lib/uninorm/decomposition.c: New file.
46197         * modules/uninorm/decomposition: New file.
46198
46199         New module 'uninorm/decomposition-table'.
46200         * lib/uninorm/decomposition-table.h: New file.
46201         * lib/uninorm/decomposition-table.c: New file.
46202         * lib/uninorm/decomposition-table1.h: New file, generated by
46203         gen-uni-tables.
46204         * lib/uninorm/decomposition-table2.h: New file, generated by
46205         gen-uni-tables.
46206         * modules/uninorm/decomposition-table: New file.
46207
46208         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46209         (UC_DECOMP_*): New enumeration items.
46210         (get_decomposition): New function.
46211         (struct decomp_table): New type.
46212         (output_decomposition, output_decomposition_tables): New functions.
46213         (unicode_composition_exclusions): New variable.
46214         (fill_composition_exclusions, debug_output_composition_tables): New
46215         functions.
46216         (main): Accept one more argument. Invoke fill_composition_exclusions.
46217         Output decomposition and composition tables.
46218
46219         New module 'uninorm/base'.
46220         * lib/uninorm.h: New file.
46221         * lib/unictype.h: Update comment.
46222         * modules/uninorm/base: New file.
46223
46224 2009-02-21  David Lutterkort  <lutter@redhat.com>
46225
46226         Tests for module 'safe-alloc'.
46227         * tests/test-safe-alloc.c: New file.
46228         * modules/safe-alloc-tests: New file.
46229
46230         New module 'safe-alloc'.
46231         * lib/safe-alloc.h: New file.
46232         * lib/safe-alloc.c: New file.
46233         * m4/safe-alloc.m4: New file.
46234         * modules/safe-alloc: New file.
46235         * doc/safe-alloc.texi: New file.
46236         * doc/gnulib.texi: Include it.
46237         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46238         safe-alloc.
46239
46240 2009-02-18  Bruno Haible  <bruno@clisp.org>
46241
46242         Fix link error on non-glibc systems.
46243         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46244         variable.
46245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46246
46247 2009-02-18  Jim Meyering  <meyering@redhat.com>
46248
46249         fts: avoid used-uninitialized error due to recent change
46250         * lib/fts.c (fts_read): Guard uses of the new member,
46251         parent->fts_n_dirs_remaining, since it's not relevant for
46252         the parent of a directory specified on the command-line.
46253
46254 2009-02-17  James Youngman  <jay@gnu.org>
46255             Bruno Haible  <bruno@clisp.org>
46256
46257         * m4/include_next.m4: Reformulate comment.
46258
46259 2009-02-16  Jim Meyering  <meyering@redhat.com>
46260
46261         fts: add #if guards so that the fts_lgpl module still builds
46262         * lib/fts.c: Guard just-added hash-table-using parts with
46263         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46264         Reported by Simon Josefsson.
46265
46266 2009-02-15  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/array-mergesort-tests: New file.
46269         * tests/test-array-mergesort.c: New file.
46270
46271         New module 'array-mergesort'.
46272         * modules/array-mergesort: New file.
46273         * lib/array-mergesort.h: New file.
46274
46275 2009-02-15  Bruno Haible  <bruno@clisp.org>
46276
46277         Fix 2009-02-07 commit.
46278         * lib/gen-uni-tables.c (output_predicate, output_category,
46279         output_combclass, output_bidi_category, output_decimal_digit,
46280         output_digit, output_numeric, output_mirror, output_scripts,
46281         output_ident_category, output_simple_mapping): Fix format directives.
46282         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46283
46284 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46285
46286         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46287         fixes are available from IBM.
46288
46289 2009-02-13  Jim Meyering  <meyering@redhat.com>
46290
46291         fts: arrange not to stat non-directories in more cases
46292         This makes GNU find (when it doesn't need to stat each file)
46293         *much* more efficient at traversing reiserfs file systems.
46294         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46295         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46296         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46297         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46298         (leaf_optimization_applies): New function.
46299         (LCO_hash, LCO_compare): New helper functions.
46300         (link_count_optimize_ok): New function.
46301         (fts_stat): Initialize new member (if dir).
46302         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46303         we've just stat'ed a directory.  Skip the stat call when possible.
46304         ---
46305         Note this AFS-related exchange:
46306         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46307         and note find's pioctl call in find/fstype.c.
46308         But that is necessary only if you want to enable the
46309         optimization for AFS, and for now, I don't.
46310
46311         fts: move a function definition "up" (no semantic change)
46312         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46313         "up" to precede upcoming use of a related function.
46314
46315 2009-02-11  Jim Meyering  <meyering@redhat.com>
46316
46317         fts: correct internal computation of nlinks (optimization-related)
46318         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46319         whether the current entry is a directory, so don't test it.
46320
46321 2009-02-10  Bruno Haible  <bruno@clisp.org>
46322
46323         Tests for module 'uniwbrk/ulc-wordbreaks'.
46324         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46325         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46326         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46327
46328         Tests for module 'uniwbrk/u32-wordbreaks'.
46329         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46330         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46331
46332         Tests for module 'uniwbrk/u16-wordbreaks'.
46333         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46334         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46335
46336         Tests for module 'uniwbrk/u8-wordbreaks'.
46337         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46338         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46339
46340 2009-02-10  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46343         property.
46344         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46345         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46346         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46347
46348 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46349
46350         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46351         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46352
46353 2009-02-10  Bruno Haible  <bruno@clisp.org>
46354
46355         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46356         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46357         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46358         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46359         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46360         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46361
46362 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46363
46364         * lib/sockets.h (gl_fd_to_handle): New function.
46365
46366         * tests/test-sockets.c: Call gl_fd_to_handle.
46367
46368 2009-02-09  Bruno Haible  <bruno@clisp.org>
46369
46370         * doc/havelib.texi: Document the conventions on bi-arch systems.
46371
46372 2009-02-08  Bruno Haible  <bruno@clisp.org>
46373
46374         Document the AC_LIB_LINKFLAGS macro.
46375         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46376         * doc/gnulib.texi: Include it.
46377
46378 2009-02-08  Bruno Haible  <bruno@clisp.org>
46379
46380         Fix wrong order of sections, compared to TOC.
46381         * doc/gnulib.texi: Include relocatable-maint.texi after the
46382         "Regular expressions" node, not before.
46383
46384 2009-02-08  Bruno Haible  <bruno@clisp.org>
46385
46386         Tests for module 'unicase/totitle'.
46387         * modules/unicase/totitle-tests: New file.
46388
46389         Tests for module 'unicase/tolower'.
46390         * modules/unicase/tolower-tests: New file.
46391
46392         Tests for module 'unicase/toupper'.
46393         * modules/unicase/toupper-tests: New file.
46394         * tests/unicase/test-mapping-part1.h: New file.
46395         * tests/unicase/test-mapping-part2.h: New file.
46396
46397         New module 'unicase/totitle'.
46398         * modules/unicase/totitle: New file.
46399         * lib/unicase/totitle.c: New file.
46400
46401         New module 'unicase/tolower'.
46402         * modules/unicase/tolower: New file.
46403         * lib/unicase/tolower.c: New file.
46404
46405         New module 'unicase/toupper'.
46406         * modules/unicase/toupper: New file.
46407         * lib/unicase/toupper.c: New file.
46408         * lib/unicase/simple-mapping.h: New file.
46409
46410         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46411         (mapping_table): New structure.
46412         (output_simple_mapping): New function.
46413         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46414         * modules/gen-uni-tables (Description): Update.
46415         * lib/unicase/toupper.h: New file, automatically generated by
46416         gen-uni-tables.
46417         * lib/unicase/tolower.h: New file, automatically generated by
46418         gen-uni-tables.
46419         * lib/unicase/totitle.h: New file, automatically generated by
46420         gen-uni-tables.
46421         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46422         gen-uni-tables.
46423         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46424         gen-uni-tables.
46425         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46426         gen-uni-tables.
46427
46428         New module 'unicase/base'.
46429         * modules/unicase/base: New file.
46430         * lib/unicase.h: New file.
46431
46432 2009-02-08  Bruno Haible  <bruno@clisp.org>
46433
46434         New module 'uniwbrk/ulc-wordbreaks'.
46435         * modules/uniwbrk/ulc-wordbreaks: New file.
46436         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46437
46438         New module 'uniwbrk/u32-wordbreaks'.
46439         * modules/uniwbrk/u32-wordbreaks: New file.
46440         * lib/uniwbrk/u32-wordbreaks.c: New file.
46441
46442         New module 'uniwbrk/u16-wordbreaks'.
46443         * modules/uniwbrk/u16-wordbreaks: New file.
46444         * lib/uniwbrk/u16-wordbreaks.c: New file.
46445
46446         New module 'uniwbrk/u8-wordbreaks'.
46447         * modules/uniwbrk/u8-wordbreaks: New file.
46448         * lib/uniwbrk/u8-wordbreaks.c: New file.
46449         * lib/uniwbrk/u-wordbreaks.h: New file.
46450
46451         New module 'uniwbrk/table'.
46452         * modules/uniwbrk/table: New file.
46453         * lib/uniwbrk/wbrktable.h: New file.
46454         * lib/uniwbrk/wbrktable.c: New file.
46455
46456         New module 'uniwbrk/wordbreak-property'.
46457         * modules/uniwbrk/wordbreak-property: New file.
46458         * lib/uniwbrk/wordbreak-property.c: New file.
46459
46460         * lib/gen-uni-tables.c (WBP_*): New enum items.
46461         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46462         (unicode_org_wbp): New variable.
46463         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46464         New functions.
46465         (wbp_table): New structure.
46466         (output_wbp, output_wbrk_tables): New functions.
46467         (main): Accept additional argument. Invoke fill_org_wbp,
46468         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46469         output_wbrk_tables.
46470         * modules/gen-uni-tables (Description): Update.
46471         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46472         gen-uni-tables.
46473
46474         New module 'uniwbrk/base'.
46475         * modules/uniwbrk/base: New file.
46476         * lib/uniwbrk.h: New file.
46477
46478 2009-02-08  Bruno Haible  <bruno@clisp.org>
46479
46480         Update to Unicode 5.1.0.
46481         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46482         U+2185..U+2188.
46483         (is_property_default_ignorable_code_point): Don't include characters
46484         of category Cc or Cs and not-a-characters.
46485         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46486         U+0D79, U+109E, U+109F, U+A60C.
46487         * lib/unictype/bidi_of.h: Regenerated.
46488         * lib/unictype/blocks.h: Regenerated.
46489         * lib/unictype/categ_C.h: Regenerated.
46490         * lib/unictype/categ_Cf.h: Regenerated.
46491         * lib/unictype/categ_Cn.h: Regenerated.
46492         * lib/unictype/categ_L.h: Regenerated.
46493         * lib/unictype/categ_Ll.h: Regenerated.
46494         * lib/unictype/categ_Lm.h: Regenerated.
46495         * lib/unictype/categ_Lo.h: Regenerated.
46496         * lib/unictype/categ_Lu.h: Regenerated.
46497         * lib/unictype/categ_M.h: Regenerated.
46498         * lib/unictype/categ_Mc.h: Regenerated.
46499         * lib/unictype/categ_Me.h: Regenerated.
46500         * lib/unictype/categ_Mn.h: Regenerated.
46501         * lib/unictype/categ_N.h: Regenerated.
46502         * lib/unictype/categ_Nd.h: Regenerated.
46503         * lib/unictype/categ_Nl.h: Regenerated.
46504         * lib/unictype/categ_No.h: Regenerated.
46505         * lib/unictype/categ_P.h: Regenerated.
46506         * lib/unictype/categ_Pd.h: Regenerated.
46507         * lib/unictype/categ_Pe.h: Regenerated.
46508         * lib/unictype/categ_Pf.h: Regenerated.
46509         * lib/unictype/categ_Pi.h: Regenerated.
46510         * lib/unictype/categ_Po.h: Regenerated.
46511         * lib/unictype/categ_Ps.h: Regenerated.
46512         * lib/unictype/categ_S.h: Regenerated.
46513         * lib/unictype/categ_Sk.h: Regenerated.
46514         * lib/unictype/categ_Sm.h: Regenerated.
46515         * lib/unictype/categ_So.h: Regenerated.
46516         * lib/unictype/categ_of.h: Regenerated.
46517         * lib/unictype/combining.h: Regenerated.
46518         * lib/unictype/ctype_alnum.h: Regenerated.
46519         * lib/unictype/ctype_alpha.h: Regenerated.
46520         * lib/unictype/ctype_graph.h: Regenerated.
46521         * lib/unictype/ctype_lower.h: Regenerated.
46522         * lib/unictype/ctype_print.h: Regenerated.
46523         * lib/unictype/ctype_punct.h: Regenerated.
46524         * lib/unictype/ctype_upper.h: Regenerated.
46525         * lib/unictype/decdigit.h: Regenerated.
46526         * lib/unictype/digit.h: Regenerated.
46527         * lib/unictype/mirror.h: Regenerated.
46528         * lib/unictype/numeric.h: Regenerated.
46529         * lib/unictype/pr_alphabetic.h: Regenerated.
46530         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46531         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46532         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46533         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46534         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46535         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46536         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46537         * lib/unictype/pr_combining.h: Regenerated.
46538         * lib/unictype/pr_dash.h: Regenerated.
46539         * lib/unictype/pr_decimal_digit.h: Regenerated.
46540         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46541         * lib/unictype/pr_deprecated.h: Regenerated.
46542         * lib/unictype/pr_diacritic.h: Regenerated.
46543         * lib/unictype/pr_extender.h: Regenerated.
46544         * lib/unictype/pr_format_control.h: Regenerated.
46545         * lib/unictype/pr_grapheme_base.h: Regenerated.
46546         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46547         * lib/unictype/pr_grapheme_link.h: Regenerated.
46548         * lib/unictype/pr_id_continue.h: Regenerated.
46549         * lib/unictype/pr_id_start.h: Regenerated.
46550         * lib/unictype/pr_ideographic.h: Regenerated.
46551         * lib/unictype/pr_ignorable_control.h: Regenerated.
46552         * lib/unictype/pr_lowercase.h: Regenerated.
46553         * lib/unictype/pr_math.h: Regenerated.
46554         * lib/unictype/pr_numeric.h: Regenerated.
46555         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46556         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46557         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46558         * lib/unictype/pr_other_id_continue.h: Regenerated.
46559         * lib/unictype/pr_other_lowercase.h: Regenerated.
46560         * lib/unictype/pr_other_math.h: Regenerated.
46561         * lib/unictype/pr_punctuation.h: Regenerated.
46562         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46563         * lib/unictype/pr_soft_dotted.h: Regenerated.
46564         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46565         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46566         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46567         * lib/unictype/pr_uppercase.h: Regenerated.
46568         * lib/unictype/pr_xid_continue.h: Regenerated.
46569         * lib/unictype/pr_xid_start.h: Regenerated.
46570         * lib/unictype/pr_zero_width.h: Regenerated.
46571         * lib/unictype/scripts.h: Regenerated.
46572         * lib/unictype/scripts_byname.gperf: Regenerated.
46573         * lib/unictype/sy_java_ident.h: Regenerated.
46574         * lib/unilbrk/lbrkprop1.h: Regenerated.
46575         * lib/unilbrk/lbrkprop2.h: Regenerated.
46576         * tests/unictype/test-categ_C.c: Regenerated.
46577         * tests/unictype/test-categ_Cf.c: Regenerated.
46578         * tests/unictype/test-categ_Cn.c: Regenerated.
46579         * tests/unictype/test-categ_L.c: Regenerated.
46580         * tests/unictype/test-categ_Ll.c: Regenerated.
46581         * tests/unictype/test-categ_Lm.c: Regenerated.
46582         * tests/unictype/test-categ_Lo.c: Regenerated.
46583         * tests/unictype/test-categ_Lu.c: Regenerated.
46584         * tests/unictype/test-categ_M.c: Regenerated.
46585         * tests/unictype/test-categ_Mc.c: Regenerated.
46586         * tests/unictype/test-categ_Me.c: Regenerated.
46587         * tests/unictype/test-categ_Mn.c: Regenerated.
46588         * tests/unictype/test-categ_N.c: Regenerated.
46589         * tests/unictype/test-categ_Nd.c: Regenerated.
46590         * tests/unictype/test-categ_Nl.c: Regenerated.
46591         * tests/unictype/test-categ_No.c: Regenerated.
46592         * tests/unictype/test-categ_P.c: Regenerated.
46593         * tests/unictype/test-categ_Pd.c: Regenerated.
46594         * tests/unictype/test-categ_Pe.c: Regenerated.
46595         * tests/unictype/test-categ_Pf.c: Regenerated.
46596         * tests/unictype/test-categ_Pi.c: Regenerated.
46597         * tests/unictype/test-categ_Po.c: Regenerated.
46598         * tests/unictype/test-categ_Ps.c: Regenerated.
46599         * tests/unictype/test-categ_S.c: Regenerated.
46600         * tests/unictype/test-categ_Sk.c: Regenerated.
46601         * tests/unictype/test-categ_Sm.c: Regenerated.
46602         * tests/unictype/test-categ_So.c: Regenerated.
46603         * tests/unictype/test-ctype_alnum.c: Regenerated.
46604         * tests/unictype/test-ctype_alpha.c: Regenerated.
46605         * tests/unictype/test-ctype_graph.c: Regenerated.
46606         * tests/unictype/test-ctype_lower.c: Regenerated.
46607         * tests/unictype/test-ctype_print.c: Regenerated.
46608         * tests/unictype/test-ctype_punct.c: Regenerated.
46609         * tests/unictype/test-ctype_upper.c: Regenerated.
46610         * tests/unictype/test-decdigit.h: Regenerated.
46611         * tests/unictype/test-digit.h: Regenerated.
46612         * tests/unictype/test-numeric.h: Regenerated.
46613         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46614         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46615         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46616         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46617         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46618         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46619         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46620         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46621         * tests/unictype/test-pr_combining.c: Regenerated.
46622         * tests/unictype/test-pr_dash.c: Regenerated.
46623         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46624         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46625         * tests/unictype/test-pr_deprecated.c: Regenerated.
46626         * tests/unictype/test-pr_diacritic.c: Regenerated.
46627         * tests/unictype/test-pr_extender.c: Regenerated.
46628         * tests/unictype/test-pr_format_control.c: Regenerated.
46629         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46630         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46631         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46632         * tests/unictype/test-pr_id_continue.c: Regenerated.
46633         * tests/unictype/test-pr_id_start.c: Regenerated.
46634         * tests/unictype/test-pr_ideographic.c: Regenerated.
46635         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46636         * tests/unictype/test-pr_lowercase.c: Regenerated.
46637         * tests/unictype/test-pr_math.c: Regenerated.
46638         * tests/unictype/test-pr_numeric.c: Regenerated.
46639         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46640         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46641         Regenerated.
46642         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46643         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46644         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46645         * tests/unictype/test-pr_other_math.c: Regenerated.
46646         * tests/unictype/test-pr_punctuation.c: Regenerated.
46647         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46648         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46649         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46650         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46651         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46652         * tests/unictype/test-pr_uppercase.c: Regenerated.
46653         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46654         * tests/unictype/test-pr_xid_start.c: Regenerated.
46655         * tests/unictype/test-pr_zero_width.c: Regenerated.
46656
46657         Update to Unicode 5.1.0.
46658         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46659         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46660         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46661         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46662         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46663         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46664         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46665         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46666         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46667         (nonspacing_table_ind): Update.
46668         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46669
46670         Update to Unicode 5.1.0.
46671         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46672         code transform.
46673         * lib/uniname/uniname.c (unicode_character_name,
46674         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46675         * lib/uniname/uninames.h: Regenerated.
46676         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46677
46678 2009-02-07  Bruno Haible  <bruno@clisp.org>
46679
46680         Merge gen-ctype and gen-lbrk into a single program.
46681         * lib/gen-uni-tables.c: New file, incorporating
46682         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46683         Add directory prefixes to the names of the generated files.
46684         * lib/unictype/gen-ctype.c: Remove file.
46685         * lib/unilbrk/gen-lbrk.c: Remove file.
46686         * modules/gen-uni-tables: New file.
46687         * modules/unictype/gen-ctype: Remove file.
46688         * modules/unilbrk/gen-lbrk: Remove file.
46689
46690 2009-02-07  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46693
46694         New module 'unistr/u32-strcoll'.
46695         * modules/unistr/u32-strcoll: New file.
46696         * lib/unistr/u32-strcoll.c: New file.
46697
46698         New module 'unistr/u16-strcoll'.
46699         * modules/unistr/u16-strcoll: New file.
46700         * lib/unistr/u16-strcoll.c: New file.
46701
46702         New module 'unistr/u8-strcoll'.
46703         * modules/unistr/u8-strcoll: New file.
46704         * lib/unistr/u8-strcoll.c: New file.
46705         * lib/unistr/u-strcoll.h: New file.
46706
46707 2009-02-07  Bruno Haible  <bruno@clisp.org>
46708
46709         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46710         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46711         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46712         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46713         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46714         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46715
46716 2009-02-07  Bruno Haible  <bruno@clisp.org>
46717
46718         Make 64-bit clean.
46719         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46720         output_combclass, output_bidi_category, output_decimal_digit,
46721         output_digit, output_numeric, output_mirror, output_scripts,
46722         output_ident_category): Use proper width specifier in format strings.
46723
46724 2009-02-07  Bruno Haible  <bruno@clisp.org>
46725
46726         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46727         failure behaviour.
46728
46729 2009-02-07  Jim Meyering  <meyering@redhat.com>
46730
46731         regex: avoid compilation failure with upcoming gcc-4.4
46732         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46733         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46734         "... error: integer overflow in preprocessor expression".
46735
46736 2009-02-05  Ben Pfaff  <blp@gnu.org>
46737
46738         Fix link errors on Windows when close module is used.
46739         * modules/close: Add $(LIB_CLOSE) to Link section.
46740         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46741         $(LIB_CLOSE) on Windows.
46742
46743 2009-02-05  Jim Meyering  <meyering@redhat.com>
46744
46745         still avoid unused-parameter warnings, but do it cleanly
46746         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46747         (get_fs_usage): Cast to void instead.
46748         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46749         (dev_from_mount_options, read_file_system_list): Cast to void.
46750         Prompted by Bruno Haible.
46751
46752 2009-02-04  Jim Meyering  <meyering@redhat.com>
46753
46754         fsusage.c: correct copyright year
46755         * lib/fsusage.c: Reflect year in which the change is pushed into
46756
46757         avoid misc. warnings
46758         * lib/fsusage.c (UNUSED_PARAM): Define.
46759         (get_fs_usage): Mark parameter "disk" as unused.
46760         * lib/getugroups.c (getgrent): Use "void" in prototype.
46761         * lib/mountlist.c: Mark unused parameters.
46762         (read_file_system_list): Declare a local with "const".
46763         * lib/nanosleep.c (getnow): Declare static.
46764         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46765
46766         dirfd: set errno upon failure
46767         * lib/dirfd.c: Include <errno.h>.
46768         Set errno to ENOTSUP when returning -1.
46769         * modules/dirfd (Depends-on): Add errno.
46770         Suggested by John Kodis <kodis@comcast.net>.
46771
46772 2009-02-01  Bruno Haible  <bruno@clisp.org>
46773
46774         Don't assume sizeof (long) >= sizeof (void *).
46775         * lib/memcmp.c: Include stdint.h.
46776         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46777         srcp2 to 'const byte *'.
46778         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46779         types to uintptr_t.
46780         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46781         * modules/memcmp (Depends-on): Add stdint.
46782         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46783
46784 2009-01-30  Eric Blake  <ebb9@byu.net>
46785
46786         fix more require-before-expand issues
46787         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46788         expand, AC_PROG_AWK.
46789         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46790
46791 2009-01-28  Eric Blake  <ebb9@byu.net>
46792
46793         version-etc: use consistent URL formatting
46794         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46795         Improve formatting.  Use fputs for string without %.
46796
46797 2009-01-28  Jim Meyering  <meyering@redhat.com>
46798
46799         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46800         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46801         "underquoted definition of NAME" from autoconf-2.59.
46802
46803 2009-01-28  Bruno Haible  <bruno@clisp.org>
46804
46805         * doc/gnulib.texi: Add "Obsolete modules" to index.
46806
46807 2009-01-28  Jim Meyering  <meyering@redhat.com>
46808
46809         useless-if-before-free: recognize more variants
46810         * build-aux/useless-if-before-free: Also recognize e.g.,
46811         if (NULL != p) free (p);
46812
46813 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46814
46815         test-getaddrinfo: skip (don't fail) this test when there's no network
46816         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46817         on the presumption that it means you lack network access.
46818
46819 2009-01-26  Jim Meyering  <meyering@redhat.com>
46820
46821         fflush: avoid warnings on modern systems
46822         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46823         pos and result, into scopes where they're used.
46824
46825 2009-01-26  Eric Blake  <ebb9@byu.net>
46826
46827         Silence warning reintroduced by recent extensions patch.
46828         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46829         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46830         autoconf.
46831
46832         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46833         * m4/00gnulib.m4: New file.
46834         * gnulib-tool (func_get_filelist): Always use it.
46835         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46836         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46837
46838 2009-01-25  Bruno Haible  <bruno@clisp.org>
46839
46840         Make test-quotearg work on MacOS X and AIX.
46841         * tests/test-quotearg.sh: New file.
46842         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46843         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46844         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46845         include <libintl.h>.
46846         (fake_locale): Remove variable.
46847         (gettext, dgettext, dcgettext): Remove functions.
46848         (main): Instead of setting a fake locale, set a real locale. Call
46849         textdomain and bindtextdomain.
46850         * modules/quotearg-tests (Files): Add the new files.
46851         (Depends-on): Add gettext, setenv, unsetenv.
46852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46853         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46854         Augment TESTS_ENVIRONMENT.
46855
46856 2009-01-25  Bruno Haible  <bruno@clisp.org>
46857
46858         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46859         fr_FR.ISO8859-1 locale on MacOS X.
46860         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46861         ja_JP.eucJP locale on MacOS X.
46862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46863         zh_CN.GB18030 locale on MacOS X.
46864
46865 2009-01-25  Bruno Haible  <bruno@clisp.org>
46866
46867         Avoid link errors on MacOS X 10.3.
46868         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46869         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46870
46871 2009-01-25  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46874         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46875         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46876         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46877         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46878         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46879         posix_spawnattr_init, posix_spawnattr_setsigmask,
46880         posix_spawnattr_setflags, posix_spawnattr_destroy.
46881
46882         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46883         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46884         * modules/execute (Files): Remove m4/posix_spawn.m4.
46885         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46886         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46887         posix_spawnattr_init, posix_spawnattr_setsigmask,
46888         posix_spawnattr_setflags, posix_spawnattr_destroy.
46889
46890 2009-01-25  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/glthread/threadlib.c: Include <stdlib.h>.
46893
46894 2009-01-25  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/glthread/threadlib.c (dummy): New declaration.
46897
46898 2009-01-25  Bruno Haible  <bruno@clisp.org>
46899
46900         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46901         multibyte characters also for the GB18030 encoding. Don't crash when
46902         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46903
46904 2009-01-25  Bruno Haible  <bruno@clisp.org>
46905
46906         Avoid redefining 'struct random_data' on OSF/1 5.1.
46907         * lib/stdlib.in.h: Include <random.h> if it exists.
46908         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46909         HAVE_RANDOM_H. Include <random.h> when testing whether
46910         'struct random_data' exists.
46911         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46912
46913 2009-01-25  Bruno Haible  <bruno@clisp.org>
46914
46915         Don't install charset.alias on MacOS X >= 10.3.
46916         * lib/localcharset.c (DARWIN7): New macro.
46917         (get_charset_aliases): Hardcode the result for Darwin7.
46918         * modules/localcharset (install-exec-local): Don't install
46919         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46920
46921 2009-01-25  Bruno Haible  <bruno@clisp.org>
46922
46923         Don't install charset.alias on mingw and Cygwin.
46924         * modules/localcharset (install-exec-local): Don't install
46925         charset.alias on mingw and Cygwin, if the file does not yet exist.
46926         The result for these platforms is hardcoded in localcharset.c.
46927
46928 2009-01-25  Bruno Haible  <bruno@clisp.org>
46929
46930         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46931         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46932         before requiring AC_USE_SYSTEM_EXTENSIONS.
46933
46934 2009-01-25  Jim Meyering  <meyering@redhat.com>
46935
46936         c-strtod: avoid warnings
46937         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46938         "assignment discards qualifiers from pointer target type" warnings.
46939
46940 2009-01-24  Bruno Haible  <bruno@clisp.org>
46941
46942         Add support for non-UTF-8 locales on MacOS X.
46943         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46944         canonical encodings. For Darwin 7 and newer, don't map traditional
46945         encodings to UTF-8.
46946         Reported by Vincent Lefevre <vincent@vinc17.org>
46947         at <http://savannah.gnu.org/bugs/?25235>.
46948
46949 2009-01-24  Bruno Haible  <bruno@clisp.org>
46950
46951         * doc/gnulib.texi (Obsolete modules): New section.
46952         Reported by Mike Frysinger <vapier@gentoo.org>.
46953
46954 2009-01-24  Bruno Haible  <bruno@clisp.org>
46955
46956         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46957         (%.dvi): New rule.
46958
46959 2009-01-24  Bruno Haible  <bruno@clisp.org>
46960
46961         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46962         Reported by Eric Blake.
46963
46964 2009-01-24  Bruno Haible  <bruno@clisp.org>
46965
46966         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46967         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46968         Reported by Gary V. Vaughan <gary@gnu.org>.
46969
46970 2009-01-24  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46973
46974 2009-01-23  Bruno Haible  <bruno@clisp.org>
46975
46976         Make c-strtod, c-strtold usable in libraries.
46977         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46978         (C_STRTOD): Call strdup instead of xstrdup.
46979         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46980         * modules/c-strtold (Depends-on): Likewise.
46981         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46982         * NEWS: Mention the change.
46983         Reported by Michael Gold <mgold@ncf.ca>.
46984
46985 2009-01-23  Jim Meyering  <meyering@redhat.com>
46986
46987         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46988         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46989         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46990
46991 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46992
46993         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46994         GNU CoreUtils.
46995         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46996         * modules/version-etc (Description): Update.
46997
46998 2009-01-22  Bruno Haible  <bruno@clisp.org>
46999
47000         Cache the C locale object.
47001         * lib/c-strtod.c (c_locale_cache): New variable.
47002         (c_locale): New function.
47003         (C_STRTOD): Use it, and don't call freelocale.
47004         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47005         Suggested by Paolo Bonzini.
47006
47007 2009-01-21  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47010         conditions other than overflow.
47011
47012 2009-01-21  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/c-strtod.c: Include errno.h.
47015         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47016         value from STRTOD_L and STRTOD.
47017
47018 2009-01-21  Bruno Haible  <bruno@clisp.org>
47019         and Jim Meyering  <meyering@redhat.com>
47020
47021         nanosleep: skip configure test (fail it) for apple universal builds
47022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47023         universal builds, assume that nanosleep does not work.
47024         * modules/nanosleep (Depends-on): Add multiarch.
47025
47026         mktime: skip configure test (fail it) for apple universal builds
47027         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47028         universal builds, assume that mktime does not work.
47029         * modules/mktime (Depends-on): Add multiarch.
47030
47031 2009-01-21  Eric Blake  <ebb9@byu.net>
47032
47033         multiarch: avoid expand-before-require warning
47034         * modules/multiarch (configure.ac): Require, rather than expand,
47035         gl_MULTIARCH.
47036         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47037         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47038         enforce that all clients require it.  Partial reversion of
47039         2008-12-29 patch.
47040
47041         error: avoid expand-before-require warning
47042         * modules/errno (configure.ac): Require, rather than expand,
47043         gl_HEADER_ERRNO_H.
47044         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47045         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47046         enforce that all clients require it.
47047
47048         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47049         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47050         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47051         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47052
47053 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47054
47055         Revert:
47056         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47057
47058         regex: do not depend on obsolete modules.
47059         * modules/regex: Remove memcmp and memmove.
47060
47061 2009-01-20  Bruno Haible  <bruno@clisp.org>
47062
47063         Make the 'link' module link on Windows NT 4.
47064         * lib/link.c (_WIN32_WINNT): Don't define.
47065         (CreateHardLinkFuncType): New type.
47066         (CreateHardLinkFunc, initialized): New variables.
47067         (initialize): New function.
47068         (link): Invoke CreateHardLink indirectly through the function pointer.
47069
47070 2009-01-20  Bruno Haible  <bruno@clisp.org>
47071
47072         Fix compilation failure on mingw.
47073         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47074
47075 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47076
47077         * doc/c-strtod.texi: Mention a couple of restrictions.
47078
47079 2009-01-20  Jim Meyering  <meyering@redhat.com>
47080
47081         gettimeofday: move more declarations out of functions
47082         * lib/gettimeofday.c: Move extern declarations of tzset and
47083         gmtime out of containing functions.  Prompted by Bruno Haible.
47084
47085 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47086
47087         regex: do not depend on obsolete modules.
47088         * modules/regex: Remove memcmp and memmove.
47089
47090 2009-01-19  Bruno Haible  <bruno@clisp.org>
47091
47092         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47093         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47094         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47095         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47096         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47097
47098 2009-01-19  Bruno Haible  <bruno@clisp.org>
47099
47100         * tests/test-link.c: Include <errno.h>.
47101         (main): Exit with code 77 when a hard link cannot be created due to
47102         the file system.
47103         * tests/test-link.sh: Skip test when a hard link cannot be created due
47104         to the file system.
47105         Suggested by Eric Blake.
47106
47107 2009-01-19  Martin Lambers  <marlam@marlam.de>
47108
47109         * modules/link-tests: New file.
47110         * tests/test-link.sh: New file.
47111         * tests/test-link.c: New file.
47112
47113 2009-01-19  Eric Blake  <ebb9@byu.net>
47114
47115         doc: mention another function added in cygwin 1.7.0
47116         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47117         Another new function in cygwin 1.7.
47118
47119 2009-01-19  Bruno Haible  <bruno@clisp.org>
47120
47121         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47122         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47123         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47124         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47125         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47126         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47127         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47128         * m4/md4.m4 (gl_MD4): Likewise.
47129         * m4/md5.m4 (gl_MD5): Likewise.
47130         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47131         * m4/sha1.m4 (gl_SHA1): Likewise.
47132         * m4/sha256.m4 (gl_SHA256): Likewise.
47133         * m4/sha512.m4 (gl_SHA512): Likewise.
47134
47135 2009-01-19  Bruno Haible  <bruno@clisp.org>
47136
47137         * modules/uniname/uniname-tests (Depends-on): Add progname.
47138         * tests/uniname/test-uninames.c: Include progname.h.
47139         (main): Call set_program_name.
47140
47141         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47142         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47143         (main): Call set_program_name.
47144
47145         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47146         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47147         (main): Call set_program_name.
47148
47149         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47150         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47151         (main): Call set_program_name.
47152
47153         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47154         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47155         (main): Call set_program_name.
47156
47157         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47158         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47159         (main): Call set_program_name.
47160
47161         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47162         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47163         (main): Call set_program_name.
47164
47165         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47166         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47167         (main): Call set_program_name.
47168
47169         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47170         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47171         (main): Call set_program_name.
47172
47173 2009-01-19  Eric Blake  <ebb9@byu.net>
47174
47175         test-unistd: test previous patch
47176         * tests/test-unistd.c: Test *_FILENO macros.
47177
47178         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47179         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47180         Guarantee a definition.
47181         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47182         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47183         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47184         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47185         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47186         Likewise.
47187         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47188         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47189         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47190         Likewise.
47191         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47192         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47193         (STDERR_FILENO): Likewise.
47194         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47195         (STDERR_FILENO): Likewise.
47196         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47197         (STDERR_FILENO): Likewise.
47198         Reported by Elbert Pol.
47199
47200 2009-01-19  Eric Blake  <ebb9@byu.net>
47201
47202         doc: mention more functions added in cygwin 1.7.0
47203         * doc/posix-functions/abort.texi (abort): Update wording related
47204         to cygwin.
47205         * doc/posix-functions/daylight.texi (daylight): Likewise.
47206         * doc/posix-functions/optarg.texi (optarg): Likewise.
47207         * doc/posix-functions/optarg.texi (opterr): Likewise.
47208         * doc/posix-functions/optarg.texi (optind): Likewise.
47209         * doc/posix-functions/optarg.texi (optopt): Likewise.
47210         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47211         worked in 1.5.x, and was withdrawn in 1.7.
47212         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47213         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47214         cygwin versions.
47215         * doc/posix-functions/perror.texi (perror): Likewise.
47216         * doc/posix-functions/printf.texi (printf): Likewise.
47217         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47218         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47219         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47220         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47221         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47222         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47223         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47224         Likewise.
47225         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47226         Likewise.
47227         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47228         this function.
47229         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47230         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47231         Likewise.
47232         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47233         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47234         * doc/posix-functions/confstr.texi (confstr): Likewise.
47235         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47236         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47237         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47238         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47239         * doc/posix-functions/fputws.texi (fputws): Likewise.
47240         * doc/posix-functions/fwide.texi (fwide): Likewise.
47241         * doc/posix-functions/getwc.texi (getwc): Likewise.
47242         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47243         * doc/posix-functions/putwc.texi (putwc): Likewise.
47244         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47245         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47246         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47247         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47248         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47249         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47250         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47251         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47252         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47253         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47254         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47255
47256 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47257
47258         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47259         * lib/ioctl.c: Include <sys/ioctl.h>.
47260
47261 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47262
47263         * modules/getdate-tests (Depends-on): Add progname.
47264         * tests/test-getdate.c: Use progname module, to avoid link errors
47265         on non-glibc systems.
47266
47267 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47268
47269         * modules/filenamecat-tests (Depends-on): Add progname.
47270         * modules/fstrcmp-tests (Depends-on): Likewise.
47271
47272         * tests/test-filenamecat.c: Use progname module, to avoid link
47273         errors on non-glibc systems.
47274         * tests/test-fstrcmp.c: Likewise.
47275
47276 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47277
47278         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47279         * lib/gettimeofday.c: Move extern declaration out of function.
47280
47281 2009-01-18  Bruno Haible  <bruno@clisp.org>
47282
47283         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47284         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47285         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47286
47287 2009-01-18  Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/strftime.c (MEMPCPY): Remove unused macro.
47290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47291
47292 2009-01-18  Martin Lambers  <marlam@marlam.de>
47293
47294         New module 'link'.
47295         * lib/unistd.in.h (link): New declaration.
47296         * lib/link.c: New file.
47297         * m4/link.m4: New file.
47298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47299         HAVE_LINK.
47300         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47301         * modules/link: New file.
47302         * doc/posix-functions/link.texi: Mention the new module.
47303
47304 2009-01-18  Bruno Haible  <bruno@clisp.org>
47305
47306         * tests/test-avltree_list.c (main): Call set_program_name.
47307         * tests/test-avltree_oset.c (main): Likewise.
47308         * tests/test-obstack-printf.c: Include progname.h.
47309         (main): Call set_program_name.
47310         * tests/test-quotearg.c: Include progname.h.
47311         (main): Call set_program_name.
47312         * tests/test-xmemdup0.c: Include progname.h.
47313         (main): Call set_program_name.
47314
47315 2009-01-18  Bruno Haible  <bruno@clisp.org>
47316
47317         New module 'alphasort'.
47318         * lib/dirent.in.h (alphasort): New declaration.
47319         * lib/alphasort.c: New file, from glibc with modifications.
47320         * m4/alphasort.m4: New file.
47321         * modules/alphasort: New file.
47322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47323         HAVE_ALPHASORT.
47324         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47325         HAVE_ALPHASORT.
47326         * doc/posix-functions/alphasort.texi: Mention the new module and the
47327         portability problems.
47328
47329 2009-01-18  Bruno Haible  <bruno@clisp.org>
47330
47331         New module 'scandir'.
47332         * lib/dirent.in.h (scandir): New declaration.
47333         * lib/scandir.c: New file, from glibc with modifications.
47334         * m4/scandir.m4: New file.
47335         * modules/scandir: New file.
47336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47337         HAVE_SCANDIR.
47338         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47339         HAVE_SCANDIR.
47340         * doc/posix-functions/scandir.texi: Mention the new module and the
47341         portability problems.
47342
47343 2009-01-17  Bruno Haible  <bruno@clisp.org>
47344
47345         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47346         Update documentation.
47347         (func_remove_suffix): Escape all dots in the suffix. Update
47348         documentation.
47349         (func_filter_filelist): Update documentation.
47350         Reported by Ralf Wildenhues.
47351
47352 2009-01-17  Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/dprintf-posix-tests: New file.
47355         * tests/test-dprintf-posix.sh: New file.
47356         * tests/test-dprintf-posix.c: New file.
47357
47358         New modules 'dprintf', 'dprintf-posix'.
47359         * lib/stdio.in.h (dprintf): New declaration.
47360         * lib/dprintf.c: New file.
47361         * m4/dprintf.m4: New file.
47362         * m4/dprintf-posix.m4: New file.
47363         * modules/dprintf: New file.
47364         * modules/dprintf-posix: New file.
47365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47366         HAVE_DPRINTF, REPLACE_DPRINTF.
47367         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47368         HAVE_DPRINTF, REPLACE_DPRINTF.
47369         * doc/posix-functions/dprintf.texi: Mention the new modules.
47370
47371 2009-01-17  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/vdprintf-posix-tests: New file.
47374         * tests/test-vdprintf-posix.sh: New file.
47375         * tests/test-vdprintf-posix.c: New file.
47376
47377         New modules 'vdprintf', 'vdprintf-posix'.
47378         * lib/stdio.in.h (vdprintf): New declaration.
47379         * lib/vdprintf.c: New file.
47380         * m4/vdprintf.m4: New file.
47381         * m4/vdprintf-posix.m4: New file.
47382         * modules/vdprintf: New file.
47383         * modules/vdprintf-posix: New file.
47384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47385         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47386         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47387         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47388         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47389
47390 2009-01-17  Bruno Haible  <bruno@clisp.org>
47391
47392         Fix replacement of fopen on mingw.
47393         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47394         mingw.
47395
47396 2009-01-17  Bruno Haible  <bruno@clisp.org>
47397
47398         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47399         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47400
47401 2009-01-17  Bruno Haible  <bruno@clisp.org>
47402
47403         Avoid test-fflush2.sh failure on mingw.
47404         * tests/test-fflush2.c: Include binary-io.h.
47405         (main): Put standard input into binary mode.
47406         * modules/fflush-tests (Depends-on): Add binary-io.
47407
47408 2009-01-17  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/wchar.in.h: In another particular situation, include only the
47411         system's <wchar.h> file.
47412         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47413         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47414         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47415
47416 2009-01-17  Bruno Haible  <bruno@clisp.org>
47417
47418         Support for stripping executables in --enable-relocatable.
47419         * build-aux/install-reloc: Expect one more argument, or an environment
47420         variable RELOC_STRIP_PROG. If set, strip the destination program and
47421         its wrapper.
47422         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47423         RELOC_STRIP_PROG.
47424         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47425         to set RELOCATABLE_STRIP.
47426         * NEWS: Mention the new Makefile requirement.
47427
47428 2009-01-17  Bruno Haible  <bruno@clisp.org>
47429
47430         * build-aux/install-reloc: Remove debugging information left over by
47431         C compiler on MacOS X.
47432
47433 2009-01-17  Bruno Haible  <bruno@clisp.org>
47434
47435         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47436         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47437         _NSGetExecutablePath.
47438
47439 2009-01-16  Jim Meyering  <meyering@redhat.com>
47440
47441         strerror: avoid warnings about discarding "const"
47442         * lib/strerror.c (rpl_strerror): Instead of returning a const
47443         string from each and every "case", use a variable, and add a single
47444         cast after the switch.
47445
47446 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47447
47448         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47449
47450 2009-01-16  Bruno Haible  <bruno@clisp.org>
47451
47452         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47453         array initializer syntax that also works in C++ mode.
47454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47455
47456 2009-01-16  Jim Meyering  <meyering@redhat.com>
47457
47458         poll: suppress a warning
47459         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47460         to ignore "...unsigned expression < 0 is always false" warnings.
47461
47462 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47463
47464         poll: remove declarations of unused variables
47465         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47466         sockbuf and optlen.
47467
47468 2009-01-15  Bruno Haible  <bruno@clisp.org>
47469
47470         Make fflush-after-ungetc POSIX compliant on BSD systems.
47471         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47472         (clear_ungetc_buffer): Implement also for other systems.
47473         (rpl_fflush): On glibc systems, invoke
47474         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47475         clear_ungetc_buffer after fetching the stream's position, not before.
47476
47477 2009-01-15  Bruno Haible  <bruno@clisp.org>
47478
47479         Make fflush-after-ungetc POSIX compliant on glibc systems.
47480         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47481         after ungetc.
47482         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47483         (rpl_fflush): On glibc systems, simply call the system's fflush
47484         function after clearing the ungetc buffer.
47485         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47486         Instead, lseek only to the end of file, then use the system's fseeko
47487         for the rest. On glibc systems, reset the EOF indicator bit.
47488
47489 2009-01-15  Jim Meyering  <meyering@redhat.com>
47490
47491         openmp.m4: revert quote-adding change, for portability to older autoconf
47492         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47493         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47494         Simon Josefsson noticed the problem when using autoconf-2.61.
47495
47496 2009-01-15  Bruno Haible  <bruno@clisp.org>
47497
47498         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47499         * tests/test-fflush2.c (ASSERT): Always fail.
47500         (main): Add two tests for fflush() after ungetc(), taking into account
47501         the Austin Group's clarification.
47502         Suggested by Eric Blake.
47503
47504 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47505
47506         mktime.m4: remove K&R-style function prototypes
47507         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47508         for the Sun C++ compiler.
47509
47510 2009-01-14  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47513         while including <wchar.h>.
47514         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47515         the system's <wchar.h> file.
47516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47517
47518 2009-01-14  Bruno Haible  <bruno@clisp.org>
47519
47520         * m4/csharp.m4: Don't mention gettext on the serial number line.
47521         * m4/csharpexec.m4: Likewise.
47522         * m4/eaccess.m4: Likewise.
47523         * m4/javaexec.m4: Likewise.
47524         * m4/sig_atomic_t.m4: Likewise.
47525         * m4/tmpdir.m4: Likewise.
47526         * m4/intldir.m4: Bump gettext version.
47527         * m4/lib-ld.m4: Likewise.
47528
47529 2009-01-14  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/progname.c (set_program_name): Add more comments.
47532         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47533
47534 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47535
47536         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47537         were sys/stat.h does not define it.
47538
47539 2009-01-14  Jim Meyering  <meyering@redhat.com>
47540
47541         many *.m4 files: improve m4 quoting
47542         99% of this change was performed by running the following commands:
47543         git ls-files | grep '\.m4$' | xargs perl -pi \
47544           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47545           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47546           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47547           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47548         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47549         The remainder were to add Copyright dates, increment serial numbers,
47550         undo some changes in comments, exclude m4/intl.m4, and add quotes
47551         around the "1" in ",1" where the unusual spacing prohibited the
47552         above regexps from doing the job.  For more details, see
47553         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47554         * m4/acl.m4: Modified.
47555         * m4/afs.m4: Likewise.
47556         * m4/alloca.m4: Likewise.
47557         * m4/argp.m4: Likewise.
47558         * m4/argz.m4: Likewise.
47559         * m4/atexit.m4: Likewise.
47560         * m4/bison-i18n.m4: Likewise.
47561         * m4/bison.m4: Likewise.
47562         * m4/byteswap.m4: Likewise.
47563         * m4/c-stack.m4: Likewise.
47564         * m4/c-strtod.m4: Likewise.
47565         * m4/calloc.m4: Likewise.
47566         * m4/canonicalize-lgpl.m4: Likewise.
47567         * m4/chown.m4: Likewise.
47568         * m4/clock_time.m4: Likewise.
47569         * m4/codeset.m4: Likewise.
47570         * m4/copy-file.m4: Likewise.
47571         * m4/csharp.m4: Likewise.
47572         * m4/csharpcomp.m4: Likewise.
47573         * m4/csharpexec.m4: Likewise.
47574         * m4/d-ino.m4: Likewise.
47575         * m4/d-type.m4: Likewise.
47576         * m4/dirfd.m4: Likewise.
47577         * m4/double-slash-root.m4: Likewise.
47578         * m4/eaccess.m4: Likewise.
47579         * m4/eealloc.m4: Likewise.
47580         * m4/environ.m4: Likewise.
47581         * m4/errno_h.m4: Likewise.
47582         * m4/euidaccess.m4: Likewise.
47583         * m4/execute.m4: Likewise.
47584         * m4/fatal-signal.m4: Likewise.
47585         * m4/fchdir.m4: Likewise.
47586         * m4/fcntl_h.m4: Likewise.
47587         * m4/fileblocks.m4: Likewise.
47588         * m4/filenamecat.m4: Likewise.
47589         * m4/findprog.m4: Likewise.
47590         * m4/flexmember.m4: Likewise.
47591         * m4/fnmatch.m4: Likewise.
47592         * m4/fopen.m4: Likewise.
47593         * m4/fpending.m4: Likewise.
47594         * m4/fprintf-posix.m4: Likewise.
47595         * m4/free.m4: Likewise.
47596         * m4/frexp.m4: Likewise.
47597         * m4/frexpl.m4: Likewise.
47598         * m4/fsusage.m4: Likewise.
47599         * m4/ftruncate.m4: Likewise.
47600         * m4/gc-camellia.m4: Likewise.
47601         * m4/gc-random.m4: Likewise.
47602         * m4/gc.m4: Likewise.
47603         * m4/getaddrinfo.m4: Likewise.
47604         * m4/getcwd-abort-bug.m4: Likewise.
47605         * m4/getcwd-path-max.m4: Likewise.
47606         * m4/getdate.m4: Likewise.
47607         * m4/getdomainname.m4: Likewise.
47608         * m4/getgroups.m4: Likewise.
47609         * m4/gethostname.m4: Likewise.
47610         * m4/gethrxtime.m4: Likewise.
47611         * m4/getline.m4: Likewise.
47612         * m4/getloadavg.m4: Likewise.
47613         * m4/getndelim2.m4: Likewise.
47614         * m4/getpass.m4: Likewise.
47615         * m4/gettext.m4: Likewise.
47616         * m4/gettime.m4: Likewise.
47617         * m4/gettimeofday.m4: Likewise.
47618         * m4/gnulib-common.m4: Likewise.
47619         * m4/group-member.m4: Likewise.
47620         * m4/host-os.m4: Likewise.
47621         * m4/iconv.m4: Likewise.
47622         * m4/iconv_open.m4: Likewise.
47623         * m4/inet_ntop.m4: Likewise.
47624         * m4/inet_pton.m4: Likewise.
47625         * m4/inline.m4: Likewise.
47626         * m4/intldir.m4: Likewise.
47627         * m4/intlmacosx.m4: Likewise.
47628         * m4/intmax.m4: Likewise.
47629         * m4/intmax_t.m4: Likewise.
47630         * m4/inttypes.m4: Likewise.
47631         * m4/inttypes_h.m4: Likewise.
47632         * m4/inttypes-pri.m4: Likewise.
47633         * m4/isapipe.m4: Likewise.
47634         * m4/isnand.m4: Likewise.
47635         * m4/isnanf.m4: Likewise.
47636         * m4/isnanl.m4: Likewise.
47637         * m4/javacomp.m4: Likewise.
47638         * m4/javaexec.m4: Likewise.
47639         * m4/jm-winsz1.m4: Likewise.
47640         * m4/jm-winsz2.m4: Likewise.
47641         * m4/lchown.m4: Likewise.
47642         * m4/lcmessage.m4: Likewise.
47643         * m4/ldexpl.m4: Likewise.
47644         * m4/lib-ld.m4: Likewise.
47645         * m4/lib-link.m4: Likewise.
47646         * m4/libsigsegv.m4: Likewise.
47647         * m4/link-follow.m4: Likewise.
47648         * m4/localcharset.m4: Likewise.
47649         * m4/locale-fr.m4: Likewise.
47650         * m4/locale-ja.m4: Likewise.
47651         * m4/locale-tr.m4: Likewise.
47652         * m4/locale-zh.m4: Likewise.
47653         * m4/lock.m4: Likewise.
47654         * m4/longlong.m4: Likewise.
47655         * m4/ls-mntd-fs.m4: Likewise.
47656         * m4/lstat.m4: Likewise.
47657         * m4/malloc.m4: Likewise.
47658         * m4/mathl.m4: Likewise.
47659         * m4/mbrtowc.m4: Likewise.
47660         * m4/mbstate_t.m4: Likewise.
47661         * m4/mbswidth.m4: Likewise.
47662         * m4/memchr.m4: Likewise.
47663         * m4/memcmp.m4: Likewise.
47664         * m4/memcpy.m4: Likewise.
47665         * m4/memmem.m4: Likewise.
47666         * m4/memmove.m4: Likewise.
47667         * m4/mempcpy.m4: Likewise.
47668         * m4/memrchr.m4: Likewise.
47669         * m4/memset.m4: Likewise.
47670         * m4/minmax.m4: Likewise.
47671         * m4/mkdir-slash.m4: Likewise.
47672         * m4/mkdtemp.m4: Likewise.
47673         * m4/mktime.m4: Likewise.
47674         * m4/mmap-anon.m4: Likewise.
47675         * m4/mountlist.m4: Likewise.
47676         * m4/nanosleep.m4: Likewise.
47677         * m4/nls.m4: Likewise.
47678         * m4/nocrash.m4: Likewise.
47679         * m4/open.m4: Likewise.
47680         * m4/openat.m4: Likewise.
47681         * m4/openmp.m4: Likewise.
47682         * m4/pathmax.m4: Likewise.
47683         * m4/perl.m4: Likewise.
47684         * m4/physmem.m4: Likewise.
47685         * m4/pipe.m4: Likewise.
47686         * m4/po.m4: Likewise.
47687         * m4/poll.m4: Likewise.
47688         * m4/posixtm.m4: Likewise.
47689         * m4/posixver.m4: Likewise.
47690         * m4/printf-frexp.m4: Likewise.
47691         * m4/printf-frexpl.m4: Likewise.
47692         * m4/printf-posix.m4: Likewise.
47693         * m4/printf-posix-rpl.m4: Likewise.
47694         * m4/printf.m4: Likewise.
47695         * m4/progtest.m4: Likewise.
47696         * m4/putenv.m4: Likewise.
47697         * m4/readline.m4: Likewise.
47698         * m4/readlink.m4: Likewise.
47699         * m4/readutmp.m4: Likewise.
47700         * m4/realloc.m4: Likewise.
47701         * m4/regex.m4: Likewise.
47702         * m4/relocatable.m4: Likewise.
47703         * m4/relocatable-lib.m4: Likewise.
47704         * m4/rename-dest-slash.m4: Likewise.
47705         * m4/rename.m4: Likewise.
47706         * m4/rmdir-errno.m4: Likewise.
47707         * m4/rmdir.m4: Likewise.
47708         * m4/roundf.m4: Likewise.
47709         * m4/roundl.m4: Likewise.
47710         * m4/rpmatch.m4: Likewise.
47711         * m4/save-cwd.m4: Likewise.
47712         * m4/selinux-selinux-h.m4: Likewise.
47713         * m4/setenv.m4: Likewise.
47714         * m4/settime.m4: Likewise.
47715         * m4/sig2str.m4: Likewise.
47716         * m4/sig_atomic_t.m4: Likewise.
47717         * m4/signalblocking.m4: Likewise.
47718         * m4/signbit.m4: Likewise.
47719         * m4/sigpipe.m4: Likewise.
47720         * m4/sockets.m4: Likewise.
47721         * m4/sockpfaf.m4: Likewise.
47722         * m4/st_dm_mode.m4: Likewise.
47723         * m4/stat-time.m4: Likewise.
47724         * m4/stdbool.m4: Likewise.
47725         * m4/stdint.m4: Likewise.
47726         * m4/stdint_h.m4: Likewise.
47727         * m4/stpcpy.m4: Likewise.
47728         * m4/stpncpy.m4: Likewise.
47729         * m4/strcase.m4: Likewise.
47730         * m4/strchrnul.m4: Likewise.
47731         * m4/strcspn.m4: Likewise.
47732         * m4/strdup.m4: Likewise.
47733         * m4/strftime.m4: Likewise.
47734         * m4/strndup.m4: Likewise.
47735         * m4/strnlen.m4: Likewise.
47736         * m4/strpbrk.m4: Likewise.
47737         * m4/strptime.m4: Likewise.
47738         * m4/strsep.m4: Likewise.
47739         * m4/strtod.m4: Likewise.
47740         * m4/strtoimax.m4: Likewise.
47741         * m4/strtok_r.m4: Likewise.
47742         * m4/strtol.m4: Likewise.
47743         * m4/strtoll.m4: Likewise.
47744         * m4/strtoul.m4: Likewise.
47745         * m4/strtoull.m4: Likewise.
47746         * m4/strtoumax.m4: Likewise.
47747         * m4/strverscmp.m4: Likewise.
47748         * m4/threadlib.m4: Likewise.
47749         * m4/timegm.m4: Likewise.
47750         * m4/tm_gmtoff.m4: Likewise.
47751         * m4/tmpdir.m4: Likewise.
47752         * m4/tmpfile.m4: Likewise.
47753         * m4/tzset.m4: Likewise.
47754         * m4/uintmax_t.m4: Likewise.
47755         * m4/unlinkdir.m4: Likewise.
47756         * m4/unlocked-io.m4: Likewise.
47757         * m4/uptime.m4: Likewise.
47758         * m4/userspec.m4: Likewise.
47759         * m4/utimbuf.m4: Likewise.
47760         * m4/utime.m4: Likewise.
47761         * m4/utimes-null.m4: Likewise.
47762         * m4/utimes.m4: Likewise.
47763         * m4/vararrays.m4: Likewise.
47764         * m4/vasnprintf.m4: Likewise.
47765         * m4/vfprintf-posix.m4: Likewise.
47766         * m4/vprintf-posix.m4: Likewise.
47767         * m4/wait-process.m4: Likewise.
47768         * m4/wchar_t.m4: Likewise.
47769         * m4/wint_t.m4: Likewise.
47770         * m4/write-any-file.m4: Likewise.
47771         * m4/yield.m4: Likewise.
47772
47773 2009-01-13  Bruno Haible  <bruno@clisp.org>
47774
47775         Avoid test-copy-file.sh failures when ACL support insufficient.
47776         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47777         TESTS_ENVIRONMENT.
47778         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47779         Reported by Jim Meyering.
47780
47781 2009-01-13  Bruno Haible  <bruno@clisp.org>
47782
47783         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47784         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47785         * modules/unistdio/u8-printf-parse (Files): Likewise.
47786         * modules/unistdio/u32-printf-parse (Files): Likewise.
47787         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47788
47789 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47790
47791         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47792         and m4/inttypes_h.m4 too.
47793
47794 2009-01-12  Eric Blake  <ebb9@byu.net>
47795
47796         tests: IRIX 6.2 cc can't compile -0.0 into .data
47797         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47798         rather than at compile-time.
47799         * tests/test-floorl.c (minus_zero): Likewise.
47800         * tests/test-frexpl.c (minus_zero): Likewise.
47801         * tests/test-isnan.c (minus_zerol): Likewise.
47802         * tests/test-isnanl.h (minus_zero): Likewise.
47803         * tests/test-ldexpl.c (minus_zero): Likewise.
47804         * tests/test-roundl.c (minus_zero): Likewise.
47805         * tests/test-signbit.c (minus_zerol): Likewise.
47806         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47807         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47808         * tests/test-truncl.c (minus_zero): Likewise.
47809         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47810         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47811         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47812
47813 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47814
47815         regex: fix glibc bug 9697
47816         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47817         handling.
47818
47819 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47820
47821         regex: fix glibc bug 697
47822         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47823         being NULL also if there are no backreferences.
47824
47825 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47826
47827         regex: merge glibc changes
47828         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47829         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47830         re_string_skip_chars, re_string_reconstruct): Likewise.
47831         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47832
47833 2009-01-07  Jim Meyering  <meyering@redhat.com>
47834
47835         poll: filter through cppi
47836         * lib/poll.c: Indent cpp directives to reflect nesting.
47837
47838 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47839
47840         poll: don't return uninitialized
47841         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47842
47843 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47844
47845         avoid compile failure on AIX 6.1
47846         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47847         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47848
47849 2009-01-04  Jim Meyering  <meyering@redhat.com>
47850
47851         remove duplicate inclusion of <stdio.h>
47852         * tests/test-fprintf-posix.c: Likewise.
47853         * tests/test-printf-posix.c: Likewise.
47854         * tests/test-snprintf-posix.c: Likewise.
47855         * tests/test-sprintf-posix.c: Likewise.
47856         * tests/test-vasprintf-posix.c: Likewise.
47857         * tests/test-vfprintf-posix.c: Likewise.
47858         * tests/test-vprintf-posix.c: Likewise.
47859         * tests/test-vsnprintf-posix.c: Likewise.
47860         * tests/test-vsprintf-posix.c: Likewise.
47861
47862 2009-01-03  Jim Meyering  <meyering@redhat.com>
47863
47864         gnulib-tool: fix sed-based filtering
47865         * gnulib-tool (func_filter_filelist): Remove extra backslash
47866         in sed_fff_filter definition.
47867
47868 2009-01-02  Jim Meyering  <meyering@redhat.com>
47869
47870         strftime: avoid compilation failure on Solaris 2.6
47871         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47872         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47873         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47874         be available.  Reported by Tom G. Christensen.  Details in
47875         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47876
47877 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47878             Bruno Haible  <bruno@clisp.org>
47879
47880         Speed up gnulib-tool by doing more string processing through shell
47881         built-ins.
47882         * gnulib-tool (fast_func_append): New variable.
47883         (func_remove_prefix, func_remove_suffix): New functions.
47884         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47885         (func_filter_filelist): New function.
47886         (func_get_dependencies): Use func_remove_suffix instead of sed.
47887         (func_get_automake_snippet): Use func_filter_filelist instead of a
47888         subshell and sed invocation.
47889
47890 2009-01-01  Bruno Haible  <bruno@clisp.org>
47891
47892         Fix a security bug.
47893         * gnulib-tool (func_import, import, update): Don't allow the characters
47894         '"', '$', '`', '\' in macro arguments that become part of commands that
47895         are evaluated.
47896
47897 2009-01-01  Bruno Haible  <bruno@clisp.org>
47898
47899         * gnulib-tool (func_reset_sigpipe): Add more comments.
47900
47901 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47902
47903         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47904         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47905         already know the answer.
47906
47907 2009-01-01  Jim Meyering  <meyering@redhat.com>
47908
47909         * lib/version-etc.c (version_etc_va): Update copyright year.
47910
47911 2008-12-30  Bruno Haible  <bruno@clisp.org>
47912
47913         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47914         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47915         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47916
47917 2008-12-29  Eric Blake  <ebb9@byu.net>
47918
47919         multiarch: avoid autoconf AC_REQUIRE bug
47920         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47921         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47922         2.63 and older.
47923         Reported by Bruno Haible, and analyzed in
47924         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47925
47926 2008-12-29  Bruno Haible  <bruno@clisp.org>
47927
47928         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47929         files in subdirectories correctly.
47930         Reported by Ralf Wildenhues.
47931
47932 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47933
47934         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47935         rather than 'join FILE -', for Solaris join.
47936
47937 2008-12-29  Bruno Haible  <bruno@clisp.org>
47938
47939         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47940         quoting.
47941         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47942         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47943         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47944         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47945         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47946         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47947         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47948         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47949         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47950         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47951         * m4/nls.m4 (AM_NLS): Likewise.
47952         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47953         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47954         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47955         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47956         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47957         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47958         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47959         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47960         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47961         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47962         * m4/xsize.m4 (gl_XSIZE): Likewise.
47963         Suggested by Jim Meyering.
47964
47965 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47966
47967         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47968         * lib/parse-duration.c: use a switch instead of cascading if's.
47969
47970 2008-12-29  Eric Blake  <ebb9@byu.net>
47971
47972         wchar.h: supply WEOF on Irix 5.3
47973         * lib/wchar.in.h (wint_t): Also supply WEOF.
47974         * lib/wctype.in.h (wint_t): Likewise.
47975         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47976         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47977         Reported by Tom G. Christensen.
47978
47979 2008-12-26  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47982         i486, i586, i686.
47983
47984 2008-12-26  Bruno Haible  <bruno@clisp.org>
47985
47986         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47987
47988 2008-12-26  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47991         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47992         not __STDC_CONSTANT_MACROS.
47993         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47994
47995 2008-12-25  Bruno Haible  <bruno@clisp.org>
47996
47997         Add support for universal builds to vasnprintf.
47998         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47999         universal builds, guess no.
48000         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48001         * modules/vasprintf-posix (Depends-on): Likewise.
48002         * modules/fprintf-posix (Depends-on): Likewise.
48003         * modules/vfprintf-posix (Depends-on): Likewise.
48004         * modules/snprintf-posix (Depends-on): Likewise.
48005         * modules/vsnprintf-posix (Depends-on): Likewise.
48006         * modules/sprintf-posix (Depends-on): Likewise.
48007         * modules/vsprintf-posix (Depends-on): Likewise.
48008         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48009         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48010         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48011         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48012         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48013         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48014         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48015
48016         Add support for universal builds to <inttypes.h>.
48017         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48018         _SCNu64_PREFIX): In Apple
48019         universal builds, define directly, using _LP64.
48020         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48021         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48022         * modules/inttypes (Depends-on): Add multiarch.
48023         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48024
48025         Add support for universal builds to <stdint.h>.
48026         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48027         universal builds, define directly, using _LP64.
48028         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48029         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48030         and size_t.
48031         * modules/stdint (Depends-on): Add multiarch.
48032         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48033
48034         New module 'multiarch'.
48035         * modules/multiarch: New file.
48036         * m4/multiarch.m4: New file.
48037
48038 2008-12-25  Bruno Haible  <bruno@clisp.org>
48039
48040         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48041
48042 2008-12-25  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/btowc (License): Relicense under LGPLv2+.
48045         * modules/mbsinit (License): Likewise.
48046         * modules/mbrtowc (License): Likewise.
48047         * modules/wcrtomb (License): Likewise.
48048         * modules/streq (License): Likewise.
48049         Reported by David Lutterkort <lutter@redhat.com>.
48050
48051 2008-12-23  Bruno Haible  <bruno@clisp.org>
48052
48053         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48054
48055 2008-12-23  Bruno Haible  <bruno@clisp.org>
48056
48057         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48059         GETADDRINFO_LIB, not in LIBS.
48060         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48061         * modules/canon-host (Link): Likewise.
48062         * NEWS: Mention the change.
48063         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48064         GETADDRINFO_LIB.
48065
48066 2008-12-22  Bruno Haible  <bruno@clisp.org>
48067
48068         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48069         * doc/posix-functions/iswalpha_l.texi: Likewise.
48070         * doc/posix-functions/iswblank_l.texi: Likewise.
48071         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48072         * doc/posix-functions/iswctype_l.texi: Likewise.
48073         * doc/posix-functions/iswdigit_l.texi: Likewise.
48074         * doc/posix-functions/iswgraph_l.texi: Likewise.
48075         * doc/posix-functions/iswlower_l.texi: Likewise.
48076         * doc/posix-functions/iswprint_l.texi: Likewise.
48077         * doc/posix-functions/iswpunct_l.texi: Likewise.
48078         * doc/posix-functions/iswspace_l.texi: Likewise.
48079         * doc/posix-functions/iswupper_l.texi: Likewise.
48080         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48081         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48082         * doc/posix-functions/open_wmemstream.texi: Likewise.
48083         * doc/posix-functions/swscanf.texi: Likewise.
48084         * doc/posix-functions/towctrans_l.texi: Likewise.
48085         * doc/posix-functions/towlower.texi: Likewise.
48086         * doc/posix-functions/towlower_l.texi: Likewise.
48087         * doc/posix-functions/towupper.texi: Likewise.
48088         * doc/posix-functions/towupper_l.texi: Likewise.
48089         * doc/posix-functions/vfwprintf.texi: Likewise.
48090         * doc/posix-functions/vfwscanf.texi: Likewise.
48091         * doc/posix-functions/vswscanf.texi: Likewise.
48092         * doc/posix-functions/vwprintf.texi: Likewise.
48093         * doc/posix-functions/vwscanf.texi: Likewise.
48094         * doc/posix-functions/wcpcpy.texi: Likewise.
48095         * doc/posix-functions/wcpncpy.texi: Likewise.
48096         * doc/posix-functions/wcscasecmp.texi: Likewise.
48097         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48098         * doc/posix-functions/wcscoll_l.texi: Likewise.
48099         * doc/posix-functions/wcsdup.texi: Likewise.
48100         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48101         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48102         * doc/posix-functions/wcsnlen.texi: Likewise.
48103         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48104         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48105         * doc/posix-functions/wctrans_l.texi: Likewise.
48106         * doc/posix-functions/wctype_l.texi: Likewise.
48107         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48108         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48109         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48110         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48111         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48112         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48113         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48114         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48115         * doc/glibc-functions/wcschrnul.texi: Likewise.
48116         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48117         * doc/glibc-functions/wcstod_l.texi: Likewise.
48118         * doc/glibc-functions/wcstof_l.texi: Likewise.
48119         * doc/glibc-functions/wcstol_l.texi: Likewise.
48120         * doc/glibc-functions/wcstold_l.texi: Likewise.
48121         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48122         * doc/glibc-functions/wcstoq.texi: Likewise.
48123         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48124         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48125         * doc/glibc-functions/wcstouq.texi: Likewise.
48126         * doc/glibc-functions/wmempcpy.texi: Likewise.
48127
48128 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48129             Eric Blake  <ebb9@byu.net>
48130             Paolo Bonzini  <bonzini@gnu.org>
48131             Bruno Haible  <bruno@clisp.org>
48132
48133         Make c-stack work on Haiku.
48134         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48135         (c_stack_action): Use SA_ONSTACK flag.
48136
48137 2008-12-22  Bruno Haible  <bruno@clisp.org>
48138
48139         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48140
48141 2008-12-22  Bruno Haible  <bruno@clisp.org>
48142
48143         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48144         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48145         being overridden.
48146         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48147         New macros.
48148         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48150         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48151         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48152
48153 2008-12-22  Bruno Haible  <bruno@clisp.org>
48154
48155         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48156         from test code.
48157
48158 2008-12-22  Eric Blake  <ebb9@byu.net>
48159
48160         Avoid gcc warnings on cygwin.
48161         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48162         Avoid unused variable.
48163         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48164         Likewise.
48165
48166 2008-12-22  Bruno Haible  <bruno@clisp.org>
48167
48168         Remove HAVE_MBRTOWC conditionals.
48169         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48170         (mbscasecmp): Assume mbrtowc function.
48171         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48172         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48173         * lib/mbschr.c: Include mbuiter.h unconditionally.
48174         (mbschr): Assume mbrtowc function.
48175         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48176         (mbscspn): Assume mbrtowc function.
48177         * lib/mbslen.c: Include mbuiter.h unconditionally.
48178         (mbslen): Assume mbrtowc function.
48179         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48180         (mbsncasecmp): Assume mbrtowc function.
48181         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48182         (mbsnlen): Assume mbrtowc function.
48183         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48184         (mbspbrk): Assume mbrtowc function.
48185         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48186         (mbspcasecmp): Assume mbrtowc function.
48187         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48188         (mbsrchr): Assume mbrtowc function.
48189         * lib/mbssep.c: Include mbuiter.h unconditionally.
48190         (mbssep): Assume mbrtowc function.
48191         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48192         (mbsspn): Assume mbrtowc function.
48193         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48194         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48195         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48196         (mbstok_r): Assume mbrtowc function.
48197         * lib/propername.c: Include mbuiter.h unconditionally.
48198         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48199         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48200         (trim2): Assume mbrtowc function.
48201         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48202         (mbsnwidth): Assume mbrtowc function.
48203         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48204         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48205         fallback definitions.
48206         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48207
48208 2008-12-22  Bruno Haible  <bruno@clisp.org>
48209
48210         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48211
48212 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48213
48214         * modules/regex: Request emulations for the mb*/wc* functions we need.
48215         * m4/regex.m4: Don't look for those functions here.
48216         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48217
48218 2008-12-22  Bruno Haible  <bruno@clisp.org>
48219
48220         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48221
48222 2008-12-21  Bruno Haible  <bruno@clisp.org>
48223
48224         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48225         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48226         (Include): Remove conditionalization.
48227         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48228         (Include): Remove conditionalization.
48229         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48230         (Include): Remove conditionalization.
48231         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48232         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48233         * NEWS: Mention the change.
48234         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48235         via Sergey Poznyakoff <gray@gnu.org.ua>.
48236
48237 2008-12-21  Bruno Haible  <bruno@clisp.org>
48238
48239         * MODULES.html.sh (Extended multibyte and wide character utilities
48240         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48241         wcrtomb, wcsrtombs.
48242         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48243         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48244         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48245         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48246
48247 2008-12-21  Bruno Haible  <bruno@clisp.org>
48248
48249         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48250
48251 2008-12-21  Bruno Haible  <bruno@clisp.org>
48252
48253         * modules/wcsnrtombs-tests: New file.
48254         * tests/test-wcsnrtombs1.sh: New file.
48255         * tests/test-wcsnrtombs2.sh: New file.
48256         * tests/test-wcsnrtombs3.sh: New file.
48257         * tests/test-wcsnrtombs4.sh: New file.
48258         * tests/test-wcsnrtombs.c: New file.
48259
48260         New module 'wcsnrtombs'.
48261         * lib/wchar.in.h (wcsnrtombs): New declaration.
48262         * lib/wcsnrtombs.c: New file.
48263         * lib/wcsrtombs-state.c: New file.
48264         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48265         (internal_state): Remove variable.
48266         * m4/wcsnrtombs.m4: New file.
48267         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48268         compilation units.
48269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48270         HAVE_WCSNRTOMBS.
48271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48272         HAVE_WCSNRTOMBS.
48273         * modules/wcsnrtombs: New file.
48274         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48275         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48276
48277 2008-12-21  Bruno Haible  <bruno@clisp.org>
48278
48279         * modules/wcsrtombs-tests: New file.
48280         * tests/test-wcsrtombs1.sh: New file.
48281         * tests/test-wcsrtombs2.sh: New file.
48282         * tests/test-wcsrtombs3.sh: New file.
48283         * tests/test-wcsrtombs4.sh: New file.
48284         * tests/test-wcsrtombs.c: New file.
48285
48286         New module 'wcsrtombs'.
48287         * lib/wchar.in.h (wcsrtombs): New declaration.
48288         * lib/wcsrtombs.c: New file.
48289         * m4/wcsrtombs.m4: New file.
48290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48291         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48293         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48294         * modules/wcsrtombs: New file.
48295         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48296         bugs.
48297
48298 2008-12-21  Bruno Haible  <bruno@clisp.org>
48299
48300         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48301         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48302         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48303         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48304         if not correct.
48305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48306         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48307         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48308         m4/locale-zh.m4, m4/codeset.m4.
48309         * doc/posix-functions/wcrtomb.texi: Document the bug.
48310
48311 2008-12-21  Bruno Haible  <bruno@clisp.org>
48312
48313         Work around a btowc() bug on IRIX 6.5.
48314         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48315         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48316         REPLACE_WTOBC if not.
48317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48318         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48319         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48320
48321 2008-12-21  Bruno Haible  <bruno@clisp.org>
48322
48323         * modules/wcrtomb-tests: New file.
48324         * tests/test-wcrtomb.sh: New file.
48325         * tests/test-wcrtomb.c: New file.
48326
48327         New module 'wcrtomb'.
48328         * lib/wchar.in.h (wcrtomb): New declaration.
48329         * lib/wcrtomb.c: New file.
48330         * m4/wcrtomb.m4: New file.
48331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48332         HAVE_WCRTOMB.
48333         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48334         HAVE_WCRTOMB.
48335         * modules/wcrtomb: New file.
48336         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48337
48338 2008-12-21  Bruno Haible  <bruno@clisp.org>
48339
48340         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48341         * modules/mbsrtowcs (Files): Likewise.
48342         * modules/wctob (Files): Likewise.
48343         * modules/c-strcase-tests (Files): Likewise.
48344         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48345         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48346         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48347         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48348         * modules/vasnprintf-posix-tests (Files): Likewise.
48349
48350 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48351
48352         gitlog-to-changelog: pass all command-line arguments to git-log
48353         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48354         it is sometimes convenient to filter the commits in various ways.
48355         gitlog-to-changelog only allows --since to specify a start date,
48356         but git-log itself supports many other filtering mechanisms.
48357         At the moment, I want to filter by branch name.  Rather than
48358         adding a --branch option to gitlog-to-changelog, it seems more
48359         flexible to simply pass all options directly to git-log and let
48360         git do the work.  Notice that this effectively makes --since a
48361         redundant option for gitlog-to-changelog, but removing it would
48362         require current usage to change since calls would then require
48363         an additional '--'.
48364
48365 2008-12-21  Bruno Haible  <bruno@clisp.org>
48366
48367         * modules/mbsnrtowcs-tests: New file.
48368         * tests/test-mbsnrtowcs1.sh: New file.
48369         * tests/test-mbsnrtowcs2.sh: New file.
48370         * tests/test-mbsnrtowcs3.sh: New file.
48371         * tests/test-mbsnrtowcs4.sh: New file.
48372         * tests/test-mbsnrtowcs.c: New file.
48373
48374         New module 'mbsnrtowcs'.
48375         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48376         * lib/mbsnrtowcs.c: New file.
48377         * lib/mbsrtowcs-state.c: New file.
48378         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48379         (internal_state): Remove variable.
48380         * m4/mbsnrtowcs.m4: New file.
48381         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48382         compilation units.
48383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48384         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48385         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48386         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48387         * modules/mbsnrtowcs: New file.
48388         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48389         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48390         portability problem.
48391
48392 2008-12-21  Bruno Haible  <bruno@clisp.org>
48393
48394         Work around mbsrtowcs bug.
48395         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48396         (gl_FUNC_MBSRTOWCS): Invoke it.
48397         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48398         m4/locale-zh.m4.
48399         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48400
48401 2008-12-21  Bruno Haible  <bruno@clisp.org>
48402
48403         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48404
48405 2008-12-21  Bruno Haible  <bruno@clisp.org>
48406
48407         Update doc for AIX.
48408         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48409         16-bit wchar_t type.
48410         * doc/posix-functions/btowc.texi: Likewise.
48411         * doc/posix-functions/fgetwc.texi: Likewise.
48412         * doc/posix-functions/fgetws.texi: Likewise.
48413         * doc/posix-functions/fputwc.texi: Likewise.
48414         * doc/posix-functions/fputws.texi: Likewise.
48415         * doc/posix-functions/fwide.texi: Likewise.
48416         * doc/posix-functions/fwprintf.texi: Likewise.
48417         * doc/posix-functions/fwscanf.texi: Likewise.
48418         * doc/posix-functions/getwchar.texi: Likewise.
48419         * doc/posix-functions/getwc.texi: Likewise.
48420         * doc/posix-functions/iswalnum.texi: Likewise.
48421         * doc/posix-functions/iswalpha.texi: Likewise.
48422         * doc/posix-functions/iswblank.texi: Likewise.
48423         * doc/posix-functions/iswcntrl.texi: Likewise.
48424         * doc/posix-functions/iswctype.texi: Likewise.
48425         * doc/posix-functions/iswdigit.texi: Likewise.
48426         * doc/posix-functions/iswgraph.texi: Likewise.
48427         * doc/posix-functions/iswlower.texi: Likewise.
48428         * doc/posix-functions/iswprint.texi: Likewise.
48429         * doc/posix-functions/iswpunct.texi: Likewise.
48430         * doc/posix-functions/iswspace.texi: Likewise.
48431         * doc/posix-functions/iswupper.texi: Likewise.
48432         * doc/posix-functions/iswxdigit.texi: Likewise.
48433         * doc/posix-functions/mbrtowc.texi: Likewise.
48434         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48435         * doc/posix-functions/mbstowcs.texi: Likewise.
48436         * doc/posix-functions/mbtowc.texi: Likewise.
48437         * doc/posix-functions/putwchar.texi: Likewise.
48438         * doc/posix-functions/putwc.texi: Likewise.
48439         * doc/posix-functions/swprintf.texi: Likewise.
48440         * doc/posix-functions/tolower.texi: Likewise.
48441         * doc/posix-functions/toupper.texi: Likewise.
48442         * doc/posix-functions/towctrans.texi: Likewise.
48443         * doc/posix-functions/ungetwc.texi: Likewise.
48444         * doc/posix-functions/vswprintf.texi: Likewise.
48445         * doc/posix-functions/wcrtomb.texi: Likewise.
48446         * doc/posix-functions/wcscat.texi: Likewise.
48447         * doc/posix-functions/wcschr.texi: Likewise.
48448         * doc/posix-functions/wcscmp.texi: Likewise.
48449         * doc/posix-functions/wcscoll.texi: Likewise.
48450         * doc/posix-functions/wcscpy.texi: Likewise.
48451         * doc/posix-functions/wcscspn.texi: Likewise.
48452         * doc/posix-functions/wcsftime.texi: Likewise.
48453         * doc/posix-functions/wcslen.texi: Likewise.
48454         * doc/posix-functions/wcsncat.texi: Likewise.
48455         * doc/posix-functions/wcsncmp.texi: Likewise.
48456         * doc/posix-functions/wcsncpy.texi: Likewise.
48457         * doc/posix-functions/wcspbrk.texi: Likewise.
48458         * doc/posix-functions/wcsrchr.texi: Likewise.
48459         * doc/posix-functions/wcsrtombs.texi: Likewise.
48460         * doc/posix-functions/wcsspn.texi: Likewise.
48461         * doc/posix-functions/wcsstr.texi: Likewise.
48462         * doc/posix-functions/wcstod.texi: Likewise.
48463         * doc/posix-functions/wcstof.texi: Likewise.
48464         * doc/posix-functions/wcstoimax.texi: Likewise.
48465         * doc/posix-functions/wcstok.texi: Likewise.
48466         * doc/posix-functions/wcstold.texi: Likewise.
48467         * doc/posix-functions/wcstoll.texi: Likewise.
48468         * doc/posix-functions/wcstol.texi: Likewise.
48469         * doc/posix-functions/wcstombs.texi: Likewise.
48470         * doc/posix-functions/wcstoull.texi: Likewise.
48471         * doc/posix-functions/wcstoul.texi: Likewise.
48472         * doc/posix-functions/wcstoumax.texi: Likewise.
48473         * doc/posix-functions/wcswidth.texi: Likewise.
48474         * doc/posix-functions/wcsxfrm.texi: Likewise.
48475         * doc/posix-functions/wctob.texi: Likewise.
48476         * doc/posix-functions/wctomb.texi: Likewise.
48477         * doc/posix-functions/wctrans.texi: Likewise.
48478         * doc/posix-functions/wctype.texi: Likewise.
48479         * doc/posix-functions/wcwidth.texi: Likewise.
48480         * doc/posix-functions/wmemchr.texi: Likewise.
48481         * doc/posix-functions/wmemcmp.texi: Likewise.
48482         * doc/posix-functions/wmemcpy.texi: Likewise.
48483         * doc/posix-functions/wmemmove.texi: Likewise.
48484         * doc/posix-functions/wmemset.texi: Likewise.
48485         * doc/posix-functions/wprintf.texi: Likewise.
48486         * doc/posix-functions/wscanf.texi: Likewise.
48487
48488 2008-12-21  Bruno Haible  <bruno@clisp.org>
48489
48490         Update doc for HP-UX 11.11.
48491         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48492         in HP-UX version 11.00, not in all versions of HP-UX 11.
48493         * doc/posix-functions/fwide.texi: Likewise.
48494         * doc/posix-functions/fwprintf.texi: Likewise.
48495         * doc/posix-functions/fwscanf.texi: Likewise.
48496         * doc/posix-functions/inet_ntop.texi: Likewise.
48497         * doc/posix-functions/inet_pton.texi: Likewise.
48498         * doc/posix-functions/mbrlen.texi: Likewise.
48499         * doc/posix-functions/mbrtowc.texi: Likewise.
48500         * doc/posix-functions/mbsinit.texi: Likewise.
48501         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48502         * doc/posix-functions/swprintf.texi: Likewise.
48503         * doc/posix-functions/swscanf.texi: Likewise.
48504         * doc/posix-functions/towctrans.texi: Likewise.
48505         * doc/posix-functions/vfwprintf.texi: Likewise.
48506         * doc/posix-functions/vswprintf.texi: Likewise.
48507         * doc/posix-functions/vwprintf.texi: Likewise.
48508         * doc/posix-functions/wcrtomb.texi: Likewise.
48509         * doc/posix-functions/wcsrtombs.texi: Likewise.
48510         * doc/posix-functions/wcsstr.texi: Likewise.
48511         * doc/posix-functions/wctob.texi: Likewise.
48512         * doc/posix-functions/wctrans.texi: Likewise.
48513         * doc/posix-functions/wmemchr.texi: Likewise.
48514         * doc/posix-functions/wmemcmp.texi: Likewise.
48515         * doc/posix-functions/wmemcpy.texi: Likewise.
48516         * doc/posix-functions/wmemmove.texi: Likewise.
48517         * doc/posix-functions/wmemset.texi: Likewise.
48518         * doc/posix-functions/wprintf.texi: Likewise.
48519         * doc/posix-functions/wscanf.texi: Likewise.
48520
48521 2008-12-21  Bruno Haible  <bruno@clisp.org>
48522
48523         Work around a portability problem.
48524         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48525         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48526
48527 2008-12-20  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48530         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48531         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48533         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48534
48535         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48536         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48537         set.
48538         (GNULIB_defined_mbstate_t): New macro.
48539         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48540         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48541         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48542         reuses the system's mbrtowc function but works around the bugs.
48543         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48544         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48545         macros.
48546         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48547         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48548         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48549         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48550         REPLACE_MBSINIT if mbsinit needs to be overridden.
48551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48552         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48553         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48554         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48555         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48556         m4/locale-zh.m4.
48557         (Depends): Add mbsinit.
48558         * modules/mbsinit (Depends): Add mbrtowc.
48559         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48560
48561 2008-12-20  Bruno Haible  <bruno@clisp.org>
48562
48563         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48564         so that there are no conversion errors on AIX.
48565         * tests/test-mbsrtowcs.c (main): LIkewise.
48566
48567 2008-12-20  Bruno Haible  <bruno@clisp.org>
48568
48569         Work around wctob bug on Solaris <= 9.
48570         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48571         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48573         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48574         * modules/wctob (Files): Add m4/locale-fr.m4.
48575         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48576
48577 2008-12-20  Bruno Haible  <bruno@clisp.org>
48578
48579         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48580         /dev/null.
48581         * tests/test-select-in.sh: Likewise.
48582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48583
48584 2008-12-20  Bruno Haible  <bruno@clisp.org>
48585
48586         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48587         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48588         Cygwin 1.5.x.
48589
48590 2008-12-20  Bruno Haible  <bruno@clisp.org>
48591
48592         Ensure mbstate_t is defined on HP-UX 11.11.
48593         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48594         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48595         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48596         AC_USE_SYSTEM_EXTENSIONS.
48597         * modules/fnmatch (Depends-on): Add extensions.
48598         * modules/mbrlen (Depends-on): Likewise.
48599         * modules/mbrtowc (Depends-on): Likewise.
48600         * modules/mbsinit (Depends-on): Likewise.
48601         * modules/mbsrtowcs (Depends-on): Likewise.
48602         * modules/mbswidth (Depends-on): Likewise.
48603         * modules/quotearg (Depends-on): Likewise.
48604         * modules/strftime (Depends-on): Likewise.
48605
48606 2008-12-20  Bruno Haible  <bruno@clisp.org>
48607
48608         Ensure wctob is declared on IRIX 6.5.
48609         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48610         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48611         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48613         of HAVE_WCTOB.
48614         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48615         HAVE_WCTOB.
48616         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48617
48618 2008-12-19  Bruno Haible  <bruno@clisp.org>
48619
48620         * modules/mbsrtowcs-tests: New file.
48621         * tests/test-mbsrtowcs1.sh: New file.
48622         * tests/test-mbsrtowcs2.sh: New file.
48623         * tests/test-mbsrtowcs3.sh: New file.
48624         * tests/test-mbsrtowcs4.sh: New file.
48625         * tests/test-mbsrtowcs.c: New file.
48626
48627         New module 'mbsrtowcs'.
48628         * lib/wchar.in.h (mbsrtowcs): New declaration.
48629         * lib/mbsrtowcs.c: New file.
48630         * m4/mbsrtowcs.m4: New file.
48631         * modules/mbsrtowcs: New file.
48632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48633         HAVE_MBSRTOWCS.
48634         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48635         HAVE_MBSRTOWCS.
48636         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48637
48638 2008-12-19  Bruno Haible  <bruno@clisp.org>
48639
48640         New module 'mbrlen'.
48641         * lib/wchar.in.h (mbrlen): New declaration.
48642         * lib/mbrlen.c: New file.
48643         * m4/mbrlen.m4: New file.
48644         * modules/mbrlen: New file.
48645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48646         HAVE_MBRLEN.
48647         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48648         HAVE_MBRLEN.
48649         * doc/posix-functions/mbrlen.texi: Document the new module.
48650
48651 2008-12-19  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48654         * modules/mbrtowc (Depends-on): Add verify.
48655         Suggested by Paul Eggert.
48656
48657 2008-12-18  Bruno Haible  <bruno@clisp.org>
48658
48659         * modules/mbsinit-tests: New file.
48660         * tests/test-mbsinit.sh: New file.
48661         * tests/test-mbsinit.c: New file.
48662
48663 2008-12-18  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/mbrtowc-tests: New file.
48666         * tests/test-mbrtowc1.sh: New file.
48667         * tests/test-mbrtowc2.sh: New file.
48668         * tests/test-mbrtowc3.sh: New file.
48669         * tests/test-mbrtowc4.sh: New file.
48670         * tests/test-mbrtowc.c: New file.
48671
48672         New module 'mbrtowc'.
48673         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48674         mbsinit and mbrtowc.
48675         (mbrtowc): New declaration.
48676         * lib/mbrtowc.c: New file.
48677         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48678         * modules/mbrtowc: New file.
48679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48680         HAVE_MBRTOWC.
48681         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48682         HAVE_MBRTOWC.
48683         * doc/posix-functions/mbrtowc.texi: Document the new module.
48684
48685 2008-12-18  Bruno Haible  <bruno@clisp.org>
48686
48687         New module 'wctob'.
48688         * lib/wchar.in.h (wctob): New declaration.
48689         * lib/wctob.c: New file.
48690         * m4/wctob.m4: New file.
48691         * modules/wctob: New file.
48692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48693         HAVE_WCTOB.
48694         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48695         * doc/posix-functions/wctob.texi: Document the new module.
48696
48697 2008-12-18  Bruno Haible  <bruno@clisp.org>
48698
48699         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48700         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48701
48702 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48703
48704         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48705         G. Christensen" <tgc@jupiterrise.com>.
48706
48707         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48708         G. Christensen" <tgc@jupiterrise.com>.
48709
48710         * lib/flock.c: Need to include string.h.  Reported by "Tom
48711         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48712         <ebb9@byu.net>.
48713
48714 2008-12-18  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/locale-ja.m4: New file, from GNU gettext.
48717
48718 2008-12-17  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48721         Suggested by Eric Blake.
48722
48723 2008-12-17  Bruno Haible  <bruno@clisp.org>
48724
48725         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48726
48727 2008-12-17  Bruno Haible  <bruno@clisp.org>
48728
48729         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48730         * modules/mbsinit (Depends-on): Add verify.
48731         Suggested by Paul Eggert.
48732
48733 2008-12-17  Bruno Haible  <bruno@clisp.org>
48734
48735         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48736         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48737         gl_FUNC_MBRTOWC.
48738         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48739         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48740         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48741         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48742         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48743         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48744         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48745         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48746         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48747         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48748         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48749         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48750         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48751         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48752         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48753         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48754         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48755         * modules/trim (configure.ac): Likewise.
48756
48757 2008-12-17  Bruno Haible  <bruno@clisp.org>
48758
48759         * modules/btowc-tests: New file.
48760         * tests/test-btowc1.sh: New file.
48761         * tests/test-btowc2.sh: New file.
48762         * tests/test-btowc.c: New file.
48763
48764         New module 'btowc'.
48765         * lib/wchar.in.h (btowc): New declaration.
48766         * lib/btowc.c: New file.
48767         * m4/btowc.m4: New file.
48768         * modules/btowc: New file.
48769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48770         HAVE_BTOWC.
48771         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48772         * doc/posix-functions/btowc.texi: Document the new module.
48773
48774 2008-12-17  Bruno Haible  <bruno@clisp.org>
48775
48776         New module 'mbsinit'.
48777         * lib/wchar.in.h (mbsinit): New declaration.
48778         * lib/mbsinit.c: New file.
48779         * m4/mbsinit.m4: New file.
48780         * modules/mbsinit: New file.
48781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48782         HAVE_MBSINIT.
48783         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48784         HAVE_MBSINIT.
48785         * doc/posix-functions/mbsinit.texi: Document the new module.
48786
48787 2008-12-16  Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/unistd.in.h: Add comment.
48790         * tests/test-environ.c: Don't include <stdlib.h>.
48791
48792 2008-12-16  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/parse-duration.h (parse_duration): Document return value
48795         convention.
48796         * lib/parse-duration.c: Include specification header first. Add
48797         comments.
48798         (_): Remove macro.
48799         (parse_year_month_day, parse_hour_minute_second): Move side effects
48800         outside of strchr call.
48801         (parse_non_iso8601): Move side effects outside of isspace call.
48802         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48803         call.
48804
48805 2008-12-16  Bruno Haible  <bruno@clisp.org>
48806
48807         * tests/test-parse-duration.sh: Produce no output when the test
48808         succeeds.
48809
48810 2008-12-16  Bruno Haible  <bruno@clisp.org>
48811
48812         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48813         expressions.
48814
48815 2008-12-15  Bruno Haible  <bruno@clisp.org>
48816
48817         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48818         * doc/glibc-functions/flistxattr.texi: Likewise.
48819         * doc/glibc-functions/fopencookie.texi: Likewise.
48820         * doc/glibc-functions/fremovexattr.texi: Likewise.
48821         * doc/glibc-functions/fsetxattr.texi: Likewise.
48822         * doc/glibc-functions/getxattr.texi: Likewise.
48823         * doc/glibc-functions/lgetxattr.texi: Likewise.
48824         * doc/glibc-functions/listxattr.texi: Likewise.
48825         * doc/glibc-functions/llistxattr.texi: Likewise.
48826         * doc/glibc-functions/lremovexattr.texi: Likewise.
48827         * doc/glibc-functions/lsetxattr.texi: Likewise.
48828         * doc/glibc-functions/removexattr.texi: Likewise.
48829         * doc/glibc-functions/setxattr.texi: Likewise.
48830         * doc/posix-functions/open_memstream.texi: Likewise.
48831
48832 2008-12-15  Eric Blake  <ebb9@byu.net>
48833
48834         Update doc for cygwin 1.7.
48835         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48836         functions.
48837         * doc/posix-functions/fchmodat.texi: Likewise.
48838         * doc/posix-functions/fchownat.texi: Likewise.
48839         * doc/posix-functions/fdopendir.texi: Likewise.
48840         * doc/posix-functions/fmemopen.texi: Likewise.
48841         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48842         * doc/posix-functions/fstatat.texi: Likewise.
48843         * doc/posix-functions/futimens.texi: Likewise.
48844         * doc/posix-functions/gai_strerror.texi: Likewise.
48845         * doc/posix-functions/getaddrinfo.texi: Likewise.
48846         * doc/posix-functions/getnameinfo.texi: Likewise.
48847         * doc/posix-functions/if_freenameindex.texi: Likewise.
48848         * doc/posix-functions/if_indextoname.texi: Likewise.
48849         * doc/posix-functions/if_nameindex.texi: Likewise.
48850         * doc/posix-functions/if_nametoindex.texi: Likewise.
48851         * doc/posix-functions/insque.texi: Likewise.
48852         * doc/posix-functions/linkat.texi: Likewise.
48853         * doc/posix-functions/llrint.texi: Likewise.
48854         * doc/posix-functions/llrintf.texi: Likewise.
48855         * doc/posix-functions/llrintl.texi: Likewise.
48856         * doc/posix-functions/lockf.texi: Likewise.
48857         * doc/posix-functions/lrintl.texi: Likewise.
48858         * doc/posix-functions/mkdirat.texi: Likewise.
48859         * doc/posix-functions/mkfifoat.texi: Likewise.
48860         * doc/posix-functions/mknodat.texi: Likewise.
48861         * doc/posix-functions/mq_close.texi: Likewise.
48862         * doc/posix-functions/mq_getattr.texi: Likewise.
48863         * doc/posix-functions/mq_notify.texi: Likewise.
48864         * doc/posix-functions/mq_open.texi: Likewise.
48865         * doc/posix-functions/mq_receive.texi: Likewise.
48866         * doc/posix-functions/mq_send.texi: Likewise.
48867         * doc/posix-functions/mq_setattr.texi: Likewise.
48868         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48869         * doc/posix-functions/mq_timedsend.texi: Likewise.
48870         * doc/posix-functions/mq_unlink.texi: Likewise.
48871         * doc/posix-functions/open_memstream.texi: Likewise.
48872         * doc/posix-functions/openat.texi: Likewise.
48873         * doc/posix-functions/posix_fadvise.texi: Likewise.
48874         * doc/posix-functions/posix_fallocate.texi: Likewise.
48875         * doc/posix-functions/posix_madvise.texi: Likewise.
48876         * doc/posix-functions/posix_memalign.texi: Likewise.
48877         * doc/posix-functions/posix_openpt.texi: Likewise.
48878         * doc/posix-functions/readlinkat.texi: Likewise.
48879         * doc/posix-functions/remque.texi: Likewise.
48880         * doc/posix-functions/renameat.texi: Likewise.
48881         * doc/posix-functions/rintl.texi: Likewise.
48882         * doc/posix-functions/sem_unlink.texi: Likewise.
48883         * doc/posix-functions/shm_open.texi: Likewise.
48884         * doc/posix-functions/shm_unlink.texi: Likewise.
48885         * doc/posix-functions/signgam.texi: Likewise.
48886         * doc/posix-functions/sigset.texi: Likewise.
48887         * doc/posix-functions/stpcpy.texi: Likewise.
48888         * doc/posix-functions/stpncpy.texi: Likewise.
48889         * doc/posix-functions/strerror.texi: Likewise.
48890         * doc/posix-functions/strtod.texi: Likewise.
48891         * doc/posix-functions/symlinkat.texi: Likewise.
48892         * doc/posix-functions/unlinkat.texi: Likewise.
48893         * doc/posix-functions/utimensat.texi: Likewise.
48894         * doc/glibc-functions/bindresvport.texi: Likewise.
48895         * doc/glibc-functions/dn_expand.texi: Likewise.
48896         * doc/glibc-functions/exp10.texi: Likewise.
48897         * doc/glibc-functions/exp10f.texi: Likewise.
48898         * doc/glibc-functions/fgetxattr.texi: Likewise.
48899         * doc/glibc-functions/flistxattr.texi: Likewise.
48900         * doc/glibc-functions/fopencookie.texi: Likewise.
48901         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48902         * doc/glibc-functions/fremovexattr.texi: Likewise.
48903         * doc/glibc-functions/fsetxattr.texi: Likewise.
48904         * doc/glibc-functions/getifaddrs.texi: Likewise.
48905         * doc/glibc-functions/getxattr.texi: Likewise.
48906         * doc/glibc-functions/lgetxattr.texi: Likewise.
48907         * doc/glibc-functions/listxattr.texi: Likewise.
48908         * doc/glibc-functions/llistxattr.texi: Likewise.
48909         * doc/glibc-functions/lremovexattr.texi: Likewise.
48910         * doc/glibc-functions/lsetxattr.texi: Likewise.
48911         * doc/glibc-functions/pow10.texi: Likewise.
48912         * doc/glibc-functions/pow10f.texi: Likewise.
48913         * doc/glibc-functions/rcmd_af.texi: Likewise.
48914         * doc/glibc-functions/removexattr.texi: Likewise.
48915         * doc/glibc-functions/res_init.texi: Likewise.
48916         * doc/glibc-functions/res_mkquery.texi: Likewise.
48917         * doc/glibc-functions/res_query.texi: Likewise.
48918         * doc/glibc-functions/res_querydomain.texi: Likewise.
48919         * doc/glibc-functions/res_send.texi: Likewise.
48920         * doc/glibc-functions/rresvport_af.texi: Likewise.
48921         * doc/glibc-functions/setxattr.texi: Likewise.
48922         * doc/glibc-functions/strcasestr.texi: Likewise.
48923
48924 2008-12-15  Bruno Haible  <bruno@clisp.org>
48925
48926         Fix compilation error on OSF/1 4.0.
48927         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48928         <sys/time.h>, simply delegate to the system header.
48929         Reported by Daniel Richard G. <oss@teragram.com>.
48930
48931 2008-12-15  Bruno Haible  <bruno@clisp.org>
48932
48933         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48934         * doc/posix-functions/fchmodat.texi: Likewise.
48935         * doc/posix-functions/fchownat.texi: Likewise.
48936         * doc/posix-functions/fdopendir.texi: Likewise.
48937         * doc/posix-functions/fstatat.texi: Likewise.
48938         * doc/posix-functions/mkdirat.texi: Likewise.
48939         * doc/posix-functions/unlinkat.texi: Likewise.
48940
48941 2008-12-14  Bruno Haible  <bruno@clisp.org>
48942
48943         Update doc for POSIX:2008.
48944         * doc/posix-functions/faccessat.texi: New file.
48945         * doc/posix-functions/fchmodat.texi: New file.
48946         * doc/posix-functions/fchownat.texi: New file.
48947         * doc/posix-functions/fdopendir.texi: New file.
48948         * doc/posix-functions/fstatat.texi: New file.
48949         * doc/posix-functions/futimens.texi: New file.
48950         * doc/posix-functions/linkat.texi: New file.
48951         * doc/posix-functions/mkdirat.texi: New file.
48952         * doc/posix-functions/mkfifoat.texi: New file.
48953         * doc/posix-functions/mknodat.texi: New file.
48954         * doc/posix-functions/open_wmemstream.texi: New file.
48955         * doc/posix-functions/openat.texi: New file.
48956         * doc/posix-functions/psiginfo.texi: New file.
48957         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48958         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48959         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48960         * doc/posix-functions/readlinkat.texi: New file.
48961         * doc/posix-functions/renameat.texi: New file.
48962         * doc/posix-functions/strerror_l.texi: New file.
48963         * doc/posix-functions/symlinkat.texi: New file.
48964         * doc/posix-functions/unlinkat.texi: New file.
48965         * doc/posix-functions/utimensat.texi: New file.
48966         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48967
48968 2008-12-14  Bruno Haible  <bruno@clisp.org>
48969
48970         Update doc for POSIX:2008.
48971         * doc/posix-functions/alphasort.texi: Renamed from
48972         doc/glibc-functions/alphasort.texi.
48973         * doc/posix-functions/dirfd.texi: Renamed from
48974         doc/glibc-functions/dirfd.texi.
48975         * doc/posix-functions/dprintf.texi: Renamed from
48976         doc/glibc-functions/dprintf.texi.
48977         * doc/posix-functions/duplocale.texi: Renamed from
48978         doc/glibc-functions/duplocale.texi.
48979         * doc/posix-functions/fexecve.texi: Renamed from
48980         doc/glibc-functions/fexecve.texi.
48981         * doc/posix-functions/fmemopen.texi: Renamed from
48982         doc/glibc-functions/fmemopen.texi.
48983         * doc/posix-functions/freelocale.texi: Renamed from
48984         doc/glibc-functions/freelocale.texi.
48985         * doc/posix-functions/getdate_err.texi: Renamed from
48986         doc/glibc-functions/getdate_err.texi.
48987         * doc/posix-functions/isalnum_l.texi: Renamed from
48988         doc/glibc-functions/isalnum_l.texi.
48989         * doc/posix-functions/isalpha_l.texi: Renamed from
48990         doc/glibc-functions/isalpha_l.texi.
48991         * doc/posix-functions/isblank_l.texi: Renamed from
48992         doc/glibc-functions/isblank_l.texi.
48993         * doc/posix-functions/iscntrl_l.texi: Renamed from
48994         doc/glibc-functions/iscntrl_l.texi.
48995         * doc/posix-functions/isdigit_l.texi: Renamed from
48996         doc/glibc-functions/isdigit_l.texi.
48997         * doc/posix-functions/isgraph_l.texi: Renamed from
48998         doc/glibc-functions/isgraph_l.texi.
48999         * doc/posix-functions/islower_l.texi: Renamed from
49000         doc/glibc-functions/islower_l.texi.
49001         * doc/posix-functions/isprint_l.texi: Renamed from
49002         doc/glibc-functions/isprint_l.texi.
49003         * doc/posix-functions/ispunct_l.texi: Renamed from
49004         doc/glibc-functions/ispunct_l.texi.
49005         * doc/posix-functions/isspace_l.texi: Renamed from
49006         doc/glibc-functions/isspace_l.texi.
49007         * doc/posix-functions/isupper_l.texi: Renamed from
49008         doc/glibc-functions/isupper_l.texi.
49009         * doc/posix-functions/iswalnum_l.texi: Renamed from
49010         doc/glibc-functions/iswalnum_l.texi.
49011         * doc/posix-functions/iswalpha_l.texi: Renamed from
49012         doc/glibc-functions/iswalpha_l.texi.
49013         * doc/posix-functions/iswblank_l.texi: Renamed from
49014         doc/glibc-functions/iswblank_l.texi.
49015         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49016         doc/glibc-functions/iswcntrl_l.texi.
49017         * doc/posix-functions/iswctype_l.texi: Renamed from
49018         doc/glibc-functions/iswctype_l.texi.
49019         * doc/posix-functions/iswdigit_l.texi: Renamed from
49020         doc/glibc-functions/iswdigit_l.texi.
49021         * doc/posix-functions/iswgraph_l.texi: Renamed from
49022         doc/glibc-functions/iswgraph_l.texi.
49023         * doc/posix-functions/iswlower_l.texi: Renamed from
49024         doc/glibc-functions/iswlower_l.texi.
49025         * doc/posix-functions/iswprint_l.texi: Renamed from
49026         doc/glibc-functions/iswprint_l.texi.
49027         * doc/posix-functions/iswpunct_l.texi: Renamed from
49028         doc/glibc-functions/iswpunct_l.texi.
49029         * doc/posix-functions/iswspace_l.texi: Renamed from
49030         doc/glibc-functions/iswspace_l.texi.
49031         * doc/posix-functions/iswupper_l.texi: Renamed from
49032         doc/glibc-functions/iswupper_l.texi.
49033         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49034         doc/glibc-functions/iswxdigit_l.texi.
49035         * doc/posix-functions/isxdigit_l.texi: Renamed from
49036         doc/glibc-functions/isxdigit_l.texi.
49037         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49038         doc/glibc-functions/mbsnrtowcs.texi.
49039         * doc/posix-functions/mkdtemp.texi: Renamed from
49040         doc/glibc-functions/mkdtemp.texi.
49041         * doc/posix-functions/newlocale.texi: Renamed from
49042         doc/glibc-functions/newlocale.texi.
49043         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49044         doc/glibc-functions/nl_langinfo_l.texi.
49045         * doc/posix-functions/open_memstream.texi: Renamed from
49046         doc/glibc-functions/open_memstream.texi.
49047         * doc/posix-functions/opterr.texi: Renamed from
49048         doc/glibc-functions/opterr.texi.
49049         * doc/posix-functions/optind.texi: Renamed from
49050         doc/glibc-functions/optind.texi.
49051         * doc/posix-functions/optopt.texi: Renamed from
49052         doc/glibc-functions/optopt.texi.
49053         * doc/posix-functions/psignal.texi: Renamed from
49054         doc/glibc-functions/psignal.texi.
49055         * doc/posix-functions/scandir.texi: Renamed from
49056         doc/glibc-functions/scandir.texi.
49057         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49058         doc/glibc-functions/sched_get_priority_min.texi.
49059         * doc/posix-functions/signgam.texi: Renamed from
49060         doc/glibc-functions/signgam.texi.
49061         * doc/posix-functions/stpcpy.texi: Renamed from
49062         doc/glibc-functions/stpcpy.texi.
49063         * doc/posix-functions/stpncpy.texi: Renamed from
49064         doc/glibc-functions/stpncpy.texi.
49065         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49066         doc/glibc-functions/strcasecmp_l.texi.
49067         * doc/posix-functions/strcoll_l.texi: Renamed from
49068         doc/glibc-functions/strcoll_l.texi.
49069         * doc/posix-functions/strfmon_l.texi: Renamed from
49070         doc/glibc-functions/strfmon_l.texi.
49071         * doc/posix-functions/strftime_l.texi: Renamed from
49072         doc/glibc-functions/strftime_l.texi.
49073         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49074         doc/glibc-functions/strncasecmp_l.texi.
49075         * doc/posix-functions/strndup.texi: Renamed from
49076         doc/glibc-functions/strndup.texi.
49077         * doc/posix-functions/strnlen.texi: Renamed from
49078         doc/glibc-functions/strnlen.texi.
49079         * doc/posix-functions/strsignal.texi: Renamed from
49080         doc/glibc-functions/strsignal.texi.
49081         * doc/posix-functions/strxfrm_l.texi: Renamed from
49082         doc/glibc-functions/strxfrm_l.texi.
49083         * doc/posix-functions/timer_gettime.texi: Renamed from
49084         doc/glibc-functions/timer_gettime.texi.
49085         * doc/posix-functions/tolower_l.texi: Renamed from
49086         doc/glibc-functions/tolower_l.texi.
49087         * doc/posix-functions/toupper_l.texi: Renamed from
49088         doc/glibc-functions/toupper_l.texi.
49089         * doc/posix-functions/towctrans_l.texi: Renamed from
49090         doc/glibc-functions/towctrans_l.texi.
49091         * doc/posix-functions/towlower_l.texi: Renamed from
49092         doc/glibc-functions/towlower_l.texi.
49093         * doc/posix-functions/towupper_l.texi: Renamed from
49094         doc/glibc-functions/towupper_l.texi.
49095         * doc/posix-functions/uselocale.texi: Renamed from
49096         doc/glibc-functions/uselocale.texi.
49097         * doc/posix-functions/vdprintf.texi: Renamed from
49098         doc/glibc-functions/vdprintf.texi.
49099         * doc/posix-functions/wcpcpy.texi:
49100         Renamed from doc/glibc-functions/wcpcpy.texi.
49101         * doc/posix-functions/wcpncpy.texi: Renamed from
49102         doc/glibc-functions/wcpncpy.texi.
49103         * doc/posix-functions/wcscasecmp.texi: Renamed from
49104         doc/glibc-functions/wcscasecmp.texi.
49105         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49106         doc/glibc-functions/wcscasecmp_l.texi.
49107         * doc/posix-functions/wcscoll_l.texi: Renamed from
49108         doc/glibc-functions/wcscoll_l.texi.
49109         * doc/posix-functions/wcsdup.texi: Renamed from
49110         doc/glibc-functions/wcsdup.texi.
49111         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49112         doc/glibc-functions/wcsncasecmp.texi.
49113         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49114         doc/glibc-functions/wcsncasecmp_l.texi.
49115         * doc/posix-functions/wcsnlen.texi: Renamed from
49116         doc/glibc-functions/wcsnlen.texi.
49117         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49118         doc/glibc-functions/wcsnrtombs.texi.
49119         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49120         doc/glibc-functions/wcsxfrm_l.texi.
49121         * doc/posix-functions/wctrans_l.texi: Renamed from
49122         doc/glibc-functions/wctrans_l.texi.
49123         * doc/posix-functions/wctype_l.texi: Renamed from
49124         doc/glibc-functions/wctype_l.texi.
49125         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49126         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49127         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49128         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49129         these subsections.
49130         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49131         Remove sections.
49132
49133 2008-12-14  Bruno Haible  <bruno@clisp.org>
49134
49135         Update doc for POSIX:2008.
49136         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49137
49138 2008-12-14  Bruno Haible  <bruno@clisp.org>
49139
49140         Update doc for POSIX:2008.
49141         * doc/pastposix-functions/bcmp.texi: Renamed from
49142         doc/posix-functions/bcmp.texi.
49143         * doc/pastposix-functions/bcopy.texi: Renamed from
49144         doc/posix-functions/bcopy.texi.
49145         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49146         doc/posix-functions/bsd_signal.texi.
49147         * doc/pastposix-functions/bzero.texi: Renamed from
49148         doc/posix-functions/bzero.texi.
49149         * doc/pastposix-functions/ecvt.texi: Renamed from
49150         doc/posix-functions/ecvt.texi.
49151         * doc/pastposix-functions/fcvt.texi: Renamed from
49152         doc/posix-functions/fcvt.texi.
49153         * doc/pastposix-functions/ftime.texi: Renamed from
49154         doc/posix-functions/ftime.texi.
49155         * doc/pastposix-functions/gcvt.texi: Renamed from
49156         doc/posix-functions/gcvt.texi.
49157         * doc/pastposix-functions/getcontext.texi: Renamed from
49158         doc/posix-functions/getcontext.texi.
49159         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49160         doc/posix-functions/gethostbyaddr.texi.
49161         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49162         doc/posix-functions/gethostbyname.texi.
49163         * doc/pastposix-functions/getwd.texi: Renamed from
49164         doc/posix-functions/getwd.texi.
49165         * doc/pastposix-functions/h_errno.texi: Renamed from
49166         doc/posix-functions/h_errno.texi.
49167         * doc/pastposix-functions/index.texi: Renamed from
49168         doc/posix-functions/index.texi.
49169         * doc/pastposix-functions/makecontext.texi: Renamed from
49170         doc/posix-functions/makecontext.texi.
49171         * doc/pastposix-functions/mktemp.texi: Renamed from
49172         doc/posix-functions/mktemp.texi.
49173         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49174         doc/posix-functions/pthread_attr_getstackaddr.texi.
49175         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49176         doc/posix-functions/pthread_attr_setstackaddr.texi.
49177         * doc/pastposix-functions/rindex.texi: Renamed from
49178         doc/posix-functions/rindex.texi.
49179         * doc/pastposix-functions/scalb.texi: Renamed from
49180         doc/posix-functions/scalb.texi.
49181         * doc/pastposix-functions/setcontext.texi: Renamed from
49182         doc/posix-functions/setcontext.texi.
49183         * doc/pastposix-functions/swapcontext.texi: Renamed from
49184         doc/posix-functions/swapcontext.texi.
49185         * doc/pastposix-functions/ualarm.texi: Renamed from
49186         doc/posix-functions/ualarm.texi.
49187         * doc/pastposix-functions/usleep.texi: Renamed from
49188         doc/posix-functions/usleep.texi.
49189         * doc/pastposix-functions/vfork.texi: Renamed from
49190         doc/posix-functions/vfork.texi.
49191         * doc/pastposix-functions/wcswcs.texi: Renamed from
49192         doc/posix-functions/wcswcs.texi.
49193         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49194         (Function Substitutes): Update.
49195
49196 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49197
49198         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49199         m4/strerror.m4.
49200
49201 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49202             Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49205
49206 2008-12-13  Bruno Haible  <bruno@clisp.org>
49207
49208         * modules/strtoull (Depends-on): Remove unistd.
49209
49210 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211
49212         * modules/strtoull (Depends-on): Add stdlib.
49213
49214 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49215
49216         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49217
49218 2008-12-10  Jim Meyering  <meyering@redhat.com>
49219
49220         gl_ASSERT: don't say assertions are disabled when they're not
49221         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49222         "checking whether to enable assertions... no", when they are in
49223         fact enabled.  This is solely a bug in the output of configure.
49224         In spite of saying "no", NDEBUG was not defined in that case.
49225         Also, as noted by Eric Blake, leave assertions enabled upon
49226         --enable-assert=INVALID.
49227
49228 2008-12-10  Bruno Haible  <bruno@clisp.org>
49229
49230         Change MODULES.html to refer to POSIX:2008 where possible.
49231         * MODULES.html.sh (POSIX2008_URL): New variable.
49232         (posix_headers): Remove sys/timeb, ucontext.
49233         (posix2001_headers): New variable.
49234         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49235         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49236         index, makecontext, mktemp, pthread_attr_getstackaddr,
49237         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49238         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49239         (posix2001_functions): New variable.
49240         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49241         otherwise.
49242
49243 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49244
49245         add missing include to parse-duration.c
49246         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49247         * modules/parse-duration (Depends-on): Add xalloc.
49248
49249         fix sed script reading maint.mk
49250         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49251         (syntax-check-rules): Use it.
49252
49253 2008-12-09  Bruno Haible  <bruno@clisp.org>
49254
49255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49256         MacOS X 10.4/PowerPC.
49257         Reported by Simon Josefsson.
49258
49259 2008-12-08  Jim Meyering  <meyering@redhat.com>
49260
49261         work around mingw's lack of some S_IF definitions
49262         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49263         Reported by Simon Josefsson.
49264
49265 2008-12-08  Bruno Haible  <bruno@clisp.org>
49266
49267         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49268         applied to variables. Needed on MacOS X 10.4/PowerPC.
49269         Reported by Simon Josefsson.
49270
49271 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49272         and Eric Blake  <ebb9@byu.net>
49273
49274         assert: honor --enable-assert
49275         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49276         order to honor --enable-assert, rather than treating it as a
49277         synonym for --disable-assert.
49278
49279 2008-12-08  Jim Meyering  <meyering@redhat.com>
49280
49281         * lib/posixtm.c: Remove now-useless declaration of mktime.
49282
49283         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49284
49285 2008-12-07  Bruno Haible  <bruno@clisp.org>
49286
49287         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49288         test_once): Mark functions as static.
49289         * tests/test-tls.c (test_tls): Likewise.
49290
49291 2008-12-07  Bruno Haible  <bruno@clisp.org>
49292
49293         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49294         iconv_register_autodetect.
49295
49296 2008-12-07  Jim Meyering  <meyering@redhat.com>
49297
49298         posixtm.c: avoid a warning
49299         * lib/posixtm.c (posixtime): Don't initialize tm0.
49300         It's no longer needed to placate gcc4's -Wuninitialized,
49301         and the attempt to placate would elicit a new warning.
49302
49303         unicodeio.c: mark unused parameters
49304         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49305         (fallback_failure_callback): Likewise.
49306
49307 2008-12-07  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool (func_create_testdir): When building the tests
49310         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49311         Reported by Simon Josefsson.
49312
49313 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49314
49315         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49316
49317 2008-12-06  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49320         Suggested by Eric Blake.
49321
49322 2008-12-06  Bruno Haible  <bruno@clisp.org>
49323
49324         Fix a c-stack test failure on MacOS X.
49325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49326         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49327         handler for SIGBUS as well.
49328         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49329         install a signal handler for SIGBUS as well.
49330         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49331
49332 2008-12-06  Bruno Haible  <bruno@clisp.org>
49333
49334         Advocacy documentation.
49335         * doc/gnulib-intro.texi (Benefits): New section.
49336         * doc/gnulib.texi: Update.
49337
49338 2008-12-06  Bruno Haible  <bruno@clisp.org>
49339
49340         Document the 'manywarnings' module.
49341         * doc/manywarnings.texi: New file.
49342         * doc/gnulib.texi: Include it.
49343
49344 2008-12-05  Eric Blake  <ebb9@byu.net>
49345
49346         tests: silence some gcc warnings
49347         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49348         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49349         type mismatches.
49350
49351 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49352             Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49355
49356 2008-11-29  Jim Meyering  <meyering@redhat.com>
49357
49358         unicodeio.c: mark unused parameters
49359         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49360         (fallback_failure_callback): Likewise.
49361
49362         fts: fix a thinko
49363         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49364         (set_stat_type): Return S_IF*-valued "type" directly.
49365         Prompted by James Youngman's spotting a related bug.
49366         Confirmed by further testing through find.
49367
49368         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49369         * lib/fts.c (D_TYPE): Define.
49370         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49371         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49372         (s_ifmt_shift_bits): New function.
49373         (set_stat_type): New function.
49374         (fts_build): When not calling fts_stat, call set_stat_type
49375         to propagate dirent.d_type info to fts_read caller.
49376         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49377         fts_statp->st_mode type information may be valid.
49378
49379 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49380
49381         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49382         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49383         <sds@gnu.org>.
49384
49385 2008-11-20  Bruno Haible  <bruno@clisp.org>
49386
49387         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49388         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49389         INCLUDE_NEXT.
49390         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49391         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49392         * modules/math (Makefile.am): Substitute
49393         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49394         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49395
49396 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49397             Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/stdint.in.h: Define all type macros so that their expansion is
49400         a single typedef'ed token. Fixes a compilation failure in Boost which
49401         does "using ::int8_t;".
49402
49403 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49404
49405         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49406         gl_MANYWARN_ALL_GCC.
49407         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49408         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49409         * modules/manywarnings: New file.
49410         * MODULES.html.sh: Mention manywarnings module.
49411
49412 2008-11-18  Bruno Haible  <bruno@clisp.org>
49413
49414         * doc/gnulib-tool.texi (Unit tests): New section.
49415
49416 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49417
49418         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49419         paths like 'lib/po/foo.po'.
49420
49421 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49422
49423         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49424         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49425
49426 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49427
49428         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49429         parameter works.
49430
49431 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49432
49433         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49434
49435 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49436
49437         * modules/parse-duration-tests: New file.
49438         * tests/test-parse-duration.sh: New file.
49439         * tests/test-parse-duration.c: New file.
49440
49441         New module 'parse-duration'.
49442         * lib/parse-duration.h: New file.
49443         * lib/parse-duration.c: New file.
49444         * modules/parse-duration: New file.
49445
49446 2008-11-17  Bruno Haible  <bruno@clisp.org>
49447
49448         * tests/test-select-out.sh: Comment out the first pipe test.
49449         Reported by Simon Josefsson.
49450
49451 2008-11-17  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49455         gl_HOSTENT.
49456
49457 2008-11-17  Bruno Haible  <bruno@clisp.org>
49458
49459         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49460         -lnetwork and -lnet. Needed for Haiku and BeOS.
49461
49462 2008-11-16  Bruno Haible  <bruno@clisp.org>
49463
49464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49465
49466 2008-11-16  Bruno Haible  <bruno@clisp.org>
49467
49468         Avoid test failure on Haiku.
49469         * tests/test-fsync.c: Include <errno.h>.
49470         (main): Don't require that fsync (0) fails.
49471
49472 2008-11-15  Bruno Haible  <bruno@clisp.org>
49473
49474         New module 'hostent'.
49475         * modules/hostent: New file.
49476         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49477
49478 2008-11-15  Bruno Haible  <bruno@clisp.org>
49479
49480         New module 'servent'.
49481         * modules/servent: New file.
49482         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49483
49484 2008-11-15  Bruno Haible  <bruno@clisp.org>
49485
49486         Avoid generating same test program with two different rules.
49487         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49488         test-frexp to test-frexp-nolibm.
49489         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49490         test-frexpl to test-frexpl-nolibm.
49491
49492 2008-11-15  Bruno Haible  <bruno@clisp.org>
49493
49494         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49495         $(FREXPL_LIBM).
49496
49497 2008-11-15  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/netdb.in.h: Activate the definitions also when the system's
49500         <netdb.h> has 'struct addrinfo'.
49501         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49502         EAI_OVERFLOW or AI_NUMERICSERV.
49503         * doc/posix-headers/netdb.texi: Document the problem.
49504
49505 2008-11-15  Bruno Haible  <bruno@clisp.org>
49506
49507         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49508
49509         Make the 'sched' module work on platforms where <sched.h> exists but
49510         is incomplete (such as Haiku).
49511         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49512         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49513         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49514         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49515         HAVE_STRUCT_SCHED_PARAM.
49516         * modules/sched (Depends-on): Add include_next.
49517         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49518         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49519         * doc/posix-headers/sched.texi: Document the issue.
49520
49521 2008-11-13  Jim Meyering  <meyering@redhat.com>
49522
49523         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49524         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49525         test would fail due to the difference in the Report bugs to ...
49526         line.  The expected address is empty, "<>", while the actual
49527         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49528
49529 2008-11-12  Bruno Haible  <bruno@clisp.org>
49530
49531         lstat: don't compile lstat.c on systems lacking lstat
49532         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49533         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49534         Reported by Daniel P. Berrange via Jim Meyering.
49535
49536 2008-11-12  Jim Meyering  <meyering@redhat.com>
49537
49538         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49539
49540 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49541
49542         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49543         instead.
49544
49545 2008-11-12  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/unicodeio.c: Include unistr.h.
49548         (utf8_wctomb): Remove function.
49549         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49550
49551 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49552
49553         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49554         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49555         <bruno@clisp.org>.
49556         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49557
49558 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49559
49560         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49561         * doc/gnulib.texi: Add section for warnings.
49562
49563 2008-11-11  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/sockets.h: Add a comment.
49566
49567 2008-11-11  Karl Berry  <karl@gnu.org>
49568
49569         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49570
49571 2008-11-11  Eric Blake  <ebb9@byu.net>
49572
49573         fdl.texi: avoid git symlinks
49574         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49575
49576 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49577
49578         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49579
49580 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49581
49582         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49583         (gl_WARN_ADD): Substitute $2 if literal.
49584
49585 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49586
49587         * m4/warning.m4: Remove.
49588
49589 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49590
49591         * m4/warnings.m4: Almost complete rewrite. :-)
49592
49593 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49594
49595         * modules/warnings: New module.
49596         * m4/warnings.m4: New file.
49597         * MODULES.html.sh: Mention warnings module.
49598         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49599         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49600
49601 2008-11-10  Eric Blake  <ebb9@byu.net>
49602
49603         fdl.texi: make a symlink to the latest version
49604         * doc/standards.texi: Revert today's earlier change.
49605         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49606         * doc/fdl.texi: ...and replace this with a symlink to the newer
49607         fdl-1.3.texi.
49608
49609 2008-11-10  Bruno Haible  <bruno@clisp.org>
49610
49611         * tests/test-select-fd.c (main): Accept the result file name as fourth
49612         argument.
49613         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49614         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49615
49616 2008-11-10  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49619         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49620         as autoconf-substituted macros.
49621         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49623         gl_NETDB_H_DEFAULTS. Set these variables.
49624         * modules/netdb (Makefile.am): Substitute these variables.
49625
49626 2008-11-10  Eric Blake  <ebb9@byu.net>
49627
49628         standards.texi: include correct file for FDL 1.3
49629         * doc/standards.texi (GNU Free Documentation License): Change
49630         include file to pull in FDL 1.3, not 1.2.
49631
49632         fdl.texi: revert accidental change to license
49633         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49634
49635 2008-11-10  Bruno Haible  <bruno@clisp.org>
49636
49637         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49638         cross-compiling guesses also when the native compile gives no result.
49639
49640 2008-11-10  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/spawni.c (__spawni): Force variable into the stack.
49643
49644 2008-11-10  Bruno Haible  <bruno@clisp.org>
49645
49646         Add support for Haiku.
49647         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49648         glibc and BeOS, but also on Haiku.
49649         * lib/fpurge.c (fpurge): Likewise.
49650         * lib/freadable.c (freadable): Likewise.
49651         * lib/freadahead.c (freadahead): Likewise.
49652         * lib/freading.c (freading): Likewise.
49653         * lib/freadptr.c (freadptr): Likewise.
49654         * lib/freadseek.c (freadptrinc): Likewise.
49655         * lib/fseeko.c (rpl_fseeko): Likewise.
49656         * lib/fseterr.c (fseterr): Likewise.
49657         * lib/fwritable.c (fwritable): Likewise.
49658         * lib/fwriting.c (fwriting): Likewise.
49659         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49660
49661 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49662
49663         * lib/config.charset: Treat Haiku like BeOS.
49664
49665 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49666
49667         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49668         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49669
49670 2008-11-08  Bruno Haible  <bruno@clisp.org>
49671
49672         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49673         AC_CACHE_CHECK.
49674
49675 2008-11-08  Bruno Haible  <bruno@clisp.org>
49676
49677         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49678
49679 2008-11-08  Bruno Haible  <bruno@clisp.org>
49680
49681         * tests/test-select-fd.c: New file.
49682         * tests/test-select-in.sh: New file.
49683         * tests/test-select-out.sh: New file.
49684         * tests/test-select-stdin.c: New file.
49685         * modules/select-tests (Files): Add the new files.
49686         (Depends-on): Add gettimeofday.
49687         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49688         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49689         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49690
49691 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49692             Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49695
49696 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49697
49698         * build-aux/pmccabe2html: Added support for C++ source files.
49699
49700 2008-11-05  Ben Pfaff  <blp@gnu.org>
49701
49702         Fix lib/close.c build on Windows.
49703         * modules/close (Files): Add lib/w32sock.h.
49704
49705 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49706
49707         Accept Bison's NEWS format.
49708         * build-aux/announce-gen (print_news_deltas): Tweak
49709         $re_prefix.
49710
49711 2008-11-04  Bruno Haible  <bruno@clisp.org>
49712
49713         * modules/random_r (Maintainer): Add glibc.
49714
49715 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49716
49717         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49718         by karl@freefriends.org (Karl Berry).
49719         * doc/alloca.texi: Likewise.
49720         * doc/c-ctype.texi: Likewise.
49721         * doc/c-strcase.texi: Likewise.
49722         * doc/c-strcaseeq.texi: Likewise.
49723         * doc/c-strcasestr.texi: Likewise.
49724         * doc/c-strstr.texi: Likewise.
49725         * doc/c-strtod.texi: Likewise.
49726         * doc/c-strtold.texi: Likewise.
49727         * doc/ctime.texi: Likewise.
49728         * doc/error.texi: Likewise.
49729         * doc/fdl.texi: Likewise.
49730         * doc/gcd.texi: Likewise.
49731         * doc/getdate.texi: Likewise.
49732         * doc/gnulib-intro.texi: Likewise.
49733         * doc/gnulib-tool.texi: Likewise.
49734         * doc/gnulib.texi: Likewise.
49735         * doc/inet_ntoa.texi: Likewise.
49736         * doc/maintain.texi: Likewise.
49737         * doc/make-stds.texi: Likewise.
49738         * doc/quote.texi: Likewise.
49739         * doc/regexprops-generic.texi: Likewise.
49740         * doc/standards.texi: Likewise.
49741         * doc/verify.texi: Likewise.
49742         * doc/visibility.texi: Likewise.
49743         * doc/gnulib.texi (GNU Free Documentation License): Include
49744         fdl-1.3.texi instead of fdl.texi.
49745
49746 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49747
49748         * doc/fdl-1.3.texi: New file, from
49749         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49750         * modules/fdl-1.3: Add.
49751         * MODULES.html.sh: Add fdl-1.3.
49752
49753 2008-11-03  Bruno Haible  <bruno@clisp.org>
49754
49755         Make determination of absolute name of header file work with AIX xlc.
49756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49757         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49758         preprocessing.
49759         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49760         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49761
49762 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49763
49764         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49765         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49766         <ludo@gnu.org>.
49767
49768 2008-11-02  Bruno Haible  <bruno@clisp.org>
49769
49770         Mark 'strpbrk' obsolete.
49771         * modules/strpbrk (Status, Notice): New sections.
49772         * modules/strtok_r (Depends-on): Add strpbrk.
49773
49774 2008-11-02  Bruno Haible  <bruno@clisp.org>
49775
49776         Mark 'strdup' obsolete.
49777         * modules/strdup (Status, Notice): New sections.
49778         * modules/findprog (Depends-on): Add strdup.
49779         * modules/getaddrinfo (Depends-on): Likewise.
49780         * modules/localename (Depends-on): Likewise.
49781         * modules/relocatable-lib (Depends-on): Likewise.
49782         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49783         * modules/relocatable-prog (Depends-on): Likewise.
49784         * modules/trim (Depends-on): Likewise.
49785         * modules/unictype/gen-ctype (Depends-on): Likewise.
49786         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49787
49788 2008-11-02  Bruno Haible  <bruno@clisp.org>
49789
49790         Mark 'strcspn' obsolete.
49791         * modules/strcspn (Status, Notice): New sections.
49792
49793 2008-11-02  Bruno Haible  <bruno@clisp.org>
49794
49795         Mark 'rmdir' obsolete.
49796         * modules/rmdir (Status, Notice): New sections.
49797         * modules/clean-temp (Depends-on): Add rmdir.
49798         * modules/openat (Depends-on): Likewise.
49799
49800 2008-11-02  Bruno Haible  <bruno@clisp.org>
49801
49802         Mark 'raise' obsolete.
49803         * modules/raise (Status, Notice): New sections.
49804         (Include): Specify <signal.h>.
49805         * modules/stdio (Depends-on): Add raise.
49806         * modules/write (Depends-on): Likewise.
49807
49808 2008-11-02  Bruno Haible  <bruno@clisp.org>
49809
49810         Mark 'memset' obsolete.
49811         * modules/memset (Status, Notice): New sections.
49812
49813 2008-11-02  Bruno Haible  <bruno@clisp.org>
49814
49815         Mark 'memmove' obsolete.
49816         * modules/memmove (Status, Notice): New sections.
49817         * modules/argp (Depends-on): Add memmove.
49818         * modules/argz (Depends-on): Likewise.
49819         * modules/canonicalize (Depends-on): Likewise.
49820         * modules/canonicalize-lgpl (Depends-on): Likewise.
49821         * modules/fts (Depends-on): Likewise.
49822         * modules/getcwd (Depends-on): Likewise.
49823         * modules/human (Depends-on): Likewise.
49824         * modules/regex (Depends-on): Likewise.
49825         * modules/striconveh (Depends-on): Likewise.
49826         * modules/trim (Depends-on): Likewise.
49827         * modules/unistr/u8-move (Depends-on): Likewise.
49828         * modules/unistr/u16-move (Depends-on): Likewise.
49829         * modules/unistr/u32-move (Depends-on): Likewise.
49830
49831 2008-11-02  Bruno Haible  <bruno@clisp.org>
49832
49833         Mark 'memcpy' obsolete.
49834         * modules/memcpy (Status, Notice): New sections.
49835
49836 2008-11-02  Bruno Haible  <bruno@clisp.org>
49837
49838         Mark 'memcmp' obsolete.
49839         * modules/memcmp (Status, Notice): New sections.
49840         * modules/argmatch (Depends-on): Add memchr.
49841         * modules/backupfile (Depends-on): Likewise.
49842         * modules/c-strcasestr (Depends-on): Likewise.
49843         * modules/crypto/des (Depends-on): Likewise.
49844         * modules/csharpcomp (Depends-on): Likewise.
49845         * modules/fnmatch (Depends-on): Likewise.
49846         * modules/git-merge-changelog (Depends-on): Likewise.
49847         * modules/isnand (Depends-on): Likewise.
49848         * modules/isnand-nolibm (Depends-on): Likewise.
49849         * modules/isnanf (Depends-on): Likewise.
49850         * modules/isnanf-nolibm (Depends-on): Likewise.
49851         * modules/isnanl (Depends-on): Likewise.
49852         * modules/isnanl-nolibm (Depends-on): Likewise.
49853         * modules/mbchar (Depends-on): Likewise.
49854         * modules/memcoll (Depends-on): Likewise.
49855         * modules/quotearg (Depends-on): Likewise.
49856         * modules/regex (Depends-on): Likewise.
49857         * modules/relocatable-prog (Depends-on): Likewise.
49858         * modules/same (Depends-on): Likewise.
49859         * modules/signbit (Depends-on): Likewise.
49860         * modules/strcasestr-simple (Depends-on): Likewise.
49861         * modules/unictype/gen-ctype (Depends-on): Likewise.
49862         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49863         * modules/uniname/uniname (Depends-on): Likewise.
49864         * modules/unistr/u8-cmp (Depends-on): Likewise.
49865
49866 2008-11-02  Bruno Haible  <bruno@clisp.org>
49867
49868         Mark 'memchr' obsolete.
49869         * modules/memchr (Status, Notice): New sections.
49870         * modules/argp (Depends-on): Add memchr.
49871         * modules/base64 (Depends-on): Likewise.
49872         * modules/c-strcasestr (Depends-on): Likewise.
49873         * modules/chdir-long (Depends-on): Likewise.
49874         * modules/fnmatch (Depends-on): Likewise.
49875         * modules/getsubopt (Depends-on): Likewise.
49876         * modules/git-merge-changelog (Depends-on): Likewise.
49877         * modules/glob (Depends-on): Likewise.
49878         * modules/strcasestr-simple (Depends-on): Likewise.
49879         * modules/strnlen (Depends-on): Likewise.
49880
49881 2008-11-02  Bruno Haible  <bruno@clisp.org>
49882
49883         Mark 'atexit' obsolete.
49884         * modules/atexit (Status, Notice): New sections.
49885         * modules/chdir-long (Depends-on): Add atexit.
49886         * modules/wait-process (Depends-on): Likewise.
49887
49888 2008-11-02  Bruno Haible  <bruno@clisp.org>
49889
49890         * gnulib-tool: New option --with-obsolete.
49891         (func_usage): Document it.
49892         (func_modules_transitive_closure): Drop obsolete dependencies if
49893         incobsolete is not true.
49894         (func_import): Read and save the incobsolete variable to the cache.
49895
49896 2008-11-02  Bruno Haible  <bruno@clisp.org>
49897
49898         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49899         * gnulib-tool: New option --extract-status.
49900         (func_usage): Document it.
49901         (sed_extract_prog): Recognize it.
49902         (func_get_status): New function.
49903
49904 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49905
49906         * modules/sockets (License): Change from LGPL to LGPLv2+.
49907
49908 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49909
49910         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49911
49912 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49913
49914         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49915         Mention times and sys_times.
49916         * modules/sys_times, modules/sys_times-tests: New modules.
49917         * modules/times, modules/times-tests: Likewise
49918         * m4/sys_times_h.m4: New file.
49919         * lib/sys_times.in.h: Likewise
49920         * lib/times.c: Likewise.
49921         * tests/test-sys_times.c: Likewise.
49922         * tests/test-times.c: Likewise.
49923         * doc/posix-headers/sys_times.texi: Update.
49924         * doc/posix-functions/times.texi: Update.
49925
49926 2008-10-28  Jim Meyering  <meyering@redhat.com>
49927
49928         * modules/tempname (Depends-on): Add lstat.
49929
49930         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49931
49932 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49933
49934         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49935         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49936         using idiom used elsewhere in gnulib.
49937
49938 2008-10-27  Jim Meyering  <meyering@redhat.com>
49939
49940         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49941
49942 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49943
49944         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49945         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49946         programs.
49947         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49948
49949 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49950
49951         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49952
49953 2008-10-27  Bruno Haible  <bruno@clisp.org>
49954
49955         * tests/test-lstat.c: Include <stdio.h>.
49956
49957 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49958
49959         * modules/lstat-tests: New module.
49960         * tests/test-lstat.c: New file.
49961
49962 2008-10-26  Jim Meyering  <meyering@redhat.com>
49963
49964         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49965
49966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49967             Bruno Haible  <bruno@clisp.org>
49968
49969         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49970         * modules/configmake (Include): Add a note that the include must come
49971         after all system headers.
49972         * lib/javaversion.c: Include configmake.h after all other includes.
49973
49974 2008-10-26  Bruno Haible  <bruno@clisp.org>
49975
49976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49977         HAVE_STRUCT_RANDOM_DATA to 1.
49978         (gl_STDLIB_H): Simplify.
49979
49980 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49981
49982         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49983         substitute HAVE_STRUCT_RANDOM_DATA.
49984         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49985         random_data.
49986         * modules/stdlib (Makefile.am): Substitute
49987         HAVE_STRUCT_RANDOM_DATA.
49988
49989 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49990
49991         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49992         * doc/gnulib-intro.texi (Copyright): Likewise.
49993
49994 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49995
49996         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49997         findings.
49998
49999 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50000             Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/unistd.in.h: Include <winsock2.h>.
50003         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50004         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50005         Provide dummy declarations.
50006         (gethostname): Override.
50007         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50008         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50009         gl_PREREQ_SYS_H_WINSOCK2.
50010         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50011         * doc/posix-functions/gethostname.texi: More details.
50012
50013 2008-10-25  Bruno Haible  <bruno@clisp.org>
50014
50015         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50016         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50017         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50018
50019         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50020         here ...
50021         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50023         gl_UNISTD_H_DEFAULTS.
50024
50025 2008-10-25  Eric Blake  <ebb9@byu.net>
50026
50027         signbit: avoid spurious compiler failure
50028         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50029         declarations inside function.
50030
50031 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50032             Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50035         * modules/random_r (Depends-on): Add stdint.
50036
50037 2008-10-24  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50040         Eggert.
50041         * modules/strerror (License): Likewise.
50042
50043 2008-10-24  Jim Meyering  <meyering@redhat.com>
50044
50045         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50046         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50047
50048 2008-10-24  Eric Blake  <ebb9@byu.net>
50049
50050         getgroups: fix compilation when getgroups is available
50051         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50052         but with <config.h> override of getgroups disabled.
50053
50054 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50055
50056         * doc/gnulib.texi (Header files): Add note about C++ problems.
50057         Explained by Bruno Haible <bruno@clisp.org>.
50058
50059 2008-10-23  Bruno Haible  <bruno@clisp.org>
50060
50061         Define a dummy SA_NODEFER macro on Interix.
50062         * lib/signal.in.h (SA_NODEFER): Define fallback.
50063         Reported by Aleksey Cheusov <cheusov@tut.by> via
50064         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50065
50066 2008-10-23  Bruno Haible  <bruno@clisp.org>
50067
50068         * modules/freadahead (License): Change to LGPLv2+.
50069         Suggested by Simon Josefsson.
50070
50071 2008-10-23  Jim Meyering  <meyering@redhat.com>
50072
50073         random_r: new module
50074         * modules/random_r: New file.
50075         * m4/random_r.m4: New file.
50076         * lib/random_r.c: New file, from glibc.
50077         * modules/random_r-tests: New file.
50078         * tests/test-random_r.c: New file.
50079         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50080          Declare.
50081         (RAND_MAX): Define.
50082         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50083         * modules/stdlib: Substitute them, too.
50084         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50085         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50086         * doc/glibc-functions/random_r.texi: Likewise.
50087         * doc/glibc-functions/setstate_r.texi: Likewise.
50088         * doc/glibc-functions/srandom_r.texi: Likewise.
50089         * config/srclist.txt: Mention it.
50090
50091 2008-10-23  David Lutterkort  <lutter@redhat.com>
50092
50093         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50094         link requirement
50095
50096 2008-10-23  Jim Meyering  <meyering@redhat.com>
50097
50098         selinux-h: mark parameters of stub functions as intentionally unused
50099         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50100         * lib/se-context.in.h: Likewise.
50101
50102 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50103
50104         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50105
50106 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50107
50108         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50109
50110 2008-10-22  Eric Blake  <ebb9@byu.net>
50111
50112         glthread/thread: avoid compiler warning
50113         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50114         Add unreachable abort to silence compiler.
50115
50116 2008-10-22  Eric Blake  <ebb9@byu.net>
50117
50118         netdb: also supply struct addrinfo for cygwin 1.5.x
50119         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50120         older cygwin.
50121         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50122         cygwin.
50123         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50124
50125 2008-10-22  Bruno Haible  <bruno@clisp.org>
50126
50127         * users.txt: Update entry about pspp.
50128
50129 2008-10-21  Bruno Haible  <bruno@clisp.org>
50130
50131         Simplification.
50132         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50133         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50134
50135         Simplification.
50136         * lib/ioctl.c (ioctl): Don't undefine.
50137         * lib/socket.c (socket): Don't undefine.
50138
50139         Remove unused module indicator macros.
50140         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50141         GNULIB_$1 as a C macro.
50142
50143         * doc/posix-functions/close.texi: Undo last change.
50144         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50145         Windows platforms.
50146
50147 2008-10-21  Bruno Haible  <bruno@clisp.org>
50148
50149         Add gethostname() declaration to <unistd.h>.
50150         * lib/unistd.in.h (gethostname): New declaration.
50151         * lib/gethostname.c: Include <unistd.h>.
50152         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50153         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50155         and HAVE_GETHOSTNAME.
50156         * modules/gethostname (Depends-on): Add unistd.
50157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50158         (Include): Specify <unistd.h>.
50159         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50160         HAVE_GETHOSTNAME.
50161         * tests/test-gethostname.c: Include <unistd.h> first.
50162
50163 2008-10-21  Bruno Haible  <bruno@clisp.org>
50164
50165         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50166         * modules/select-tests (Depends-on): Likewise.
50167         Reported by Simon Josefsson.
50168
50169 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50170
50171         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50172         * lib/accept.c: New file, based on winsock.c.
50173         * lib/bind.c: New file, based on winsock.c.
50174         * lib/connect.c: New file, based on winsock.c.
50175         * lib/getpeername.c: New file, based on winsock.c.
50176         * lib/getsockname.c: New file, based on winsock.c.
50177         * lib/getsockopt.c: New file, based on winsock.c.
50178         * lib/ioctl.c: New file, based on winsock.c.
50179         * lib/listen.c: New file, based on winsock.c.
50180         * lib/recv.c: New file, based on winsock.c.
50181         * lib/recvfrom.c: New file, based on winsock.c.
50182         * lib/send.c: New file, based on winsock.c.
50183         * lib/sendto.c: New file, based on winsock.c.
50184         * lib/setsockopt.c: New file, based on winsock.c.
50185         * lib/shutdown.c: New file, based on winsock.c.
50186         * lib/socket.c: New file, based on winsock.c.
50187         * lib/w32sock.h: New file, based on winsock.c.
50188         * lib/winsock.c: Remove file.
50189         * modules/accept: Likewise.
50190         * modules/bind: Likewise.
50191         * modules/connect: Likewise.
50192         * modules/getpeername: Likewise.
50193         * modules/getsockname: Likewise.
50194         * modules/getsockopt: Likewise.
50195         * modules/ioctl: Likewise.
50196         * modules/listen: Likewise.
50197         * modules/recv: Likewise.
50198         * modules/recvfrom: Likewise.
50199         * modules/send: Likewise.
50200         * modules/sendto: Likewise.
50201         * modules/setsockopt: Likewise.
50202         * modules/shutdown: Likewise.
50203         * modules/socket: Use socket.c instead of winsock.c.
50204         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50205         * doc/posix-functions/accept.texi: Doc fix.
50206         * doc/posix-functions/bind.texi: Doc fix.
50207         * doc/posix-functions/close.texi: Doc fix.
50208         * doc/posix-functions/connect.texi: Doc fix.
50209         * doc/posix-functions/getpeername.texi: Doc fix.
50210         * doc/posix-functions/getsockname.texi: Doc fix.
50211         * doc/posix-functions/getsockopt.texi: Doc fix.
50212         * doc/posix-functions/ioctl.texi: Doc fix.
50213         * doc/posix-functions/listen.texi: Doc fix.
50214         * doc/posix-functions/recv.texi: Doc fix.
50215         * doc/posix-functions/recvfrom.texi: Doc fix.
50216         * doc/posix-functions/send.texi: Doc fix.
50217         * doc/posix-functions/sendto.texi: Doc fix.
50218         * doc/posix-functions/setsockopt.texi: Doc fix.
50219         * doc/posix-functions/shutdown.texi: Doc fix.
50220         * doc/posix-functions/socket.texi: Doc fix.
50221
50222 2008-10-20  Bruno Haible  <bruno@clisp.org>
50223
50224         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50225         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50226         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50227         as an alias for SIGABRT.
50228         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50229         (sigaction): Map it to SIGABRT.
50230         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50231
50232 2008-10-20  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/fts.c: Don't include lstat.h.
50235         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50236
50237         Move the lstat() declaration to <sys/stat.h>.
50238         * lib/lstat.h: Remove file.
50239         * lib/sys_stat.in.h: Add special invocation convention.
50240         (lstat): New declaration.
50241         * lib/lstat.c (orig_lstat): New function.
50242         (rpl_lstat): Use orig_lstat instead of lstat.
50243         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50244         AC_C_INLINE. Set REPLACE_LSTAT.
50245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50246         and REPLACE_LSTAT.
50247         * modules/lstat (Files): Remove lib/lstat.h.
50248         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50249         (Include): Specify <sys/stat.h> instead of lstat.h.
50250         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50251         REPLACE_LSTAT.
50252         * NEWS: Mention the change.
50253
50254 2008-10-20  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/posix_spawn-tests: New file.
50257         * tests/test-posix_spawn3.c: New file.
50258
50259 2008-10-20  Bruno Haible  <bruno@clisp.org>
50260
50261         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50262         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50263         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50264         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50265         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50266
50267 2008-10-20  Bruno Haible  <bruno@clisp.org>
50268
50269         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50270         of posix_spawn on AIX 5.3.
50271
50272 2008-10-20  Bruno Haible  <bruno@clisp.org>
50273
50274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50275
50276 2008-10-20  Bruno Haible  <bruno@clisp.org>
50277
50278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50279         of AC_LANG_PROGRAM.
50280
50281 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50282
50283         * lib/netdb.in.h: Don't define GNU specific constants until they
50284         are supported or needed.  Reported by Bruno Haible
50285         <bruno@clisp.org>.
50286
50287 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50288
50289         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50290
50291 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50292
50293         * lib/getaddrinfo.h: Remove file.
50294         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50295         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50296         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50297         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50298         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50299         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50300         * tests/test-getaddrinfo.c: Likewise.
50301         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50302         * NEWS: Mention change.
50303
50304 2008-10-19  Bruno Haible  <bruno@clisp.org>
50305
50306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50307
50308 2008-10-19  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/wait-process.c: Include simply <sys/wait.h>.
50311         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50312         WIFSTOPPED): Remove fallback definitions.
50313         * modules/wait-process (Depends-on): Add sys_wait.
50314
50315         New module 'sys_wait'.
50316         * modules/sys_wait: New file.
50317         * lib/sys_wait.in.h: New file, partially copied from
50318         lib/wait-process.c.
50319         * m4/sys_wait_h.m4: New file.
50320         * doc/posix-headers/sys_wait.texi: Mention the new module.
50321
50322 2008-10-19  Bruno Haible  <bruno@clisp.org>
50323
50324         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50325
50326 2008-10-19  Bruno Haible  <bruno@clisp.org>
50327
50328         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50329         * lib/wait-process.c (WAIT_T): Remove type.
50330         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50331         (wait_subprocess): Update.
50332
50333 2008-10-19  Bruno Haible  <bruno@clisp.org>
50334
50335         New module 'atoll'.
50336         * modules/atoll: New file.
50337         * lib/stdlib.in.h (atoll): New declaration.
50338         * lib/atoll.c: New file, from glibc with modifications.
50339         * m4/atoll.m4: New file.
50340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50341         HAVE_ATOLL.
50342         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50343         * doc/posix-functions/atoll.texi: Mention the new module.
50344
50345 2008-10-19  Bruno Haible  <bruno@clisp.org>
50346
50347         Add strtoull() declaration to <stdlib.h>.
50348         * lib/stdlib.in.h (strtoull): New declaration.
50349         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50350         Set HAVE_STRTOULL.
50351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50352         HAVE_STRTOULL.
50353         * modules/strtoull (Depends-on): Add stdlib.
50354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50355         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50356         HAVE_STRTOULL.
50357
50358 2008-10-19  Bruno Haible  <bruno@clisp.org>
50359
50360         Add strtoll() declaration to <stdlib.h>.
50361         * lib/stdlib.in.h (strtoll): New declaration.
50362         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50363         Set HAVE_STRTOLL.
50364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50365         HAVE_STRTOLL.
50366         * modules/strtoll (Depends-on): Add stdlib.
50367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50368         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50369
50370 2008-10-19  Bruno Haible  <bruno@clisp.org>
50371
50372         * modules/bcopy (Depends-on): Add strings.
50373         (Include): Specify <strings.h>.
50374
50375 2008-10-19  Bruno Haible  <bruno@clisp.org>
50376
50377         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50378
50379 2008-10-19  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50382         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50383         mingw.
50384
50385 2008-10-19  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/atanl.c: Don't include isnanl.h.
50388         * lib/cosl.c: Likewise.
50389         * lib/ldexpl.c: Likewise.
50390         * lib/logl.c: Likewise.
50391         * lib/sinl.c: Likewise.
50392         * lib/sqrtl.c: Likewise.
50393         * lib/tanl.c: Likewise.
50394
50395         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50396         * lib/isnanf.h: Remove file.
50397         * lib/isnand.h: Remove file.
50398         * lib/isnanl.h: Remove file.
50399         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50400         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50401         macros.
50402         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50403         HAVE_ISNANF, don't define it as a C macro.
50404         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50405         HAVE_ISNAND, don't define it as a C macro.
50406         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50407         HAVE_ISNANL, don't define it as a C macro.
50408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50409         HAVE_ISNAN[FDL].
50410         * modules/isnanf (Files): Remove lib/isnanf.h.
50411         (Depends-on): Add math.
50412         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50413         (Include): Specify <math.h> instead of isnanf.h.
50414         * modules/isnand (Files): Remove lib/isnand.h.
50415         (Depends-on): Add math.
50416         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50417         (Include): Specify <math.h> instead of isnand.h.
50418         * modules/isnanl (Files): Remove lib/isnanl.h.
50419         (Depends-on): Add math.
50420         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50421         (Include): Specify <math.h> instead of isnanl.h.
50422         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50423         HAVE_ISNAN[FDL].
50424         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50425         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50426         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50427         * NEWS: Mention the change.
50428
50429 2008-10-18  Bruno Haible  <bruno@clisp.org>
50430
50431         Add getusershell(), setusershell(), endusershell() declarations to
50432         <unistd.h>.
50433         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50434         declarations.
50435         * lib/getusershell.c: Include unistd.h.
50436         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50437         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50438         HAVE_GETUSERSHELL.
50439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50440         and HAVE_GETUSERSHELL.
50441         * modules/getusershell (Depends-on): Add unistd, extensions.
50442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50443         (Include): Specify <unistd.h>.
50444         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50445         HAVE_GETUSERSHELL.
50446
50447 2008-10-18  Bruno Haible  <bruno@clisp.org>
50448
50449         Add a getloadavg() declaration to <stdlib.h>.
50450         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50451         getloadavg declaration.
50452         (getloadavg): New declaration.
50453         * lib/getloadavg.c: Include <stdlib.h> first.
50454         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50455         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50456         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50458         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50459         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50460         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50461         (Include): Specify <stdlib.h>.
50462         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50463         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50464
50465 2008-10-18  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/dirchownmod.c: Don't include lchmod.h.
50468
50469         Move the lchmod() declaration to <sys/stat.h>.
50470         * lib/lchmod.h: Remove file.
50471         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50472         (lchmod): New declaration, moved here from lib/lchown.h.
50473         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50474         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50476         and HAVE_LCHMOD.
50477         * modules/lchmod (Files): Remove lib/lchmod.h.
50478         (Depends-on): Add sys_stat, extensions.
50479         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50480         (Include): Specify <sys/stat.h> instead of lchmod.h.
50481         * modules/sys_stat (Depends-on): Add link-warning.
50482         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50483         definition of GL_LINK_WARNING.
50484         * NEWS: Mention the change.
50485
50486 2008-10-18  Bruno Haible  <bruno@clisp.org>
50487
50488         * lib/fchdir.c: Don't include dirfd.h.
50489         * lib/fts.c: Likewise.
50490         * lib/getcwd.c: Likewise.
50491         * lib/glob.c: Likewise.
50492
50493         Move the dirfd() declaration to <dirent.h>.
50494         * lib/dirfd.h: Remove file.
50495         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50496         (dirfd): New declaration.
50497         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50498         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50499         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50500         HAVE_DECL_DIRFD.
50501         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50502         HAVE_DECL_DIRFD.
50503         * modules/dirfd (Files): Remove lib/dirfd.h.
50504         (Depends-on): Add dirent, extensions.
50505         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50506         (Include): Specify <dirent.h> instead of dirfd.h.
50507         * modules/dirent (Depends-on): Add link-warning.
50508         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50509         definition of GL_LINK_WARNING.
50510         * NEWS: Mention the change.
50511
50512 2008-10-18  Bruno Haible  <bruno@clisp.org>
50513
50514         Move the euidaccess() declaration to <unistd.h>.
50515         * lib/euidaccess.h: Remove file.
50516         * lib/unistd.in.h (euidaccess): New declaration.
50517         * lib/euidaccess.c: Don't include euidaccess.h.
50518         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50519         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50521         and HAVE_EUIDACCESS.
50522         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50523         (Depends-on): Add unistd.
50524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50525         (Include): Specify <unistd.h> instead of euidaccess.h.
50526         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50527         HAVE_EUIDACCESS.
50528         * NEWS: Mention the change.
50529
50530 2008-10-18  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50533
50534         Move the getdomainname() declaration to <unistd.h>.
50535         * lib/getdomainname.h: Remove file.
50536         * lib/unistd.in.h (getdomainname): New declaration.
50537         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50538         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50539         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50540         HAVE_GETDOMAINNAME.
50541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50542         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50543         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50544         (Depends-on): Add unistd, extensions.
50545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50546         (Includes): Specify <unistd.h> instead of getdomainname.h.
50547         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50548         HAVE_GETDOMAINNAME.
50549         * NEWS: Mention the change.
50550
50551 2008-10-18  Bruno Haible  <bruno@clisp.org>
50552
50553         * modules/dirent: New file.
50554         * m4/dirent_h.m4: New file.
50555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50556         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50557         * modules/fchdir (Files): Remove lib/dirent.in.h.
50558         (Depends-on): Add dirent.
50559         (Makefile.am): Move rules to modules/dirent.
50560         * doc/posix-headers/dirent.texi: Mention the new module.
50561
50562 2008-10-18  Bruno Haible  <bruno@clisp.org>
50563
50564         Avoid -Wunused-parameter warnings in public gnulib header files.
50565         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50566         macro.
50567         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50568
50569 2008-10-18  Bruno Haible  <bruno@clisp.org>
50570
50571         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50572         * doc/glibc-functions/error.texi: Mention the module 'error'.
50573         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50574         * doc/glibc-functions/getdomainname.texi: Mention the module
50575         'getdomainname'.
50576         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50577         * doc/glibc-functions/getpagesize.texi: Mention the module
50578         'getpagesize'.
50579         * doc/glibc-functions/getusershell.texi: Mention the module
50580         'getusershell'.
50581         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50582         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50583         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50584         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50585         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50586         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50587         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50588         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50589         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50590         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50591         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50592         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50593         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50594         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50595
50596 2008-10-17  Bruno Haible  <bruno@clisp.org>
50597
50598         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50599         HP-UX and IRIX, use -0.0L.
50600         * tests/test-ceill.c (minus_zero): Likewise.
50601         * tests/test-floorl.c (minus_zero): Likewise.
50602         * tests/test-frexpl.c (minus_zero): Likewise.
50603         * tests/test-isnan.c (minus_zerol): Likewise.
50604         * tests/test-isnanl.h (minus_zero): Likewise.
50605         * tests/test-ldexpl.c (minus_zero): Likewise.
50606         * tests/test-roundl.c (minus_zero): Likewise.
50607         * tests/test-signbit.c (minus_zerol): Likewise.
50608         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50609         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50610         * tests/test-truncl.c (minus_zero): Likewise.
50611         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50612         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50613         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50614         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50615
50616 2008-10-17  Bruno Haible  <bruno@clisp.org>
50617
50618         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50619         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50620         that it gets activated only for gcc >= 3.0.
50621         * lib/dirent.in.h: Likewise.
50622         * lib/errno.in.h: Likewise.
50623         * lib/fcntl.in.h: Likewise.
50624         * lib/float.in.h: Likewise.
50625         * lib/iconv.in.h: Likewise.
50626         * lib/inttypes.in.h: Likewise.
50627         * lib/locale.in.h: Likewise.
50628         * lib/math.in.h: Likewise.
50629         * lib/netdb.in.h: Likewise.
50630         * lib/netinet_in.in.h: Likewise.
50631         * lib/search.in.h: Likewise.
50632         * lib/signal.in.h: Likewise.
50633         * lib/spawn.in.h: Likewise.
50634         * lib/stdarg.in.h: Likewise.
50635         * lib/stdint.in.h: Likewise.
50636         * lib/stdio.in.h: Likewise.
50637         * lib/stdlib.in.h: Likewise.
50638         * lib/string.in.h: Likewise.
50639         * lib/strings.in.h: Likewise.
50640         * lib/sys_file.in.h: Likewise.
50641         * lib/sys_ioctl.in.h: Likewise.
50642         * lib/sys_select.in.h: Likewise.
50643         * lib/sys_socket.in.h: Likewise.
50644         * lib/sys_stat.in.h: Likewise.
50645         * lib/sys_time.in.h: Likewise.
50646         * lib/sysexits.in.h: Likewise.
50647         * lib/time.in.h: Likewise.
50648         * lib/unistd.in.h: Likewise.
50649         * lib/wchar.in.h: Likewise.
50650         * lib/wctype.in.h: Likewise.
50651         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50652
50653 2008-10-17  Jim Meyering  <meyering@redhat.com>
50654
50655         ignore-value: don't depend on inline module
50656         * modules/ignore-value (Depends-on): Remove 'inline'.
50657         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50658         Suggestion from Bruno Haible.
50659
50660 2008-10-17  Bruno Haible  <bruno@clisp.org>
50661
50662         New implementation of condition variables for Win32.
50663         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50664         (gl_linked_waitqueue_t): New type.
50665         (gl_cond_t): Use it.
50666         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50667         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50668         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50669         (glthread_cond_init_func, glthread_cond_wait_func,
50670         glthread_cond_timedwait_func, glthread_cond_signal_func,
50671         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50672         Reimplemented on the basis of gl_linked_waitqueue_t.
50673         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50674         gl_waitqueue_t.
50675         (gl_rwlock_t): Update.
50676         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50677
50678 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50679
50680         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50681         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50682
50683 2008-10-17  Jim Meyering  <meyering@redhat.com>
50684
50685         ignore-value: new module
50686         * modules/ignore-value: New file.
50687         * lib/ignore-value.h: New file.
50688         * MODULES.html.sh (Compiler warning management): New section,
50689         just for this module.  More to come.
50690
50691 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50692
50693         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50694         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50695         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50696
50697 2008-10-16  Jim Meyering  <meyering@redhat.com>
50698
50699         openat-die.c: avoid 'no previous prototype' warning
50700         * lib/openat-die.c: Include "openat.h".
50701         Reported by Reuben Thomas <rrt@sc3d.org>.
50702
50703 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50704
50705         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50706         * lib/netdb.in.h: Fix typo.
50707         Reported by Bruno Haible  <bruno@clisp.org>
50708
50709         * lib/netdb.in.h: Include sys/socket.h for platforms without
50710         netdb.h, to get structures like hostent on MinGW.
50711         * modules/netdb (Depends-on): Add sys_socket.
50712
50713 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50714
50715         * modules/netdb, modules/netdb-tests: New file.
50716         * m4/netdb_h.m4: New file.
50717         * lib/netdb.in.h: Add, currently just an empty file pending
50718         definitions.
50719         * tests/test-netdb.c: New file.
50720         * doc/posix-headers/netdb.texi: Mention that we replace it if
50721         needed.
50722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50723         netdb.
50724
50725 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50726
50727         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50728         with code.
50729
50730 2008-10-13  Bruno Haible  <bruno@clisp.org>
50731
50732         * lib/glthread/cond.c (glthread_cond_wait_func,
50733         glthread_cond_timedwait_func): Add a comment.
50734
50735 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50736
50737         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50738         * tests/test-select.c: Likewise,
50739
50740 2008-10-13  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/glthread/cond.c (glthread_cond_wait_func,
50743         glthread_cond_timedwait_func): Fix variable name.
50744         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50745
50746 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50747
50748         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50749         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50750         struct sockaddr.sa_len.
50751         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50752
50753 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50754
50755         * build-aux/pmccabe2html: Add css and css_url parameters.
50756
50757 2008-10-12  Bruno Haible  <bruno@clisp.org>
50758
50759         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50760         calling aclx_get.
50761         Reported by Rainer Tammer <tammer@tammer.net>.
50762
50763 2008-10-12  Bruno Haible  <bruno@clisp.org>
50764
50765         Use msvcrt aware primitives for creation/termination of Win32 threads.
50766         * lib/glthread/thread.c: Include <process.h>.
50767         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50768         (wrapper_func): Update signature.
50769         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50770
50771 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50772             Bruno Haible  <bruno@clisp.org>
50773
50774         Provide a Win32 implementation of the 'cond' module.
50775         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50776         * lib/glthread/cond.c (glthread_cond_init_func,
50777         glthread_cond_wait_func, glthread_cond_timedwait_func,
50778         glthread_cond_signal_func, glthread_cond_broadcast_func,
50779         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50780         * modules/cond (Dependencies): Add gettimeofday.
50781
50782 2008-10-11  Bruno Haible  <bruno@clisp.org>
50783
50784         Make sleep work on older versions of mingw.
50785         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50786         only whether it exists.
50787         * doc/posix-functions/sleep.texi: Mention the problem with older
50788         versions of mingw.
50789
50790 2008-10-11  Bruno Haible  <bruno@clisp.org>
50791
50792         New module 'shutdown'.
50793         * modules/shutdown: New file.
50794         * lib/sys_socket.in.h (shutdown): New declaration.
50795         * lib/winsock.c (shutdown): New function.
50796         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50797         GNULIB_SHUTDOWN.
50798         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50799         * doc/posix-functions/shutdown.texi: Document the new module.
50800
50801 2008-10-11  Jim Meyering  <meyering@redhat.com>
50802
50803         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50804
50805 2008-10-11  Bruno Haible  <bruno@clisp.org>
50806
50807         New module 'fclose'.
50808         * modules/fclose: New file.
50809         * lib/stdio.in.h (fclose): New declaration.
50810         * lib/fclose.c: New file.
50811         * m4/fclose.m4: New file.
50812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50813         REPLACE_FCLOSE.
50814         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50815         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50816         REPLACE_FCLOSE.
50817         * modules/close (Depends-on): fclose.
50818         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50819
50820 2008-10-11  Bruno Haible  <bruno@clisp.org>
50821
50822         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50823         set errno and don't call _close.
50824
50825 2008-10-10  Bruno Haible  <bruno@clisp.org>
50826
50827         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50828         ACL, not afterwards. Fixes test failure on Cygwin.
50829
50830 2008-10-09  Ben Pfaff  <blp@gnu.org>
50831
50832         * build-aux/announce-gen: Fix gnulib version related part of usage
50833         message.  Die with a useful error message if no tarballs are
50834         found.
50835
50836 2008-10-10  Jim Meyering  <meyering@redhat.com>
50837
50838         bootstrap: use git's --depth=N option only if it's supported
50839         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50840         recognize the --depth option.  Reported by Pádraig Brady.
50841
50842 2008-10-09  Bruno Haible  <bruno@clisp.org>
50843
50844         New module 'ioctl'.
50845         * modules/ioctl: New file.
50846         * lib/sys_socket.in.h (ioctl): Remove declaration.
50847         * lib/winsock.c: Include <sys/ioctl.h>.
50848         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50849         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50850         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50851         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50852         * doc/posix-functions/ioctl.texi: Mention the new module.
50853
50854 2008-10-09  Bruno Haible  <bruno@clisp.org>
50855
50856         New module 'sys_ioctl'.
50857         * lib/sys_ioctl.in.h: New file.
50858         * m4/sys_ioctl_h.m4: New file.
50859         * modules/sys_ioctl: New file.
50860         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50861
50862 2008-10-09  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50865         * lib/winsock.c: Include <stdarg.h>.
50866         (rpl_ioctl): Change to second argument 'int' and then varargs.
50867
50868 2008-10-09  Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50871         when the sys_socket module is present and the system has <winsock2.h>.
50872
50873 2008-10-09  Bruno Haible  <bruno@clisp.org>
50874
50875         * doc/posix-functions/close.texi: Mention module 'close' instead of
50876         module 'sys_socket'.
50877
50878 2008-10-09  Bruno Haible  <bruno@clisp.org>
50879
50880         * doc/glibc-headers/sys_ioctl.texi: New file.
50881         * doc/gnulib.texi: Include it.
50882
50883 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50884             Bruno Haible  <bruno@clisp.org>
50885
50886         Combine the two replacements of 'close'.
50887         * lib/sys_socket.in.h (close): Define to a reminder to include
50888         <unistd.h>.
50889         (_gl_close_fd_maybe_socket): New declaration.
50890         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50891         * lib/winsock.c (close): Remove undefinition.
50892         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50893         needed for the gnulib module 'close'.
50894         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50895         define to an error symbol or to a warning, if suitable.
50896         * lib/close.c: Include <sys/socket.h>.
50897         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50898         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50899         UNISTD_H_HAVE_WINSOCK2_H.
50900         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50902         UNISTD_H_HAVE_WINSOCK2_H.
50903         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50904         (configure.ac): Set a module indicator.
50905         (Makefile.am): Substitute GNULIB_CLOSE.
50906         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50907         * modules/poll-tests (Depends-on): Add close.
50908         * modules/select-tests (Depends-on): Likewise.
50909
50910 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50911             Bruno Haible  <bruno@clisp.org>
50912
50913         New module 'close'.
50914         * modules/close: New file.
50915         * lib/unistd.in.h (close): Move declaration out of the
50916         FCHDIR_REPLACEMENT scope.
50917         (_gl_unregister_fd): New declaration.
50918         * lib/close.c: New file.
50919         * lib/fchdir.c (rpl_close): Remove function.
50920         * m4/close.m4: New file.
50921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50922         close.
50923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50924         REPLACE_CLOSE.
50925         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50926         REPLACE_CLOSE.
50927         * modules/fchdir (Depends-on): Add close.
50928
50929 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50930             Bruno Haible  <bruno@clisp.org>
50931
50932         * lib/fcntl.in.h (open): Simplify conditionals.
50933         (_gl_register_fd): New declaration.
50934         * lib/fchdir.c (rpl_open): Remove function.
50935         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50936         also.
50937         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50939         open.
50940
50941 2008-10-09  Jim Meyering  <meyering@redhat.com>
50942
50943         GNUmakefile: use the more name-space-friendly "_version"
50944         * top/GNUmakefile (_dummy): Update.
50945         (_version): Rename from "version".
50946
50947 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50948             Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50951         rpl_close.
50952         (_gl_register_fd): New function, extracted from rpl_open.
50953         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50954         (rpl_open, rpl_opendir): Use _gl_register_fd.
50955
50956 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50957
50958         Fix organization of 'open' replacement.
50959         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50960         (gl_FUNC_OPEN): Use it.
50961         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50962
50963 2008-10-08  Bruno Haible  <bruno@clisp.org>
50964
50965         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50966
50967 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50968
50969         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50970         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50971         listen).
50972
50973 2008-10-08  Eric Blake  <ebb9@byu.net>
50974
50975         GNUmakefile: add 'make version' target
50976         * top/GNUmakefile (_curr-ver): Split version update rules...
50977         (version): ...into a target.
50978
50979 2008-10-07  Bruno Haible  <bruno@clisp.org>
50980
50981         Use a more portable replacement expression for -0.0L.
50982         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50983         instead of -0.0L. Fix m4 quotation.
50984
50985         * tests/test-signbit.c: Include <float.h>.
50986         (minus_zero): New variable.
50987         (test_signbitl): Use minus_zero instead of -zero.
50988         * modules/signbit-tests (Depends-on): Add float.
50989
50990         * tests/test-ceill.c: Include <float.h>.
50991         (zero): Remove variable.
50992         (minus_zero): New variable.
50993         (main): Use minus_zero instead of -zero.
50994         * modules/ceill-tests (Depends-on): Add float.
50995
50996         * tests/test-floorl.c: Include <float.h>.
50997         (zero): Remove variable.
50998         (minus_zero): New variable.
50999         (main): Use minus_zero instead of -zero.
51000         * modules/floorl-tests (Depends-on): Add float.
51001
51002         * tests/test-roundl.c: Include <float.h>.
51003         (zero): Remove variable.
51004         (minus_zero): New variable.
51005         (main): Use minus_zero instead of -zero.
51006         * modules/roundl-tests (Depends-on): Add float.
51007
51008         * tests/test-truncl.c: Include <float.h>.
51009         (zero): Remove variable.
51010         (minus_zero): New variable.
51011         (main): Use minus_zero instead of -zero.
51012         * modules/truncl-tests (Depends-on): Add float.
51013
51014         * tests/test-frexpl.c (zero): Remove variable.
51015         (minus_zero): New variable.
51016         (main): Use minus_zero instead of -zero.
51017         * modules/frexpl-tests (Depends-on): Add float.
51018
51019         * tests/test-isnan.c (zerol): Remove variable.
51020         (minus_zerol): New variable.
51021         (test_long_double): Use minus_zerol instead of -zerol.
51022         * modules/isnan-tests (Depends-on): Add float.
51023
51024         * tests/test-isnanl.h (zero): Remove variable.
51025         (minus_zero): New variable.
51026         (main): Use minus_zero instead of -zero.
51027         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51028         * modules/isnanl-tests (Depends-on): Add float.
51029
51030         * tests/test-ldexpl.c (zero): Remove variable.
51031         (minus_zero): New variable.
51032         (main): Use minus_zero instead of -zero.
51033         * modules/ldexpl-tests (Depends-on): Add float.
51034
51035         * tests/test-snprintf-posix.h (zerol): Remove variable.
51036         (minus_zerol): New variable.
51037         (test_function): Use minus_zerol instead of -zerol.
51038         * modules/snprintf-posix-tests (Depends-on): Add float.
51039         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51040
51041         * tests/test-sprintf-posix.h (zerol): Remove variable.
51042         (minus_zerol): New variable.
51043         (test_function): Use minus_zerol instead of -zerol.
51044         * modules/sprintf-posix-tests (Depends-on): Add float.
51045         * modules/vsprintf-posix-tests (Depends-on): Add float.
51046
51047         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51048         (minus_zerol): New variable.
51049         (test_function): Use minus_zerol instead of -zerol.
51050         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51051
51052         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51053         (minus_zerol): New variable.
51054         (test_function): Use minus_zerol instead of -zerol.
51055         * modules/vasprintf-posix-tests (Depends-on): Add float.
51056
51057 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51058
51059         * MODULES.html.sh (Support for building documentation): Mention
51060         pmccabe2html.  Sort entries.
51061
51062         Add pmccabe2html module, from gnupdf.
51063         * build-aux/pmccabe.css: New file.
51064         * build-aux/pmccabe2html: New file.
51065         * m4/pmccabe2html.m4: New file.
51066         * modules/pmccabe2html: New file.
51067
51068 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51069
51070         flock: new module
51071         * MODULES.html.sh: Add to list of modules.
51072         * lib/flock.c: flock implementation for Windows and Unix systems
51073         which have fcntl.
51074         * doc/glibc-functions/flock.texi: Update documentation.
51075         * lib/sys_file.in.h: <sys/file.h> header file.
51076         * m4/flock.m4: M4 macros.
51077         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51078         * modules/flock: flock module.
51079         * modules/flock-tests: flock tests module.
51080         * modules/sys_file: sys/file.h module.
51081         * tests/test-flock.c: test suite for flock.
51082
51083 2008-10-06  Jim Meyering  <meyering@redhat.com>
51084
51085         bootstrap: check for LT_INIT more portably still ;-)
51086         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51087         Spotted by Bruno Haible.
51088
51089 2008-10-06  Eric Blake  <ebb9@byu.net>
51090
51091         test-signbit: avoid tripping Irix cc bug on -0.0L
51092         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51093         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51094         entire testsuite consistent and avoids an Irix 6.2 bug.
51095
51096 2008-10-05  Bruno Haible  <bruno@clisp.org>
51097             Jim Meyering  <jim@meyering.net>
51098
51099         Add an option for ignoring EPIPE during close_stdout.
51100         * lib/closeout.h: Include <stdbool.h>.
51101         (close_stdout_set_ignore_EPIPE): New declaration.
51102         * lib/closeout.c: Include <stdbool.h>.
51103         (ignore_EPIPE): New variable.
51104         (close_stdout_set_ignore_EPIPE): New function.
51105         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51106         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51107         failure.
51108         * modules/closeout (Depends-on): Add stdbool.
51109
51110 2008-10-05  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/accept: New file.
51113         * modules/bind: New file.
51114         * modules/connect: New file.
51115         * modules/getpeername: New file.
51116         * modules/getsockname: New file.
51117         * modules/getsockopt: New file.
51118         * modules/listen: New file.
51119         * modules/recv: New file.
51120         * modules/recvfrom: New file.
51121         * modules/send: New file.
51122         * modules/sendto: New file.
51123         * modules/setsockopt: New file.
51124         * modules/socket: New file.
51125         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51126         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51127         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51128         the particular module is requested. Add a link warning when the
51129         particular module is not requested.
51130         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51131         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51132         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51133         the particular module is requested.
51134         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51135         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51136         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51137         * modules/sys_socket (Depends-on): Add link-warning.
51138         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51139         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51140         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51141         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51142         GL_LINK_WARNING.
51143         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51144         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51145         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51146         * doc/posix-functions/getpeername.texi: Mention the new module
51147         'getpeername'.
51148         * doc/posix-functions/getsockname.texi: Mention the new module
51149         'getsockname'.
51150         * doc/posix-functions/getsockopt.texi: Mention the new module
51151         'getsockopt'.
51152         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51153         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51154         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51155         * doc/posix-functions/send.texi: Mention the new module 'send'.
51156         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51157         * doc/posix-functions/setsockopt.texi: Mention the new module
51158         'setsockopt'.
51159         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51160         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51161         listen, connect, accept.
51162         * modules/select-tests (Depends-on): Likewise.
51163
51164 2008-10-05  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/winsock.c (strerror): Remove unused #undef.
51167         (rpl_close): Remove unused local variable.
51168
51169         * modules/sys_socket (Depends-on); Add errno.
51170
51171 2008-10-05  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51174         (select): Add a link warning when the 'select' module is not used.
51175         * modules/sys_select (Depends-on): Add link-warning.
51176         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51177         Suggested by Paolo Bonzini.
51178
51179 2008-10-05  Jim Meyering  <meyering@redhat.com>
51180
51181         bootstrap: check for LT_INIT more portably
51182         * build-aux/bootstrap: Avoid using grep -E, since it's not
51183         portable enough.  Suggestion from Bruno Haible.
51184
51185 2008-10-05  Bruno Haible  <bruno@clisp.org>
51186
51187         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51188         as being fixed by gnulib.
51189
51190 2008-10-05  Bruno Haible  <bruno@clisp.org>
51191
51192         * modules/select-tests: New file, mostly copied from
51193         modules/sys_select-tests.
51194         * tests/test-select.c: New file, mostly copied from
51195         tests/test-sys_select.c.
51196         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51197         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51198         (Makefile.am): Remove test_sys_select_LDADD.
51199
51200         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51201         to an undefined symbol, for an error message.
51202         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51203         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51204         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51205         winsock-select.c here.
51206         * modules/sys_select (Files): Remove lib/winsock-select.c.
51207         (Depends-on): Remove alloca.
51208         (Makefile.am): Substitute GNULIB_SELECT.
51209         * modules/select: New file.
51210         * doc/posix-functions/select.texi: Update.
51211
51212 2008-10-05  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51215         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51216         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51217         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51218         getdtablesize.
51219         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51220         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51221
51222 2008-10-05  Bruno Haible  <bruno@clisp.org>
51223
51224         * modules/getdtablesize-tests: New file.
51225         * tests/test-getdtablesize.c: New file.
51226
51227         New module 'getdtablesize'.
51228         * lib/unistd.in.h (getdtablesize): New declaration.
51229         * lib/getdtablesize.c: New file.
51230         * m4/getdtablesize.m4: New file.
51231         * modules/getdtablesize: New file.
51232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51233         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51234         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51235         HAVE_GETDTABLESIZE.
51236         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51237
51238 2008-10-05  Bruno Haible  <bruno@clisp.org>
51239
51240         * modules/sched (Makefile.am): Fix typo.
51241         Reported by Simon Josefsson.
51242
51243 2008-10-05  Jim Meyering  <meyering@redhat.com>
51244
51245         bootstrap: check for LT_INIT, too
51246         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51247         are deprecated.  Suggestion from Ralf Wildenhues.
51248
51249 2008-10-05  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51252         overriding them by ours.
51253         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51254
51255 2008-10-05  Jim Meyering  <meyering@redhat.com>
51256
51257         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51258         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51259         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51260
51261 2008-10-04  Bruno Haible  <bruno@clisp.org>
51262
51263         * modules/dup2 (License): Change to LGPLv2+.
51264         * modules/sleep (License): Likewise.
51265         * modules/perror (License): Likewise.
51266         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51267         Blake.
51268         * modules/signal (License): Likewise.
51269         * modules/sigprocmask (License): Likewise.
51270         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51271         Meyering.
51272
51273 2008-10-04  Bruno Haible  <bruno@clisp.org>
51274
51275         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51276         Reported by Rainer Tammer <tammer@tammer.net>.
51277
51278 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51279             Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51282         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51283         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51284
51285 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51286
51287         filevercmp: new module
51288         * lib/filevercmp.h: New function filevercmp comparing version strings.
51289         * lib/filevercmp.c: Implementation of filevercmp function.
51290         * modules/filevercmp: Module metadata.
51291         * tests/test-filevercmp.c: Unit test for new module.
51292         * modules/filevercmp-tests: Unit test metadata.
51293         * MODULES.html.sh: Add filevercmp module.
51294
51295 2008-10-03  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/c-ctype.h: Add comment.
51298         Reported by Jim Meyering.
51299
51300 2008-10-02  Bruno Haible  <bruno@clisp.org>
51301
51302         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51303
51304 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51305
51306         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51307         name of bootstrap.conf accordingly.
51308
51309 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51310
51311         * build-aux/bootstrap: Install git-merge-changelog configuration
51312         items into .gitconfig if needed.
51313
51314 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51315
51316         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51317         git repository, and initialize/update it accordingly.
51318
51319 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51320
51321         * modules/fsync-tests: New file.
51322         * tests/test-fsync.c: New file.
51323
51324         New module 'fsync'.
51325         * lib/fsync.c: New file.
51326         * m4/fsync.m4: New file.
51327         * modules/fsync: New file.
51328         * lib/unistd.in.h (fsync): New declaration.
51329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51330         GNULIB_FSYNC and HAVE_FSYNC.
51331         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51332         * MODULES.html.sh (posix_functions): Add fsync.
51333         * doc/posix-functions/fsync.texi: Mention the new module.
51334
51335 2008-10-02  Jim Meyering  <meyering@redhat.com>
51336
51337         fts.c: sync with similar code from coreutils' remove.c
51338         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51339         Guard also with "#if defined __linux__", since for now at least,
51340         this code is Linux-kernel-specific.
51341
51342 2008-10-02  Jim Meyering  <meyering@redhat.com>
51343
51344         fts: bug fixes
51345         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51346         Include <sys/vfs.h>, not <sys/statfs.h>.
51347
51348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51349         Include <sys/vfs.h>, not <sys/statfs.h>.
51350
51351 2008-10-01  Bruno Haible  <bruno@clisp.org>
51352
51353         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51355         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51356         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51357         * doc/posix-functions/posix_spawnp.texi: Likewise.
51358         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51359         whether posix_spawn actually works.
51360         * m4/pipe.m4 (gl_PIPE): Likewise.
51361         * modules/execute (Files): Add m4/posix_spawn.m4.
51362         * modules/pipe (Files): Add m4/posix_spawn.m4.
51363         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51364
51365 2008-10-01  Jim Meyering  <meyering@redhat.com>
51366
51367         remove trailing spaces
51368         * NEWS: Likewise.
51369         * lib/poll.c (poll): Likewise.
51370         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51371         * lib/winsock.c (rpl_close): Likewise.
51372         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51373         * modules/yield: Likewise.
51374         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51375         * tests/test-sys_select.c (connect_to_socket): Likewise.
51376
51377         fts.c: adjust a new interface to be more generally useful
51378         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51379         (fts_build): Adjust caller.
51380
51381 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51382
51383         * modules/cond-tests: New file.
51384         * tests/test-cond.c: New file.
51385
51386 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51387             Bruno Haible  <bruno@clisp.org>
51388
51389         * modules/cond (Dependencies): Add errno, time.
51390         * lib/glthread/cond.h: Include <time.h>.
51391         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51392         across platforms.
51393
51394 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51395             Bruno Haible  <bruno@clisp.org>
51396
51397         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51398
51399 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51400             Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/tls-tests (Depends-on): Add thread, yield.
51403         (configure.ac): Remove all checks.
51404         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51405         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51406         gl_thread_self): Remove definitions. Include glthread/thread.h and
51407         glthread/yield.h instead.
51408         (test_tls): Pass an additional NULL argument to gl_thread_join.
51409
51410 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51411             Bruno Haible  <bruno@clisp.org>
51412
51413         * modules/lock-tests (Depends-on): Add thread, yield.
51414         (configure.ac): Remove all checks.
51415         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51416         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51417         gl_thread_self): Remove definitions. Include glthread/thread.h and
51418         glthread/yield.h instead.
51419         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51420         additional NULL argument to gl_thread_join.
51421
51422 2008-09-30  Bruno Haible  <bruno@clisp.org>
51423
51424         Fix the Win32 implementation of the 'thread' module.
51425         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51426         pointer type.
51427         (gl_thread_self): Invoke gl_thread_self_func.
51428         (gl_thread_self_func): New declaration.
51429         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51430         (do_init_self_key, init_self_key): New functions.
51431         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51432         Remove some fields.
51433         (running_threads, running_lock): Remove variables.
51434         (get_current_thread_handle): New function.
51435         (gl_thread_self_func, wrapper_func, glthread_create_func,
51436         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51437         simplified.
51438
51439 2008-09-30  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51442         files.
51443
51444 2008-09-30  Jim Meyering  <meyering@redhat.com>
51445
51446         fts.m4: correct the test for statfs.f_type
51447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51448         when checking for statfs.f_type.
51449
51450 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51451
51452         tests: avoid some compiler warnings
51453         * tests/test-memchr.c (main): Pass NULL indirectly.
51454         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51455
51456 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51457
51458         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51459         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51460         exactly specified dayshifts.
51461         (dayshift): New rule.
51462         (rel): Add dayshift.
51463         (relative_time_table) [tomorrow, yesterday, today, now]:
51464         Use tDAY_SHIFT in place of tDAY_UNIT.
51465         * tests/test-getdate.c: Add tests for now-disallowed countable
51466         dayshifts, e.g., "4 yesterday ago".
51467
51468 2008-09-29  Bruno Haible  <bruno@clisp.org>
51469
51470         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51471         * tests/test-posix_spawn1.in.sh: Renamed from
51472         tests/test-posix_spawn.in.sh.
51473         * tests/test-posix_spawn2.c: New file.
51474         * tests/test-posix_spawn2.in.sh: New file.
51475         * modules/posix_spawnp-tests (Files): Update.
51476         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51477
51478 2008-09-29  Bruno Haible  <bruno@clisp.org>
51479
51480         Propagate effects of putenv/setenv/unsetenv to child processes.
51481         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51482         * lib/pipe.c (create_pipe): Likewise.
51483
51484 2008-09-29  Bruno Haible  <bruno@clisp.org>
51485
51486         Enable use of shell scripts as executables in mingw.
51487         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51488         run the program as a shell script.
51489         * lib/pipe.c (create_pipe): Likewise.
51490         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51491         resulting array.
51492
51493 2008-09-29  Eric Blake  <ebb9@byu.net>
51494
51495         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51496
51497 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51498
51499         * doc/posix-functions/accept.texi: Update mingw problems.
51500         * doc/posix-functions/bind.texi: Update mingw problems.
51501         * doc/posix-functions/close.texi: Update mingw problems.
51502         * doc/posix-functions/connect.texi: Update mingw problems.
51503         * doc/posix-functions/getpeername.texi: Update mingw problems.
51504         * doc/posix-functions/getsockname.texi: Update mingw problems.
51505         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51506         * doc/posix-functions/ioctl.texi: Update mingw problems.
51507         * doc/posix-functions/listen.texi: Update mingw problems.
51508         * doc/posix-functions/recv.texi: Update mingw problems.
51509         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51510         * doc/posix-functions/select.texi: Update mingw problems.
51511         * doc/posix-functions/send.texi: Update mingw problems.
51512         * doc/posix-functions/sendto.texi: Update mingw problems.
51513         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51514         * doc/posix-functions/socket.texi: Update mingw problems.
51515
51516 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51517             Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/sys_select.in.h: Include sys/time.h.
51520         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51521         * modules/sys_select: Depend on sys_time.
51522         * tests/test-sys_select.c: Test that sys/select.h defines struct
51523         timeval fully.
51524
51525 2008-09-29  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51528         * lib/sys_select.in.h: Likewise.
51529
51530 2008-09-29  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51533
51534 2008-09-29  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51537         Set LIBSOCKET instead of augmenting LIBS.
51538         * modules/sockets (Link): New section.
51539         * modules/sockets-tests (test_sockets_LDADD): New variable.
51540         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51541         * modules/poll-tests (test_poll_LDADD): New variable.
51542         * NEWS: Document the change.
51543
51544 2008-09-29  Bruno Haible  <bruno@clisp.org>
51545
51546         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51547         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51548         ARPA_INET_H directly.
51549         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51550
51551 2008-09-28  Bruno Haible  <bruno@clisp.org>
51552
51553         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51554         from gl_HEADER_SYS_SOCKET.
51555         (gl_HEADER_SYS_SOCKET): Invoke it.
51556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51557
51558 2008-09-28  Bruno Haible  <bruno@clisp.org>
51559
51560         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51561         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51562         Needed on OSF/1 4.0.
51563
51564 2008-09-28  Bruno Haible  <bruno@clisp.org>
51565
51566         Override open more carefully.
51567         * lib/open.c (orig_open): New function.
51568         (rpl_open): Use orig_open instead of open.
51569         * lib/fcntl.in.h: Add special invocation convention.
51570         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51571         (gl_FUNC_OPEN): Invoke it.
51572
51573         Override freopen more carefully.
51574         * lib/freopen.c (orig_freopen): New function.
51575         (rpl_freopen): Use orig_freopen instead of freopen.
51576         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51577         (gl_FUNC_FREOPEN): Invoke it.
51578
51579         Override fopen more carefully.
51580         * lib/fopen.c (orig_fopen): New function.
51581         (rpl_fopen): Use orig_fopen instead of fopen.
51582         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51583         (gl_FUNC_FOPEN): Invoke it.
51584         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51585
51586 2008-09-28  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51589         SIGPIPE.
51590
51591 2008-09-28  Bruno Haible  <bruno@clisp.org>
51592
51593         * tests/test-sigaction.c (handler, main): Disable the check whether
51594         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51595         glibc systems with LinuxThreads.
51596
51597 2008-09-28  Bruno Haible  <bruno@clisp.org>
51598
51599         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51600
51601         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51602         with AIX xlc.
51603         * lib/fcntl.in.h (open): Likewise.
51604         Reported by Rainer Tammer <tammer@tammer.net>.
51605
51606 2008-09-28  Bruno Haible  <bruno@clisp.org>
51607
51608         * modules/posix_spawnp-tests: New file.
51609         * tests/test-posix_spawn.c: New file.
51610         * tests/test-posix_spawn.in.sh: New file.
51611
51612         New module 'posix_spawnp'.
51613         * modules/posix_spawnp: New file.
51614         * lib/spawnp.c: New file, from GNU libc with modifications.
51615         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51616
51617         New module 'posix_spawn'.
51618         * modules/posix_spawn: New file.
51619         * lib/spawn.c: New file, from GNU libc with modifications.
51620         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51621
51622         New module 'posix_spawnattr_destroy'.
51623         * modules/posix_spawnattr_destroy: New file.
51624         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51625         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51626         module.
51627
51628         New module 'posix_spawnattr_setsigmask'.
51629         * modules/posix_spawnattr_setsigmask: New file.
51630         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51631         modifications.
51632         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51633         new module.
51634
51635         New module 'posix_spawnattr_getsigmask'.
51636         * modules/posix_spawnattr_getsigmask: New file.
51637         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51638         modifications.
51639         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51640         new module.
51641
51642         New module 'posix_spawnattr_setsigdefault'.
51643         * modules/posix_spawnattr_setsigdefault: New file.
51644         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51645         modifications.
51646         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51647         new module.
51648
51649         New module 'posix_spawnattr_getsigdefault'.
51650         * modules/posix_spawnattr_getsigdefault: New file.
51651         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51652         modifications.
51653         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51654         new module.
51655
51656         New module 'posix_spawnattr_setschedpolicy'.
51657         * modules/posix_spawnattr_setschedpolicy: New file.
51658         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51659         modifications.
51660         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51661         new module.
51662
51663         New module 'posix_spawnattr_getschedpolicy'.
51664         * modules/posix_spawnattr_getschedpolicy: New file.
51665         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51666         modifications.
51667         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51668         new module.
51669
51670         New module 'posix_spawnattr_setschedparam'.
51671         * modules/posix_spawnattr_setschedparam: New file.
51672         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51673         modifications.
51674         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51675         new module.
51676
51677         New module 'posix_spawnattr_getschedparam'.
51678         * modules/posix_spawnattr_getschedparam: New file.
51679         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51680         modifications.
51681         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51682         new module.
51683
51684         New module 'posix_spawnattr_setpgroup'.
51685         * modules/posix_spawnattr_setpgroup: New file.
51686         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51687         modifications.
51688         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51689         module.
51690
51691         New module 'posix_spawnattr_getpgroup'.
51692         * modules/posix_spawnattr_getpgroup: New file.
51693         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51694         modifications.
51695         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51696         module.
51697
51698         New module 'posix_spawnattr_setflags'.
51699         * modules/posix_spawnattr_setflags: New file.
51700         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51701         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51702         module.
51703
51704         New module 'posix_spawnattr_getflags'.
51705         * modules/posix_spawnattr_getflags: New file.
51706         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51707         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51708         module.
51709
51710         New module 'posix_spawnattr_init'.
51711         * modules/posix_spawnattr_init: New file.
51712         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51713         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51714         module.
51715
51716         New module 'posix_spawn_file_actions_destroy'.
51717         * modules/posix_spawn_file_actions_destroy: New file.
51718         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51719         modifications.
51720         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51721         the new module.
51722
51723         New module 'posix_spawn_file_actions_addopen'.
51724         * modules/posix_spawn_file_actions_addopen: New file.
51725         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51726         modifications.
51727         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51728         the new module.
51729
51730         New module 'posix_spawn_file_actions_adddup2'.
51731         * modules/posix_spawn_file_actions_adddup2: New file.
51732         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51733         modifications.
51734         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51735         the new module.
51736
51737         New module 'posix_spawn_file_actions_addclose'.
51738         * modules/posix_spawn_file_actions_addclose: New file.
51739         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51740         modifications.
51741         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51742         the new module.
51743
51744         New module 'posix_spawn_file_actions_init'.
51745         * modules/posix_spawn_file_actions_init: New file.
51746         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51747         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51748         new module.
51749
51750         New module 'posix_spawn-internal'.
51751         * modules/posix_spawn-internal: New file.
51752         * lib/spawn_int.h: New file, from GNU libc with modifications.
51753         * lib/spawni.c: New file, from GNU libc with modifications.
51754         * m4/posix_spawn.m4: New file.
51755
51756         New module 'spawn'.
51757         * modules/spawn: New file.
51758         * lib/spawn.in.h: New file, from GNU libc with modifications.
51759         * m4/spawn_h.m4: New file.
51760         * doc/posix-headers/spawn.texi: Mention the new module.
51761
51762 2008-09-28  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/sched-tests: New file.
51765         * tests/test-sched.c: New file.
51766
51767         New module 'sched'.
51768         * modules/sched: New file.
51769         * lib/sched.in.h: New file.
51770         * m4/sched_h.m4: New file.
51771         * doc/posix-headers/sched.texi: Mention the new module.
51772
51773 2008-09-27  Eric Blake  <ebb9@byu.net>
51774
51775         Fix previous patch, and tweak references to $0.
51776         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51777         (func_version, func_gnulib_dir): Don't call this program
51778         gnulib-tool.
51779         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51780         with using $0 in function.
51781         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51782         (func_fatal_error): Reuse the name the user invoked us with.
51783
51784 2008-09-27  Bruno Haible  <bruno@clisp.org>
51785
51786         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51787         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51788         (gl_ICONV_H): Not here.
51789         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51790         instead of assigning ICONV_H directly.
51791
51792         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51794         WCHAR_H directly.
51795
51796 2008-09-27  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51799         * modules/arpa_inet (Depends-on): Add link-warning.
51800         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51801         * modules/unistd (Makefile.am): Likewise.
51802
51803 2008-09-26  Bruno Haible  <bruno@clisp.org>
51804
51805         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51806         variables.
51807         (func_version): Essentially copied from gnulib-tool.
51808         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51809         func_readlink): Copied from gnulib-tool.
51810
51811 2008-09-26  Bruno Haible  <bruno@clisp.org>
51812
51813         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51814         invoking git-version-gen.
51815
51816 2008-09-26  Bruno Haible  <bruno@clisp.org>
51817
51818         * posix-modules: Update to directory names changed on 2008-01-19.
51819         Remove commas in output before splitting into words. No more need to
51820         avoid 'ftruncate' since 2007-02-19.
51821
51822 2008-09-26  Bruno Haible  <bruno@clisp.org>
51823
51824         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51825
51826 2008-09-26  Bruno Haible  <bruno@clisp.org>
51827
51828         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51829         * modules/fwriteerror (Depends-on): Add errno.
51830
51831 2008-09-26  Bruno Haible  <bruno@clisp.org>
51832
51833         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51834         * tests/test-vc-list-files-cvs.sh: Likewise.
51835
51836 2008-09-26  Bruno Haible  <bruno@clisp.org>
51837
51838         * doc/posix-headers/sys_resource.texi: Reorder items.
51839
51840 2008-09-26  Jim Meyering  <meyering@redhat.com>
51841
51842         fts: tweak inode comparison function
51843         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51844         inode numbers, as documented.
51845
51846         fts: sort dirent entries on inode number before traversing
51847         This avoids a quadratic, seek-related performance penalty when
51848         operating on a directory containing many entries (measurable at 10k;
51849         3.5 hours at 2 million entries with a cold cache) on certain types
51850         of file systems, including ext3 and ext4, but not tmpfs.
51851         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51852         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51853         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51854         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51855         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51856         (fts_build): Set the stat.st_ino member from D_INO.
51857         If it is likely to be useful, sort dirent entries on inode number.
51858
51859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51860         and the struct statfs.f_type member.
51861         * modules/fts (Depends-on): Add d-ino.
51862
51863 2008-09-26  Bruno Haible  <bruno@clisp.org>
51864
51865         * modules/sigpipe-die (Depends-on): Add sigpipe.
51866
51867         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51868         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51869         and GNULIB_STDIO_H_SIGPIPE are set.
51870         * lib/stdio-write.c: New file.
51871         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51872         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51873         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51874         REPLACE_STDIO_WRITE_FUNCS.
51875         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51876         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51877         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51878         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51879         * modules/stdio (Files): Add lib/stdio-write.c.
51880         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51881         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51882         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51883         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51884         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51885         REPLACE_FPRINTF_POSIX.
51886         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51887         REPLACE_PRINTF_POSIX.
51888         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51889         REPLACE_VFPRINTF_POSIX.
51890         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51891         REPLACE_VPRINTF_POSIX.
51892         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51893         SIGPIPE issue.
51894         * doc/posix-functions/fputc.texi: Likewise.
51895         * doc/posix-functions/fputs.texi: Likewise.
51896         * doc/posix-functions/fwrite.texi: Likewise.
51897         * doc/posix-functions/printf.texi: Likewise.
51898         * doc/posix-functions/putc.texi: Likewise.
51899         * doc/posix-functions/putchar.texi: Likewise.
51900         * doc/posix-functions/puts.texi: Likewise.
51901         * doc/posix-functions/vfprintf.texi: Likewise.
51902         * doc/posix-functions/vprintf.texi: Likewise.
51903
51904         * modules/safe-write (Depends-on): Add write.
51905
51906         * modules/sigpipe-tests: New file.
51907         * tests/test-sigpipe.c: New file.
51908         * tests/test-sigpipe.sh: New file.
51909
51910         * modules/write: New file.
51911         * lib/unistd.in.h: Include <sys/types.h>.
51912         (write): New declaration.
51913         * lib/write.c: New file.
51914         * m4/write.m4: New file.
51915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51916         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51917         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51918         GNULIB_WRITE, REPLACE_WRITE.
51919         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51920         and the SIGPIPE issue.
51921
51922         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51923         (raise): New declaration.
51924         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51925         (ext_signal): New function.
51926         (rpl_raise): New function.
51927         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51928         GNULIB_SIGNAL_H_SIGPIPE.
51929         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51930         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51931
51932         * modules/sigpipe: New file.
51933         * m4/sigpipe.m4: New file.
51934
51935 2008-09-25  Derek Price  <derek@ximbiot.com>
51936             Bruno Haible  <bruno@clisp.org>
51937
51938         * gnulib-tool (func_import): Report all license incompatibilities, not
51939         just the first one.
51940
51941 2008-09-25  Bruno Haible  <bruno@clisp.org>
51942
51943         * gnulib-tool (func_import): When computing the edits, consider not
51944         only the Makefile.ams that exist but also those that will be generated.
51945
51946 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51947
51948         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51949         fixes gnulib-tool --test warning about duplicate dependency.
51950
51951 2008-09-25  Bruno Haible  <bruno@clisp.org>
51952
51953         * gnulib-tool: Don't ask the user to perform edits in the generated
51954         Makefile.ams.
51955         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51956         apply to the Makefile.am being generated.
51957         (func_emit_tests_Makefile_am): Execute edits that apply to the
51958         Makefile.am being generated.
51959         (func_import): Setup list of Makefile.am edits before emitting the
51960         Makefile.ams, not at the end.
51961         (func_create_testdir): Update.
51962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51963
51964 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51965
51966         * gnulib-tool (func_import): Store the --tests-base option in the
51967         comment in gnulib-cache.m4.
51968
51969 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51970
51971         * NEWS: Document increased portability that sys_select now provides.
51972
51973         * lib/sys_select.in.h: Install select wrapper.
51974         * lib/sys_socket.in.h: Use more descriptive name when there is no
51975         select wrapper.
51976         * lib/winsock-select.c: New.
51977         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51978         Require gl_HEADER_SYS_SOCKET.
51979         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51980         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51981         * tests/test-sys_select.c: Add functional tests.
51982
51983 2008-09-24  Eric Blake  <ebb9@byu.net>
51984
51985         open, fopen: close fd leak in last patch
51986         * lib/open.c (rpl_open): Close fd before returning error.
51987         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51988         * doc/posix-functions/open.texi (open): Document that Irix also
51989         has the bug.
51990         * doc/posix-functions/fopen.texi (fopen): Likewise.
51991         Reported by Paolo Bonzini.
51992
51993 2008-09-24  Bruno Haible  <bruno@clisp.org>
51994
51995         Ensure that a filename ending in a slash cannot be used to access a
51996         non-directory.
51997         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51998         to check whether it's really a directory.
51999         * lib/fopen.c: Include fcntl.h, unistd.h.
52000         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52001         and fdopen().
52002         * modules/fopen (Depends-on): Add unistd.
52003         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52004         * tests/test-fopen.c (main): Likewise.
52005         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52006         * doc/posix-functions/fopen.texi: Likewise.
52007         Reported by Eric Blake.
52008
52009 2008-09-23  Eric Blake  <ebb9@byu.net>
52010
52011         c-stack: avoid compiler optimizations when provoking overflow
52012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52013         recursion harder to optimize, to ensure a stack overflow occurs.
52014         * tests/test-c-stack.c (recurse): Likewise.
52015         Borrowed from libsigsegv.
52016
52017         c-stack: work around Irix sigaltstack bug
52018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52019         whether sigaltstack uses wrong end of stack_t (copied in part from
52020         libsigsegv).
52021         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52022         Irix bug, without requiring an over-allocation.
52023         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52024         bug.
52025
52026         fopen: document mingw bug on directories
52027         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52028         not allowing a stream visiting a directory, even though reading
52029         from such a stream is not portable.
52030
52031 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52032
52033         * lib/poll.c: Rewrite.
52034         * modules/poll: Depend on alloca.
52035
52036 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52037
52038         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52039         instead define prototypes for a full set of wrappers.  Ensure
52040         that Cygwin does not use the compatibility code, which is only
52041         for MinGW.
52042         * lib/winsock.c: New.
52043         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52044         * modules/sys_socket: Add lib/winsock.c.
52045
52046         * modules/poll-tests: Add errno and perror.
52047         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52048
52049 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52050
52051         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52052
52053 2008-09-23  Bruno Haible  <bruno@clisp.org>
52054
52055         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52056         * doc/glibc-functions/*: Likewise.
52057
52058 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52059
52060         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52061         success.
52062
52063 2008-09-22  Eric Blake  <ebb9@byu.net>
52064             Bruno Haible  <bruno@clisp.org>
52065
52066         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52067         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52068         supply %A but mishandle pseudo-NaN.
52069         Reported by Simon Josefsson.
52070
52071 2008-09-21  Bruno Haible  <bruno@clisp.org>
52072
52073         * tests/test-lock.c (main): Tweak skip message.
52074         * tests/test-tls.c (main): Likewise.
52075
52076 2008-09-21  Bruno Haible  <bruno@clisp.org>
52077
52078         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52079         whether 'struct sigaction' has sa_sigaction here...
52080         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52081         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52082
52083 2008-09-21  Bruno Haible  <bruno@clisp.org>
52084
52085         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52086         section.
52087         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52088         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52089         the new section.
52090         (Support for obsolete systems lacking POSIX:2001): New section.
52091         (String handling <string.h>): Move strdup to the new section.
52092         Suggested by Simon Josefsson and Paolo Bonzini.
52093
52094 2008-09-21  Bruno Haible  <bruno@clisp.org>
52095
52096         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52097         exponents in %e and %g results on 'long double'. Needed for mingw's
52098         improved *printf functions.
52099         * tests/test-vasprintf-posix.c (test_function): Likewise.
52100         * tests/test-snprintf-posix.h (test_function): Likewise.
52101         * tests/test-sprintf-posix.h (test_function): Likewise.
52102         Reported by Eric Blake.
52103
52104 2008-09-21  Bruno Haible  <bruno@clisp.org>
52105
52106         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52107         * tests/test-sprintf-posix.h (test_function): Likewise.
52108
52109 2008-09-21  Bruno Haible  <bruno@clisp.org>
52110
52111         * modules/getpass (Depends-on): Add strdup-posix.
52112
52113         New module 'strdup-posix'.
52114         * modules/strdup-posix: New file.
52115         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52116         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52118         REPLACE_STRDUP.
52119         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52120         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52122         strdup-posix.
52123
52124         * modules/strdup (Depends-on): Remove malloc-posix.
52125
52126 2008-09-20  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52129         Wildenhues.
52130
52131 2008-09-20  Bruno Haible  <bruno@clisp.org>
52132
52133         Ensure that wint_t gets defined on IRIX 5.3.
52134         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52135         * lib/wctype.in.h (wint_t): Likewise.
52136         (__wctype_wint_t): Remove type.
52137         (isw*): Use wint_t instead of __wctype_wint_t.
52138         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52139         * modules/wchar (Files): Add m4/wint_t.m4.
52140         (Makefile.am): Substitute HAVE_WINT_T.
52141         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52142         * tests/test-wctype.c: Check that wint_t is defined.
52143         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52144         * doc/posix-headers/wctype.texi: Likewise.
52145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52146
52147 2008-09-18  Bruno Haible  <bruno@clisp.org>
52148
52149         * gnulib-tool (func_exit): Update comment.
52150
52151 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52152
52153         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52154         assumes strdup exists and does not depend on strdup to return
52155         ENOMEM on out of memory conditions.
52156
52157 2008-09-18  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52160         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52161         digits for the exponent.
52162
52163 2008-09-18  Jim Meyering  <meyering@redhat.com>
52164             Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/vasnprintf.c (decimal_point_char): Define also if
52167         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52168
52169 2008-09-16  Bruno Haible  <bruno@clisp.org>
52170         and Eric Blake  <ebb9@byu.net>
52171
52172         vasnprintf: support Irix 5.3
52173         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52174         that mishandle long double infinity.
52175         Reported by Tom G. Christensen.
52176
52177 2008-09-16  Bruno Haible  <bruno@clisp.org>
52178
52179         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52180         Solaris 9.
52181         * doc/glibc-functions/alphasort.texi: Likewise.
52182         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52183
52184 2008-09-16  Jim Meyering  <meyering@redhat.com>
52185
52186         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52187         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52188         a umask modification leak out of a subshell.  Otherwise, the
52189         opensolaris /bin/sh would be accepted and thus cause unwarranted
52190         failures in the coreutils test suite.
52191
52192 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52193
52194         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52195         to succeed.
52196
52197 2008-09-16  Jim Meyering  <meyering@redhat.com>
52198
52199         avoid spurious test failure when library is built without ACL support
52200         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52201         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52202         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52203         * tests/test-copy-acl.sh: Likewise.
52204
52205 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52206
52207         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52208         based on character occurrence counts.
52209
52210 2008-09-15  Eric Blake  <ebb9@byu.net>
52211
52212         tests: avoid some compiler warnings
52213         * tests/test-memchr.c (main): Pass NULL indirectly.
52214         * tests/test-closein.c (main): Avoid unused variable.
52215
52216 2008-09-15  Bruno Haible  <bruno@clisp.org>
52217
52218         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52219         are missing on OpenBSD 4.0 individually.
52220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52221
52222 2008-09-15  Bruno Haible  <bruno@clisp.org>
52223
52224         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52225         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52226         * doc/posix-functions/perror.texi: Likewise.
52227         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52228         is missing.
52229         Reported by Eric Blake.
52230
52231         * lib/errno.in.h: Use replacement values >= 2000.
52232         Reported by Eric Blake.
52233
52234 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52235
52236         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52237         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52238         limit.
52239         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52240         compareseq was aborted.
52241
52242 2008-09-14  Bruno Haible  <bruno@clisp.org>
52243
52244         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52245         yvec_edit_count.
52246         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52247         (fstrcmp_bounded): Simplify result computation accordingly.
52248
52249 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52250
52251         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52252         (fstrcmp): Define in terms of fstrcmp_bounded.
52253         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52254         lower_bound argument.
52255         Return quickly if the result is certainly < lower_bound.
52256         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52257
52258 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52259
52260         * lib/diffseq.h (EARLY_ABORT): New macro.
52261         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52262         evaluates to true.
52263
52264 2008-09-14  Bruno Haible  <bruno@clisp.org>
52265
52266         * modules/perror-tests: New file.
52267         * tests/test-perror.sh: New file.
52268         * tests/test-perror.c: New file.
52269
52270         New module 'perror'.
52271         * lib/stdio.in.h (perror): New declaration.
52272         * lib/perror.c: New file.
52273         * m4/perror.m4: New file.
52274         * modules/perror: New file.
52275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52276         * doc/posix-functions/perror.texi: Mention the perror module.
52277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52278         REPLACE_PERROR.
52279         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52280         REPLACE_PERROR.
52281
52282 2008-09-14  Bruno Haible  <bruno@clisp.org>
52283
52284         * modules/stdio (Makefile.am): Reorder to match the order in
52285         lib/stdio.in.h.
52286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52287
52288 2008-09-13  Bruno Haible  <bruno@clisp.org>
52289
52290         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52291
52292 2008-09-13  Bruno Haible  <bruno@clisp.org>
52293
52294         Extend strerror to cover the added errno values.
52295         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52296         (rpl_strerror): Provide error messages for the added errno values and
52297         for the WSA* values.
52298         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52299         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52300         strerror.
52301         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52302         * modules/strerror (Depends-on): Add errno.
52303         * doc/posix-functions/strerror.texi: Document the change.
52304         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52305         and EOVERFLOW.
52306
52307 2008-09-13  Bruno Haible  <bruno@clisp.org>
52308
52309         * modules/EOVERFLOW: Remove file.
52310         * m4/eoverflow.m4: Remove file.
52311         * modules/EOVERFLOW-tests: Remove file.
52312         * tests/test-EOVERFLOW.c: Remove file.
52313         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52314         * modules/ftell (Depends-on): Likewise.
52315         * modules/getdelim (Depends-on): Likewise.
52316         * modules/getugroups (Depends-on): Likewise.
52317         * modules/poll (Depends-on): Likewise.
52318         * modules/snprintf (Depends-on): Likewise.
52319         * modules/sprintf-posix (Depends-on): Likewise.
52320         * modules/vasnprintf (Depends-on): Likewise.
52321         * modules/vasprintf (Depends-on): Likewise.
52322         * modules/vfprintf-posix (Depends-on): Likewise.
52323         * modules/vsnprintf (Depends-on): Likewise.
52324         * modules/vsprintf-posix (Depends-on): Likewise.
52325         * modules/xvasprintf (Depends-on): Likewise.
52326         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52327         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52328         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52329         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52330         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52331         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52332         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52333         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52334         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52335         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52336         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52337         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52338         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52339         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52340         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52341         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52342         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52343         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52344         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52345         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52347         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52348         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52349         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52350         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52352         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52353         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52354         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52355         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52356         * MODULES.html.sh: Remove EOVERFLOW.
52357         * NEWS: Mention the change.
52358
52359 2008-09-13  Bruno Haible  <bruno@clisp.org>
52360
52361         * modules/errno-tests: New file.
52362         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52363
52364         * lib/errno.in.h: New file.
52365         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52366         * modules/errno: New file.
52367         * doc/posix-headers/errno.texi: Update documentation.
52368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52369
52370 2008-09-13  Bruno Haible  <bruno@clisp.org>
52371
52372         * tests/test-poll.c: Use #if for native Windows, rather than testing
52373         __MSVCRT__.
52374
52375 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52376             Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/glob.c: Don't include <pwd.h> on native Windows.
52379         (WINDOWS32): New macro.
52380         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52381
52382 2008-09-13  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52385         (ETIMEDOUT): Remove macro.
52386         (glthread_cond_timedwait_multithreaded): New declaration.
52387         (glthread_cond_timedwait): Use it.
52388         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52389         (glthread_cond_timedwait_multithreaded): New function.
52390
52391 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52392
52393         * modules/poll-tests: Do not check for io.h.
52394         * tests/test-poll.c: Check for __MSVCRT__ instead.
52395
52396 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52397
52398         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52399         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52400         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52401
52402 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52403
52404         * modules/poll-tests: New.
52405         * tests/test-poll.c: New.
52406
52407 2008-09-12  Eric Blake  <ebb9@byu.net>
52408
52409         frexp: test for NetBSD failure on -0.0
52410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52411         not all, bugs from NetBSD 3.0 have been fixed.
52412         * doc/posix-functions/frexp.texi (frexp): Document bug.
52413         Reported by Thomas Klausner.
52414
52415         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52416         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52417         literal -0.0.
52418         Reported by Jonathan C. Patschke <jp@centtech.com>.
52419
52420 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52421
52422         * lib/glthread/cond.h: Use dummy implementation also if
52423         USE_WIN32_THREADS.
52424
52425 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52426
52427         * modules/fnmatch-posix (License): Change to LGPLv2+.
52428         * modules/fnmatch-gnu (License): Likewise.
52429
52430 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52431
52432         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52433
52434 2008-09-11  Jim Meyering  <meyering@redhat.com>
52435
52436         * users.txt: Add gtk-vnc.
52437
52438 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52439
52440         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52441         rotate amounts.
52442
52443         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52444         required for 16-bit and 8-bit rotates.
52445         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52446         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52447         UINT8_MAX instead of hard-coded constants.
52448         Suggested by Paul Eggert.
52449
52450 2008-09-07  Bruno Haible  <bruno@clisp.org>
52451
52452         * tests/test-striconveh.c (main): Check behaviour when converting from
52453         UTF-7.
52454
52455         Make striconveh work better with stateful encodings.
52456         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52457         that iconv does not increment the inptr when returning -1/EINVAL.
52458
52459 2008-09-07  Bruno Haible  <bruno@clisp.org>
52460
52461         * build-aux/config.rpath: Update according to libtool-2.2.6.
52462         * build-aux/config.libpath: Likewise.
52463
52464 2008-09-06  Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52467         * lib/freadptr.c (freadptr): Likewise.
52468         * lib/freadseek.c (freadptrinc): Likewise.
52469         Reported by Simon Josefsson.
52470
52471 2008-09-06  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/freadptr (License): Change to LGPLv2+.
52474         * modules/freadseek (License): Likewise.
52475         Suggested by Eric Blake.
52476
52477         * modules/memchr2 (License): Change to LGPLv2+.
52478         Approved by Eric Blake.
52479
52480 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52481             Bruno Haible  <bruno@clisp.org>
52482
52483         Make gnulib-tool work with native 'sed' on AIX.
52484         * gnulib-tool (sed_noop): New variable.
52485         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52486         func_add_or_update, func_create_testdir): Use it to initialize sed
52487         script variables.
52488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52489
52490 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52491             Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52494         also works after #include directives.
52495
52496 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52497
52498         getdate.y: reject an out-of-range timezone value
52499         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52500         the range [-24...+24].  When specified with only one or two digits,
52501         * tests/test-getdate.c: Tests for the fix.
52502         * doc/getdate.texi: Document this change.
52503
52504 2008-09-03  Bruno Haible  <bruno@clisp.org>
52505
52506         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52507
52508 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52509
52510         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52511         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52512         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52513         Blake <ebb9@byu.net>.
52514
52515         * tests/test-bitrotate.c: Add more test vectors.
52516
52517 2008-09-02  Eric Blake  <ebb9@byu.net>
52518
52519         vasnprintf-posix: handle large precision via %.*d
52520         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52521         when handling it ourselves.
52522         * tests/test-vasnprintf-posix.c (test_function): Add test.
52523         * tests/test-snprintf-posix.h (test_function): Likewise.
52524         * tests/test-sprintf-posix.h (test_function): Likewise.
52525         * tests/test-vasprintf-posix.c (test_function): Likewise.
52526         Reported by Alain Guibert.
52527
52528 2008-09-01  Eric Blake  <ebb9@byu.net>
52529
52530         c-stack: make configure-time check more robust
52531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52532         successful sigaction call.
52533         Reported by Tom G. Christensen.
52534
52535 2008-09-01  Bruno Haible  <bruno@clisp.org>
52536
52537         New module 'findprog-lgpl'.
52538         * modules/findprog-lgpl: New file.
52539         * lib/findprog-lgpl.c: New file.
52540         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52541         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52542         to decide whether to use strdup or xstrdup, concatenated_filename or
52543         xconcatenated_filename.
52544
52545 2008-09-01  Bruno Haible  <bruno@clisp.org>
52546
52547         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52548         'xconcat-filename' (GPL).
52549         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52550         (License): Change to LGPLv2+.
52551         * modules/xconcat-filename: New file.
52552         * lib/concat-filename.h (concatenated_filename): Change specification.
52553         (xconcatenated_filename): New declaration.
52554         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52555         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52556         memory situations.
52557         * lib/xconcat-filename.c: New file.
52558         * NEWS: Mention the change.
52559         * lib/findprog.c: Include concat-filename.h, not filename.h.
52560         (find_in_path): Use xconcatenated_filename instead of
52561         concatenated_filename.
52562         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52563         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52564         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52565         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52566         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52567         instead of concatenated_filename.
52568         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52569         (execute_java_class): Use xconcatenated_filename instead of
52570         concatenated_filename.
52571         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52572         * modules/javacomp (Depends-on): Likewise.
52573         * modules/javaexec (Depends-on): Likewise.
52574
52575 2008-09-01  Bruno Haible  <bruno@clisp.org>
52576
52577         Split module 'filename' into 'filename' and 'concat-filename'.
52578         * modules/filename: Keep only lib/filename.h.
52579         (License): Change to LGPLv2+.
52580         * modules/concat-filename: New file, extracted from modules/filename.
52581         * lib/filename.h (concatenated_filename): Remove declaration.
52582         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52583         * lib/concat-filename.c: Include concat-filename.h.
52584         * NEWS: Mention the change.
52585
52586 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52587
52588         * lib/bitrotate.h (rotl8, rotr8): Add.
52589
52590         * modules/bitrotate (configure.ac): Need
52591         AC_REQUIRE([AC_C_INLINE]).
52592         (Description): Mention stdint.h.  Reported by Bruno Haible
52593         <bruno@clisp.org>.
52594
52595         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52596         Paolo Bonzini <bonzini@gnu.org>.
52597
52598 2008-08-31  Bruno Haible  <bruno@clisp.org>
52599
52600         Assume Solaris specific bi-arch conventions on Solaris systems.
52601         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52602         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52604         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52605         like acl_libdirstem.
52606         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52607         acl_libdirstem.
52608         * NEWS: Mention the change.
52609         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52610
52611 2008-08-31  Jim Meyering  <meyering@redhat.com>
52612
52613         * lib/strftime.h: Add comments describing the two added arguments.
52614
52615         remove duplicate #include directives
52616         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52617         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52618
52619 2008-08-31  Bruno Haible  <bruno@clisp.org>
52620
52621         New module 'sigpipe-die'.
52622         * modules/sigpipe-die: New file.
52623         * lib/sigpipe-die.h: New file.
52624         * lib/sigpipe-die.c: New file.
52625         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52626
52627 2008-08-31  Bruno Haible  <bruno@clisp.org>
52628
52629         Don't override previously installed signal handlers.
52630         * lib/fatal-signal.c (saved_sigactions): New variable.
52631         (uninstall_handlers): Reset the signal to the saved handler, not
52632         to SIG_DFL (except when ignored).
52633         (install_handlers): Save the previous handlers.
52634
52635 2008-08-30  Bruno Haible  <bruno@clisp.org>
52636
52637         * gnulib-tool (func_reset_sigpipe): New function.
52638         (func_get_automake_snippet, func_modules_transitive_closure,
52639         func_import): Invoke it before a join command that reads from stdin,
52640         to avoid "echo: write error: Broken pipe" error messages on stderr.
52641         Reported by Sam Steingold <sds@gnu.org>.
52642
52643 2008-08-30  Bruno Haible  <bruno@clisp.org>
52644
52645         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52646         Code copied from m4/open.m4.
52647         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52648         access and the filename ends in a slash. Code copied from lib/open.c.
52649         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52650         * tests/test-fopen.c (main): Check against bug with trailing slash.
52651
52652 2008-08-29  Bruno Haible  <bruno@clisp.org>
52653
52654         Avoid some "gcc -pedantic" warnings.
52655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52656         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52657         * lib/dirent.in.h: Likewise.
52658         * lib/fcntl.in.h: Likewise.
52659         * lib/float.in.h: Likewise.
52660         * lib/iconv.in.h: Likewise.
52661         * lib/inttypes.in.h: Likewise.
52662         * lib/locale.in.h: Likewise.
52663         * lib/math.in.h: Likewise.
52664         * lib/netinet_in.in.h: Likewise.
52665         * lib/search.in.h: Likewise.
52666         * lib/signal.in.h: Likewise.
52667         * lib/stdarg.in.h: Likewise.
52668         * lib/stdint.in.h: Likewise.
52669         * lib/stdio.in.h: Likewise.
52670         * lib/stdlib.in.h: Likewise.
52671         * lib/string.in.h: Likewise.
52672         * lib/strings.in.h: Likewise.
52673         * lib/sys_select.in.h: Likewise.
52674         * lib/sys_socket.in.h: Likewise.
52675         * lib/sys_stat.in.h: Likewise.
52676         * lib/sys_time.in.h: Likewise.
52677         * lib/sysexits.in.h: Likewise.
52678         * lib/time.in.h: Likewise.
52679         * lib/unistd.in.h: Likewise.
52680         * lib/wchar.in.h: Likewise.
52681         * lib/wctype.in.h: Likewise.
52682         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52683         * modules/fchdir (Makefile.am): Likewise.
52684         * modules/fcntl (Makefile.am): Likewise.
52685         * modules/float (Makefile.am): Likewise.
52686         * modules/iconv_open (Makefile.am): Likewise.
52687         * modules/inttypes (Makefile.am): Likewise.
52688         * modules/locale (Makefile.am): Likewise.
52689         * modules/math (Makefile.am): Likewise.
52690         * modules/netinet_in (Makefile.am): Likewise.
52691         * modules/search (Makefile.am): Likewise.
52692         * modules/signal (Makefile.am): Likewise.
52693         * modules/stdarg (Makefile.am): Likewise.
52694         * modules/stdint (Makefile.am): Likewise.
52695         * modules/stdio (Makefile.am): Likewise.
52696         * modules/stdlib (Makefile.am): Likewise.
52697         * modules/string (Makefile.am): Likewise.
52698         * modules/strings (Makefile.am): Likewise.
52699         * modules/sys_select (Makefile.am): Likewise.
52700         * modules/sys_socket (Makefile.am): Likewise.
52701         * modules/sys_stat (Makefile.am): Likewise.
52702         * modules/sys_time (Makefile.am): Likewise.
52703         * modules/sysexits (Makefile.am): Likewise.
52704         * modules/time (Makefile.am): Likewise.
52705         * modules/unistd (Makefile.am): Likewise.
52706         * modules/wchar (Makefile.am): Likewise.
52707         * modules/wctype (Makefile.am): Likewise.
52708         Reported by Reuben Thomas <rrt@sc3d.org>.
52709
52710 2008-08-29  Bruno Haible  <bruno@clisp.org>
52711
52712         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52713         any more.
52714
52715 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52716
52717         * MODULES.html.sh (Misc): Add bitrotate.
52718
52719         * modules/bitrotate: New file.
52720
52721         * lib/bitrotate.h: New file.
52722
52723         * modules/bitrotate-tests: New file.
52724
52725         * tests/test-bitrotate.c: New file.
52726
52727         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52728         on the bitrotate module.
52729
52730         * lib/arctwo.c: Use new bitrotate module.
52731
52732 2008-08-29  Jim Meyering  <meyering@redhat.com>
52733
52734         bootstrap: merge changes from coreutils
52735         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52736         of copied files.  Remove a kludge, now that this is fixed.
52737         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52738         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52739         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52740
52741 2008-08-29  Bruno Haible  <bruno@clisp.org>
52742
52743         * MODULES.html.sh: Remove --cvs-urls option.
52744
52745 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52746
52747         maint.mk: adjust to file name change
52748         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52749
52750 2008-08-28  Jim Meyering  <meyering@redhat.com>
52751
52752         * modules/getndelim2 (License): Relicense to LGPLv2+.
52753         Approved by Richard Stallman for the version of 1995, and by
52754         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52755
52756 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52757
52758         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52759         dummy if one is not available.  Do not touch them if
52760         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52761         (getc_maybe_unlocked): New.
52762         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52763
52764 2008-08-26  Eric Blake  <ebb9@byu.net>
52765
52766         doc/INSTALL: resync from autoconf
52767         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52768         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52769         moving...
52770         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52771         * INSTALL: Regenerate.
52772         * INSTALL.ISO: New file.
52773         * INSTALL.UTF-8: Likewise.
52774
52775 2008-08-26  Jim Meyering  <meyering@redhat.com>
52776
52777         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52778         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52779         these definitions conditional, so that they may be overridden, too.
52780
52781 2008-08-26  Bruno Haible  <bruno@clisp.org>
52782
52783         Generate INSTALL file variants with prettier quotes.
52784         * doc/Makefile (INSTALL_PRELUDE): New macro.
52785         (INSTALL): Use it.
52786         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52787
52788 2008-08-26  Bruno Haible  <bruno@clisp.org>
52789
52790         Run makeinfo in an English locale.
52791         * doc/Makefile (MAKEINFO): New variable.
52792
52793 2008-08-26  Bruno Haible  <bruno@clisp.org>
52794
52795         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52796         Suggested by Eric Blake.
52797
52798 2008-08-25  Bruno Haible  <bruno@clisp.org>
52799
52800         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52801
52802 2008-08-25  Eric Blake  <ebb9@byu.net>
52803
52804         c-stack: test that stack overflow can be caught
52805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52806         that platform allows handling stack overflow; at least OS/2 EMX
52807         has sigaltstack, but crashes before transferring control to
52808         handler on stack overflow.
52809         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52810         check for HAVE_STACK_OVERFLOW_HANDLING.
52811         Reported by Elbert Pol.
52812
52813 2008-08-25  Bruno Haible  <bruno@clisp.org>
52814
52815         * doc/posix-functions/strftime.texi: Fix description of strftime
52816         module.
52817
52818 2008-08-24  Bruno Haible  <bruno@clisp.org>
52819
52820         * tests/uniwidth/test-uc_width2.c: New file.
52821         * tests/uniwidth/test-uc_width2.sh: New file.
52822         * modules/uniwidth/width-tests (Files): Add the new files.
52823         (TESTS): Add uniwidth/test-uc_width2.sh.
52824         (TESTS_ENVIRONMENT): New variable.
52825         (check_PROGRAMS): Add test-uc_width2.
52826         (test_uc_width2_SOURCES): New variable.
52827
52828         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52829         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52830         not 0x00AB.
52831         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52832
52833 2008-08-22  Eric Blake  <ebb9@byu.net>
52834
52835         test-lock, test-tls: mention why a test is skipped
52836         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52837         skipped.
52838         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52839
52840         count-one-bits: relax license
52841         * modules/count-one-bits (License): Relicense to LGPLv2+.
52842         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52843
52844 2008-08-22  Andreas Schwab  <schwab@suse.de>
52845
52846         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52847         Remove spurious space in assignment.
52848
52849 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52850
52851         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52852         Paul Eggert <eggert@CS.UCLA.EDU>.
52853
52854 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52855
52856         * modules/gettext: Add m4/threadlib.m4.
52857
52858 2008-08-19  Eric Blake  <ebb9@byu.net>
52859
52860         test-c-stack: fix compilation failure on FreeBSD 5.0
52861         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52862         headers before <sys/resource.h>.
52863         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52864         the bug.
52865         Reported by Nelson H. F. Beebe.
52866
52867         strverscmp: migrate from "strverscmp.h" to <string.h>
52868         * modules/string (Makefile.am): Add new hooks.
52869         * modules/strverscmp (Files): Remove strverscmp.h.
52870         (Depends-on): Add string.
52871         (configure.ac): Add indicator.
52872         (Include): Mention new header.
52873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52874         defaults.
52875         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52876         results.
52877         * lib/strverscmp.h: Delete.
52878         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52879         * tests/test-strverscmp.c (includes): Adjust client.
52880         * lib/check-version.c (includes): Likewise.
52881         * NEWS: Document the change.
52882
52883         strverscmp: add unit test
52884         * modules/strverscmp-tests: New file.
52885         * tests/test-strverscmp.c: Likewise.
52886
52887 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52888
52889         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52890         regarding Windows crypto stuff, from Mono.
52891
52892 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52893
52894         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52895         if present, for intel RND.  Return error on failures.
52896
52897 2008-08-18  Ben Pfaff  <blp@gnu.org>
52898
52899         gitlog-to-changelog: give better diagnostic for failed pipe-open
52900         * build-aux/gitlog-to-changelog: Improve error message: suggest
52901         that the version of Git may be too old.
52902
52903 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52904
52905         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52906         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52907
52908 2008-08-18  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52911         pthread_in_use().
52912
52913 2008-08-18  Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/glthread/threadlib.c: Include <pthread.h>.
52916
52917 2008-08-18  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52920         glthread_recursive_lock_* macros.
52921         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52922         Fix syntax error.
52923
52924 2008-08-18  Bruno Haible  <bruno@clisp.org>
52925
52926         * lib/glthread/thread.c: Avoid forcing a context switch right after
52927         thread creation.
52928
52929 2008-08-17  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52932         * lib/glthread/thread.h: Provide Win32 specific implementation.
52933         * modules/thread (Files): Add lib/glthread/thread.c.
52934         (Depends-on): Add lock.
52935         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52936
52937 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52938
52939         New module 'yield'.
52940         * modules/yield: New file.
52941         * lib/glthread/yield.h: New file.
52942         * m4/yield.m4: New file.
52943         * MODULES.html.sh (Multithreading): Add yield.
52944
52945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52946
52947         New module 'thread'.
52948         * modules/thread: New file.
52949         * lib/glthread/thread.h: New file.
52950         * m4/thread.m4: New file.
52951         * MODULES.html.sh (Multithreading): Add thread.
52952
52953 2008-08-17  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/glthread/lock.h: Include <stdlib.h> always.
52956         * lib/glthread/tls.h: Likewise.
52957         * lib/glthread/cond.h: Likewise.
52958
52959 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52960
52961         New module 'cond'.
52962         * modules/cond: New file.
52963         * lib/glthread/cond.h: New file.
52964         * lib/glthread/cond.c: New file.
52965         * m4/cond.m4: New file.
52966         * MODULES.html.sh (Multithreading): Add cond.
52967
52968 2008-08-16  Eric Blake  <ebb9@byu.net>
52969
52970         c-stack: fix regression on Irix 5.3 from 2008-06-21
52971         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52972         sa_sigaction...
52973         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52974         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52975         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52976         * modules/signal (Makefile.am): Use the value.
52977         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52978         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52979         * doc/posix-headers/signal.texi (signal.h): Document this
52980         portability issue.
52981         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52982         Reported by Tom G. Christensen.
52983
52984 2008-08-17  Bruno Haible  <bruno@clisp.org>
52985
52986         New module 'threadlib'.
52987         * modules/threadlib: New file.
52988         * lib/glthread/threadlib.c: New file, extracted from
52989         lib/glthread/lock.c.
52990         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52991         functions.
52992         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52993         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52994         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52995         macros.
52996         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52997         (gl_DISABLE_THREADS): Remove macro.
52998         * modules/lock (Files): Remove build-aux/config.rpath.
52999         (Depends-on): Remove havelib. Add threadlib.
53000         (configure.ac-early): Remove section.
53001         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53002         * modules/tls (Depends-on): Remove lock. Add threadlib.
53003         (Link): New section, copied from threadlib.
53004         * MODULES.html.sh (Multithreading): Add threadlib.
53005
53006 2008-08-14  Bruno Haible  <bruno@clisp.org>
53007
53008         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53009         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53010         glthread_rwlock_unlock, glthread_rwlock_destroy,
53011         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53012         glthread_recursive_lock_destroy): Define as macros always.
53013         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53014         glthread_lock_lock.
53015         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53016         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53017         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53018         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53019         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53020         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53021         (glthread_recursive_lock_lock_func): Renamed from
53022         glthread_recursive_lock_lock.
53023         (glthread_recursive_lock_unlock_func): Renamed from
53024         glthread_recursive_lock_unlock.
53025         (glthread_recursive_lock_destroy_func): Renamed from
53026         glthread_recursive_lock_destroy.
53027
53028 2008-08-14  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/glthread/lock.h: Renamed from lib/lock.h.
53031         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53032         * lib/glthread/tls.h: Renamed from lib/tls.h.
53033         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53034         * lib/fstrcmp.c: Update includes.
53035         * lib/strsignal.c: Update includes.
53036         * modules/lock (Files, Makefile.am): Update.
53037         (Include): Change to "glthread/lock.h".
53038         * modules/tls (Files, Makefile.am): Update.
53039         (Include): Change to "glthread/tls.h".
53040         * tests/test-lock.c: Update includes.
53041         * tests/test-tls.c: Update includes.
53042         * NEWS: Mention the renamed header files.
53043
53044 2008-08-11  Jim Meyering  <meyering@redhat.com>
53045
53046         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53047
53048 2008-08-11  Eric Blake  <ebb9@byu.net>
53049
53050         test-c-stack: avoid C99-ism
53051         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53052         before statement.
53053         Reported by Alain Guibert.
53054
53055 2008-08-10  Jim Meyering  <meyering@redhat.com>
53056
53057         ensure that return value of uinttostr et al are not ignored
53058         * lib/inttostr.h (__GNUC_PREREQ): Define.
53059         (__attribute_warn_unused_result__): Define.
53060         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53061
53062 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53063
53064         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53065         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53066
53067 2008-08-07  Jim Meyering  <meyering@redhat.com>
53068
53069         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53070
53071         * modules/mkstemp (License): Relicense under LGPLv2+.
53072         * modules/tempname (License): Likewise.
53073
53074 2008-08-06  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/poll.c (poll): Further micro-optimization.
53077
53078 2008-08-06  Jim Meyering  <meyering@redhat.com>
53079
53080         inet_pton.c: use locale-independent tolower
53081         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53082         (inet_pton6): Use c_tolower rather than tolower.
53083         * modules/inet_pton (Depends-on): Add c-ctype.
53084
53085 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53086
53087         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53088         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53089
53090 2008-08-06  Jim Meyering  <meyering@redhat.com>
53091
53092         * modules/inet_pton (License): Relicense under LGPLv2+.
53093
53094 2008-08-03  Bruno Haible  <bruno@clisp.org>
53095
53096         Additional non-aborting API for lock and tls.
53097         * lib/lock.h: Include <errno.h>.
53098         (glthread_lock_init): New macro/function.
53099         (gl_lock_init): Define as wrapper around glthread_lock_init.
53100         (glthread_lock_lock): New macro/function.
53101         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53102         (glthread_lock_unlock): New macro/function.
53103         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53104         (glthread_lock_destroy): New macro/function.
53105         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53106         (glthread_rwlock_init): New macro/function.
53107         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53108         (glthread_rwlock_rdlock): New macro/function.
53109         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53110         (glthread_rwlock_wrlock): New macro/function.
53111         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53112         (glthread_rwlock_unlock): New macro/function.
53113         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53114         (glthread_rwlock_destroy): New macro/function.
53115         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53116         (glthread_recursive_lock_init): New macro/function.
53117         (gl_recursive_lock_init): Define as wrapper around
53118         glthread_recursive_lock_init.
53119         (glthread_recursive_lock_lock): New macro/function.
53120         (gl_recursive_lock_lock): Define as wrapper around
53121         glthread_recursive_lock_lock.
53122         (glthread_recursive_lock_unlock): New macro/function.
53123         (gl_recursive_lock_unlock): Define as wrapper around
53124         glthread_recursive_lock_unlock.
53125         (glthread_recursive_lock_destroy): New macro/function.
53126         (gl_recursive_lock_destroy): Define as wrapper around
53127         glthread_recursive_lock_destroy.
53128         (glthread_once): New macro/function.
53129         (gl_once): Define as wrapper around glthread_once.
53130         Update function declarations.
53131         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53132         glthread_rwlock_init. Return error code.
53133         (glthread_rwlock_rdlock_multithreaded): Renamed from
53134         glthread_rwlock_rdlock. Return error code.
53135         (glthread_rwlock_wrlock_multithreaded): Renamed from
53136         glthread_rwlock_wrlock. Return error code.
53137         (glthread_rwlock_unlock_multithreaded): Renamed from
53138         glthread_rwlock_unlock. Return error code.
53139         (glthread_rwlock_destroy_multithreaded): Renamed from
53140         glthread_rwlock_destroy. Return error code.
53141         (glthread_recursive_lock_init_multithreaded): Renamed from
53142         glthread_recursive_lock_init. Return error code.
53143         (glthread_recursive_lock_lock_multithreaded): Renamed from
53144         glthread_recursive_lock_lock. Return error code.
53145         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53146         glthread_recursive_lock_unlock. Return error code.
53147         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53148         glthread_recursive_lock_destroy. Return error code.
53149         (glthread_once_call): Make static.
53150         (glthread_once_multithreaded): Renamed from glthread_once.
53151         * lib/tls.h: Include <errno.h>.
53152         (glthread_tls_key_init): New macro/function.
53153         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53154         (glthread_tls_set): New macro/function.
53155         (gl_tls_set): Define as wrapper around glthread_tls_set.
53156         (glthread_tls_key_destroy): New macro/function.
53157         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53158         Update function declarations.
53159         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53160         glthread_tls_get.
53161         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53162
53163 2008-08-04  Eric Blake  <ebb9@byu.net>
53164
53165         gnumakefile: use space, not TAB, outside of targets
53166         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53167
53168 2008-08-02  Jim Meyering  <meyering@redhat.com>
53169
53170         getdate.y: avoid locale-dependent date parsing failure
53171         In Turkish locales, getdate would fail to recognize keywords
53172         containing a lowercase "i".  The solution is not to rely on
53173         locale-sensitive case-conversion.
53174         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53175         (lookup_word): Use c_toupper in place of toupper.
53176         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53177         Reported by Vefa Bicakci <bicave@superonline.com> in
53178         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53179         * modules/getdate (Depends-on): Add c-ctype.
53180
53181 2008-08-02  Bruno Haible  <bruno@clisp.org>
53182
53183         * gnulib-tool (func_import): When updating or creating a .gitignore
53184         file, prepend each added line with a slash, and ignore leading slashes
53185         from the existing lines.
53186         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53187
53188 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53189
53190         Portability fix for GNU make 3.79.1.
53191         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53192         versions do not understand.
53193
53194 2008-08-01  Bruno Haible  <bruno@clisp.org>
53195
53196         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53197         * tests/test-isnanf.h (zero): New variable.
53198         (main): Avoid literal -0.0f.
53199         * tests/test-isnand.h (zero): New variable.
53200         (main): Avoid literal -0.0.
53201         * tests/test-isnanl.h (zero): New variable.
53202         (main): Avoid literal -0.0L.
53203         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53204         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53205         -0.0, -0.0L.
53206         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53207         (test_signbitd): Avoid literal -0.0.
53208         (test_signbitl): Avoid literal -0.0L.
53209         * tests/test-ceilf1.c (zero): New variable.
53210         (main): Avoid literal -0.0f.
53211         * tests/test-ceill.c (zero): New variable.
53212         (main): Avoid literal -0.0L.
53213         * tests/test-floorf1.c (zero): New variable.
53214         (main): Avoid literal -0.0f.
53215         * tests/test-floorl.c (zero): New variable.
53216         (main): Avoid literal -0.0L.
53217         * tests/test-roundf1.c (zero): New variable.
53218         (main): Avoid literal -0.0f.
53219         * tests/test-round1.c (zero): New variable.
53220         (main): Avoid literal -0.0.
53221         * tests/test-roundl.c (zero): New variable.
53222         (main): Avoid literal -0.0L.
53223         * tests/test-truncf1.c (zero): New variable.
53224         (main): Avoid literal -0.0f.
53225         * tests/test-trunc1.c (zero): New variable.
53226         (main): Avoid literal -0.0.
53227         * tests/test-truncl.c (zero): New variable.
53228         (main): Avoid literal -0.0L.
53229         * tests/test-frexp.c (zero): New variable.
53230         (main): Avoid literal -0.0.
53231         * tests/test-frexpl.c (zero): New variable.
53232         (main): Avoid literal -0.0L.
53233         * tests/test-ldexpl.c (zero): New variable.
53234         (main): Avoid literal -0.0L.
53235         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53236         (zerod, zerol): New variables.
53237         (test_function): Avoid literals -0.0, -0.0L.
53238         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53239         (zerod, zerol): New variables.
53240         (test_function): Avoid literals -0.0, -0.0L.
53241         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53242         (zerod, zerol): New variables.
53243         (test_function): Avoid literals -0.0, -0.0L.
53244         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53245         (zerod, zerol): New variables.
53246         (test_function): Avoid literals -0.0, -0.0L.
53247         * tests/test-strtod.c (zero): New variable.
53248         (main): Avoid literal -0.0.
53249         Reported by Jonathan C. Patschke <jp@centtech.com>.
53250
53251 2008-07-31  Jim Meyering  <meyering@redhat.com>
53252
53253         sha256.h: correct definition of SHA224_DIGEST_SIZE
53254         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53255         Reported by Paulie Pena IV <paulie4@gmail.com>.
53256         Define as 224 / 8, rather than as a literal.
53257         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53258         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53259         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53260
53261 2008-07-31  Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53264         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53265         Reported by Jonathan Patschke <jp@centtech.com>.
53266
53267 2008-07-31  Bruno Haible  <bruno@clisp.org>
53268
53269         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53270         Reported by Paolo Bonzini <bonzini@gnu.org>.
53271
53272 2008-07-30  Eric Blake  <ebb9@byu.net>
53273
53274         test-strtod: allow compilation without -lm
53275         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53276         Reported by Dennis Clarke <blastwave@gmail.com>.
53277
53278 2008-07-28  Jim Meyering  <meyering@redhat.com>
53279
53280         bootstrap: work also when there are no .po files in po/
53281         * build-aux/bootstrap (update_po_files): Complete the change
53282         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53283
53284 2008-07-27  Jim Meyering  <meyering@redhat.com>
53285
53286         * users.txt: Add zile.
53287
53288 2008-07-26  Ben Pfaff  <blp@gnu.org>
53289
53290         Add missing dependencies on new m4/exponent[fdl].m4 files.
53291         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53292         * modules/isnand-nolibm: Add m4/exponentd.m4.
53293         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53294         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53295         m4/isnan[fdl].m4, because the macros actually used moved.
53296         Reported by Jim Meyering.
53297
53298 2008-07-14  Ben Pfaff  <blp@gnu.org>
53299
53300         Add isinf module.
53301         * lib/isinf.c: New file.
53302         * lib/math.in.h: Define isinf macro if we have decided to replace
53303         it.
53304         * m4/isinf.m4: New file.
53305         * m4/math_h.m4: Initialize and substitute variables for isinf
53306         module.
53307         * modules/isinf: New file.
53308         * modules/isinf-tests: New file.
53309         * modules/math: Add substitutions for new module.
53310         * tests/test-isinf.c: New file.
53311         * doc/posix-functions/isinf.texi: Mention new module.
53312         * MODULES.html.sh: Mention new module.
53313
53314 2008-07-14  Ben Pfaff  <blp@gnu.org>
53315
53316         Factor out some macros for use by additional modules.
53317         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53318         exponentf.m4.
53319         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53320         exponentd.m4.
53321         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53322         file exponentl.m4.
53323         * m4/exponentf.m4: New file.
53324         * m4/exponentd.m4: New file.
53325         * m4/exponentl.m4: New file.
53326         * modules/isnanf: Use new file m4/exponentf.m4.
53327         * modules/isnand: Use new file m4/exponentd.m4.
53328         * modules/isnanl: Use new file m4/exponentl.m4.
53329
53330 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53331
53332         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53333         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53334         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53335         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53336
53337         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53338         readlink on platforms without PATH_MAX.
53339
53340 2008-07-21  Eric Blake  <ebb9@byu.net>
53341
53342         Warn, not fail, on stale version.
53343         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53344
53345         Don't allow installation with stale devel version number.
53346         * top/GNUmakefile (_is-install-target): New macro.
53347         (_curr-ver): Forbid installation with stale version number.
53348
53349 2008-07-20  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53352         TESTS_ENVIRONMENT.
53353         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53354
53355 2008-07-20  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/c-stack.h (c_stack_action): Add documentation.
53358         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53359
53360 2008-07-20  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53363         * modules/readlink (License): Likewise.
53364
53365 2008-07-17  Eric Blake  <ebb9@byu.net>
53366
53367         * modules/c-stack (Link): Fix typo.
53368
53369         Make c-stack use libsigsegv, when available.
53370         * modules/c-stack (Depends-on): Add libsigsegv.
53371         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53372         needed.
53373         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53374         (segv_handler, overflow_handler, c_stack_action)
53375         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53376         implementation when libsigsegv is available, but only when using
53377         the library is necessary.
53378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53379         comment, explaining why XSI check fails on Linux.
53380         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53381         * tests/test-c-stack2.sh: Tweak skip message.
53382         * NEWS: Document new link-time requirements.
53383
53384 2008-07-16  Eric Blake  <ebb9@byu.net>
53385
53386         c-stack: Expose false positives when not using libsigsegv.
53387         * modules/c-stack-tests (Files): Expand test.
53388         * tests/test-c-stack.c (main): Add means to conditionally trigger
53389         non-overflow SIGSEGV.
53390         * tests/test-c-stack2.sh: New file.
53391
53392 2008-07-14  Bruno Haible  <bruno@clisp.org>
53393
53394         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53395         Reported by Eric Blake.
53396
53397 2008-07-14  Sam Steingold  <sds@gnu.org>
53398             Bruno Haible  <bruno@clisp.org>
53399
53400         New module libsigsegv.
53401         * modules/libsigsegv: New file.
53402         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53403         modifications.
53404         * MODULES.html.sh (Signal handling): New section.
53405
53406 2008-07-14  Bruno Haible  <bruno@clisp.org>
53407
53408         * modules/unictype/ctype-* (Description): Add the word "function".
53409         Improves the resulting doc in MODULES.html.
53410
53411 2008-07-12  Ben Pfaff  <blp@gnu.org>
53412
53413         Add longlong module.
53414         * modules/longlong: New file.
53415
53416 2008-07-12  Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53419         to empty.
53420
53421 2008-07-10  Ben Pfaff  <blp@gnu.org>
53422
53423         Add isnan module.
53424         * doc/posix-functions/isnan.texi: Mention new module.
53425         * lib/math.in.h: Define isnan macro if we have decided to replace
53426         it.
53427         * m4/isnan.m4: New file.
53428         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53429         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53430         also.
53431         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53432         redundancy.
53433         * m4/math_h.m4: Initialize and substitute variables for isnan
53434         module.
53435         * modules/isnan: New file.
53436         * modules/isnan-tests: New file.
53437         * modules/math: Add substitutions for new module.
53438         * tests/test-isnan.c: New file.
53439         * MODULES.html.sh: Mention new module.
53440
53441 2008-07-10  Ben Pfaff  <blp@gnu.org>
53442
53443         Add isnanf module.
53444         * lib/isnanf.m4: New file.
53445         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53446         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53447         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53448         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53449         * modules/isnanf: New file.
53450         * modules/isnanf-tests: New file.
53451         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53452         files.
53453         * tests/test-isnanf-nolibm.c: factored most of its contents into
53454         new file tests/test-isnanf.h.
53455         * tests/test-isnanf.h: New file.
53456         * tests/test-isnanf.c: New file.
53457         * MODULES.html.sh: Mention new module.
53458         * doc/glibc-functions/isnanf.texi: Mention new module.
53459
53460 2008-07-10  Ben Pfaff  <blp@gnu.org>
53461
53462         Add isnand module.
53463         * lib/isnand.h: New file.
53464         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53465         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53466         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53467         functionality also.
53468         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53469         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53470         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53471         * modules/isnand: New file.
53472         * modules/isnand-tests: New file.
53473         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53474         files.
53475         * tests/test-isnand-nolibm.c: factored most of its contents into
53476         new file tests/test-isnand.h.
53477         * tests/test-isnand.h: New file.
53478         * tests/test-isnand.c: New file.
53479         * MODULES.html.sh: Mention new module.
53480
53481 2008-07-10  Ben Pfaff  <blp@gnu.org>
53482
53483         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53484         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53485         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53486         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53487         * modules/isnanf-nolibm: Update references to renamed files.
53488         * modules/isnand-nolibm: Likewise.
53489         * modules/isnanf-nolibm-tests: Likewise.
53490         * modules/isnand-nolibm-tests: Likewise.
53491         * lib/frexp.c: Likewise.
53492         * lib/isfinite.c: Likewise.
53493         * lib/signbitd.c: Likewise.
53494         * lib/signbitf.c: Likewise.
53495         * lib/vasnprintf.c: Likewise.
53496         * tests/test-ceilf1.c: Likewise.
53497         * tests/test-ceilf2.c: Likewise.
53498         * tests/test-floorf1.c: Likewise.
53499         * tests/test-floorf2.c: Likewise.
53500         * tests/test-frexp.c: Likewise.
53501         * tests/test-round1.c: Likewise.
53502         * tests/test-round2.c: Likewise.
53503         * tests/test-roundf1.c: Likewise.
53504         * tests/test-strtod.c: Likewise.
53505         * tests/test-trunc1.c: Likewise.
53506         * tests/test-trunc2.c: Likewise.
53507         * tests/test-truncf1.c: Likewise.
53508         * tests/test-truncf2.c: Likewise.
53509         * NEWS: Mention the renamed header files.
53510
53511 2008-07-11  Jim Meyering  <meyering@redhat.com>
53512
53513         vc-list-files: make the last-resort awk code more portable
53514         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53515         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53516         does not support it.
53517
53518 2008-07-10  Eric Blake  <ebb9@byu.net>
53519
53520         Work with tar's bootstrap.
53521         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53522         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53523         an m4 comment.
53524
53525 2008-07-09  Jim Meyering  <meyering@redhat.com>
53526
53527         posix-shell.m4: fix typo that made this test malfunction
53528         * m4/posix-shell.m4: Remove capitalization in variable name.
53529
53530 2008-07-08  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/onceonly.m4: Update comments.
53533         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53534
53535 2008-07-04  Jim Meyering  <meyering@redhat.com>
53536
53537         * users.txt: Add vc-dwim.
53538         (bison, coreutils): Use the gitweb URL.
53539
53540 2008-07-03  Jim Meyering  <meyering@redhat.com>
53541
53542         * users.txt: Add libffcall.  From Sam Steingold.
53543
53544 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53545
53546         getdate.y: do not ignore TZ with relative day, month or year offset
53547         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53548         relative-date-handling, since otherwise, the latter would clobber the
53549         sole output (an updated Start value) of the tz-handling block.
53550         * tests/test-getdate.c: Tests for the fix
53551
53552 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53553
53554         Recognize 'foo_LIBRARIES += libgnu.a'.
53555         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53556         makefile snippet has already specified an installation location,
53557         also using '+='.
53558
53559 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53560
53561         getdate.y: factor out common actions
53562         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53563         Use them in place of open-coded actions.
53564
53565 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53566
53567         Add self-test for getdate module.
53568         * modules/getdate-tests: New file.
53569         * tests/test-getdate.c: New file.
53570
53571 2008-06-29  Bruno Haible  <bruno@clisp.org>
53572
53573         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53574         .gitignore.
53575         Reported by Sylvain Beucler <beuc@beuc.net>.
53576
53577 2008-06-29  Bruno Haible  <bruno@clisp.org>
53578
53579         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53580         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53581
53582 2008-06-29  Bruno Haible  <bruno@clisp.org>
53583
53584         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53585         EXTRA_DIST.
53586         Reported by Sylvain Beucler <beuc@beuc.net>.
53587
53588 2008-06-26  Jim Meyering  <meyering@redhat.com>
53589
53590         make several modules depend on the "open" module
53591         This provides slightly increased consistency when opening-for-write
53592         the name of a non-directory spelled with a trailing slash.
53593         * modules/chdir-safer: Likewise.
53594         * modules/chown: Likewise.
53595         * modules/clean-temp: Likewise.
53596         * modules/copy-file: Likewise.
53597         * modules/fchdir: Likewise.
53598         * modules/fcntl-safer: Likewise.
53599         * modules/pipe: Likewise.
53600         * modules/utime: Likewise.
53601         Prompted by Eric Blake and Bruno Haible.
53602
53603 2008-06-24  Andreas Schwab  <schwab@suse.de>
53604
53605         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53606         literals can be used as initializers for global variables.
53607
53608 2008-06-23  Eric Blake  <ebb9@byu.net>
53609
53610         Make gnulib-cache.m4 easier to diff.
53611         * gnulib-tool (func_import): Allow newlines when reading cached
53612         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53613
53614 2008-06-23  Bruno Haible  <bruno@clisp.org>
53615
53616         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53617         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53618         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53619         m4/signalblocking.m4.
53620         (gl_PREREQ_SIGACTION): Don't invoke it.
53621         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53622         gl_PREREQ_SIG_HANDLER_H.
53623         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53624         Don't check for sigaction here.
53625
53626 2008-06-23  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53629         (install_handlers): Don't set the SA_RESETHAND flag.
53630
53631 2008-06-23  Bruno Haible  <bruno@clisp.org>
53632
53633         * m4/sigaction.m4: Comment fixes.
53634         * lib/signal.in.h: Likewise.
53635
53636 2008-06-23  Eric Blake  <ebb9@byu.net>
53637
53638         Fix typo.
53639         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53640
53641         Avoid SA_ namespace.
53642         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53643         Reported by Ralf Wildenhues.
53644
53645         Avoid test failure due to SA_RESTORER.
53646         * tests/test-sigaction.c (SA_MASK): New macro.
53647         (main): Avoid failing due to extension flags being set.
53648         Reported by Jim Meyering.
53649
53650         Revert use of sig-handler.h in sigprocmask.c.
53651         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53652         it requires the existence of struct sigaction.
53653         * lib/sigprocmask.c (handler_t): Restore typedef.
53654         (rpl_signal, old_handlers): Use local type.
53655
53656 2008-06-22  Bruno Haible  <bruno@clisp.org>
53657
53658         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53659         conditionally.
53660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53661
53662 2008-06-22  Bruno Haible  <bruno@clisp.org>
53663
53664         * doc/posix-functions/siginterrupt.texi: Move note.
53665
53666         * lib/signal.in.h (SA_RESTART): New macro.
53667         * lib/sigaction.c: Update comment.
53668
53669         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53670
53671         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53672         (gl_PREREQ_SIGPROCMASK): Invoke it.
53673         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53674
53675         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53676
53677         * lib/sigprocmask.c: Update a comment.
53678
53679 2008-06-21  Eric Blake  <ebb9@byu.net>
53680
53681         Use sigaction module rather than signal().
53682         * modules/c-stack (Depends-on): Add sigaction.
53683         * modules/fatal-signal (Depends-on): Likewise.
53684         * modules/nanosleep (Depends-on): Likewise.
53685         * modules/sigprocmask (Files): Add sig-handler.h.
53686         * modules/sigaction (Files): Likewise.
53687         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53688         Eggert.
53689         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53690         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53691         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53692         (init_fatal_signals): Likewise.
53693         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53694         (siginterrupt): Delete fallback.
53695         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53696         instead.
53697         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53698         siginterrupt.
53699
53700         New module sigaction, for mingw.
53701         * modules/sigaction: New module...
53702         * modules/sigaction-tests: ...and its test.
53703         * m4/sigaction.m4: New file.
53704         * lib/sigaction.c: Likewise.
53705         * tests/test-sigaction.c: Likewise.
53706         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53707         * modules/signal (Makefile.am): Likewise.
53708         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53709         needed.
53710         * doc/posix-headers/signal.texi (signal.h): Mention provided
53711         types.
53712         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53713         that sigaction is preferable.
53714         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53715         module.
53716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53717         sigaction.
53718
53719         Improve robustness of sigprocmask by overriding signal.
53720         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53721         is in use.
53722         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53723         (SIGKILL, SIGSTOP): Provide fallbacks.
53724         (rpl_signal): Implement.
53725         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53726         signal can be called inside handlers.
53727
53728         Fix nanosleep module on mingw.
53729         * modules/nanosleep (Depends-on): Add sys_select.
53730         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53731
53732         Fix licensing of sigprocmask.
53733         * modules/raise (License): Relicense as LGPL.
53734
53735 2008-06-21  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53738         result if it contains question marks.
53739         Reported by Michael Geng <linux@michaelgeng.de>.
53740
53741 2008-06-19  Bruno Haible  <bruno@clisp.org>
53742
53743         Fix CVS-ism.
53744         * doc/gnulib.texi: Include updated-stamp.texi.
53745         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53746         (updated-stamp.texi): New rule.
53747         (gnulib.info): Depend on it.
53748         * doc/.gitignore: Add updated-stamp.texi.
53749         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53750
53751 2008-06-19  Bruno Haible  <bruno@clisp.org>
53752
53753         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53754         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53755
53756 2008-06-19  Eric Blake  <ebb9@byu.net>
53757
53758         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53759         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53760         Reported by Stepan Kasal.
53761
53762 2008-06-18  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53765         Reported by Eric Blake.
53766
53767 2008-06-18  Eric Blake  <ebb9@byu.net>
53768
53769         Work around cygwin 1.5.25 strsignal bug.
53770         * tests/test-strsignal.c: Allow for const char *.
53771         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53772
53773 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53774
53775         * users.txt: Update URL to article and add author/date
53776         information.
53777
53778 2008-06-17  Bruno Haible  <bruno@clisp.org>
53779
53780         New macro gl_DISABLE_THREADS.
53781         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53782         if the user did not pass --enable-threads or --disable-threads option.
53783         (gl_DISABLE_THREADS): New macro.
53784         Reported by Eric Blake <ebb9@byu.net>.
53785
53786 2008-06-17  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53789         when the macro ignores it.
53790         Based on a patch by Eric Blake <ebb9@byu.net>.
53791
53792 2008-06-17  Bruno Haible  <bruno@clisp.org>
53793
53794         * modules/tls (License): Change to LGPLv2+.
53795         Reported by Eric Blake.
53796
53797 2008-06-17  Eric Blake  <ebb9@byu.net>
53798
53799         Simplify c-stack prerequisites.
53800         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53802         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53803         check.
53804         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53805         <sys/resource.h>.
53806
53807         Move c-stack test into testsuite.
53808         * modules/c-stack-tests: New file.
53809         * lib/c-stack.c [DEBUG]: Move test program...
53810         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53811         fail test if sigaltstack is lacking.
53812         * tests/test-c-stack.sh: New driver file.
53813
53814 2008-06-16  Eric Blake  <ebb9@byu.net>
53815
53816         Use raise module consistently.
53817         * modules/fatal-signal (Depends-on): Add raise.
53818         * modules/sigprocmask (Depends-on): Likewise.
53819         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53820         * lib/sigprocmask.c (sigprocmask): Likewise.
53821         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53822         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53823
53824         Fix compliance bug in sigpending.
53825         * lib/sigprocmask.c (sigpending): Return pending array via
53826         parameter, not return value.
53827
53828 2008-06-14  Eric Blake  <ebb9@byu.net>
53829
53830         Improve obstack-printf test code.
53831         * tests/test-obstack-printf.c (test_function): Fix comment, and
53832         simplify usage of obstack_* in macros.  Add a test for coverage.
53833         Reported by Bruno Haible.
53834
53835 2008-06-14  Bruno Haible  <bruno@clisp.org>
53836
53837         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53838         array size as a constant, not as a const variable.
53839         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53840         AC_USE_SYSTEM_EXTENSIONS.
53841         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53842         Test whether the obstack_printf function actually exists.
53843         * modules/obstack-printf (Depends-on): Add extensions.
53844         (Include): Remove obstack.h.
53845         * modules/obstack-printf-posix (Depends-on): Add extensions.
53846         (Include): Remove obstack.h.
53847
53848 2008-06-13  Eric Blake  <ebb9@byu.net>
53849
53850         Add obstack-printf and obstack-printf-posix modules.
53851         * modules/obstack-printf: New file.
53852         * modules/obstack-printf-posix: Likewise.
53853         * MODULES.html.sh (Misc): Mention them.
53854         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53855         Likewise.
53856         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53857         Likewise.
53858         * modules/stdio (Makefile.am): Accomodate new modules.
53859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53860         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53861         Declare.
53862         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53863         functions.
53864         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53865         (gl_REPLACE_OBSTACK_PRINTF): New macros
53866         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53867         * tests/test-obstack-printf.c: New file.
53868         * modules/obstack-printf-tests: Likewise.
53869         * modules/obstack-printf-posix-tests: Likewise.
53870
53871 2008-06-11  Bruno Haible  <bruno@clisp.org>
53872
53873         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53874         * lib/open.c: Include errno.h.
53875         (open): Fail when attempting to write to a file that has a trailing
53876         slash.
53877         * tests/test-open.c (main): Test against trailing slash bug.
53878         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53879
53880 2008-06-10  Bruno Haible  <bruno@clisp.org>
53881
53882         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53883         for $? to work inside the trap command, with various /bin/sh-s.
53884         * tests/test-vc-list-files-cvs.sh: Likewise.
53885
53886 2008-06-10  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/acl-internal.h: Don't include gettext.h here.
53889         * lib/set-mode-acl.c: Include gettext.h here.
53890         * lib/copy-acl.c: Likewise.
53891
53892 2008-06-10  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53895         * lib/wait-process.c (wait_subprocess): Likewise.
53896         * lib/execute.h (execute): Add termsigp argument.
53897         * lib/execute.c (execute): Likewise.
53898         * lib/csharpcomp.c (compile_csharp_using_pnet,
53899         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53900         * lib/csharpexec.c (execute_csharp_using_pnet,
53901         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53902         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53903         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53904         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53905         is_jikes_present): Update.
53906         * lib/javaexec.c (execute_java_class): Update.
53907         * lib/javaversion.c (execute_and_read_line): Update.
53908         * NEWS: Document the changes.
53909         Reported by Eric Blake.
53910
53911 2008-06-10  Eric Blake  <ebb9@byu.net>
53912
53913         Add missing include.
53914         * tests/test-strstr.c (includes): Add <signal.h>.
53915         * tests/test-strcasestr.c (includes): Likewise.
53916         * tests/test-memmem.c (includes): Likewise.
53917
53918 2008-06-10  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/wait-process.c (wait_subprocess): Add an assertion.
53921
53922 2008-06-10  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53925
53926 2008-06-10  Bruno Haible  <bruno@clisp.org>
53927
53928         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53929         using alarm().
53930         * tests/test-strcasestr.c (main): Likewise.
53931         * tests/test-strstr.c (main): Likewise.
53932
53933 2008-06-09  Bruno Haible  <bruno@clisp.org>
53934
53935         Work around the Solaris 10 ACE ACLs ABI change.
53936         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53937         declare if ACL_NO_TRIVIAL is present.
53938         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53939         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53940         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53941         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53942         define if ACL_NO_TRIVIAL is present.
53943         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53944         and use the current ABI.
53945         (file_has_acl): Use same #if condition as elsewhere.
53946         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53947         in use, and use the current ABI.
53948         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53949         Reported by Jim Meyering.
53950
53951 2008-06-09  Eric Blake  <ebb9@byu.net>
53952
53953         Work around environments that (stupidly) ignore SIGALRM.
53954         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53955         before using alarm().
53956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53958         Reported by Ian Beckwith <ianb@erislabs.net>.
53959
53960         Produce autobuild blurb earlier in log.
53961         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53962
53963 2008-06-09  Jim Meyering  <meyering@redhat.com>
53964         and OndÅ™ej Vašík  <ovasik@redhat.com>
53965
53966         utimens.c: correct kernel bug work-around
53967         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53968         failure, not success, and the kernel bug we're trying to work
53969         around affects not just the utimensat call, but also the fallback
53970         futimens call.
53971         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53972         not success.
53973         [HAVE_FUTIMENS]: Use the same work-around, here.
53974
53975 2008-06-09  Jim Meyering  <meyering@redhat.com>
53976
53977         add more guards around definition of ACE_-related code
53978         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53979         ALLOW and ACE_OWNER are also defined.
53980
53981 2008-06-08  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/acl-internal.h: Add me as co-author.
53984         * lib/file-has-acl.c: Likewise.
53985         * lib/set-mode-acl.c: Likewise.
53986         * lib/copy-acl.c: Likewise.
53987
53988 2008-06-08  Bruno Haible  <bruno@clisp.org>
53989
53990         Add support for AIX ACLs.
53991         * lib/acl-internal.h (acl_nontrivial): New declaration.
53992         * lib/file-has-acl.c (acl_nontrivial): New function.
53993         (file_has_acl): Add implementation using AIX 4 ACL API.
53994         * lib/set-mode-acl.c (qset_acl): Likewise.
53995         * lib/copy-acl.c (qcopy_acl): Likewise.
53996
53997 2008-06-08  Bruno Haible  <bruno@clisp.org>
53998
53999         Add support for HP-UX ACLs.
54000         * lib/acl-internal.h (acl_nontrivial): New declaration.
54001         * lib/file-has-acl.c (acl_nontrivial): New function.
54002         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54003         * lib/set-mode-acl.c (qset_acl): Likewise.
54004         * lib/copy-acl.c (qcopy_acl): Likewise.
54005
54006 2008-06-08  Bruno Haible  <bruno@clisp.org>
54007
54008         Add support for Cygwin ACLs.
54009         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54010         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54011         the chmod_or_fchmod call.
54012         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54013
54014 2008-06-08  Bruno Haible  <bruno@clisp.org>
54015
54016         Fix bug with setuid modes in Solaris 10+ code.
54017         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54018         succeeded, when the mode contains some special bits.
54019
54020 2008-06-08  Bruno Haible  <bruno@clisp.org>
54021
54022         Add support for Solaris 7..10 ACLs.
54023         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54024         declarations.
54025         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54026         functions.
54027         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54028         * lib/set-mode-acl.c (qset_acl): Likewise.
54029         * lib/copy-acl.c (qcopy_acl): Likewise.
54030
54031 2008-06-08  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54034         declaration.
54035         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54036         (acl_access_nontrivial): Remove MacOS X case.
54037         (file_has_acl): Use acl_extended_nontrivial.
54038         * lib/copy-acl.c (qcopy_acl): Likewise.
54039
54040 2008-06-08  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54043
54044 2008-06-08  Jim Meyering  <meyering@redhat.com>
54045
54046         * modules/acl (Maintainer): Add Bruno Haible.
54047
54048 2008-06-07  Bruno Haible  <bruno@clisp.org>
54049
54050         Improve support for Tru64 ACLs.
54051         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54052         ACL on OSF/1.
54053
54054 2008-06-07  Bruno Haible  <bruno@clisp.org>
54055
54056         Add support for MacOS X ACLs.
54057         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54058         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54059         * lib/set-mode-acl.c (qset_acl): Likewise.
54060         * lib/copy-acl.c (qcopy_acl): Likewise.
54061
54062 2008-06-07  Bruno Haible  <bruno@clisp.org>
54063
54064         Fix memory leak introduced on 2008-05-22.
54065         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54066         use.
54067
54068 2008-06-07  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54071         to construct an empty ACL.
54072
54073 2008-06-07  Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54076         precisely.
54077         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54078
54079 2008-06-07  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54082         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54083
54084 2008-06-07  Bruno Haible  <bruno@clisp.org>
54085
54086         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54087         regardless of POSIX.
54088         * doc/posix-functions/_longjmp.texi: Likewise.
54089         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54090         SystemV platform in this case.
54091
54092 2008-06-06  Eric Blake  <ebb9@byu.net>
54093
54094         Document abort() bugs.
54095         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54096
54097         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54098         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54099         sigsetjmp.
54100         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54101         siglongjmp, but only as a macro.
54102         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54103         is obsolete.
54104         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54105
54106         Tweak documentation to cover cygwin argz bugs.
54107         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54108         argz bug fix; no code change needed since no cygwin releases
54109         occurred between the last fix and the bug being tested.
54110         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54111         module and recently fixed cygwin bugs.
54112         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54113         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54114         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54115         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54116         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54117         Likewise.
54118         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54119         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54120         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54121         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54122         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54123         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54124         Likewise.
54125
54126         Avoid gcc warning on cygwin.
54127         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54128         !ACL_NO_TRIVIAL]: Avoid unused variable.
54129
54130 2008-06-05  Eric Blake  <ebb9@byu.net>
54131
54132         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54133         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54134         git-version-gen fails to come up with a version.
54135         Reported by Simon Josefsson.
54136
54137 2008-06-05  Jim Meyering  <meyering@redhat.com>
54138             Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         utimens.c: work around a probable Linux kernel bug
54141         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54142         appears to be a kernel bug that causes utimensat to return 280
54143         instead of 0, indicating success.
54144
54145 2008-06-04  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54148         2008-06-01 commit.
54149
54150 2008-06-04  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54153         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54154         (file_has_acl): Use it. Save errno afterwards.
54155         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54156
54157 2008-06-03  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54160         draft code. Simplify #ifs.
54161         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54162         Put Solaris code after POSIX-draft code. Fix comments regarding
54163         Solaris 10, HP-UX. Mention Cygwin.
54164         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54165
54166 2008-06-03  Eric Blake  <ebb9@byu.net>
54167
54168         Provide fallback for older kernels.
54169         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54170         Provide runtime fallback if kernel lacks support.
54171         Reported by Mike Frysinger.
54172
54173 2008-06-02  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54176         it exists.
54177
54178 2008-06-02  Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54181         * lib/copy-acl.c (qcopy_acl): Update comment.
54182
54183 2008-06-02  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54186         like ACL APIs.
54187
54188 2008-06-02  Bruno Haible  <bruno@clisp.org>
54189
54190         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54191         * tests/test-set-mode-acl.sh: Likewise.
54192         * tests/test-copy-acl.sh: Likewise.
54193         * tests/test-copy-file.sh: Likewise.
54194
54195 2008-06-02  Bruno Haible  <bruno@clisp.org>
54196
54197         * tests/test-file-has-acl.sh: Remove unused code.
54198
54199 2008-06-01  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54202         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54203         messages.
54204         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54205
54206 2008-06-01  Bruno Haible  <bruno@clisp.org>
54207
54208         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54209         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54210         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54211         APIs.
54212         * modules/acl-tests (configure.ac): Remove tests now contained in
54213         m4/acl.m4.
54214
54215 2008-06-02  Jim Meyering  <meyering@redhat.com>
54216
54217         announce-gen: use a better key-server host name
54218         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54219         it may be more consistently reliable.  Suggested by Werner Koch
54220         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54221
54222 2008-06-01  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54225         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54226
54227 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54228
54229         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54230
54231 2008-06-01  Bruno Haible  <bruno@clisp.org>
54232
54233         New ACL tests.
54234         * tests/test-file-has-acl.sh: New file.
54235         * tests/test-file-has-acl.c: New file.
54236         * tests/test-set-mode-acl.sh: New file.
54237         * tests/test-set-mode-acl.c: New file.
54238         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54239         * tests/test-copy-acl.c: New file.
54240         * modules/acl-tests: New file, based on modules/copy-file-tests.
54241         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54242         (Depends-on): Add acl-tests.
54243         (configure.ac): Remove checks.
54244         (Makefile.am): Don't create test-sameacls program here any more.
54245
54246 2008-06-01  Bruno Haible  <bruno@clisp.org>
54247
54248         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54249         * tests/test-sameacls.c: Include progname.h.
54250         (main): Invoke set_program_name. Portability fixes for MacOS X,
54251         Solaris, HP-UX.
54252
54253 2008-06-01  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54256         function.
54257         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54258
54259 2008-06-01  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/rpmatch (Depends-on): Add strdup.
54262
54263 2008-06-01  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/pipe.c: Include unistd-safer.h.
54266         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54267         * modules/pipe (Depends-on): Add unistd-safer.
54268
54269 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54270
54271         * modules/autobuild (configure.ac): Call AB_INIT.
54272
54273 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54274
54275         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54276         Suggested by Bruno Haible <bruno@clisp.org>.
54277
54278 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54279
54280         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54281         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54282         <bruno@clisp.org>.
54283
54284 2008-05-29  Eric Blake  <ebb9@byu.net>
54285
54286         Prefer new POSIX 200x interfaces over futimesat.
54287         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54288         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54289         when available.
54290         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54291
54292 2008-05-28  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/stpcpy (License): Change to LGPLv2+.
54295         Requested by David Lutterkort <dlutter@redhat.com>.
54296
54297 2008-05-27  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54300         current mingw.
54301         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54302
54303 2008-05-27  Bruno Haible  <bruno@clisp.org>
54304
54305         * modules/iconv_open (Link): New section, from module 'iconv'.
54306         * modules/striconv (Link): Likewise.
54307         * modules/striconveh (Link): Likewise.
54308         * modules/xstriconv (Link): Likewise.
54309         * modules/unicodeio (Link): Likewise.
54310         * modules/propername (Link): Likewise.
54311         Reported by Jim Meyering.
54312
54313 2008-05-26  Jim Meyering  <meyering@redhat.com>
54314
54315         sha256: do not artificially restrict buffer length to be < 2^32
54316         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54317         uint32_t to size_t.
54318         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54319         to match.
54320
54321         avoid unaligned access errors, e.g., on sparc
54322         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54323         direct access through a possibly-unaligned uint64* pointer.
54324         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54325         direct access through a possibly-unaligned uint32* pointer.
54326         Prompted by this patch from Tom "spot" Callaway:
54327         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54328
54329         sha512.c: fix typo in comment
54330         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54331
54332 2008-05-25  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54335         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54336         (Makefile.am): Update lib_SOURCES.
54337
54338 2008-05-25  Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54341
54342 2008-05-25  Jim Meyering  <meyering@redhat.com>
54343
54344         useless-if-before-free: freed expr may have white-space differences
54345         * build-aux/useless-if-before-free: Recognize cases in which the
54346         freed expression differs from the tested one in embedded white
54347         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54348         $1 was used, so we can't make any regexp shy.  Improved tests now
54349         detect this.
54350
54351         useless-if-before-free: accept white space in the expression.
54352         * build-aux/useless-if-before-free: For now, any white space
54353         in the expression must be identical in the free argument.
54354
54355         useless-if-before-free: efficiency tweak
54356         * build-aux/useless-if-before-free: Make the expression-matching
54357         regexp "shy".
54358         Make the *outer* regexp shy, not the expr-matching one.
54359
54360         update code-in-comment to accept cast of free arg
54361         * build-aux/useless-if-before-free: Update regexp.
54362
54363 2008-05-25  Bruno Haible  <bruno@clisp.org>
54364
54365         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54366         * modules/copy-file-tests (Files, Makefile.am): Update.
54367         * tests/test-copy-file.c (func_test_copy): Update.
54368
54369 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54370
54371         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54372
54373 2008-05-23  Bruno Haible  <bruno@clisp.org>
54374
54375         Improve support for ACLs on OSF/1.
54376         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54377         Remove fallback for unknown flavors of ACLs.
54378
54379 2008-05-22  Bruno Haible  <bruno@clisp.org>
54380
54381         Add support for ACLs on OSF/1.
54382         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54383         replacements.
54384         (acl_free_text): New macro fallback.
54385         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54386         acl_free.
54387         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54388         acl_free_text function. Require AC_C_INLINE.
54389
54390 2008-05-22  Bruno Haible  <bruno@clisp.org>
54391
54392         Make copy_acl work on MacOS X 10.5.
54393         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54394         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54395         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54396         If MODE_INSIDE_ACL, don't assume that every system has the same text
54397         representation for ACLs as FreeBSD.
54398         * lib/copy-acl.c (copy_acl): Add support for platforms with
54399         !MODE_INSIDE_ACL.
54400         * lib/file-has-acl.c (file_has_acl): Likewise.
54401         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54402         FreeBSD, MacOS X, or IRIX, respectively.
54403
54404 2008-05-22  Bruno Haible  <bruno@clisp.org>
54405
54406         * lib/acl.h: Don't include <sys/acl.h>.
54407         (GETACLCNT): Move fallback to lib/acl-internal.h.
54408         * lib/acl-internal.h: Include <sys/acl.h> here.
54409         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54410
54411 2008-05-22  Bruno Haible  <bruno@clisp.org>
54412
54413         Split off copy_acl function to separate file.
54414         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54415         * lib/acl.c (copy_acl): Moved function to separate file.
54416         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54417         * modules/acl (Files): Add lib/copy-acl.c.
54418         (Makefiles.am): Augment lib_SOURCES.
54419
54420 2008-05-22  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/copy-file-tests: New file.
54423         * tests/test-copy-file.sh: New file.
54424         * tests/test-copy-file.c: New file.
54425         * tests/test-copy-file-sameacls.c: New file.
54426
54427 2008-05-22  Eric Blake  <ebb9@byu.net>
54428
54429         Avoid gcc warning.
54430         * tests/test-memcmp.c (main): Pass NULL indirectly.
54431
54432 2008-05-21  Bruno Haible  <bruno@clisp.org>
54433
54434         Add reference doc about ACLs.
54435         * doc/acl-resources.txt: New file.
54436         * doc/acl-cygwin.txt: New file.
54437
54438 2008-05-21  Bruno Haible  <bruno@clisp.org>
54439
54440         Avoid one more warning from gcc.
54441         * lib/vasnprintf.c (IF_LINT): Update comments.
54442         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54443
54444 2008-05-21  Jim Meyering  <meyering@redhat.com>
54445
54446         avoid a warning from gcc
54447         * lib/vasnprintf.c (IF_LINT): Define.
54448         (scale10_round_decimal_long_double):
54449         Use it to avoid a "may be used uninitialized" warning.
54450         (scale10_round_decimal_double): Likewise.
54451
54452 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54453
54454         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54455         declared.
54456
54457 2008-05-20  Bruno Haible  <bruno@clisp.org>
54458
54459         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54460         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54461
54462 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54463
54464         * modules/memcmp-tests: New file.
54465         * tests/test-memcmp.c: New file.
54466
54467 2008-05-19  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/propername (Notice, configure.ac): Put quoted "..." into
54470         --keyword option.
54471         * lib/propername.h: Update comments accordingly.
54472         Reported by Eric Blake.
54473
54474 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54475
54476         * modules/getpass-gnu (Depends-on): Add fseeko.
54477
54478 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54479
54480         * modules/base64-tests: New file.
54481
54482 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54483
54484         * lib/base64.c (base64_decode_ctx): If a decode context structure
54485         was passed in use it to ignore newlines.  If a context structure
54486         was _not_ passed in, continue to treat newlines as garbage (this
54487         is the historical behavior).  Formerly base64_decode.
54488         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54489         takes a decode context structure.
54490         * lib/base64.h (base64_decode): Macro for four-argument calls.
54491         (base64_decode_alloc): Likewise.
54492         * lib/base64.c (base64_decode_ctx): If a decode context structure
54493         was passed in use it to ignore newlines.  If a context structure
54494         was _not_ passed in, continue to treat newlines as garbage (this
54495         is the historical behavior).  Formerly base64_decode.
54496         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54497         takes a decode context structure.
54498         * lib/base64.h (base64_decode): Macro for four-argument calls.
54499         (base64_decode_alloc): Likewise.
54500
54501 2008-05-19  Jim Meyering  <meyering@redhat.com>
54502
54503         avoid a warning from gcc
54504         * lib/trim.c (IF_LINT): Define.
54505         (trim2): Use it to avoid a "may be used uninitialized" warning.
54506
54507         Fix doc typo.
54508         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54509
54510 2008-05-19  Bruno Haible  <bruno@clisp.org>
54511
54512         * doc/glibc-functions/getpass.texi: Document limits of other
54513         implementations.
54514
54515 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54516             Bruno Haible <bruno@clisp.org>
54517
54518         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54519
54520 2008-05-18  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/propername: New file, from GNU gettext.
54523         * lib/propername.h: New file, from GNU gettext.
54524         * lib/propername.c: New file, from GNU gettext.
54525         * MODULES.html.sh (Internationalization functions): Add propername.
54526
54527 2008-05-16  Jim Meyering  <meyering@redhat.com>
54528             Bruno Haible  <bruno@clisp.org>
54529
54530         Avoid some warnings from "gcc -Wshadow".
54531         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54532
54533 2008-05-15  Eric Blake  <ebb9@byu.net>
54534
54535         Extend previous patch to cygwin 1.7.0.
54536         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54537         fast implementation in cygwin >= 1.7.0.
54538         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54540
54541 2008-05-15  Bruno Haible  <bruno@clisp.org>
54542
54543         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54544         implementation in glibc >= 2.9.
54545         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54547
54548 2008-05-15  Bruno Haible  <bruno@clisp.org>
54549
54550         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54551         (Unicode string functions): Add unilbrk/*.
54552         Reported by Karl Berry.
54553
54554 2008-05-15  Eric Blake  <ebb9@byu.net>
54555
54556         Fix violation of <stdbool.h> replacement in regex.
54557         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54558         * lib/regexec.c (re_search_internal): Likewise.
54559         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54560
54561 2008-05-15  Jim Meyering  <meyering@redhat.com>
54562
54563         avoid distracting test output when git or cvs is not found
54564         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54565         * tests/test-vc-list-files-git.sh: Likewise.
54566
54567 2008-05-15  Eric Blake  <ebb9@byu.net>
54568
54569         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54570         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54571         glibc version.
54572         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54573         * doc/posix-functions/strstr.texi (strstr): Likewise.
54574         * lib/str-two-way.h (MAX): Sychronize with glibc.
54575
54576 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54577
54578         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54579         opr.ctx_type.
54580         (calc_first): Initialize constraint field.
54581         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54582         Fix grammar.
54583         (duplicate_node): Merge constraint field for all node types.
54584         (calc_eclosure_iter): Look at constraint field for all node types.
54585         * lib/regex_internal.c (create_cd_newstate): Don't look at
54586         opr.ctx_type.
54587
54588 2008-05-14  Bruno Haible  <bruno@clisp.org>
54589
54590         Help GCC to do better code generation.
54591         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54592         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54593         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54594         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54595         Declare with attribute 'malloc' if supported.
54596
54597 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54598
54599         use "echo STR|wc -c" rather than unportable "expr length STR"
54600         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54601         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54602
54603 2008-05-14  Jim Meyering  <meyering@redhat.com>
54604
54605         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54606         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54607         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54608         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54609         via Collin Lasse.
54610
54611 2008-05-14  Eric Blake  <ebb9@byu.net>
54612
54613         Avoid quadratic growth in gl_LIBSOURCES.
54614         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54615         Suggested by Bruno Haible.
54616
54617         Test xmemdup0.
54618         * modules/xmemdup0-tests: New file.
54619         * tests/test-xmemdup0.c: Likewise.
54620
54621 2008-05-13  Eric Blake  <ebb9@byu.net>
54622
54623         Split xmemdup0 into its own module.
54624         * modules/xmemdup0: New file.
54625         * lib/xmemdup0.h: Likewise.
54626         * lib/xmemdup0.c: Likewise.
54627         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54628         * lib/xalloc.h (xmemdup0): Remove.
54629         * lib/xmalloc.c (xmemdup0): Likewise.
54630
54631 2008-05-13  Eric Blake  <ebb9@byu.net>
54632             Bruno Haible  <bruno@clisp.org>
54633
54634         Reduce number of forks required during autoconf.
54635         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54636         and gl_LIBSOURCES_DIR.
54637         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54638         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54639         m4_syscmd per file.
54640         <m4_foreach_w>: Move...
54641         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54642
54643 2008-05-13  Eric Blake  <ebb9@byu.net>
54644
54645         * gnulib-tool: Fix various comment typos.
54646
54647 2008-05-12  Bruno Haible  <bruno@clisp.org>
54648
54649         Tailor the linebreaking algorithm.
54650         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54651
54652 2008-05-12  Bruno Haible  <bruno@clisp.org>
54653
54654         Update to Unicode 5.0.0.
54655         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54656         LBP_JV, LBP_JT. Redistribute values.
54657         (unilbrk_table): Change size.
54658         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54659         Unicode TR#14 rev. 22.
54660         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54661         LBP_JV, LBP_JT. Redistribute values.
54662         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54663         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54664         Update.
54665         * lib/unilbrk/lbrkprop1.h: Regenerated.
54666         * lib/unilbrk/lbrkprop2.h: Regenerated.
54667         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54668         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54669         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54670         Likewise.
54671         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54672         Likewise.
54673         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54674         result.
54675         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54676         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54677         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54678         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54679         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54680         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54681
54682 2008-05-11  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54685
54686 2008-05-11  Bruno Haible  <bruno@clisp.org>
54687
54688         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54689         * modules/unilbrk/gen-lbrk: New file.
54690
54691 2008-05-11  Bruno Haible  <bruno@clisp.org>
54692
54693         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54694         * m4/sha512.m4 (gl_SHA512): Likewise.
54695
54696 2008-05-11  Jim Meyering  <meyering@redhat.com>
54697
54698         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54699         * modules/crypto/sha256: New file.
54700         * modules/crypto/sha512: Likewise.
54701         * lib/sha256.c: Likewise.
54702         * lib/sha256.h: Likewise.
54703         * lib/sha512.c: Likewise.
54704         * lib/sha512.h: Likewise.
54705         * lib/u64.h: Likewise.
54706         * m4/sha256.m4: Likewise.
54707         * m4/sha512.m4: Likewise.
54708         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54709
54710 2008-05-10  Bruno Haible  <bruno@clisp.org>
54711
54712         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54713         (Input/Output <stdio.h>): Add xprintf.
54714         (Signal handling <signal.h>): Add strsignal.
54715         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54716         (Core language properties): Add func.
54717         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54718         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54719         strings.
54720         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54721         (Input/output): New section.
54722         (File system functions): Add openat-die, stat-macros.
54723         (Networking functions): Add sockets.
54724         (Unicode string functions): Add unictype/*.
54725         (Support for building libraries and executables): Add gperf.
54726         (Support for building documentation): Add agpl-3.0.
54727         (Misc): Add nocrash.
54728
54729 2008-05-10  Bruno Haible  <bruno@clisp.org>
54730
54731         * modules/unictype/gen-ctype: New file.
54732
54733 2008-05-10  Jim Meyering  <meyering@redhat.com>
54734
54735         Make chdir-safer.c more efficient on a system with no symlinks.
54736         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54737         also if ELOOP is zero.  Suggested by Bruno Haible.
54738
54739         Make chdir-safer.c slightly safer.
54740         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54741         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54742
54743         Avoid compile failure on systems without ELOOP (like mingw).
54744         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54745         Reported by Bruno Haible.
54746
54747 2008-05-10  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54750         (is_utf8_encoding): Use a case-insensitive comparison.
54751         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54752         streq.
54753
54754 2008-05-10  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54757         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54758         * lib/unilbrk/ulc-common.h (iconv_string_length,
54759         iconv_string_keeping_offsets): Remove declarations.
54760         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54761         Don't include <iconv.h>, streq.h, xsize.h.
54762         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54763         conversion.
54764         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54765         <iconv.h>, streq.h, xsize.h.
54766         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54767         conversion.
54768         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54769         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54770         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54771         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54772
54773 2008-05-10  Bruno Haible  <bruno@clisp.org>
54774
54775         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54776         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54777
54778         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54779         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54780
54781         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54782         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54783
54784         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54785         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54786
54787         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54788         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54789
54790         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54791         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54792
54793         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54794         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54795
54796         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54797         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54798
54799 2008-05-10  Bruno Haible  <bruno@clisp.org>
54800
54801         Split up 'linebreak' module.
54802         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54803         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54804         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54805         modifications.
54806         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54807         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54808         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54809         lib/linebreak.c.
54810         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54811         lib/linebreak.c.
54812         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54813         lib/linebreak.c.
54814         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54815         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54816         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54817         lib/linebreak.c.
54818         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54819         lib/linebreak.c.
54820         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54821         lib/linebreak.c.
54822         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54823         lib/linebreak.c.
54824         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54825         lib/linebreak.c.
54826         * modules/unilbrk/base: New file.
54827         * modules/unilbrk/tables: New file.
54828         * modules/unilbrk/u8-possible-linebreaks: New file.
54829         * modules/unilbrk/u16-possible-linebreaks: New file.
54830         * modules/unilbrk/u32-possible-linebreaks: New file.
54831         * modules/unilbrk/ulc-common: New file.
54832         * modules/unilbrk/ulc-possible-linebreaks: New file.
54833         * modules/unilbrk/u8-width-linebreaks: New file.
54834         * modules/unilbrk/u16-width-linebreaks: New file.
54835         * modules/unilbrk/u32-width-linebreaks: New file.
54836         * modules/unilbrk/ulc-width-linebreaks: New file.
54837         * lib/linebreak.h: Remove file.
54838         * lib/linebreak.c: Remove file.
54839         * m4/linebreak.m4: Remove file.
54840         * modules/linebreak: Remove file.
54841         * NEWS: Mention the changes.
54842
54843 2008-05-09  Eric Blake  <ebb9@byu.net>
54844
54845         Add xmemdup0.
54846         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54847         implementation.
54848         * lib/xmalloc.c (xmemdup0): New C implementation.
54849
54850 2008-05-08  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54853
54854 2008-05-07  Eric Blake  <ebb9@byu.net>
54855
54856         Support cross-compilation of <wctype.h>.
54857         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54858         AC_CACHE_CHECK.
54859
54860 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54861
54862         * build-aux/vc-list-files: Add support for bzr.
54863
54864 2008-05-03  Jim Meyering  <meyering@redhat.com>
54865
54866         avoid failed assertion with tight malloc
54867         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54868
54869 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54870
54871         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54872         are needed from arpa/inet.h.
54873         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54874         Reported by Bruno Haible.
54875
54876 2008-05-02  Jim Meyering  <meyering@redhat.com>
54877
54878         avoid compilation error on FreeBSD 6
54879         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54880
54881 2008-05-01  Jim Meyering  <meyering@redhat.com>
54882
54883         useless-if-before-free: correct --help's exit status description
54884         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54885         for one or more matches, etc.  Reported by Bruno Haible.
54886
54887         vc-list-files: make the stand-alone gnulib test work
54888         * modules/vc-list-files-tests (configure.ac):
54889         Define and AC_SUBST abs_aux_dir.
54890         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54891         $(abs_top_srcdir) to each script and having each of them
54892         duplicate the work of setting PATH, set PATH here, using
54893         the new variable, abs_aux_dir instead.
54894         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54895         * tests/test-vc-list-files-git.sh: Likewise.
54896         Reported by Bruno Haible.
54897
54898 2008-05-01  Bruno Haible  <bruno@clisp.org>
54899
54900         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54901         reallocation. Rename 'done' to 'found_delimiter'.
54902
54903 2008-05-01  Jim Meyering  <meyering@redhat.com>
54904
54905         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54906         * build-aux/vc-list-files: Use `...`, not $(...).
54907
54908 2008-04-30  Jim Meyering  <meyering@redhat.com>
54909
54910         add tests for vc-list-files
54911         * modules/vc-list-files-tests: New module.
54912         * tests/test-vc-list-files-cvs.sh: New file.
54913         * tests/test-vc-list-files-git.sh: New file.
54914
54915         avoid a warning from gcc
54916         * lib/getndelim2.c (IF_LINT): Define.
54917         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54918
54919         vc-list-files: work properly with build-aux/cvsu, too
54920         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54921         to all cvs-based clauses.
54922
54923         vc-list-files: work properly in the CVS+awk case, too
54924         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54925
54926         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54927         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54928         take more than one file argument, so .  Add quotes, just in case $dir
54929         ever contains a shell meta-character.  Prompted by Soren Hansen in
54930         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54931
54932 2008-04-29  Eric Blake  <ebb9@byu.net>
54933
54934         Optimize getndelim2 to use block operations when possible.
54935         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54936         freadseek, and memchr2.
54937         * lib/getndelim2.c (getndelim2): Use them for block reads.
54938
54939 2008-04-29  Bruno Haible  <bruno@clisp.org>
54940
54941         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54942         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54943         * modules/inet_ntop (Depends-on): Add extensions.
54944         * modules/inet_pton (Depends-on): Likewise.
54945         Reported by Simon Josefsson.
54946
54947 2008-04-29  Jim Meyering  <meyering@redhat.com>
54948
54949         When the is more than one match in a block, match all of them.
54950         * build-aux/useless-if-before-free: Iterate through each block
54951         until there are no more matches.
54952
54953         Fix broken useless-if-before-free script.
54954         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54955         the expression to match cast of argument to free-like function.
54956
54957 2008-04-29  Eric Blake  <ebb9@byu.net>
54958
54959         Use new header.
54960         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54961
54962 2008-04-29  Jim Meyering  <meyering@redhat.com>
54963
54964         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54965         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54966         by gnulib to exist and to declare e.g., inet_ntop.
54967         Don't include "inet_ntop.h", now removed.
54968
54969         * m4/arpa_inet_h.m4: Remove trailing blanks.
54970
54971 2008-04-29  Eric Blake  <ebb9@byu.net>
54972
54973         Silence valgrind on safe reads beyond potential array bounds.
54974         * lib/rawmemchr.valgrind: New file.
54975         * lib/strchrnul.valgrind: Likewise.
54976         * modules/rawmemchr (Files): Distribute new file.
54977         * modules/strchrnul (Files): Likewise.
54978         Suggested by Bruno Haible.
54979
54980 2008-04-29  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54983         (inet_ntop, inet_pton): Change portability warning's wording.
54984         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54985         Invoke gl_CHECK_NEXT_HEADERS.
54986         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54987         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54988         set ARPA_INET_H.
54989         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54990         * modules/arpa_inet (Description): No longer only for systems that
54991         lack it.
54992         (Depends-on): Add include_next.
54993         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54994         HAVE_ARPA_INET_H.
54995
54996 2008-04-29  Jim Meyering  <meyering@redhat.com>
54997
54998         * modules/mkdir (License): Re-license as LGPLv2+.
54999
55000 2008-04-29  Bruno Haible  <bruno@clisp.org>
55001
55002         * modules/rawmemchr (Maintainer): Set to Eric.
55003         * modules/strchrnul (Maintainer): Likewise.
55004
55005 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55006
55007         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55008         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55009
55010         * modules/arpa_inet (arpa/inet.h): Use them.
55011
55012 2008-04-28  Eric Blake  <ebb9@byu.net>
55013
55014         Test getndelim2.
55015         * modules/getndelim2-tests: New file.
55016         * tests/test-getndelim2.c: Likewise.
55017         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55018         stream.
55019         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55020
55021         * MODULES.html.sh: Document new module.
55022
55023 2008-04-20  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/c-stack.c (die): Use raise.
55026         * modules/c-stack (Depends-on): Add raise.
55027
55028 2008-04-28  Bruno Haible  <bruno@clisp.org>
55029
55030         Expect rpmatch to be declared.
55031         * lib/yesno.c (rpmatch): Remove declaration.
55032
55033         Declare rpmatch.
55034         * lib/stdlib.in.h (rpmatch): New declaration.
55035         * lib/rpmatch.c: Include <stdlib.h> first.
55036         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55037         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55039         HAVE_RPMATCH.
55040         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55042         (Include): Set to <stdlib.h>.
55043         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55044         HAVE_RPMATCH.
55045         * NEWS: Document the change.
55046
55047 2008-04-28  Bruno Haible  <bruno@clisp.org>
55048
55049         Change rpmatch to use nl_langinfo when appropriate.
55050         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55051         (N_): New macro.
55052         (localized_pattern): New function/macro.
55053         (try): Remove match, nomatch arguments. Copy the pattern into safe
55054         memory before caching it.
55055         (rpmatch): Use localized_pattern. Add translator comments.
55056         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55057         Suggested by Eric Blake.
55058         * modules/rpmatch (Depends-on): Add stdbool.
55059
55060 2008-04-28  Eric Blake  <ebb9@byu.net>
55061
55062         Add rawmemchr module, matching glibc.
55063         * modules/string (Makefile.am): New indicator.
55064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55065         * lib/string.in.h (rawmemchr): Declare when appropriate.
55066         * modules/rawmemchr: New file.
55067         * m4/rawmemchr.m4: Likewise.
55068         * lib/rawmemchr.c: Likewise.
55069         * modules/rawmemchr-tests: Likewise.
55070         * tests/test-rawmemchr.c: Likewise.
55071         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55072         module.
55073         * modules/strchrnul (Depends-on): Add rawmemchr.
55074         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55075
55076         Whitespace cleanup.
55077         * tests/test-strchrnul.c: Reindent.
55078         * lib/strchrnul.c: Likewise.
55079
55080         Optimize and test strchrnul.
55081         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55082         * modules/strchrnul-tests: New file.
55083         * tests/test-strchrnul.c: Likewise.
55084
55085         Remove intprops dependency.
55086         * modules/memchr (Depends-on): Remove intprops.
55087         * modules/memrchr (Depends-on): Likewise.
55088         * modules/memchr2 (Depends-on): Likewise.
55089         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55090         * lib/memrchr.c (__memrchr): Likewise.
55091         * lib/memrchr2.c (memchr2): Likewise.
55092         Reported by Simon Josefsson.
55093
55094 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55095
55096         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55097         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55098
55099 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55100
55101         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55102
55103         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55104
55105         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55106
55107         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55108         declarations.
55109         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55110
55111         * m4/inet_pton.m4: Don't check for header files.
55112
55113         * m4/inet_ntop.m4: Don't check for header files.
55114
55115 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55116
55117         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55118         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55119         trigger for cygwin).
55120         Reported by Bruno Haible  <bruno@clisp.org>.
55121
55122 2008-04-28  Bruno Haible  <bruno@clisp.org>
55123
55124         * doc/posix-functions/strdup.texi: Mention mingw problem.
55125
55126 2008-04-27  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/stat-time-tests (Depends-on): Add sleep.
55129         * tests/test-stat-time.c (force_unlink): New function.
55130         (cleanup): Use it.
55131         (test_mtime): Remove the ctime related tests.
55132         (test_ctime): New function, containing the ctime related tests.
55133         (main): Call test_ctime, except on native Windows platforms.
55134
55135 2008-04-27  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/rpmatch.c (rpmatch): Add some comments.
55138         Reported by James Youngman <jay@gnu.org>.
55139
55140 2008-04-27  Bruno Haible  <bruno@clisp.org>
55141
55142         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55143         quiet NaNs.
55144
55145 2008-04-27  Bruno Haible  <bruno@clisp.org>
55146
55147         Make test-yesno.sh work on mingw.
55148         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55149         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55150         (main): Set stdin to binary mode.
55151         * modules/yesno-tests (Depends-on): Add binary-io.
55152
55153 2008-04-27  Bruno Haible  <bruno@clisp.org>
55154
55155         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55156         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55157         argument that lie outside the IEEE 854 domain.
55158         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55159         (gl_ISFINITE): Use it.
55160         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55161
55162 2008-04-27  Bruno Haible  <bruno@clisp.org>
55163
55164         Allow local renaming in config.h.
55165         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55166
55167 2008-04-27  Bruno Haible  <bruno@clisp.org>
55168
55169         * lib/memchr.c (__memchr): Change type of 'i'.
55170         * lib/memchr2.c (memchr2): Likewise.
55171
55172 2008-04-26  Eric Blake  <ebb9@byu.net>
55173         and Bruno Haible  <bruno@clisp.org>
55174
55175         Optimize and test memrchr.
55176         * modules/memrchr (Depends-on): Add intprops.
55177         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55178         * modules/memrchr-tests: New file.
55179         * tests/test-memrchr.c: New file.
55180
55181 2008-04-26  Bruno Haible  <bruno@clisp.org>
55182
55183         Add tentative support for DragonFly BSD.
55184         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55185         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55186         fp.
55187         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55188         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55189         * lib/fpurge.c (fpurge): Likewise.
55190         * lib/freadable.c (freaadable): Likewise.
55191         * lib/freadahead.c (freadahead): Likewise.
55192         * lib/freading.c (freading): Likewise.
55193         * lib/freadptr.c (freadptr): Likewise.
55194         * lib/freadseek.c (freadptrinc): Likewise.
55195         * lib/fseeko.c (fseeko): Likewise.
55196         * lib/fseterr.c (fseterr): Likewise.
55197         * lib/fwritable.c (fwritable): Likewise.
55198         * lib/fwriting.c (fwriting): Likewise.
55199
55200 2008-04-26  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/stdio-impl.h: New file.
55203         * lib/fbufmode.c: Include stdio-impl.h.
55204         (fbufmode): Use fp_, remove redundant #defines.
55205         * lib/fflush.c: Include stdio-impl.h.
55206         (clear_ungetc_buffer): Remove redundant #defines.
55207         * lib/fpurge.c: Include stdio-impl.h.
55208         (fpurge): Remove redundant #defines.
55209         * lib/freadable.c: Include stdio-impl.h.
55210         (freadable): Remove redundant #defines.
55211         * lib/freadahead.c: Include stdio-impl.h.
55212         (freadahead): Remove redundant #defines.
55213         * lib/freading.c: Include stdio-impl.h.
55214         (freading): Remove redundant #defines.
55215         * lib/freadptr.c: Include stdio-impl.h.
55216         (freadptr): Remove redundant #defines.
55217         * lib/freadseek.c: Include stdio-impl.h.
55218         (freadptrinc): Remove redundant #defines.
55219         * lib/fseeko.c: Include stdio-impl.h.
55220         (rpl_fseeko): Remove redundant #defines.
55221         * lib/fseterr.c: Include stdio-impl.h.
55222         (fseterr): Remove redundant #defines.
55223         * lib/fwritable.c: Include stdio-impl.h.
55224         (fwritable: Remove redundant #defines.
55225         * lib/fwriting.c: Include stdio-impl.h.
55226         (fwriting): Remove redundant #defines.
55227         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55228         * modules/fflush (Files): Likewise.
55229         * modules/fpurge (Files): Likewise.
55230         * modules/freadable (Files): Likewise.
55231         * modules/freadahead (Files): Likewise.
55232         * modules/freading (Files): Likewise.
55233         * modules/freadptr (Files): Likewise.
55234         * modules/freadseek (Files): Likewise.
55235         * modules/fseeko (Files): Likewise.
55236         * modules/fseterr (Files): Likewise.
55237         * modules/fwritable (Files): Likewise.
55238         * modules/fwriting (Files): Likewise.
55239
55240 2008-04-26  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55243         restore_seek_optimization, update_fpos_cache): New functions, extracted
55244         from rpl_fflush.
55245         (rpl_fflush): Use them.
55246         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55247         (gl_REPLACE_FFLUSH): Use it.
55248
55249 2008-04-26  Bruno Haible  <bruno@clisp.org>
55250
55251         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55252         on Solaris.
55253         * tests/test-xstrtoimax.sh: Likewise.
55254         * tests/test-xstrtoumax.sh: Likewise.
55255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55256
55257 2008-04-26  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/memchr-tests: New file.
55260         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55261
55262 2008-04-26  Eric Blake  <ebb9@byu.net>
55263             Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/memchr.c: Include intprops.h.
55266         (__memchr): Optimize parallel detection of matching bytes. Rename local
55267         variables. Add explanatory comments.
55268
55269 2008-04-26  Bruno Haible  <bruno@clisp.org>
55270
55271         Fix module 'memchr', broken since 2000-10-28.
55272         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55273
55274 2008-04-26  Bruno Haible  <bruno@clisp.org>
55275
55276         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55277         comments.
55278
55279 2008-04-25  Eric Blake  <ebb9@byu.net>
55280
55281         Use native fstatat on cygwin 1.7.0.
55282         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55283         first.
55284
55285 2008-04-23  Eric Blake  <ebb9@byu.net>
55286
55287         Improve memchr2 performance.
55288         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55289         NUL bytes.
55290         * modules/memchr2 (Depends-on): Use intprops.h.
55291
55292 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55293
55294         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55295         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55296         <blp@cs.stanford.edu>.
55297
55298 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55299
55300         * lib/arpa_inet.in.h: New file.
55301
55302         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55303         (Makefile.am): Sed in substitute header file.
55304
55305         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55306         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55307
55308         * modules/inet_ntop (configure.ac): Use
55309         gl_ARPA_INET_MODULE_INDICATOR.
55310
55311         * modules/inet_pton (configure.ac): Use
55312         gl_ARPA_INET_MODULE_INDICATOR.
55313
55314 2008-04-22  Jim Meyering  <meyering@redhat.com>
55315
55316         * modules/verify (License): Re-license as LGPLv2+.
55317
55318 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55319
55320         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55321         parameter to void* as per POSIX standard (MinGW uses char*).
55322
55323 2008-04-21  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55326         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55327         Define to replacements if REPLACE_ISWCNTRL is 1.
55328         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55329         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55330         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55331         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55332         what it fixes.
55333         * doc/posix-functions/iswalpha.texi: Likewise.
55334         * doc/posix-functions/iswblank.texi: Likewise.
55335         * doc/posix-functions/iswcntrl.texi: Likewise.
55336         * doc/posix-functions/iswdigit.texi: Likewise.
55337         * doc/posix-functions/iswgraph.texi: Likewise.
55338         * doc/posix-functions/iswlower.texi: Likewise.
55339         * doc/posix-functions/iswprint.texi: Likewise.
55340         * doc/posix-functions/iswpunct.texi: Likewise.
55341         * doc/posix-functions/iswspace.texi: Likewise.
55342         * doc/posix-functions/iswupper.texi: Likewise.
55343         * doc/posix-functions/iswxdigit.texi: Likewise.
55344         Reported by Alain Guibert.
55345
55346 2008-04-21  Bruno Haible  <bruno@clisp.org>
55347
55348         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55349         Patch by Alain Guibert.
55350
55351 2008-04-21  Bruno Haible  <bruno@clisp.org>
55352
55353         Fix test failures on mingw.
55354         * tests/test-xstrtol.c (print_no_progname): New function.
55355         (main): Install it in error_print_progname hook.
55356         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55357         * tests/test-xstrtoimax.sh: Likewise.
55358         * tests/test-xstrtoumax.sh: Likewise.
55359
55360 2008-04-21  Bruno Haible  <bruno@clisp.org>
55361
55362         Fix test failure on mingw.
55363         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55364
55365 2008-04-21  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55368         Actually assign a value.
55369
55370 2008-04-20  Bruno Haible  <bruno@clisp.org>
55371
55372         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55373         take 2.
55374         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55375         'canonicalize-lgpl' module is also used.
55376         * lib/canonicalize-lgpl.c: Undo last change.
55377         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55378
55379 2008-04-20  Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55382         config.h. Provide _mkdir based fallback for mingw.
55383         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55384         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55385         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55386         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55387         rather than defining mkdir in config.h.
55388         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55389         (gl_SYS_STAT_H_DEFAULTS): New macro.
55390         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55391         HAVE_IO_H any more.
55392         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55393         HAVE_DECL_MKDIR and HAVE_IO_H.
55394
55395 2008-04-20  Bruno Haible  <bruno@clisp.org>
55396
55397         * lib/isapipe.c: Port to native Windows platforms.
55398
55399 2008-04-20  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55402
55403 2008-04-21  Eric Blake  <ebb9@byu.net>
55404
55405         Work around preprocessors that don't handle UINTMAX_MAX.
55406         * lib/memchr2.c (memchr2): Avoid embedded #if.
55407         Reported by Alain Guibert, fix suggested by Bruno Haible.
55408
55409 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55410
55411         * doc/posix-functions/strftime.texi (strftime): Explain better
55412         Windows incompatibility.  Suggested by Micah Cowan
55413         <micah@cowan.name>.
55414
55415 2008-04-20  Bruno Haible  <bruno@clisp.org>
55416
55417         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55418         unistr/u8-mblen.
55419
55420 2008-04-20  Bruno Haible  <bruno@clisp.org>
55421
55422         Fix test failure on platforms with non-GNU iconv.
55423         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55424         (U_TO_U8): Use it, rather than u16_to_u8.
55425         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55426         units at the end of the input string.
55427         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55428
55429 2008-04-20  Bruno Haible  <bruno@clisp.org>
55430
55431         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55432         when the resulting length is 0.
55433         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55434
55435 2008-04-20  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55438         works.
55439         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55440
55441 2008-04-20  Bruno Haible  <bruno@clisp.org>
55442
55443         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55444         * modules/tsearch-tests (configure.ac): Test for initstate function.
55445
55446 2008-04-20  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55449         for nlink_t if missing.
55450         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55451
55452 2008-04-19  Bruno Haible  <bruno@clisp.org>
55453
55454         Work around snprintf bug on Linux libc5.
55455         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55456         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55457         gl_SNPRINTF_SIZE1.
55458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55459         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55460         that test failed.
55461         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55462         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55463         * modules/snprintf (Files): Add m4/printf.m4.
55464         * modules/vsnprintf (Files): Likewise.
55465         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55466         * doc/posix-functions/vsnprintf.texi: Likewise.
55467
55468 2008-04-19  Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55471         from 0.0058 to less than 10^-7.
55472
55473 2008-04-19  Bruno Haible  <bruno@clisp.org>
55474
55475         Fix rounding when a precision is given.
55476         * lib/vasnprintf.c (is_borderline): New function.
55477         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55478         9...9x.
55479         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55480         %e, %g.
55481         * tests/test-vasprintf-posix.c (test_function): Likewise.
55482         * tests/test-snprintf-posix.h (test_function): Likewise.
55483         * tests/test-sprintf-posix.h (test_function): Likewise.
55484         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55485         * tests/test-printf-posix.h (test_function): Likewise.
55486         * tests/test-printf-posix.output: Update.
55487         Reported by John Darrington <john@darrington.wattle.id.au> via
55488         Ben Pfaff <blp@cs.stanford.edu>.
55489
55490 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55491
55492         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55493         Suggested by Bruno Haible <bruno@clisp.org>.
55494
55495 2008-04-17  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55498         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55499         implementation.
55500         Patch by Bruce Merry <bmerry@gmail.com>.
55501
55502 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55503
55504         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55505         doesn't work under Windows.
55506
55507 2008-04-16  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55510         New macros.
55511         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55512         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55513         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55514         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55515         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55516         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55517         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55518         macros.
55519         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55520         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55521         Northern Sotho, Uighur.
55522
55523 2008-04-16  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55526         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55527         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55528         Reported by Daniel Bergström <daniel@octocode.com>.
55529
55530 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55531             Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55534         function.
55535         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55536         New functions, mostly extracted from gl_locale_name_default.
55537         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55538
55539 2008-04-16  Eric Blake  <ebb9@byu.net>
55540
55541         Adjust strtod detection to catch glibc 2.7 bug.
55542         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55543         Reported by John Gatewood Ham.
55544
55545 2008-04-16  Bruno Haible  <bruno@clisp.org>
55546
55547         Add tentative support for Linux libc5.
55548         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55549         * lib/fpurge.c (fpurge): Likewise.
55550         * lib/freadable.c (freadable): Likewise.
55551         * lib/freadahead.c (freadahead): Likewise.
55552         * lib/freading.c (freading): Likewise.
55553         * lib/freadptr.c (freadptr): Likewise.
55554         * lib/freadseek.c (freadptrinc): Likewise.
55555         * lib/fseeko.c (rpl_fseeko): Likewise.
55556         * lib/fseterr.c (fseterr): Likewise.
55557         * lib/fwritable.c (fwritable): Likewise.
55558         * lib/fwriting.c (fwriting): Likewise.
55559         Reported by Alain Guibert <alguibert+bts@free.fr>.
55560
55561 2008-04-15  Bruno Haible  <bruno@clisp.org>
55562
55563         * modules/mathl (configure.ac): Define module indicator.
55564
55565 2008-04-15  Bruno Haible  <bruno@clisp.org>
55566
55567         * lib/logl.c (logl): Remove unused variables.
55568
55569 2008-04-15  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55572         fails.
55573
55574 2008-04-15  Bruno Haible  <bruno@clisp.org>
55575
55576         * lib/trim.c (trim2): Fix argument of isspace() macro.
55577
55578 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55579
55580         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55581         to 0.
55582         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55583
55584 2008-04-14  Bruno Haible  <bruno@clisp.org>
55585
55586         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55587         AC_LANG_PROGRAM argument.
55588         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55589         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55591         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55592         * m4/math_h.m4 (gl_MATH_H): Likewise.
55593         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55595         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55596         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55597         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55598         * m4/regex.m4 (gl_REGEX): Likewise.
55599         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55600         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55602         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55604         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55605         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55607
55608 2008-04-14  Jim Meyering  <meyering@redhat.com>
55609
55610         test-strtod: fix typos: s/abs/fabs/
55611         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55612
55613 2008-04-13  Bruno Haible  <bruno@clisp.org>
55614
55615         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55616         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55617         module is also used and while not building the reloc-wrapper.
55618
55619 2008-04-13  Bruno Haible  <bruno@clisp.org>
55620
55621         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55622
55623 2008-04-13  Bruno Haible  <bruno@clisp.org>
55624
55625         Fix AIX compilation failure introduced on 2008-04-02.
55626         * tests/test-frexp.c (exp): Undefine before redefining.
55627         * tests/test-frexpl.c (exp): Likewise.
55628
55629 2008-04-13  Bruno Haible  <bruno@clisp.org>
55630
55631         Work around a HP-UX stdio bug.
55632         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55633         * tests/test-ftello.c (main): Likewise.
55634         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55635         * doc/posix-functions/ftello.texi: Likewise.
55636
55637 2008-04-13  Bruno Haible  <bruno@clisp.org>
55638
55639         Make test-signbit pass on HP-UX/hppa.
55640         * tests/test-signbit.c (minus_zerol): New variable.
55641         (test_signbitl): Use it.
55642
55643 2008-04-13  Bruno Haible  <bruno@clisp.org>
55644
55645         Make truncl work on OSF/1 4.0.
55646         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55647         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55648         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55650         HAVE_DECL_TRUNCL.
55651         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55652         HAVE_DECL_TRUNCL.
55653         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55654
55655 2008-04-13  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55658
55659 2008-04-13  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55662         expression, so as to avoid HP-UX 11 cc compiler bug.
55663
55664 2008-04-13  Bruno Haible  <bruno@clisp.org>
55665
55666         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55667
55668 2008-04-13  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/git-merge-changelog.c: Remove empty declaration outside of
55671         functions.
55672
55673 2008-04-13  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55676
55677 2008-04-13  Bruno Haible  <bruno@clisp.org>
55678
55679         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55680         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55681         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55682         also if it exists but lacks definitions of the SHUT_* macros.
55683         * modules/sys_socket (Description): Update.
55684         Reported by Elbert Pol <e.pol@chello.nl>.
55685
55686 2008-04-13  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/localcharset.c (OS2): Don't redefine if already defined.
55689         Reported by Elbert Pol <e.pol@chello.nl>.
55690
55691 2008-04-13  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/binary-io.h [__EMX__]: Include <io.h>.
55694         Reported by Elbert Pol <e.pol@chello.nl>.
55695
55696 2008-04-12  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/fpucw.h: Enable the definitions also for x86_64.
55699         Needed for NetBSD/x86_64.
55700         Reported by Thomas Klausner <tk@giga.or.at>.
55701
55702 2008-04-12  Bruno Haible  <bruno@clisp.org>
55703
55704         * tests/test-strtod.c: Include isnand.h.
55705         (main): Use isnand instead of isnan.
55706         Reported by Jim Meyering.
55707
55708 2008-04-12  Bruno Haible  <bruno@clisp.org>
55709
55710         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55711         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55712
55713 2008-04-12  Jim Meyering  <meyering@redhat.com>
55714
55715         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55716
55717 2008-04-12  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55720         Reported by Elbert Pol <e.pol@chello.nl>.
55721
55722 2008-04-12  Eric Blake  <ebb9@byu.net>
55723
55724         Work around Solaris 10 math.h bug.
55725         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55726         (gl_MATH_H_DEFAULTS): Set up default.
55727         * modules/math (Makefile.am): Replace new indicators.
55728         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55729         * tests/test-math.c (main): Test this.
55730         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55731         * doc/posix-headers/math.texi (math.h): Mention bug.
55732         Reported by Nelson H. F. Beebe and Jim Meyering.
55733
55734 2008-04-11  Bruno Haible  <bruno@clisp.org>
55735
55736         Adapt to future versions of Apple GCC.
55737         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55738         Reported by Peter O'Gorman <peter@pogma.com>.
55739
55740 2008-04-11  Bruno Haible  <bruno@clisp.org>
55741
55742         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55743
55744 2008-04-11  Bruno Haible  <bruno@clisp.org>
55745
55746         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55747
55748         * modules/getaddrinfo-tests (Makefile.am): Define
55749         test_getaddrinfo_LDADD.
55750
55751 2008-04-11  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55754         (init): Fix syntax error.
55755         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55756         is declared.
55757
55758 2008-04-11  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55761         * modules/glob (Depends-on): Add stdbool.
55762
55763 2008-04-11  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/trim.c: Include <string.h>.
55766
55767 2008-04-11  Eric Blake  <ebb9@byu.net>
55768
55769         Avoid compile failure on OS/2.
55770         * lib/regex_internal.h (internal_function): Disable optimization
55771         on OS/2 (__EMX__), where it caused compiler error.
55772         Reported by Elbert Pol.
55773
55774 2008-04-11  Bruno Haible  <bruno@clisp.org>
55775
55776         Flush the standard error stream before aborting. Needed on mingw.
55777         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55778         * tests/test-array_list.c (ASSERT): Likewise.
55779         * tests/test-array_oset.c (ASSERT): Likewise.
55780         * tests/test-avltree_list.c (ASSERT): Likewise.
55781         * tests/test-avltree_oset.c (ASSERT): Likewise.
55782         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55783         * tests/test-binary-io.c (ASSERT): Likewise.
55784         * tests/test-byteswap.c (ASSERT): Likewise.
55785         * tests/test-c-ctype.c (ASSERT): Likewise.
55786         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55787         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55788         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55789         * tests/test-c-strstr.c (ASSERT): Likewise.
55790         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55791         * tests/test-canonicalize.c (ASSERT): Likewise.
55792         * tests/test-carray_list.c (ASSERT): Likewise.
55793         * tests/test-ceilf1.c (ASSERT): Likewise.
55794         * tests/test-ceilf2.c (ASSERT): Likewise.
55795         * tests/test-ceill.c (ASSERT): Likewise.
55796         * tests/test-count-one-bits.c (ASSERT): Likewise.
55797         * tests/test-fbufmode.c (ASSERT): Likewise.
55798         * tests/test-fflush2.c (ASSERT): Likewise.
55799         * tests/test-floorf1.c (ASSERT): Likewise.
55800         * tests/test-floorf2.c (ASSERT): Likewise.
55801         * tests/test-floorl.c (ASSERT): Likewise.
55802         * tests/test-fopen.c (ASSERT): Likewise.
55803         * tests/test-fpending.c (ASSERT): Likewise.
55804         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55805         * tests/test-fpurge.c (ASSERT): Likewise.
55806         * tests/test-freadable.c (ASSERT): Likewise.
55807         * tests/test-freadahead.c (ASSERT): Likewise.
55808         * tests/test-freading.c (ASSERT): Likewise.
55809         * tests/test-freadptr.c (ASSERT): Likewise.
55810         * tests/test-freadptr2.c (ASSERT): Likewise.
55811         * tests/test-freadseek.c (ASSERT): Likewise.
55812         * tests/test-freopen.c (ASSERT): Likewise.
55813         * tests/test-frexp.c (ASSERT): Likewise.
55814         * tests/test-frexpl.c (ASSERT): Likewise.
55815         * tests/test-fseek.c (ASSERT): Likewise.
55816         * tests/test-fseeko.c (ASSERT): Likewise.
55817         * tests/test-fstrcmp.c (ASSERT): Likewise.
55818         * tests/test-ftell.c (ASSERT): Likewise.
55819         * tests/test-ftello.c (ASSERT): Likewise.
55820         * tests/test-func.c (ASSERT): Likewise.
55821         * tests/test-fwritable.c (ASSERT): Likewise.
55822         * tests/test-fwriting.c (ASSERT): Likewise.
55823         * tests/test-getdelim.c (ASSERT): Likewise.
55824         * tests/test-getline.c (ASSERT): Likewise.
55825         * tests/test-i-ring.c (ASSERT): Likewise.
55826         * tests/test-iconv-utf.c (ASSERT): Likewise.
55827         * tests/test-iconv.c (ASSERT): Likewise.
55828         * tests/test-isfinite.c (ASSERT): Likewise.
55829         * tests/test-isnand.c (ASSERT): Likewise.
55830         * tests/test-isnanf.c (ASSERT): Likewise.
55831         * tests/test-isnanl.h (ASSERT): Likewise.
55832         * tests/test-ldexpl.c (ASSERT): Likewise.
55833         * tests/test-linked_list.c (ASSERT): Likewise.
55834         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55835         * tests/test-localename.c (ASSERT): Likewise.
55836         * tests/test-lseek.c (ASSERT): Likewise.
55837         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55838         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55839         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55840         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55841         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55842         * tests/test-mbschr.c (ASSERT): Likewise.
55843         * tests/test-mbscspn.c (ASSERT): Likewise.
55844         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55845         * tests/test-mbspbrk.c (ASSERT): Likewise.
55846         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55847         * tests/test-mbsrchr.c (ASSERT): Likewise.
55848         * tests/test-mbsspn.c (ASSERT): Likewise.
55849         * tests/test-mbsstr1.c (ASSERT): Likewise.
55850         * tests/test-mbsstr2.c (ASSERT): Likewise.
55851         * tests/test-mbsstr3.c (ASSERT): Likewise.
55852         * tests/test-memchr2.c (ASSERT): Likewise.
55853         * tests/test-memmem.c (ASSERT): Likewise.
55854         * tests/test-open.c (ASSERT): Likewise.
55855         * tests/test-printf-frexp.c (ASSERT): Likewise.
55856         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55857         * tests/test-printf-posix.c (ASSERT): Likewise.
55858         * tests/test-quotearg.c (ASSERT): Likewise.
55859         * tests/test-rbtree_list.c (ASSERT): Likewise.
55860         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55861         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55862         * tests/test-round1.c (ASSERT): Likewise.
55863         * tests/test-roundf1.c (ASSERT): Likewise.
55864         * tests/test-roundl.c (ASSERT): Likewise.
55865         * tests/test-signbit.c (ASSERT): Likewise.
55866         * tests/test-sleep.c (ASSERT): Likewise.
55867         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55868         * tests/test-snprintf.c (ASSERT): Likewise.
55869         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55870         * tests/test-stat-time.c (ASSERT): Likewise.
55871         * tests/test-strcasestr.c (ASSERT): Likewise.
55872         * tests/test-strerror.c (ASSERT): Likewise.
55873         * tests/test-striconv.c (ASSERT): Likewise.
55874         * tests/test-striconveh.c (ASSERT): Likewise.
55875         * tests/test-striconveha.c (ASSERT): Likewise.
55876         * tests/test-strsignal.c (ASSERT): Likewise.
55877         * tests/test-strstr.c (ASSERT): Likewise.
55878         * tests/test-strtod.c (ASSERT): Likewise.
55879         * tests/test-trunc1.c (ASSERT): Likewise.
55880         * tests/test-trunc2.c (ASSERT): Likewise.
55881         * tests/test-truncf1.c (ASSERT): Likewise.
55882         * tests/test-truncf2.c (ASSERT): Likewise.
55883         * tests/test-truncl.c (ASSERT): Likewise.
55884         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55885         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55886         * tests/test-vasnprintf.c (ASSERT): Likewise.
55887         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55888         * tests/test-vasprintf.c (ASSERT): Likewise.
55889         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55890         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55891         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55892         * tests/test-vsnprintf.c (ASSERT): Likewise.
55893         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55894         * tests/test-wcwidth.c (ASSERT): Likewise.
55895         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55896         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55897         * tests/test-xvasprintf.c (ASSERT): Likewise.
55898         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55899         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55900         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55901         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55902         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55903         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55904         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55905         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55906         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55907         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55908         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55909         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55910         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55911         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55912         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55913         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55914         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55915         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55916         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55917         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55918         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55919         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55920         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55921         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55922         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55923         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55924         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55925         * tests/unictype/test-combining.c (ASSERT): Likewise.
55926         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55927         * tests/unictype/test-digit.c (ASSERT): Likewise.
55928         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55929         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55930         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55931         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55932         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55933         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55934         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55935         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55936         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55937         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55938         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55939         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55940         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55941         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55942         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55943         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55944         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55945         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55946         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55947         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55948         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55949         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55950         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55951         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55952         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55953         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55954         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55955         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55956         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55957         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55958         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55959         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55960         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55961         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55962         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55963         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55964         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55965         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55966         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55967         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55968         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55969         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55970         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55971         Reported by Eric Blake.
55972
55973 2008-04-11  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/wchar.in.h: Tweak comment.
55976
55977 2008-04-11  Bruno Haible  <bruno@clisp.org>
55978
55979         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55980         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55981         gl_COMMON.
55982         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55983
55984 2008-04-11  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55987
55988 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55989
55990         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55991         of attempting to use non-existing /dev/*random.  Based on patch
55992         from Adam Strzelecki <ono@java.pl> in
55993         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55994
55995 2008-04-08  Bruno Haible  <bruno@clisp.org>
55996
55997         Add tentative support for emx+gcc.
55998         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55999         * lib/fpurge.c (fpurge): Likewise.
56000         * lib/freadable.c (freadable): Likewise.
56001         * lib/freadahead.c (freadahead): Likewise.
56002         * lib/freading.c (freading): Likewise.
56003         * lib/freadptr.c (freadptr): Likewise.
56004         * lib/freadseek.c (freadptrinc): Likewise.
56005         * lib/fseeko.c (rpl_fseeko): Likewise.
56006         * lib/fseterr.c (fseterr): Likewise.
56007         * lib/fwritable.c (fwritable): Likewise.
56008         * lib/fwriting.c (fwriting): Likewise.
56009         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56010
56011 2008-04-09  Eric Blake  <ebb9@byu.net>
56012
56013         Avoid some autoconf warnings.
56014         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56015         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56016         * m4/afs.m4 (gl_AFS): Likewise.
56017         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56018         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56019         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56020         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56021         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56022         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56023         (AC_CHECK_DECLS_ONCE): Likewise.
56024         Rename file...
56025         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56026         gnulib-tool requires autoconf 2.59 or better.
56027         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56028
56029 2008-04-08  Eric Blake  <ebb9@byu.net>
56030
56031         Use 'git describe --match' if present (added in git 1.5.5).
56032         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56033         if possible.
56034
56035 2008-04-08  Bruno Haible  <bruno@clisp.org>
56036
56037         Add tentative support for OpenServer.
56038         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56039         _ptr, _cnt.
56040         * lib/fpurge.c (fpurge): Likewise.
56041         * lib/freadable.c (freadable): Likewise.
56042         * lib/freadahead.c (freadahead): Likewise.
56043         * lib/freading.c (freading): Likewise.
56044         * lib/freadptr.c (freadptr): Likewise.
56045         * lib/freadseek.c (freadptrinc): Likewise.
56046         * lib/fseeko.c (rpl_fseeko): Likewise.
56047         * lib/fseterr.c (fseterr): Likewise.
56048         * lib/fwritable.c (fwritable): Likewise.
56049         * lib/fwriting.c (fwriting): Likewise.
56050         Reported by Roger Cornelius <rac@tenzing.org> and
56051         Brian K. White <brian@aljex.com>.
56052
56053 2008-04-06  Jim Meyering  <meyering@redhat.com>
56054
56055         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56056
56057 2008-04-06  Bruno Haible  <bruno@clisp.org>
56058
56059         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56060         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56061         * tests/test-printf-posix.sh: Likewise.
56062         * tests/test-vfprintf-posix.sh: Likewise.
56063         * tests/test-vprintf-posix.sh: Likewise.
56064         * tests/test-xprintf-posix.sh: Likewise.
56065
56066 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56067
56068         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56069         hide error from 'ls', needed on OS/2.
56070         Report by Elbert Pol <elbert.pol@gmail.com>.
56071
56072 2008-04-04  Eric Blake  <ebb9@byu.net>
56073
56074         Make test-fseeko.c failures meaningful.
56075         * tests/test-fseeko.c: Print line number on failure.
56076         * tests/test-fseek.c: Likewise.
56077         Reported by Nelson H. F. Beebe.
56078
56079         Improve strtod bug detection check.
56080         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56081         required for Solaris 10.
56082         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56083
56084 2008-04-04  Bruno Haible  <bruno@clisp.org>
56085
56086         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56087         by m4/setenv.m4.
56088
56089 2008-04-03  Eric Blake  <ebb9@byu.net>
56090
56091         Ensure sane .version contents.
56092         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56093         version string.
56094         * build-aux/git-version-gen: Improve documentation.
56095
56096         Make GNU make output nicer.
56097         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56098         MAKECMDGOALS to enforce message for all command line targets.  Set
56099         srcdir for use in maint.mk.
56100
56101         Another maintainer tweak.
56102         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56103         a target that regenerates version.
56104
56105 2008-04-03  Jim Meyering  <meyering@redhat.com>
56106
56107         vc-list-files: don't cause coreutils "make po-check" failure
56108         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56109
56110 2008-04-03  Eric Blake  <ebb9@byu.net>
56111
56112         Allow VPATH usage of vc-list-files.
56113         * build-aux/vc-list-files (scriptversion): Add timestamp.
56114         (options): Add --help, --version, -C.
56115         (CVS): Support installed cvsu.
56116
56117 2008-04-02  Bruno Haible  <bruno@clisp.org>
56118
56119         Avoid some "statement with no effect" warnings from gcc.
56120         * tests/test-wctype.c (main): Explicitly ignore unused values.
56121         Reported by Jim Meyering.
56122
56123 2008-04-02  Jim Meyering  <meyering@redhat.com>
56124
56125         Avoid some warnings from "gcc -Wshadow".
56126         * tests/test-frexp.c (exp): Define to a different identifier.
56127         * tests/test-frexpl.c (exp): Likewise.
56128
56129 2008-04-03  Jim Meyering  <meyering@redhat.com>
56130
56131         bootstrap: remove dangling *.[ch] symlinks from lib
56132         * build-aux/bootstrap [dangling symlink removal]: Move find's
56133         -depth option to precede all others, to avoid a warning.
56134         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56135
56136 2008-04-02  Bruno Haible  <bruno@clisp.org>
56137
56138         Avoid some warnings from "gcc -Wshadow".
56139         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56140         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56141         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56142         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56143         Reported by Jim Meyering.
56144
56145 2008-04-01  Bruno Haible  <bruno@clisp.org>
56146
56147         Fix test to work on IRIX 6.5 with cc.
56148         * tests/test-math.c (numeric_equal): New function.
56149         (main): Use it.
56150
56151 2008-04-01  Bruno Haible  <bruno@clisp.org>
56152
56153         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56154
56155 2008-04-01  Bruno Haible  <bruno@clisp.org>
56156
56157         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56158         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56159         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56160         (Depends-on): Remove math.
56161
56162         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56163         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56164         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56165         (Depends-on): Remove math.
56166
56167         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56168         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56169         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56170         (Depends-on): Remove math.
56171         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56172         (Depends-on): Remove math.
56173
56174         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56175         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56176         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56177         (Depends-on): Remove math.
56178         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56179         (Depends-on): Remove math.
56180
56181         * tests/test-round1.c: Include nan.h.
56182         (main): Use NaNd instead of NAN.
56183         * modules/round-tests (Files): Add tests/nan.h.
56184
56185         * tests/test-trunc1.c: Include nan.h.
56186         (main): Use NaNd instead of NAN.
56187         * modules/trunc-tests (Files): Add tests/nan.h.
56188
56189         * tests/test-roundf1.c: Include nan.h.
56190         (main): Use NaNf instead of NAN.
56191         * modules/roundf-tests (Files): Add tests/nan.h.
56192
56193         * tests/test-truncf1.c: Include nan.h.
56194         (main): Use NaNf instead of NAN.
56195         * modules/truncf-tests (Files): Add tests/nan.h.
56196
56197         * tests/test-ceilf1.c: Include nan.h.
56198         (main): Use NaNf instead of NAN.
56199         * modules/ceilf-tests (Files): Add tests/nan.h.
56200
56201         * tests/test-floorf1.c: Include nan.h.
56202         (main): Use NaNf instead of NAN.
56203         * modules/floorf-tests (Files): Add tests/nan.h.
56204
56205         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56206         (main): Use NaNf instead of NAN.
56207         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56208
56209         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56210         (main): Use NaNd instead of NAN.
56211         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56212
56213         * tests/test-frexp.c: Include nan.h.
56214         (main): Use NaNd instead of NAN.
56215         * modules/frexp-tests (Files): Add tests/nan.h.
56216
56217         * lib/isnan.c: Don't include <math.h>.
56218         (FUNC): Don't use NAN macro.
56219         * modules/isnand-nolibm (Depends-on): Remove math.
56220         * modules/isnanf-nolibm (Depends-on): Remove math.
56221         * modules/isnanl (Depends-on): Remove math.
56222         * modules/isnanl-nolibm (Depends-on): Remove math.
56223
56224         * tests/nan.h: New file.
56225
56226 2008-04-01  Eric Blake  <ebb9@byu.net>
56227
56228         Fix typos.
56229         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56230         values to be the right type.
56231
56232         For now, cater to gnulib strtod inaccuracies.
56233         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56234         fractional results.  While not as nice from a QoI perspective, it
56235         is a quicker patch than correctly implementing decimal to binary
56236         rounding.
56237
56238 2008-03-31  Eric Blake  <ebb9@byu.net>
56239
56240         Guarantee a definition of NAN.
56241         * lib/math.in.h (NAN): Define if missing.
56242         * tests/test-math.c (main): Test it.
56243         * doc/posix-headers/math.texi (math.h): Document this.
56244         * lib/isnan.c (rpl_isnand): Use it.
56245         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56246         * tests/test-floorf1.c (NaN): Likewise.
56247         * tests/test-frexp.c (NaN): Likewise.
56248         * tests/test-isnand.c (NaN): Likewise.
56249         * tests/test-isnanf.c (NaN): Likewise.
56250         * tests/test-round1.c (NaN): Likewise.
56251         * tests/test-roundf1.c (NaN): Likewise.
56252         * tests/test-snprintf-posix.h (NaN): Likewise.
56253         * tests/test-sprintf-posix.h (NaN): Likewise.
56254         * tests/test-trunc1.c (NaN): Likewise.
56255         * tests/test-truncf1.c (NaN): Likewise.
56256         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56257         * tests/test-vasprintf-posix.c (NaN): Likewise.
56258         * modules/isnand-nolibm (Depends-on): Add math.
56259         * modules/isnanf-nolibm (Depends-on): Likewise.
56260         * modules/isnanl (Depends-on): Likewise.
56261         * modules/isnanl-nolibm (Depends-on): Likewise.
56262         * modules/snprintf-posix-tests (Depends-on): Likewise.
56263         * modules/sprintf-posix-tests (Depends-on): Likewise.
56264         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56265         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56266         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56267         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56268
56269 2008-03-31  Bruno Haible  <bruno@clisp.org>
56270
56271         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56272         * doc/posix-functions/strtod.texi: Likewise.
56273
56274 2008-03-31  Bruno Haible  <bruno@clisp.org>
56275
56276         * tests/test-strtod.c (main): Don't use C99 syntax.
56277
56278 2008-03-31  Bruno Haible  <bruno@clisp.org>
56279
56280         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56281         Reported by Eric Blake.
56282
56283 2008-03-31  Jim Meyering  <meyering@redhat.com>
56284
56285         Don't compare actual signbit return values.
56286         * tests/test-strtod.c (main): Rather, compare only their
56287         zero/non-zero nature.
56288
56289 2008-03-31  Eric Blake  <ebb9@byu.net>
56290
56291         More strtod documentation.
56292         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56293         failures as distinct bugs.
56294
56295 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56298         Problem reported by Erik Benada in
56299         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56300
56301 2008-03-30  Bruno Haible  <bruno@clisp.org>
56302
56303         * tests/test-strtod.c: Add comments about which assertion fails on which
56304         platform.
56305         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56306
56307 2008-03-30  Eric Blake  <ebb9@byu.net>
56308
56309         Test signbit behavior on zeros.
56310         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56311         (test_signbitd, test_signbitl): Likewise.
56312
56313         More strtod touchups.
56314         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56315         sign of negative underflow, for now.  Use .5, not .1.
56316         * doc/posix-functions/strtod.texi (strtod): Mention these
56317         limitations.
56318         Reported by Jim Meyering.
56319
56320 2008-03-30  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56323         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56324
56325 2008-03-30  Bruno Haible  <bruno@clisp.org>
56326
56327         Avoid failure when attempting to return empty iconv results on some
56328         platforms.
56329         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56330         allocation, don't report ENOMEM when the resulting string is empty.
56331
56332 2008-03-30  Bruno Haible  <bruno@clisp.org>
56333
56334         Fix buffer overrun.
56335         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56336         Don't consider the width for tmp_length. Check count against tmp_length
56337         before doing the padding. Ensure enough allocation during padding.
56338
56339 2008-03-30  Eric Blake  <ebb9@byu.net>
56340
56341         strtod touchups.
56342         * lib/strtod.c (strtod): Avoid compiler warnings.
56343         Reported by Jim Meyering.
56344
56345 2008-03-30  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56348         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56349         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56350         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56351         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56352         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56353         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56354         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56355
56356         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56357         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56358         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56359         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56360         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56361         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56362         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56363         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56364
56365         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56366         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56367         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56368         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56369         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56370         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56371         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56372         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56373
56374         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56375         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56376
56377         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56378         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56379
56380         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56381         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56382
56383         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56385         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56386
56387         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56389         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56390
56391         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56393         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56394
56395         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56397         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56398
56399         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56400         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56402         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56403         (Depends-on): Add EOVERFLOW.
56404         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56405         (Depends-on): Add EOVERFLOW.
56406         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56407         (Depends-on): Add EOVERFLOW.
56408         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56409         (Depends-on): Add EOVERFLOW.
56410         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56411         (Depends-on): Add EOVERFLOW.
56412         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56413         (Depends-on): Add EOVERFLOW.
56414         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56415         (Depends-on): Add EOVERFLOW.
56416         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56417         (Depends-on): Add EOVERFLOW.
56418
56419         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56421         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56422
56423         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56425         * modules/snprintf (Depends-on): Add EOVERFLOW.
56426
56427         * lib/poll.c (EOVERFLOW): Remove fallback.
56428         * modules/poll (Depends-on): Add EOVERFLOW.
56429
56430         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56431         * modules/getugroups (Depends-on): Add EOVERFLOW.
56432
56433         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56434         * modules/getdelim (Depends-on): Add EOVERFLOW.
56435
56436         * lib/ftell.c (EOVERFLOW): Remove fallback.
56437         * modules/ftell (Depends-on): Add EOVERFLOW.
56438
56439         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56441         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56442
56443         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56444
56445         * modules/EOVERFLOW-tests: New file.
56446         * tests/test-EOVERFLOW.c: New file.
56447
56448         * modules/EOVERFLOW: New file.
56449         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56450
56451 2008-03-30  Bruno Haible  <bruno@clisp.org>
56452
56453         Fix bug introduced on 2007-06-10.
56454         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56455         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56456
56457 2008-03-30  Bruno Haible  <bruno@clisp.org>
56458
56459         Improve freadseek's efficiency after ungetc.
56460         * lib/freadseek.c: Include freadahead.h.
56461         (freadptrinc): New function, extracted from freadseek.
56462         (freadseek): Use it in a loop. Use freadahead to determine the number
56463         of loop iterations.
56464         * modules/freadseek (Depends-on): Add freadahead.
56465         (configure.ac): Require AC_C_INLINE.
56466
56467 2008-03-30  Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/freadseek.c (freadseek): Don't ignore the return value of
56470         freadptr.
56471
56472 2008-03-29  Eric Blake  <ebb9@byu.net>
56473
56474         Add hex float support.
56475         * modules/strtod (Depends-on): Add c-ctype.
56476         (Link): Mention POW_LIB.
56477         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56478         whitespace between 'e' and exponent.
56479         * tests/test-strtod.c (main): Enable hex float tests.
56480         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56481         now provides.
56482
56483         Document various strtod bugs, with some fixes.
56484         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56485         "-0x", "inf", "nan", and hex constants.
56486         * doc/posix-functions/atof.texi (atof): Likewise.
56487         * modules/stdlib (Makefile.am): Support strtod.
56488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56489         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56490         detect additional strtod bugs.
56491         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56492         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56493         bool where appropriate.  Parse 'inf' and 'nan'.
56494         * tests/test-strtod.c: New file.
56495         * modules/strtod (Depends-on): Add stdbool, stdlib.
56496         (configure.ac): Turn on module indicator.
56497         * modules/strtod-tests: New module.
56498
56499 2008-03-29  Eric Blake  <ebb9@byu.net>
56500
56501         Fix ftell on mingw.
56502         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56503         * modules/ftell-tests (Depends-on): Add binary-io.
56504         * modules/ftello-tests (Depends-on): Likewise.
56505         * tests/test-ftell.c (main): Enhance test to cover behavior after
56506         ungetc.  Enforce binary mode.
56507         * tests/test-ftello.c (main): Likewise.
56508
56509         Pass test-freadseek on cygwin.
56510         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56511         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56512         ungetc buffer.
56513
56514         * tests/test-fflush2.c (main): Fix typo.
56515
56516 2008-03-29  Bruno Haible  <bruno@clisp.org>
56517
56518         * tests/test-fflush2.c (main): Temporarily disable the contents of
56519         this test.
56520         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56521         Reported by Eric Blake.
56522
56523 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56524
56525         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56526         (GC_SHA224_DIGEST_SIZE): Add.
56527
56528         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56529         (gc_hash_digest_length): Likewise.
56530         (gc_hash_buffer): Likewise.
56531
56532 2008-03-25  Bruno Haible  <bruno@clisp.org>
56533
56534         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56535         detail which gettext release to use.
56536         Reported by Simon Josefsson.
56537
56538 2008-03-26  Jim Meyering  <meyering@redhat.com>
56539
56540         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56541         * modules/gnumakefile (clean-GNUmakefile): Also, use
56542         test ... && ... || : syntax rather than if-then ... fi.
56543
56544         gnumakefile: Don't double-quote-expand $(VPATH) value.
56545         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56546
56547 2008-03-24  Eric Blake  <ebb9@byu.net>
56548
56549         Alter GNUmakefile to install into top directory.
56550         * modules/maintainer-makefile: Split, and add dependency...
56551         * modules/gnumakefile: to this new module.
56552         * build-aux/GNUmakefile: Move...
56553         * top/GNUmakefile: ...here.
56554         * build-aux/maint.mk: Move...
56555         * top/maint.mk: ...here.
56556         * MODULES.html.sh (Support for maintaining...): Document new
56557         module.
56558
56559 2008-03-23  Bruno Haible  <bruno@clisp.org>
56560
56561         * gnulib-tool: New options --vc-files, --no-vc-files.
56562         (func_usage): Document them.
56563         (vc_files): New variable.
56564         (func_import): Consider vc_files.
56565         (func_create_testdir): Set vc_files to empty.
56566         Suggested by Jim Meyering and Karl Berry.
56567
56568 2008-03-23  Bruno Haible  <bruno@clisp.org>
56569
56570         Fix regex compilation error on HP-UX 11.
56571         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56572         * modules/regex (Files): Add m4/mbstate_t.m4.
56573         Reported by Ton Voon <ton.voon@altinity.com>.
56574
56575 2008-03-23  Bruno Haible  <bruno@clisp.org>
56576
56577         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56578
56579 2008-03-23  Eric Blake  <ebb9@byu.net>
56580             Bruno Haible  <bruno@clisp.org>
56581
56582         Install files from top/ in the destination directory.
56583         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56584         augmentation also for the files from top/.
56585         (func_import, func_create_testdir): Rewrite file names:
56586         top/filename -> filename.
56587
56588 2008-03-23  Bruno Haible  <bruno@clisp.org>
56589
56590         Tweak "gnulib --version" output.
56591         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56592
56593 2008-03-23  Bruno Haible  <bruno@clisp.org>
56594
56595         Tweak "gnulib --version" output.
56596         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56597         rather than contents of ChangeLog, when possible.
56598
56599 2008-03-21  Eric Blake  <ebb9@byu.net>
56600
56601         More --version tweaks.
56602         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56603         date of last ChangeLog entry.
56604
56605 2008-03-21  Jim Meyering  <meyering@redhat.com>
56606
56607         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56608
56609 2008-03-20  Eric Blake  <ebb9@byu.net>
56610
56611         VPATH fix.
56612         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56613
56614 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56615
56616         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56617         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56618
56619 2008-03-20  Eric Blake  <ebb9@byu.net>
56620
56621         Sync GNUmakefile with coreutils.
56622         * build-aux/GNUmakefile (have-Makefile): Rename...
56623         (_have-Makefile): ...to this, for namespace consideration.
56624         (GNUmakefile.cfg): Include, if present.
56625         (_autoreconf): Define a default.
56626         (_is-dist-target): New rule for rebuilds to pick up intra-release
56627         version.
56628         (maint-cfg.mk): Rename...
56629         (cfg.mk): ...to this.
56630
56631 2008-03-18  Jim Meyering  <meyering@redhat.com>
56632
56633         New script and module: mktempd
56634         * MODULES.html.sh (maint+release support): Add mktempd.
56635         * build-aux/mktempd: New file.
56636         * modules/mktempd: New file.
56637
56638 2008-03-15  Jim Meyering  <meyering@redhat.com>
56639
56640         Undo last change.
56641         * lib/sha1.c, lib/md5.c: 63 != ~63.
56642         Reported by Andreas Schwab.
56643
56644         sha1.c, md5.c: Hoist a redundant expression.
56645         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56646         "ctx->buflen" only once, before calling *_process_block.
56647         * lib/md5.c (md5_process_bytes): Likewise.
56648
56649 2008-03-14  Eric Blake  <ebb9@byu.net>
56650
56651         Bump copyright year in files generated by gnulib-tool.
56652         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56653         gnulib-tool, rather than hard-coding it.
56654
56655         Fix 'gnulib-tool --version' output to work with git.
56656         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56657         (startup): ...here.
56658         (func_version): Use it to invoke git-version-gen, rather than
56659         relying on CVS keyword expansion.  Modernize wording.
56660         (cvsdatestamp, last_checkin_date, version): Kill unused
56661         variables.
56662
56663 2008-03-12  Jim Meyering  <meyering@redhat.com>
56664
56665         Recognize optional cast of the argument to free.
56666         * build-aux/useless-if-before-free: Update regexps.
56667
56668         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56669
56670 2008-03-11  Bruno Haible  <bruno@clisp.org>
56671
56672         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56673         by a single package.
56674         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56675         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56676         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56677         Reported by Sam Steingold <sds@gnu.org>.
56678
56679 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56680
56681         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56682         repositories.
56683
56684 2008-03-11  Bruno Haible  <bruno@clisp.org>
56685
56686         Avoid conflicts between local macro definitions.
56687         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56688         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56689
56690 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56691             Bruno Haible  <bruno@clisp.org>
56692
56693         Make va_copy work with some version of xlc on AIX 5.1.
56694         * lib/stdarg.in.h: New file.
56695         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56696         On AIX, use a <stdarg.h> file substitute.
56697         * modules/stdarg (Files): Add lib/stdarg.in.h.
56698         (Depends-on): Add include_next.
56699         (Makefile.am): Build a stdarg.h substitute if requested.
56700         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56701
56702 2008-03-10  Bruno Haible  <bruno@clisp.org>
56703
56704         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56706         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56707
56708 2008-03-10  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/stdlib (Depends-on): Add include_next, remove
56711         absolute-header.
56712
56713 2008-03-09  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/freadahead.h (freadahead): Document more precisely.
56716         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56717         the sum of both buffer sizes.
56718         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56719         * NEWS: Document the change.
56720
56721 2008-03-09  Bruno Haible  <bruno@clisp.org>
56722
56723         Extend freadptr to return also the buffer size.
56724         * lib/freadptr.h (freadptr): Add sizep argument.
56725         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56726         (freadptr): Add sizep argument. Determine buffer size like freadahead
56727         does.
56728         * tests/test-freadptr.c: Don't include freadahead.h.
56729         (main): Adapt for new calling convention of freadptr.
56730         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56731         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56732         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56733         tests/test-freadptr2.sh.
56734         (Depends): Remove freadahead.
56735         (TESTS): Add test-freadptr2.sh.
56736         (check_PROGRAMS): Add test-freadptr2.
56737
56738 2008-03-09  Bruno Haible  <bruno@clisp.org>
56739
56740         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56741         Report and solution by Simon Josefsson.
56742
56743 2008-03-06  Bruno Haible  <bruno@clisp.org>
56744
56745         Make fflush after ungetc work on BSD platforms.
56746         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56747         * tests/test-fflush2.c: New file.
56748         * tests/test-fflush2.sh: New file.
56749         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56750         tests/test-fflush2.c.
56751         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56752         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56753
56754 2008-03-06  Eric Blake  <ebb9@byu.net>
56755
56756         Likewise for ftello.
56757         * modules/ftello (Dependencies): Add extensions.
56758         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56759
56760 2008-03-06  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/fseeko (Dependencies): Add extensions.
56763         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56764         Needed on glibc systems.
56765
56766 2008-03-06  Bruno Haible  <bruno@clisp.org>
56767
56768         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56769         email address.
56770         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56771
56772 2008-03-06  Bruno Haible  <bruno@clisp.org>
56773
56774         * users.txt: Add libgnupdf.
56775
56776 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56777
56778         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56779         (Header File Substitutes, Function Substitutes,
56780         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56781         (Build robot for gnulib): Fix typo.
56782
56783 2008-03-06  Bruno Haible  <bruno@clisp.org>
56784
56785         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56786         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56787
56788 2008-03-06  Bruno Haible  <bruno@clisp.org>
56789
56790         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56791         * doc/gnulib.texi: Include it.
56792
56793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56794
56795         * modules/func (License): Change license to unlimited; there was
56796         no LGPL parts in the module anyway.
56797
56798 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56799
56800         * modules/__func__: Renamed to modules/func.
56801         * modules/__func__-tests: Renamed to modules/func-tests.
56802         * tests/test-__func__.c: Renamed to tests/test-func.c.
56803         * m4/__func__.m4: Renamed to m4/func.m4.
56804         * doc/gnulib.texi (__func__): Section renamed to func.
56805         Suggested by Eric Blake <ebb9@byu.net>.
56806
56807 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56808
56809         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56810         about __func__.  Make example self-contained.  Suggested by Eric
56811         Blake <ebb9@byu.net>.
56812
56813         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56814         Suggested by Eric Blake <ebb9@byu.net>.
56815
56816 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56817
56818         * modules/__func__: New file.
56819         * modules/__func__-tests: New file.
56820         * tests/test-__func__.c: New file.
56821         * m4/__func__.m4: New file.
56822         * doc/gnulib.texi (__func__): Document __func__ module.
56823
56824 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56825
56826         * modules/byteswap (License): Re-license as LGPLv2+.
56827
56828 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56829
56830         * doc/Makefile: Add pdf target.
56831
56832 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56833
56834         * modules/inline (License): Use 'unlimited', since there are only
56835         *.m4 files in this module.
56836
56837 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56838             Bruno Haible  <bruno@clisp.org>
56839
56840         Add support for HP C 7.1 on OpenVMS 8.3.
56841         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56842
56843 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56844
56845         Update VMS specifics.
56846         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56847
56848 2008-03-02  Jim Meyering  <meyering@redhat.com>
56849
56850         Remove the last dependency on the "free" module.
56851         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56852         Reported by Bob Proulx.
56853
56854         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56855
56856         Remove useless "if" tests before free.  Deprecate "free" module.
56857         * doc/posix-functions/free.texi: Mention that this
56858         module is no longer useful.
56859         * modules/free (Notice): Say this module is obsolete.
56860         * modules/readutmp (Depends-on): Remove free.
56861         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56862         * lib/putenv.c (putenv): Likewise.
56863         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56864         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56865         * tests/test-c-strcasestr.c (main): Likewise.
56866         * tests/test-c-strstr.c (main): Likewise.
56867         * tests/test-mbscasestr1.c (main): Likewise.
56868         * tests/test-mbscasestr2.c (main): Likewise.
56869         * tests/test-mbsstr1.c (main): Likewise.
56870         * tests/test-mbsstr2.c (main): Likewise.
56871         * tests/test-memmem.c (main): Likewise.
56872         * tests/test-strcasestr.c (main): Likewise.
56873         * tests/test-striconv.c (main): Likewise.
56874         * tests/test-striconveh.c (main): Likewise.
56875         * tests/test-striconveha.c (main): Likewise.
56876         * tests/test-strstr.c (main): Likewise.
56877
56878         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56879
56880         bootstrap: sync from coreutils again
56881         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56882
56883 2008-03-01  Jim Meyering  <meyering@redhat.com>
56884
56885         bootstrap: sync from coreutils
56886         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56887         also when the target doesn't exist.
56888
56889 2008-03-01  Eric Blake  <ebb9@byu.net>
56890
56891         Fix bugs in last patch.
56892         * lib/memchr2.c (memchr2): Fix typo.
56893         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56894         extension.
56895         Reported by Bruce Korb.
56896
56897         New module 'memchr2'.
56898         * modules/memchr2: New file.
56899         * modules/memchr2-tests: Likewise.
56900         * lib/memchr2.h: Likewise.
56901         * lib/memchr2.c: Likewise, based on memchr.c.
56902         * tests/test-memchr2.c: New test.
56903         * MODULES.html.sh (String handling): Add memchr2.
56904
56905 2008-02-29  Bruno Haible  <bruno@clisp.org>
56906
56907         * modules/freadseek-tests: New file.
56908         * tests/test-freadseek.sh: New file.
56909         * tests/test-freadseek.c: New file.
56910
56911         New module 'freadseek'.
56912         * modules/freadseek: New file.
56913         * lib/freadseek.h: New file.
56914         * lib/freadseek.c: New file.
56915         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56916
56917 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56918
56919         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56920         wydawca.
56921
56922         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56923         program_invocation_name and program_invocation_short_name are
56924         present.
56925
56926 2008-02-28  Bruno Haible  <bruno@clisp.org>
56927
56928         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56929         * tests/test-freadptr.sh: Also test non-seekable stdin.
56930
56931 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56932
56933         * build-aux/bootstrap (source_base, m4_base)
56934         (doc_base, tests_base): New variables.
56935         (gnulib_tool_options): Do not hardcode base directories, use
56936         the above variables instead.
56937
56938 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56939
56940         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56941
56942 2008-02-28  Bruno Haible  <bruno@clisp.org>
56943
56944         * modules/freadptr-tests: New file.
56945         * tests/test-freadptr.sh: New file.
56946         * tests/test-freadptr.c: New file.
56947
56948         New module 'freadptr'.
56949         * modules/freadptr: New file.
56950         * lib/freadptr.h: New file.
56951         * lib/freadptr.c: New file.
56952         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56953
56954 2008-02-26  Karl Berry  <karl@freefriends.org>
56955
56956         Sync from Libtool:
56957         * libltdl/argz.c (argz_add, argz_count): New functions.
56958         * libltdl/argz.in.h: Declare them.
56959         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56960
56961 2008-02-22  Bruno Haible  <bruno@clisp.org>
56962
56963         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56964         is a pointer type.  Needed for HP-UX 10.
56965         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56966         * doc/posix-functions/gmtime_r.texi: Likewise.
56967         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56968
56969 2008-02-24  Bruno Haible  <bruno@clisp.org>
56970
56971         * modules/environ-tests: New file.
56972         * tests/test-environ.c: New file.
56973
56974         New module 'environ'.
56975         * modules/environ: New file.
56976         * lib/unistd.in.h (environ): New declaration.
56977         * m4/environ.m4: New file.
56978         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56979         after use.
56980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56981         HAVE_DECL_ENVIRON.
56982         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56983         HAVE_DECL_ENVIRON.
56984         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56985         wrong claim that 'environ' is missing on some systems.
56986         * modules/execute (Depends-on): Add environ.
56987         * lib/execute.c (environ): Remove fallback declaration.
56988         * modules/pipe (Depends-on): Add environ.
56989         * lib/pipe.c (environ): Remove fallback declaration.
56990         * modules/setenv (Depends-on): Add environ.
56991         * lib/setenv.c (environ): Remove fallback declaration.
56992         * modules/unsetenv (Depends-on): Add environ.
56993         * lib/unsetenv.c (environ): Remove fallback declaration.
56994         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56995         m4/environ.m4.
56996         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56997         (gl_PREREQ_UNSETENV): Likewise.
56998
56999 2008-02-24  Bruno Haible  <bruno@clisp.org>
57000
57001         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57002
57003 2008-02-20  Bob Proulx  <bob@proulx.com>
57004
57005         Enable use of older two part flavor 'git describe'.
57006         * build-aux/git-version-gen: If using the older two part flavor of
57007         git version then recreate the third part now present in the
57008         newer three part flavor of git describe.
57009
57010 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57011
57012         * lib/fts.c (fts_build): Typo correction to comment.
57013
57014 2008-02-17  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57017         generating no-op conflicts.
57018
57019 2008-02-17  Bruno Haible  <bruno@clisp.org>
57020
57021         Speed up by 10%.
57022         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57023         result_entries, rather than an index-based loop.
57024
57025 2008-02-17  Bruno Haible  <bruno@clisp.org>
57026
57027         Speed up by 25%.
57028         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57029         'hashcode_cached'.
57030         (entry_create): New function.
57031         (entry_hashcode): Use the cached hashcode if possible.
57032         (read_changelog_file, try_split_merged_entry): Use entry_create.
57033
57034 2008-02-17  Bruno Haible  <bruno@clisp.org>
57035
57036         Speed up from O(n^2) to O(n) for long ChangeLog files.
57037         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57038         (read_changelog_file): Change implementation of entries_reversed list
57039         to rbtreehash.
57040         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57041
57042 2008-02-17  Bruno Haible  <bruno@clisp.org>
57043
57044         New option --split-merged-entry.
57045         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57046         (find_paragraph_end, try_split_merged_entry): New functions.
57047         (long_options): Add option --split-merged-entry.
57048         (usage): Document option --split-merged-entry.
57049         (main): Implement option --split-merged-entry.
57050         Reported by Eric Blake.
57051
57052 2008-02-17  Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/git-merge-changelog.c: Include c-strstr.h.
57055         (main): Support the "git pull --rebase" situation.
57056         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57057         Reported by Eric Blake.
57058
57059 2008-02-16  Eric Blake  <ebb9@byu.net>
57060
57061         Avoid doubling \ in common case of "c-maybe" quoting style.
57062         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57063         eliding outer quotes.
57064         * lib/quotearg.h: Document this.
57065         * tests/test-quotearg.c (result_strings, inputs, results_g)
57066         (flag_results, locale_results): Test it by adding a new string to
57067         each test group.
57068         (compare_strings): Test new string.
57069
57070 2008-02-13  Eric Blake  <ebb9@byu.net>
57071
57072         Avoid trigraph quoting in default output.
57073         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57074         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57075         unless explicitly requested.
57076         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57077
57078 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57079
57080         Don't rely on signed integer overflowing to negative value.
57081         * lib/getugroups.c (getugroups): Include <limits.h>.
57082         Instead, compare against INT_MAX, and increment only if the test passes.
57083
57084 2008-02-13  Jim Meyering  <meyering@redhat.com>
57085         and Eric Blake  <ebb9@byu.net>
57086
57087         Avoid shadowing warning and compile errors on Linux.
57088         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57089         forwarding macros on Linux.
57090         (dcgettext): Define a stub, for Linux.
57091         (results_g, main): Avoid warnings.
57092
57093 2008-02-12  Eric Blake  <ebb9@byu.net>
57094
57095         Silence warning in last patch.
57096         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57097
57098         Quotearg part 4: add tests, fix c-maybe colon quoting.
57099         * lib/quotearg.h: Improve documentation.
57100         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57101         escapes when adding outer quotes.  When quoting trigraphs, use
57102         valid C notation.  When quoting NUL, omit extra characters if next
57103         character is not digit.  Alter prototype.
57104         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57105         callers.
57106         * modules/quotearg-tests: New module.
57107         * tests/test-quotearg.c: New test.
57108
57109 2008-02-07  Eric Blake  <ebb9@byu.net>
57110
57111         Quotearg part 3: add flag to control outer quote elision.
57112         * lib/quotearg.h (c_maybe_quoting_style): New style.
57113         (enum quoting_flags): Better documentation of flags.
57114         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57115         c-maybe style.
57116         (quotearg_buffer_restyled): Handle new flag to elide outer
57117         quotes.
57118
57119         Quotearg part 2: add flag that can control NUL elision.
57120         * lib/quotearg.h (set_quoting_flags): New prototype.
57121         * lib/quotearg.c (struct quoting_options): Add flag field.
57122         (set_quoting_flags): New function.
57123         (quotearg_buffer_restyled): Add flags parameter.
57124         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57125         (quotearg_n_options): Set the flag, since length cannot be
57126         returned.
57127         (quoting_options_from_style): Default flags correctly.
57128
57129         Quotearg part 1: more wrappers, restore quotearg_char state.
57130         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57131         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57132         (quotearg_colon_mem): New wrappers.
57133         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57134         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57135         functions.
57136         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57137         (quotearg_colon_mem): New functions.
57138
57139 2008-02-11  Bruno Haible  <bruno@clisp.org>
57140
57141         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57142         library in the current directory: it does not work with parallel make.
57143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57144
57145 2008-02-11  Bruno Haible  <bruno@clisp.org>
57146
57147         * .gitattributes: New file.
57148
57149 2008-02-11  Jim Meyering  <meyering@redhat.com>
57150
57151         useless-if-before-free: Fix reversed exit values.
57152         * build-aux/useless-if-before-free: Use correct values
57153         for EXIT_MATCH and EXIT_NO_MATCH.
57154
57155         * build-aux/useless-if-before-free: Close stdout carefully.
57156
57157 2008-02-10  Bruno Haible  <bruno@clisp.org>
57158
57159         New module 'git-merge-changelog'.
57160         * modules/git-merge-changelog: New file.
57161         * lib/git-merge-changelog.c: New file.
57162
57163 2008-02-10  Jim Meyering  <meyering@redhat.com>
57164
57165         useless-if-before-free: New option: --list (-l).
57166
57167         useless-if-before-free: Don't exit immediately upon open failure.
57168         * build-aux/useless-if-before-free: Exit 2 for errors.
57169         Upon failure to open a file, don't exit immediately.
57170         Rather, just warn and continue with any remaining files.
57171
57172 2008-02-10  Bruno Haible  <bruno@clisp.org>
57173
57174         New abstract list operation 'node_set_value'.
57175         * lib/gl_list.h (gl_list_node_set_value): New function.
57176         (struct gl_list_implementation): New field node_set_value.
57177         * lib/gl_list.c (gl_list_node_set_value): New function.
57178         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57179         (gl_array_list_implementation): Update.
57180         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57181         (gl_carray_list_implementation): Update.
57182         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57183         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57184         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57185         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57186         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57187         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57188         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57189         Update.
57190         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57191         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57192         (gl_sublist_list_implementation): Update.
57193
57194 2008-02-10  Bruno Haible  <bruno@clisp.org>
57195
57196         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57197         Needed when ELEMENT is #defined to 'some_type *'.
57198
57199 2008-02-10  Jim Meyering  <meyering@redhat.com>
57200
57201         New script and module: useless-if-before-free
57202         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57203         * build-aux/useless-if-before-free: New file.
57204         * modules/useless-if-before-free: New file.
57205
57206         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57207
57208         xstrtol_error: Fix typo.
57209         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57210         s/exit_failure/exit_status/.
57211
57212 2008-02-09  Jim Meyering  <meyering@redhat.com>
57213
57214         New script and module: gitlog-to-changelog
57215         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57216         * modules/gitlog-to-changelog: New file.
57217         * build-aux/gitlog-to-changelog: New file.
57218
57219 2008-02-08  Jim Meyering  <meyering@redhat.com>
57220
57221         Avoid two "parameter unused" warnings.
57222         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57223         Mark "st" as used.
57224
57225         Use "git COMMAND", not "git-COMMAND".
57226         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57227         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57228         * build-aux/git-version-gen: Use "git status", not "git-status".
57229
57230 2008-02-07  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57233         Avoids a crash on Windows Vista.
57234         Reported by Adam Strzelecki <ono@java.pl> via
57235         Simon Josefsson <simon@josefsson.org>.
57236
57237 2008-02-06  Bruno Haible  <bruno@clisp.org>
57238
57239         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57240         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57241         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57243         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57245         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57246         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57254         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57255         left-adjust flag.
57256         * tests/test-snprintf-posix.h (test_function): Likewise.
57257         * tests/test-sprintf-posix.h (test_function): Likewise.
57258         * tests/test-vasprintf-posix.c (test_function): Likewise.
57259         * doc/posix-functions/fprintf.texi: Update.
57260         * doc/posix-functions/printf.texi: Update.
57261         * doc/posix-functions/snprintf.texi: Update.
57262         * doc/posix-functions/sprintf.texi: Update.
57263         * doc/posix-functions/vfprintf.texi: Update.
57264         * doc/posix-functions/vprintf.texi: Update.
57265         * doc/posix-functions/vsnprintf.texi: Update.
57266         * doc/posix-functions/vsprintf.texi: Update.
57267         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57268
57269 2008-02-06  Bruno Haible  <bruno@clisp.org>
57270
57271         Fix bug introduced on 2008-01-26.
57272         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57273
57274 2008-02-06  Bruno Haible  <bruno@clisp.org>
57275
57276         Fix bug introduced on 2007-06-10.
57277         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57278         !NEED_PRINTF_FLAG_ZERO.
57279
57280 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57281
57282         getloadavg: use libperfstat on AIX5
57283         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57284
57285 2008-02-03  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/diffseq.h: Add comments about required #includes.
57288         Reported by Michael Biggs <gnulib@doubleplum.net>.
57289
57290 2008-02-01  Bruno Haible  <bruno@clisp.org>
57291
57292         * users.txt: Add gnuit.
57293
57294 2008-01-31  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/md4.c (set_uint32): Mark as inline.
57297         * lib/md5.c (set_uint32): Likewise.
57298         * lib/sha1.c (set_uint32): Likewise.
57299         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57300         * m4/md5.m4 (gl_MD5): Likewise.
57301         * m4/sha1.m4 (gl_SHA1): Likewise.
57302
57303 2008-01-31  Jim Meyering  <meyering@redhat.com>
57304
57305         Use "sizeof VAR", rather than a literal "4".
57306         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57307         * lib/md4.c (md4_read_ctx): Likewise.
57308         * lib/sha1.c (sha1_read_ctx): Likewise.
57309
57310 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57311
57312         * tests/test-sha1.c: New file, based on test-md5.c.
57313
57314         * modules/crypto/sha1-tests: New file.
57315
57316 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57317
57318         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57319
57320 2008-01-31  Jim Meyering  <meyering@redhat.com>
57321
57322         Prefer "sizeof v" over the equivalent "4".
57323         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57324         * lib/md5.c (set_uint32): Likewise.
57325         * lib/sha1.c (set_uint32): Likewise.
57326
57327 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57328
57329         * lib/sha1.c (set_uint32): Mark function as static.
57330
57331 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57332
57333         md2: clarify comments to say that alignment is not required.
57334         * lib/md2.h: Remove warning about alignment in comment.
57335         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57336         never been required.
57337
57338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57339
57340         md4: adapt alignment constraint fix from sha1.
57341         * lib/md4.c (set_uint32): New function, from sha1.c
57342         (md4_read_ctx): Use it.
57343         (md4_finish_ctx): Doc fix.
57344         * lib/md4.h: Doc fix.
57345
57346 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57347
57348         md5: adapt alignment constraint fix from sha1.
57349         * lib/md5.c (set_uint32): New function, from sha1.c
57350         (md5_read_ctx): Use it.
57351         (md5_finish_ctx): Doc fix.
57352         * lib/md5.h: Doc fix.
57353
57354 2008-01-30  Peter Palfrader  <weasel@debian.org>
57355
57356         sha1: remove the result buffer alignment constraint
57357         * lib/sha1.c (set_uint32): New function.
57358         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57359         constraint.
57360         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57361         * lib/sha1.h: Likewise.
57362
57363 2008-01-30  Andreas Schwab  <schwab@suse.de>
57364             Bruno Haible  <bruno@clisp.org>
57365
57366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57367         correct definition of LDBL_MIN_EXP.
57368
57369 2008-01-30  Karl Berry  <karl@gnu.org>
57370
57371         * config/srclist-update: try to preserve x bit on updates.
57372         * config/srclistvars.sh: update for karl.
57373
57374 2008-01-29  Jim Meyering  <meyering@redhat.com>
57375
57376         vasnprintf.c: Avoid warning about unused label
57377         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57378         "overflow" label definition and associated code with the
57379         same cpp condition that guards the sole use of that label.
57380
57381 2008-01-26  Bruno Haible  <bruno@clisp.org>
57382
57383         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57384         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57385         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57386         * lib/isnanl-nolibm.h (isnanl): Likewise.
57387         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57388
57389 2008-01-26  Bruno Haible  <bruno@clisp.org>
57390
57391         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57392         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57393
57394 2008-01-26  Bruno Haible  <bruno@clisp.org>
57395
57396         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57397         GCC >= 4.0 built-in.
57398         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57399
57400 2008-01-26  Bruno Haible  <bruno@clisp.org>
57401
57402         Rename isnan, applicable to 'double' only, to isnand.
57403         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57404         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57405         (configure.ac): Update.
57406         (Include): Replace "isnan.h" with "isnand.h".
57407         * m4/isnand.m4: Renamed from m4/isnan.m4.
57408         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57409         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57410         instead of isnan.c.
57411         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57412         instead of HAVE_ISNAN_IN_LIBC.
57413         (isnand): Renamed from isnan.
57414         * lib/isnand.c: New file.
57415         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57416         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57417         (Makefile.am): Update.
57418         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57419         Include isnand.h instead of isnan.h.
57420         (main): Test isnand instead of isnan.
57421         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57422         isnan-nolibm.
57423         * modules/frexp (Depends-on): Likewise.
57424         * modules/frexp-tests (Depends-on): Likewise.
57425         * modules/frexp-nolibm (Depends-on): Likewise.
57426         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57427         * modules/isfinite (Depends-on): Likewise.
57428         * modules/round-tests (Depends-on): Likewise.
57429         * modules/signbit (Depends-on): Likewise.
57430         * modules/signbit-tests (Depends-on): Likewise.
57431         * modules/snprintf-posix (Depends-on): Likewise.
57432         * modules/sprintf-posix (Depends-on): Likewise.
57433         * modules/trunc-tests (Depends-on): Likewise.
57434         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57435         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57436         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57437         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57438         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57439         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57440         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57441         * modules/vasnprintf-posix (Depends-on): Likewise.
57442         * modules/vasprintf-posix (Depends-on): Likewise.
57443         * modules/vfprintf-posix (Depends-on): Likewise.
57444         * modules/vsnprintf-posix (Depends-on): Likewise.
57445         * modules/vsprintf-posix (Depends-on): Likewise.
57446         * lib/frexp.c: Include isnand.h instead of isnan.h.
57447         (ISNAN): Set to isnand instead of isnan.
57448         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57449         (gl_isfinited): Use isnand instead of isnan.
57450         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57451         (gl_signbitd): Use isnand instead of isnan.
57452         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57453         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57454         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57455         (main): Use isnand instead of isnan.
57456         * tests/test-round1.c: Include isnand.h.
57457         (main): Use isnand instead of isnan.
57458         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57459         (ISNAN): Set to isnand instead of isnan.
57460         * tests/test-trunc1.c: Include isnand.h.
57461         (main): Use isnand instead of isnan.
57462         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57463         (equal): Use isnand instead of isnan.
57464         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57465         isnand-nolibm.
57466         * NEWS: Mention the change.
57467
57468 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57469             Bruno Haible  <bruno@clisp.org>
57470
57471         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57472         the GCC builtins for signbits are present and set
57473         REPLACE_SIGNBIT_USING_GCC if so.
57474         * lib/math.in.h (signbit): Define using GCC builtins if
57475         REPLACE_SIGNBIT_USING_GCC is set.
57476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57477         REPLACE_SIGNBIT_USING_GCC.
57478         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57479
57480 2008-01-25  Jim Meyering  <meyering@redhat.com>
57481
57482         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57483         * lib/poll.c: Include <config.h>, not "config.h".
57484         * tests/test-getaddrinfo.c: Likewise.
57485
57486 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57487
57488         * modules/sockets-tests: New file.
57489
57490 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57491
57492         * modules/sockets: New module, can be used to call WSA_Startup and
57493         WSA_Cleanup when needed.
57494
57495         * lib/sockets.h, lib/sockets.c: New files.
57496
57497         * m4/sockets.m4: New file.
57498
57499         * tests/test-sockets.c: New file.
57500
57501 2008-01-19  Bruno Haible  <bruno@clisp.org>
57502
57503         * doc/posix-headers: Renamed from doc/headers.
57504         * doc/posix-functions: Renamed from doc/functions.
57505         * doc/gnulib.texi: Update.
57506
57507 2008-01-19  Bruno Haible  <bruno@clisp.org>
57508
57509         * doc/glibc-functions/strcasestr.texi: Include contents of
57510         doc/functions/strcasestr.texi, fixing the list of platforms.
57511         * doc/functions/strcasestr.texi: Remove file.
57512
57513 2008-01-19  Bruno Haible  <bruno@clisp.org>
57514
57515         * doc/glibc-functions/memmem.texi: Include contents of
57516         doc/functions/memmem.texi.
57517         * doc/functions/memmem.texi: Remove file.
57518
57519 2008-01-18  Bruno Haible  <bruno@clisp.org>
57520
57521         * doc/glibc-functions/*.texi: New files.
57522         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57523         to use the new files.
57524
57525 2008-01-17  Bruno Haible  <bruno@clisp.org>
57526
57527         * tests/test-gethostname.c (main): Fix printf statement.
57528
57529 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57530
57531         * modules/gethostname-tests: New file.
57532
57533         * tests/test-gethostname.c: New file.
57534
57535 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57536
57537         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57538         used by the UNAME case.  Reported by Bruno Haible
57539         <bruno@clisp.org>.
57540
57541 2008-01-17  Eric Blake  <ebb9@byu.net>
57542
57543         Convert c-strcasestr to be more efficient.
57544         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57545         (Depends-on): Add c-strcase, remove malloca, strnlen.
57546         * tests/test-c-strcasestr.c (main): Enhance test.
57547         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57548
57549 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57550
57551         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57552         Use it in creating po/Makevars.
57553
57554 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57555
57556         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57557         Applications that requires it should initialize libgcrypt
57558         manually.
57559
57560 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57561
57562         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57563
57564 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         Fix problem with getdate on mingw32 reported by Simon Josefsson
57567         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57568         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57569         tzname", when deciding whether to declare tzname.
57570         * lib/strftime.c (tzname): Likewise.
57571
57572 2008-01-15  Bruno Haible  <bruno@clisp.org>
57573
57574         Work around a MacOS X 10.5 bug in frexpl().
57575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57576         * doc/functions/frexpl.texi: Document the bug.
57577         Reported by Elias Pipping <pipping@gentoo.org>.
57578
57579 2008-01-14  Eric Blake  <ebb9@byu.net>
57580
57581         Touch up previous patch.
57582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57583         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57584
57585         Convert strcasestr module to use Two-Way algorithm.
57586         * modules/strcasestr-simple: New module, based on the old
57587         strcasestr, but with Two-Way rather than KMP.
57588         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57589         * lib/string.in.h (rpl_strcasestr): Declare.
57590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57591         performance.
57592         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57593         * modules/string (Makefile.am): Support strcasestr.
57594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57595         * modules/strcasestr-tests (Depends-on): Check for alarm.
57596         * tests/test-strcasestr.c: Augment test.
57597         * lib/str-two-way.h: Clean up stray macro.
57598         * NEWS: Document new module.
57599         * MODULES.html.sh (string handling): Likewise.
57600         * doc/functions/strcasestr.texi: New file.
57601         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57602         here, since it is not a POSIX function.
57603
57604 2008-01-14  Colin Watson  <cjwatson@debian.org>
57605             Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57608         works fine; if not, set REPLACE_STRSIGNAL.
57609         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57611         REPLACE_STRSIGNAL.
57612         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57613         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57614         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57615
57616 2008-01-14  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/strsignal (Include): Change to <string.h>.
57619
57620 2008-01-14  Colin Watson  <cjwatson@debian.org>
57621
57622         * modules/argp (Notice): Add a notice recommending to change
57623         XGETTEXT_OPTIONS.
57624         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57625
57626 2008-01-13  Colin Watson  <cjwatson@debian.org>
57627
57628         * modules/strsignal-tests: New file.
57629         * tests/test-strsignal.c: New file.
57630
57631         * lib/strsignal.c: New file, from glibc with modifications.
57632         * lib/siglist.h: New file, from glibc with modifications.
57633         * lib/string.in.h (strsignal): New declaration.
57634         * m4/strsignal.m4: New file.
57635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57636         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57637         * modules/strsignal: New file.
57638         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57639         HAVE_DECL_STRSIGNAL.
57640
57641 2008-01-13  Bruno Haible  <bruno@clisp.org>
57642
57643         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57644         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57645         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57646         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57647
57648 2008-01-13  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57651         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57652         * lib/argp.h (__attribute__): Likewise.
57653         * lib/c-stack.c (__attribute__): Likewise.
57654         * lib/error.h (__attribute__): Likewise.
57655         * lib/fts.c (__attribute__): Likewise.
57656         * lib/openat.h (__attribute__): Likewise.
57657         * lib/stdio.in.h (__attribute__): Likewise.
57658         * lib/string.in.h (__attribute__): Likewise.
57659         * lib/utimens.c (__attribute__): Likewise.
57660         * lib/vasnprintf.h (__attribute__): Likewise.
57661         * lib/xalloc.h (__attribute__): Likewise.
57662         * lib/xprintf.h (__attribute__): Likewise.
57663         * lib/xstrtol.h (__attribute__): Likewise.
57664         * lib/xvasprintf.h (__attribute__): Likewise.
57665
57666 2008-01-12  Bruno Haible  <bruno@clisp.org>
57667
57668         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57669         * doc/glibc-headers/a.out.texi: New file.
57670         * doc/glibc-headers/aliases.texi: New file.
57671         * doc/glibc-headers/alloca.texi: New file.
57672         * doc/glibc-headers/ar.texi: New file.
57673         * doc/glibc-headers/argp.texi: New file.
57674         * doc/glibc-headers/argz.texi: New file.
57675         * doc/glibc-headers/byteswap.texi: New file.
57676         * doc/glibc-headers/crypt.texi: New file.
57677         * doc/glibc-headers/endian.texi: New file.
57678         * doc/glibc-headers/envz.texi: New file.
57679         * doc/glibc-headers/err.texi: New file.
57680         * doc/glibc-headers/error.texi: New file.
57681         * doc/glibc-headers/execinfo.texi: New file.
57682         * doc/glibc-headers/fpu_control.texi: New file.
57683         * doc/glibc-headers/fstab.texi: New file.
57684         * doc/glibc-headers/fts.texi: New file.
57685         * doc/glibc-headers/getopt.texi: New file.
57686         * doc/glibc-headers/ieee754.texi: New file.
57687         * doc/glibc-headers/ifaddrs.texi: New file.
57688         * doc/glibc-headers/libintl.texi: New file.
57689         * doc/glibc-headers/mcheck.texi: New file.
57690         * doc/glibc-headers/mntent.texi: New file.
57691         * doc/glibc-headers/obstack.texi: New file.
57692         * doc/glibc-headers/paths.texi: New file.
57693         * doc/glibc-headers/printf.texi: New file.
57694         * doc/glibc-headers/pty.texi: New file.
57695         * doc/glibc-headers/resolv.texi: New file.
57696         * doc/glibc-headers/shadow.texi: New file.
57697         * doc/glibc-headers/sysexits.texi: New file.
57698         * doc/glibc-headers/ttyent.texi: New file.
57699
57700 2008-01-12  Jim Meyering  <meyering@redhat.com>
57701
57702         announce-gen: emit Gnulib's git-based version string.
57703         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57704         New option --gnulib-version=V, where V is expected to be
57705         the output of running git describe in the gnulib directory.
57706         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57707         not useful, and plan to stop publishing an xdelta file with each
57708         coreutils release.
57709
57710         * build-aux/announce-gen: Also check for lzma-compressed files.
57711
57712 2008-01-11  Bruno Haible  <bruno@clisp.org>
57713
57714         * tests/test-memmem.c (main): Increase maximum allowed time.
57715         * tests/test-strstr.c (main): Likewise.
57716
57717 2008-01-11  Bruno Haible  <bruno@clisp.org>
57718
57719         * doc/functions/memmem.texi: Add more precisions about platforms.
57720         * doc/functions/strstr.texi: Likewise.
57721
57722 2008-01-10  Eric Blake  <ebb9@byu.net>
57723
57724         * m4/strstr.m4: Delete cruft from copy-n-paste.
57725         Reported by Bruno Haible.
57726
57727 2008-01-10  Bruno Haible  <bruno@clisp.org>
57728
57729         Make c-strstr rely on strstr.
57730         * lib/c-strstr.c: Don't include str-kmp.h.
57731         (c_strstr): Define in terms of strstr.
57732         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57733         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57734
57735 2008-01-10  Bruno Haible  <bruno@clisp.org>
57736
57737         * doc/gnulib.texi (String Functions in C Locale): New section.
57738         * doc/c-ctype.texi: New file.
57739         * doc/c-strcase.texi: New file.
57740         * doc/c-strcaseeq.texi: New file.
57741         * doc/c-strcasestr.texi: New file.
57742         * doc/c-strstr.texi: New file.
57743         * doc/c-strtod.texi: New file.
57744         * doc/c-strtold.texi: New file.
57745
57746 2008-01-10  Eric Blake  <ebb9@byu.net>
57747
57748         * lib/relocatable.h: Fix a comment.
57749
57750 2008-01-10  Eric Blake  <ebb9@byu.net>
57751
57752         Share two-way algorithm.
57753         * lib/str-two-way.h: New file, merged from...
57754         * lib/memmem.c: ...here...
57755         * lib/strstr.c: ...and here.
57756         * modules/memmem (Files): Use it.
57757         * modules/strstr (Files): Likewise.
57758
57759         Avoid quadratic strstr implementations.
57760         * lib/strstr.c: New file.
57761         * m4/strstr.m4: Likewise.
57762         * modules/strstr: Likewise.
57763         * modules/strstr-tests: Likewise.
57764         * tests/test-strstr.c: Likewise.
57765         * lib/string.in.h (rpl_strstr): Declare.
57766         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57768         * modules/string (Makefile.am): Likewise.
57769         * MODULES.html.sh (string handling): Mention new module.
57770         * doc/functions/strstr.texi (strstr): Document the bug.
57771
57772 2008-01-10  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/relocatable.h (relocate): State whether result is freshly
57775         allocated or not.
57776         * lib/relocatable.c (relocate): Return a freshly allocated string
57777         instead of a pointer to a privately held string.
57778         Reported by Sylvain Beucler <beuc@gnu.org>.
57779
57780 2008-01-10  Colin Watson  <cjwatson@debian.org>
57781
57782         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57783         s/S_ISNLK/S_ISLNK/.
57784
57785 2008-01-09  Bruno Haible  <bruno@clisp.org>
57786
57787         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57788         and other files.
57789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57790         if it's only a guess.
57791         * modules/memmem: Simplify by depending on memmem-simple.
57792
57793 2008-01-09  Bruno Haible  <bruno@clisp.org>
57794
57795         Work around OpenBSD 4.0 tdelete() bug.
57796         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57797         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57798         macros and don't redefine the enum values.
57799         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57800         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57801         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57802
57803 2008-01-09  Bruno Haible  <bruno@clisp.org>
57804
57805         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57806         (main): Don't perform the tests if setlocale did not install a UTF-8
57807         locale. Needed on OpenBSD 4.0.
57808         * modules/wcwidth-tests (Depends-on): Add localcharset.
57809
57810 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57811
57812         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57813         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57814         * NEWS: announce this.
57815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57816
57817 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57818         and Eric Blake  <ebb9@byu.net>
57819
57820         Add memmem-simple module.
57821         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57822         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57823         * modules/memmem-simple: New file.
57824         * modules/memmem (Description): Tweak.
57825         * MODULES.html.sh (string handling): Mention new module.
57826         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57827         addressed by memmem-simple.
57828         * NEWS: Document the difference.
57829
57830 2008-01-09  Eric Blake  <ebb9@byu.net>
57831
57832         Give gcc some memmem optimization hints.
57833         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57834         (strcasestr): Declare as pure.
57835         * modules/memmem (Maintainer): Claim my implementation.
57836
57837 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57838
57839         Support AIX 6.1 and higher.
57840         * build-aux/config.libpath: Likewise.
57841         * build-aux/config.rpath: Likewise.
57842
57843 2008-01-08  Jim Meyering  <meyering@redhat.com>
57844             Bruno Haible  <bruno@clisp.org>
57845
57846         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57847         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57848         Reported by Peter Fales in
57849         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57850
57851 2008-01-08  Bruno Haible  <bruno@clisp.org>
57852
57853         * modules/unictype/category-of (Depends-on): Add
57854         unictype/category-none.
57855         * modules/unictype/category-and-tests (Depends-on): Add
57856         unictype/category-{L,N,Lu,Nd}.
57857         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57858         * modules/unictype/category-or-tests (Depends-on): Add
57859         unictype/category-{L,N}.
57860         * modules/unictype/category-name-tests (Depends-on): Add
57861         unictype/category-{Z,Nl}.
57862         Reported by Simon Josefsson.
57863
57864 2008-01-08  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57867         convention better.
57868         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57869         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57870         Reported by Peter Miller <millerp@canb.auug.org.au>.
57871
57872 2008-01-08  Eric Blake  <ebb9@byu.net>
57873
57874         Rewrite memmem to guarantee linear complexity without malloc.
57875         * lib/memmem.c (memmem): Use Two-Way rather than
57876         Knuth-Morris-Pratt, to allow O(1) space usage.
57877         (critical_factorization, two_way_short_needle)
57878         (two_way_long_needle): New functions.
57879         (knuth_morris_pratt): Delete.
57880         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57881         Add stdint.
57882         * tests/test-memmem.c (main): Add tests for periodic needle and
57883         sublinear performance.
57884         * doc/functions/memmem.texi (memmem): Document other deficiencies
57885         in cygwin and older glibc.
57886
57887 2008-01-08  Bruno Haible  <bruno@clisp.org>
57888
57889         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57890         augmentation.
57891
57892 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57893
57894         Add a configure time option: --disable-acl.
57895         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57896         AC_ARG_ENABLE(acl).
57897
57898 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57899
57900         * tests/test-localename.c: Don't include obsolete "setenv.h".
57901
57902         * modules/localename-tests (Depends-on): Need unsetenv.
57903
57904 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57905
57906         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57907
57908 2008-01-06  Colin Watson  <cjwatson@debian.org>
57909
57910         * users.txt: Add man-db.
57911
57912 2008-01-07  Bruno Haible  <bruno@clisp.org>
57913
57914         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57915         previous section name.
57916
57917 2008-01-07  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/progname.c (set_program_name): Don't strip off a leading
57920         "lt-" prefix outside a .libs directory.
57921         Suggested by Paul Eggert.
57922
57923 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57924             Bruno Haible  <bruno@clisp.org>
57925
57926         Improve memory cleanup in 'relocatable' module.
57927         * lib/relocatable.h (compute_curr_prefix): Change return type to
57928         'char *'.
57929         * lib/relocatable.c (compute_curr_prefix): Change return type to
57930         'char *'. Free curr_installdir after use.
57931         (relocate): Free curr_prefix_better after use.
57932         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57933
57934 2008-01-01  Bruno Haible  <bruno@clisp.org>
57935
57936         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57937         failure on older glibc systems.
57938         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57939
57940 2008-01-05  Eric Blake  <ebb9@byu.net>
57941
57942         Avoid quadratic system memmem.
57943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57944         Reported by Ralf Wildenhues.
57945
57946         Fix memmem test for mingw.
57947         * modules/memmem-tests (configure.ac): Check for alarm.
57948         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57949         it.
57950         * doc/functions/memmem.texi: New file.
57951         * doc/gnulib.texi (Function Substitutes): Add memmem.
57952         Reported by Bruno Haible.
57953
57954 2008-01-04  Bruno Haible  <bruno@clisp.org>
57955
57956         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57957         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57958         gl_HEADER_STRING_H_DEFAULTS.
57959
57960 2008-01-04  Eric Blake  <ebb9@byu.net>
57961
57962         Shorten duration of memmem test.
57963         * tests/test-memmem.c (main): Use alarm to declare failure if test
57964         is taking too long.
57965         Reported by Ralf Wildenhues.
57966
57967 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57968
57969         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57970         string, needed by strerror.
57971
57972 2008-01-03  Colin Watson  <cjwatson@debian.org>
57973             Bruno Haible  <bruno@clisp.org>
57974
57975         * doc/gnulib-tool.texi (Localization): New section.
57976
57977 2008-01-02  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57980         variables to 'unsigned char *' type.
57981         Reported by Paul Eggert.
57982
57983 2008-01-02  Jim Meyering  <jim@meyering.net>
57984
57985         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57986
57987 2007-12-31  Jim Meyering  <jim@meyering.net>
57988
57989         Avoid use of private FTS type name.
57990         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57991
57992 2007-12-30  Karl Berry  <karl@gnu.org>
57993
57994         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57995         work around defect in Texinfo and/or the standalone Info browser.
57996
57997 2007-12-30  Bruno Haible  <bruno@clisp.org>
57998
57999         Unify 5 copies of the KMP code.
58000         * lib/str-kmp.h: New file.
58001         * lib/c-strcasestr.c: Include str-kmp.h.
58002         (knuth_morris_pratt): Remove function.
58003         (c_strcasestr): Update.
58004         * lib/c-strstr.c: Include str-kmp.h.
58005         (knuth_morris_pratt): Remove function.
58006         (c_strcasestr): Update.
58007         * lib/mbscasestr.c: Include str-kmp.h.
58008         (knuth_morris_pratt_unibyte): Remove function.
58009         * lib/mbsstr.c: Include str-kmp.h.
58010         (knuth_morris_pratt_unibyte): Remove function.
58011         * lib/strcasestr.c: Include str-kmp.h.
58012         (knuth_morris_pratt): Remove function.
58013         (strcasestr): Update.
58014         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58015         * modules/c-strstr (Files): Likewise.
58016         * modules/mbscasestr (Files): Likewise.
58017         * modules/mbsstr (Files): Likewise.
58018         * modules/strcasestr (Files): Likewise.
58019         Suggested by Paul Eggert.
58020
58021 2007-12-30  Bruno Haible  <bruno@clisp.org>
58022
58023         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58024         defined.
58025
58026 2007-12-30  Bruno Haible  <bruno@clisp.org>
58027
58028         * lib/xmalloca.h: Include xalloc.h.
58029         (xnmalloca): New macro.
58030
58031 2007-12-30  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/malloca.h (nmalloca): New macro.
58034         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58035         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58036         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58037         knuth_morris_pratt_multibyte): Likewise.
58038         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58039         knuth_morris_pratt_multibyte): Likewise.
58040         * lib/memmem.c (knuth_morris_pratt): Likewise.
58041         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58042
58043 2007-12-25  Bruno Haible  <bruno@clisp.org>
58044
58045         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58046         * lib/glob.c: Don't include openat.h.
58047         (link_exists2_p): Add back the code that deals with the
58048         !GLOB_ALTDIRFUNC case.
58049         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58050         let it do the filename concatenation.
58051         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58052         * modules/glob (Depends-on): Remove openat.
58053
58054 2007-12-31  Bruno Haible  <bruno@clisp.org>
58055
58056         * modules/dirfd (License): Change to LGPLv2+.
58057         Approved by Jim Meyering.
58058
58059 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58062         when multiplying M by sizeof (size_t).
58063
58064 2007-12-10  Martin Lambers  <marlam@marlam.de>
58065
58066         Override getpagesize on mingw.
58067         * lib/getpagesize.c: New file.
58068         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58069         * modules/getpagesize (Files): Add lib/getpagesize.c.
58070         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58072         REPLACE_GETPAGESIZE.
58073         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58074
58075 2007-12-25  Bruno Haible  <bruno@clisp.org>
58076
58077         * modules/localcharset (Notice): New field.
58078         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58079         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58080
58081 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58082             Bruno Haible  <bruno@clisp.org>
58083
58084         Avoid using the syntax symbol() in formatted documentation.
58085         * MODULES.html.sh (func_module): When replacing symbol() with a
58086         hyperlink, remove the parentheses. Show an error if some remain.
58087         Recognize and render the '...' syntax.
58088         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58089         Rework. Add paragraph about GCC's inlining.
58090         * doc/alloca.texi: Likewise.
58091         * doc/error.texi: Remove parentheses from symbol reference.
58092         * doc/gnulib-intro.texi: Likewise.
58093         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58094         * modules/fnmatch (Description): Reword to say "the ... function".
58095         * modules/full-read (Description): Likewise.
58096         * modules/full-write (Description): Likewise.
58097         * modules/safe-read (Description): Likewise.
58098         * modules/safe-write (Description): Likewise.
58099         * modules/strchrnul (Description): Likewise.
58100         * modules/trim (Description): Likewise.
58101         * modules/error (Description): Remove parentheses from symbol
58102         references.
58103         * modules/verror (Description): Likewise.
58104         Reported by Karl Berry.
58105
58106 2007-12-25  Bruno Haible  <bruno@clisp.org>
58107
58108         Fixup after 2007-10-16 commit.
58109         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58110
58111 2007-12-24  Bruno Haible  <bruno@clisp.org>
58112
58113         Make --enable-relocatable work with DESTDIR.
58114         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58115         to compute installdir from destprog.
58116         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58117         also set the RELOC_DESTDIR variable.
58118         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58119
58120 2007-12-24  Bruno Haible  <bruno@clisp.org>
58121
58122         Fix link error due to xalloc_die().
58123         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58124         of xreadlink.
58125         * lib/relocwrapper.c: Update comments.
58126         * build-aux/install-reloc: Remove xreadlink.c from file list.
58127         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58128         xreadlink.c.
58129         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58130
58131 2007-12-24  Bruno Haible  <bruno@clisp.org>
58132
58133         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58134         * lib/setenv.h: Remove file.
58135         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58136         lib/setenv.h.
58137         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58138         (Depends-on): Add stdlib.
58139         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58140         gl_FUNC_UNSETENV.
58141         (Include): Replace setenv.h with <stdlib.h>.
58142         * modules/unsetenv: New file.
58143         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58144         * lib/unsetenv.c: Include <stdlib.h> first.
58145         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58146         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58147         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58148         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58149         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58150         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58152         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58153         * doc/functions/unsetenv.texi: Update.
58154         * modules/xsetenv (Depends-on): Add unsetenv.
58155         * modules/getdate (Depends-on): Likewise.
58156         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58157         * lib/xsetenv.c: Don't include setenv.h.
58158         * lib/getdate.y: Likewise.
58159         * lib/relocwrapper.c: Likewise.
58160         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58161         (Depends-on): Add stdlib.
58162         * NEWS: Mention the changes.
58163         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58164
58165 2007-12-23  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58168         indentation.
58169
58170 2007-12-23  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/c-strcasestr.c: Add more comments.
58173         * lib/c-strstr.c: Likewise.
58174         * lib/mbscasestr.c: Likewise.
58175         * lib/mbsstr.c: Likewise.
58176         * lib/strcasestr.c: Likewise.
58177         * lib/memmem.c: Likewise.
58178
58179 2007-12-23  Bruno Haible  <bruno@clisp.org>
58180
58181         * tests/test-memmem.c: Include <string.h> first.
58182
58183 2007-12-22  Bruno Haible  <bruno@clisp.org>
58184
58185         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58186         the contents of $testsbase.
58187         Reported by Ralf Wildenhues.
58188
58189 2007-12-22  Bruno Haible  <bruno@clisp.org>
58190
58191         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58192         two variables local_ldadd_before, local_ldadd_last.
58193
58194 2007-12-20  Eric Blake  <ebb9@byu.net>
58195
58196         Work around circular library issue when cross-compiling.
58197         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58198         that progname.o does not need to pull in rpl_memcmp.
58199
58200 2007-12-19  Eric Blake  <ebb9@byu.net>
58201
58202         Fix memmem to avoid O(n^2) worst-case complexity.
58203         * lib/memmem.c (knuth_morris_pratt): New function.
58204         (memmem): Use it if first few naive iterations fail.
58205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58206         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58207         * modules/memchr (License): Likewise.
58208         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58209         malloca.
58210         * tests/test-memmem.c: Rewrite, borrowing ideas from
58211         test-mbsstr1.c; the old version wouldn't even compile!
58212         * modules/memmem-tests: New file.
58213         * lib/string.in.h (rpl_memmem): Add declaration.
58214         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58216         REPLACE_MEMMEM.
58217
58218 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58219
58220         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58221         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58222         before any system include files, and undef after them all.  This
58223         should fix a problem on VMS reported by John E. Malmberg in
58224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58225
58226 2007-12-17  Eric Blake  <ebb9@byu.net>
58227
58228         Revert addition of verify, for BSD/OS.
58229         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58230         can't handle large files, for the sake of obsolete platforms.
58231         * modules/fseeko (Depends-on): Remove verify.
58232         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58233         * doc/functions/ftello.texi (ftello): Likewise.
58234         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58235         Reported by Larry Jones.
58236
58237 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58238
58239         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58240         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58241
58242 2007-12-17  Jim Meyering  <meyering@redhat.com>
58243
58244         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58245         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58246         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58247         * modules/getcwd (Depends-on): Add openat.
58248         Reported by Petr Salinger.
58249
58250 2007-12-17  Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58253         avoid a segmentation fault of the configure test on x86_64 systems.
58254
58255 2007-12-15  Jim Meyering  <meyering@redhat.com>
58256
58257         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58258
58259 2007-12-13  Eric Blake  <ebb9@byu.net>
58260
58261         Another fseek test.
58262         * tests/test-fseek.c (main): Also test ungetc handling.
58263         * tests/test-fseeko.c (main): Likewise.
58264         * modules/fseeko (Depends-on): Add verify.
58265         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58266         large.
58267         Reported by Larry Jones.
58268
58269         Fix fseeko on mingw.
58270         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58271         seek.
58272
58273         Beef up fseek tests.
58274         * tests/test-fseek.c (main): Also test eof handling.
58275         * tests/test-fseeko.c (main): Likewise.
58276         Reported by Larry Jones.
58277
58278 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58279
58280         Fix fseeko on BSD-based platforms.
58281         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58282         successful seek.
58283
58284 2007-12-12  Eric Blake  <ebb9@byu.net>
58285
58286         Allow circular dependency of separate libtests.a
58287         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58288         when use_libtests.
58289
58290 2007-12-11  Eric Blake  <ebb9@byu.net>
58291
58292         Fix bug with -0.0L in previous patch.
58293         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58294         * tests/test-isnan.c (main): Also test on zeroes.
58295         * tests/test-isnanf.c (main): Likewise.
58296         * tests/test-isnanl.h (main): Likewise.
58297
58298         Detect pseudo-denormals on x86 even when cross-compiling.
58299         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58300         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58301         invalid bit patterns that happen to satisfy ==.
58302
58303         Avoid link failures with separate libtests.a.
58304         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58305         last, to satisfy circular dependencies.
58306
58307 2007-12-11  Eric Blake  <ebb9@byu.net>
58308         and Bruno Haible  <bruno@clisp.org>
58309
58310         Fix OpenBSD 4.0 <float.h> handling of long double.
58311         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58312         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58313         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58314
58315 2007-12-11  Jim Meyering  <meyering@redhat.com>
58316
58317         * users.txt: Add libvirt.
58318
58319         Support versions of autoconf prior to 2.59c.
58320         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58321         if it is not already defined.
58322
58323 2007-12-09  Bruno Haible  <bruno@clisp.org>
58324
58325         Let 'gnulib-tool --import' collect sources needed for the tests in
58326         tests/ rather than in lib/.
58327         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58328         argument. If true, add rules to generate libtests.a, and put libtests.a
58329         into $(LDADD). Consider source files in subdirectories and set
58330         uses_subdirs.
58331         (func_emit_initmacro_start, func_emit_initmacro_end,
58332         func_emit_initmacro_done): Pass all arguments explicitly.
58333         (func_import): Determine two module lists main_modules,
58334         testsrelated_modules. Determine use_libtests. Determine two variables
58335         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58336         instead of just sed_transform_lib_file. Determine two variables
58337         main_files and testsrelated_files. Compute 'files' as the union of
58338         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58339         func_add_or_update. In the generated gnulib-comp.m4, collect the
58340         object files for tests/ in different variables than those for lib/.
58341         Substitute LIBTESTS_LIBDEPS.
58342         (func_create_testdir): Combine the uses_subdirs results from
58343         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58344
58345 2007-12-09  Bruno Haible  <bruno@clisp.org>
58346
58347         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58348         the build-aux directory.
58349
58350 2007-12-09  Bruno Haible  <bruno@clisp.org>
58351
58352         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58353         introduced on 2006-09-09.
58354
58355 2007-12-07  Jim Meyering  <meyering@redhat.com>
58356
58357         Let these macros work also with autoconf-2.59.
58358         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58359         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58360         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58361
58362 2007-12-06  Jim Meyering  <meyering@redhat.com>
58363
58364         Avoid a configure-time syntax error in gl_FUNC_ACL.
58365         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58366         function in each branch, before testing the cache variable.
58367
58368 2007-12-04  Eric Blake  <ebb9@byu.net>
58369
58370         Make scripts executable.
58371         * build-aux/config.guess: Add execute permissions.
58372         * build-aux/config.sub: Likewise.
58373         * build-aux/gendocs.sh: Likewise.
58374
58375         Fix frexp on mingw.
58376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58377         cross-compiling.
58378         * doc/functions/frexp.texi (frexp): Document the bug.
58379
58380         Make cygwin fseeko check more reliable.
58381         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58382         version numbers, rather than unrelated feature check.
58383         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58384         * doc/functions/ftello.texi (ftello): Likewise.
58385         Reported by Bruno Haible.
58386
58387         * m4/strerror.m4: Bump version number.
58388
58389 2007-12-03  Bruno Haible  <bruno@clisp.org>
58390
58391         * doc/functions/mprotect.texi: Mention the mingw problem.
58392
58393 2007-12-03  Eric Blake  <ebb9@byu.net>
58394
58395         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58396         REPLACE_STRERROR is initialized before this macro.
58397
58398 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58399
58400         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58401         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58402         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58403         put -lsec in even for programs other than 'ls'.  This fixes a problem
58404         for gettext reported by Bruno Haible in
58405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58406         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58407         Add support for Solaris 10.  This isn't efficient, but should get the
58408         job done for now.
58409
58410 2007-12-03  James Youngman  <jay@gnu.org>
58411
58412         * doc/regexprops-generic.texi: change "an close-group" to "a
58413         close-group" and "illegal" to "not allowed".
58414
58415 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58416
58417         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58418         pr_byname.h. Needed for the rare case when the maintainer has done
58419         "make maintainer-clean" in the source directory and then attempts a
58420         build outside the source directory.
58421         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58422         scripts_byname.h.
58423
58424 2007-12-02  Martin Lambers <marlam@marlam.de>
58425             Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/getpagesize.h: Remove file.
58428         * lib/unistd.in.h: Include declaration of getpagesize here.
58429         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58430         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58431         HAVE_SYS_PARAM_H.
58432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58433         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58434         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58435         (Depends-on): Add unistd.
58436         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58437         (Include): Use <unistd.h> instead of getpagesize.h.
58438         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58439         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58440         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58441         gl_GETPAGESIZE invocation, already handled by module dependency.
58442         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58443
58444 2007-12-02  Bruno Haible  <bruno@clisp.org>
58445
58446         * modules/strings-tests: New file.
58447         * tests/test-strings.c: New file.
58448
58449         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58450         * lib/strings.in.h: New file.
58451         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58452         * m4/strings_h.m4: New file.
58453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58454         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58455         * modules/strings: New file.
58456         * modules/string (Makefile.am): Update.
58457         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58458         Reported by Karl Berry.
58459
58460 2007-12-01  Eric Blake  <ebb9@byu.net>
58461
58462         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58463         accomodate fix in cygwin 1.5.25.
58464
58465 2007-12-01  Jim Meyering  <meyering@redhat.com>
58466
58467         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58468         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58469         that would inhibit utf8-optimization of a regexp containing line-
58470         or buffer-anchors, e.g., `^', `$'.
58471
58472 2007-11-30  Bruno Haible  <bruno@clisp.org>
58473
58474         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58475         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58476         glthread_recursive_lock_init.
58477         * lib/lock.c (glthread_recursive_lock_init)
58478         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58479         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58480
58481 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         New function qset_acl, like set_acl but with syscall semantics.
58484         * lib/acl.h (qset_acl): New decl.
58485         * lib/acl.c (qset_acl): New function.
58486         (set_acl): Use new function.  Use more-consistent diagnostics.
58487
58488 2007-11-28  Jim Meyering  <meyering@redhat.com>
58489
58490         * modules/physmem (License): Change from GPL to LGPLv2+.
58491
58492 2007-11-26  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58495         'long double' type has excess precision.
58496         Reported by Jim Meyering in
58497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58498
58499 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58500
58501         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58502         Sync from <http://gnu.org/licenses>.
58503         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58504         with license text from same location.
58505         * doc/maintain.texi, doc/standards.texi:  Sync from
58506         <http://savannah.gnu.org/projects/gnustandards>.
58507
58508 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58509         and Jim Meyering  <meyering@redhat.com>
58510
58511         Adjust getdate' grammar to accept a slightly more regular language.
58512         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58513         Before, the former was rejected.
58514         * lib/getdate.y (digits_to_date_time): New function, factored
58515         out of ...
58516         (number): ...here.  Just call digits_to_date_time.
58517         (hybrid): New non-terminal to handle an <unsigned number,
58518         signed relative offset> sequence consistently.
58519
58520 2007-11-18  Jim Meyering  <meyering@redhat.com>
58521
58522         Pull my changes from coreutils:
58523         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58524         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58525         use of $gnulib_tool_option_extras, so that it's separated from the
58526         preceding argument.
58527
58528         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58529         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58530         parent destination directories before copying a file into place.
58531
58532 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58533
58534         bootstrap: work also with 4-argument variant of AC_INIT
58535         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58536
58537 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         Port test-getaddrinfo to Solaris.
58540         Problem reported by Bruno Haible in
58541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58542         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58543         explanation of setting 'hints'.
58544         Don't reject an implementation merely because it returns EAI_SERVICE.
58545         (EAI_SERVICE): Define to 0 if not defined.
58546
58547 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58548
58549         The license of gnu-make and posix-shell is now "GPLed build tool".
58550         * modules/gnu-make (License): Likewise.
58551         * modules/posix-shell (License): Likewise.
58552
58553         New module posix-shell, for determining a POSIX shell
58554         or perhaps something that is close enough to a POSIX shell.
58555         * m4/posix-shell.m4: New file.
58556         * modules/posix-shell: New file.
58557
58558         * MODULES.html.sh: Mention new module.
58559
58560         New module gnu-make, for determining whether we're using GNU Make.
58561         * m4/gnu-make.m4: New file.
58562         * modules/gnu-make: New file.
58563         * MODULES.html.sh: Mention new module.
58564
58565 2007-11-14  Jim Meyering  <meyering@redhat.com>
58566
58567         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58568         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58569         use this macro to create a function _definition_.
58570         Remove useless "#undef ARGMATCH_DIE".
58571
58572 2007-11-14  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/config.charset: Update for OpenBSD 4.1.
58575         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58576
58577 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58578
58579         Document 64-bit #if problems in stdint.texi.
58580         * doc/headers/stdint.texi (stdint.h): Mention problems with
58581         64-bit-#if, and how to work around them.
58582
58583         Don't insist on 'long long int' support in the preprocessor.  It
58584         breaks too many things.  For example, PRIdMAX still uses a 'long
58585         long int' format with the latest Sun compiler, even though
58586         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58587         preprocessor problem.  This causes the latest coreutils to dump
58588         core on Solaris 10 sparc with the Sun C compiler.
58589         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58590         the troublesome expressions at configure-time, not at #if-time.
58591         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58592         preprocessor.
58593         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58594         compile-time C checks, done at 'configure'-time.
58595         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58596         * modules/inttypes (Makefile): Substitute the new symbols that
58597         gl_INTTYPES_H now generates.
58598         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58599
58600 2007-11-12  Bruno Haible  <bruno@clisp.org>
58601
58602         Tests for Unicode character classification functions.
58603
58604         * modules/unictype/bidicategory-byname-tests: New file.
58605         * modules/unictype/bidicategory-name-tests: New file.
58606         * modules/unictype/bidicategory-of-tests: New file.
58607         * modules/unictype/bidicategory-test-tests: New file.
58608         * modules/unictype/block-list-tests: New file.
58609         * modules/unictype/block-of-tests: New file.
58610         * modules/unictype/block-test-tests: New file.
58611         * modules/unictype/category-C-tests: New file.
58612         * modules/unictype/category-Cc-tests: New file.
58613         * modules/unictype/category-Cf-tests: New file.
58614         * modules/unictype/category-Cn-tests: New file.
58615         * modules/unictype/category-Co-tests: New file.
58616         * modules/unictype/category-Cs-tests: New file.
58617         * modules/unictype/category-L-tests: New file.
58618         * modules/unictype/category-Ll-tests: New file.
58619         * modules/unictype/category-Lm-tests: New file.
58620         * modules/unictype/category-Lo-tests: New file.
58621         * modules/unictype/category-Lt-tests: New file.
58622         * modules/unictype/category-Lu-tests: New file.
58623         * modules/unictype/category-M-tests: New file.
58624         * modules/unictype/category-Mc-tests: New file.
58625         * modules/unictype/category-Me-tests: New file.
58626         * modules/unictype/category-Mn-tests: New file.
58627         * modules/unictype/category-N-tests: New file.
58628         * modules/unictype/category-Nd-tests: New file.
58629         * modules/unictype/category-Nl-tests: New file.
58630         * modules/unictype/category-No-tests: New file.
58631         * modules/unictype/category-P-tests: New file.
58632         * modules/unictype/category-Pc-tests: New file.
58633         * modules/unictype/category-Pd-tests: New file.
58634         * modules/unictype/category-Pe-tests: New file.
58635         * modules/unictype/category-Pf-tests: New file.
58636         * modules/unictype/category-Pi-tests: New file.
58637         * modules/unictype/category-Po-tests: New file.
58638         * modules/unictype/category-Ps-tests: New file.
58639         * modules/unictype/category-S-tests: New file.
58640         * modules/unictype/category-Sc-tests: New file.
58641         * modules/unictype/category-Sk-tests: New file.
58642         * modules/unictype/category-Sm-tests: New file.
58643         * modules/unictype/category-So-tests: New file.
58644         * modules/unictype/category-Z-tests: New file.
58645         * modules/unictype/category-Zl-tests: New file.
58646         * modules/unictype/category-Zp-tests: New file.
58647         * modules/unictype/category-Zs-tests: New file.
58648         * modules/unictype/category-and-not-tests: New file.
58649         * modules/unictype/category-and-tests: New file.
58650         * modules/unictype/category-byname-tests: New file.
58651         * modules/unictype/category-name-tests: New file.
58652         * modules/unictype/category-none-tests: New file.
58653         * modules/unictype/category-of-tests: New file.
58654         * modules/unictype/category-or-tests: New file.
58655         * modules/unictype/category-test-withtable-tests: New file.
58656         * modules/unictype/combining-class-tests: New file.
58657         * modules/unictype/ctype-alnum-tests: New file.
58658         * modules/unictype/ctype-alpha-tests: New file.
58659         * modules/unictype/ctype-blank-tests: New file.
58660         * modules/unictype/ctype-cntrl-tests: New file.
58661         * modules/unictype/ctype-digit-tests: New file.
58662         * modules/unictype/ctype-graph-tests: New file.
58663         * modules/unictype/ctype-lower-tests: New file.
58664         * modules/unictype/ctype-print-tests: New file.
58665         * modules/unictype/ctype-punct-tests: New file.
58666         * modules/unictype/ctype-space-tests: New file.
58667         * modules/unictype/ctype-upper-tests: New file.
58668         * modules/unictype/ctype-xdigit-tests: New file.
58669         * modules/unictype/decimal-digit-tests: New file.
58670         * modules/unictype/digit-tests: New file.
58671         * modules/unictype/mirror-tests: New file.
58672         * modules/unictype/numeric-tests: New file.
58673         * modules/unictype/property-alphabetic-tests: New file.
58674         * modules/unictype/property-ascii-hex-digit-tests: New file.
58675         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58676         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58677         * modules/unictype/property-bidi-block-separator-tests: New file.
58678         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58679         * modules/unictype/property-bidi-common-separator-tests: New file.
58680         * modules/unictype/property-bidi-control-tests: New file.
58681         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58682         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58683         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58684         * modules/unictype/property-bidi-european-digit-tests: New file.
58685         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58686         * modules/unictype/property-bidi-left-to-right-tests: New file.
58687         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58688         * modules/unictype/property-bidi-other-neutral-tests: New file.
58689         * modules/unictype/property-bidi-pdf-tests: New file.
58690         * modules/unictype/property-bidi-segment-separator-tests: New file.
58691         * modules/unictype/property-bidi-whitespace-tests: New file.
58692         * modules/unictype/property-byname-tests: New file.
58693         * modules/unictype/property-combining-tests: New file.
58694         * modules/unictype/property-composite-tests: New file.
58695         * modules/unictype/property-currency-symbol-tests: New file.
58696         * modules/unictype/property-dash-tests: New file.
58697         * modules/unictype/property-decimal-digit-tests: New file.
58698         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58699         * modules/unictype/property-deprecated-tests: New file.
58700         * modules/unictype/property-diacritic-tests: New file.
58701         * modules/unictype/property-extender-tests: New file.
58702         * modules/unictype/property-format-control-tests: New file.
58703         * modules/unictype/property-grapheme-base-tests: New file.
58704         * modules/unictype/property-grapheme-extend-tests: New file.
58705         * modules/unictype/property-grapheme-link-tests: New file.
58706         * modules/unictype/property-hex-digit-tests: New file.
58707         * modules/unictype/property-hyphen-tests: New file.
58708         * modules/unictype/property-id-continue-tests: New file.
58709         * modules/unictype/property-id-start-tests: New file.
58710         * modules/unictype/property-ideographic-tests: New file.
58711         * modules/unictype/property-ids-binary-operator-tests: New file.
58712         * modules/unictype/property-ids-trinary-operator-tests: New file.
58713         * modules/unictype/property-ignorable-control-tests: New file.
58714         * modules/unictype/property-iso-control-tests: New file.
58715         * modules/unictype/property-join-control-tests: New file.
58716         * modules/unictype/property-left-of-pair-tests: New file.
58717         * modules/unictype/property-line-separator-tests: New file.
58718         * modules/unictype/property-logical-order-exception-tests: New file.
58719         * modules/unictype/property-lowercase-tests: New file.
58720         * modules/unictype/property-math-tests: New file.
58721         * modules/unictype/property-non-break-tests: New file.
58722         * modules/unictype/property-not-a-character-tests: New file.
58723         * modules/unictype/property-numeric-tests: New file.
58724         * modules/unictype/property-other-alphabetic-tests: New file.
58725         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58726         * modules/unictype/property-other-grapheme-extend-tests: New file.
58727         * modules/unictype/property-other-id-continue-tests: New file.
58728         * modules/unictype/property-other-id-start-tests: New file.
58729         * modules/unictype/property-other-lowercase-tests: New file.
58730         * modules/unictype/property-other-math-tests: New file.
58731         * modules/unictype/property-other-uppercase-tests: New file.
58732         * modules/unictype/property-paired-punctuation-tests: New file.
58733         * modules/unictype/property-paragraph-separator-tests: New file.
58734         * modules/unictype/property-pattern-syntax-tests: New file.
58735         * modules/unictype/property-pattern-white-space-tests: New file.
58736         * modules/unictype/property-private-use-tests: New file.
58737         * modules/unictype/property-punctuation-tests: New file.
58738         * modules/unictype/property-quotation-mark-tests: New file.
58739         * modules/unictype/property-radical-tests: New file.
58740         * modules/unictype/property-sentence-terminal-tests: New file.
58741         * modules/unictype/property-soft-dotted-tests: New file.
58742         * modules/unictype/property-space-tests: New file.
58743         * modules/unictype/property-terminal-punctuation-tests: New file.
58744         * modules/unictype/property-test-tests: New file.
58745         * modules/unictype/property-titlecase-tests: New file.
58746         * modules/unictype/property-unassigned-code-value-tests: New file.
58747         * modules/unictype/property-unified-ideograph-tests: New file.
58748         * modules/unictype/property-uppercase-tests: New file.
58749         * modules/unictype/property-variation-selector-tests: New file.
58750         * modules/unictype/property-white-space-tests: New file.
58751         * modules/unictype/property-xid-continue-tests: New file.
58752         * modules/unictype/property-xid-start-tests: New file.
58753         * modules/unictype/property-zero-width-tests: New file.
58754         * modules/unictype/scripts-tests: New file.
58755         * modules/unictype/syntax-c-ident-tests: New file.
58756         * modules/unictype/syntax-c-whitespace-tests: New file.
58757         * modules/unictype/syntax-java-ident-tests: New file.
58758         * modules/unictype/syntax-java-whitespace-tests: New file.
58759         * tests/unictype/test-bidi_byname.c: New file.
58760         * tests/unictype/test-bidi_name.c: New file.
58761         * tests/unictype/test-bidi_of.c: New file.
58762         * tests/unictype/test-bidi_test.c: New file.
58763         * tests/unictype/test-block_list.c: New file.
58764         * tests/unictype/test-block_of.c: New file.
58765         * tests/unictype/test-block_test.c: New file.
58766         * tests/unictype/test-categ_and.c: New file.
58767         * tests/unictype/test-categ_and_not.c: New file.
58768         * tests/unictype/test-categ_byname.c: New file.
58769         * tests/unictype/test-categ_name.c: New file.
58770         * tests/unictype/test-categ_none.c: New file.
58771         * tests/unictype/test-categ_of.c: New file.
58772         * tests/unictype/test-categ_or.c: New file.
58773         * tests/unictype/test-categ_test_withtable.c: New file.
58774         * tests/unictype/test-combining.c: New file.
58775         * tests/unictype/test-decdigit.c: New file.
58776         * tests/unictype/test-digit.c: New file.
58777         * tests/unictype/test-mirror.c: New file.
58778         * tests/unictype/test-numeric.c: New file.
58779         * tests/unictype/test-pr_byname.c: New file.
58780         * tests/unictype/test-pr_test.c: New file.
58781         * tests/unictype/test-predicate-part1.h: New file.
58782         * tests/unictype/test-predicate-part2.h: New file.
58783         * tests/unictype/test-scripts.c: New file.
58784         * tests/unictype/test-sy_c_ident.c: New file.
58785         * tests/unictype/test-sy_java_ident.c: New file.
58786
58787         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58788         for Unicode 5.0.0.
58789         * tests/unictype/test-categ_Cc.c: Likewise.
58790         * tests/unictype/test-categ_Cf.c: Likewise.
58791         * tests/unictype/test-categ_Cn.c: Likewise.
58792         * tests/unictype/test-categ_Co.c: Likewise.
58793         * tests/unictype/test-categ_Cs.c: Likewise.
58794         * tests/unictype/test-categ_L.c: Likewise.
58795         * tests/unictype/test-categ_Ll.c: Likewise.
58796         * tests/unictype/test-categ_Lm.c: Likewise.
58797         * tests/unictype/test-categ_Lo.c: Likewise.
58798         * tests/unictype/test-categ_Lt.c: Likewise.
58799         * tests/unictype/test-categ_Lu.c: Likewise.
58800         * tests/unictype/test-categ_M.c: Likewise.
58801         * tests/unictype/test-categ_Mc.c: Likewise.
58802         * tests/unictype/test-categ_Me.c: Likewise.
58803         * tests/unictype/test-categ_Mn.c: Likewise.
58804         * tests/unictype/test-categ_N.c: Likewise.
58805         * tests/unictype/test-categ_Nd.c: Likewise.
58806         * tests/unictype/test-categ_Nl.c: Likewise.
58807         * tests/unictype/test-categ_No.c: Likewise.
58808         * tests/unictype/test-categ_P.c: Likewise.
58809         * tests/unictype/test-categ_Pc.c: Likewise.
58810         * tests/unictype/test-categ_Pd.c: Likewise.
58811         * tests/unictype/test-categ_Pe.c: Likewise.
58812         * tests/unictype/test-categ_Pf.c: Likewise.
58813         * tests/unictype/test-categ_Pi.c: Likewise.
58814         * tests/unictype/test-categ_Po.c: Likewise.
58815         * tests/unictype/test-categ_Ps.c: Likewise.
58816         * tests/unictype/test-categ_S.c: Likewise.
58817         * tests/unictype/test-categ_Sc.c: Likewise.
58818         * tests/unictype/test-categ_Sk.c: Likewise.
58819         * tests/unictype/test-categ_Sm.c: Likewise.
58820         * tests/unictype/test-categ_So.c: Likewise.
58821         * tests/unictype/test-categ_Z.c: Likewise.
58822         * tests/unictype/test-categ_Zl.c: Likewise.
58823         * tests/unictype/test-categ_Zp.c: Likewise.
58824         * tests/unictype/test-categ_Zs.c: Likewise.
58825         * tests/unictype/test-ctype_alnum.c: Likewise.
58826         * tests/unictype/test-ctype_alpha.c: Likewise.
58827         * tests/unictype/test-ctype_blank.c: Likewise.
58828         * tests/unictype/test-ctype_cntrl.c: Likewise.
58829         * tests/unictype/test-ctype_digit.c: Likewise.
58830         * tests/unictype/test-ctype_graph.c: Likewise.
58831         * tests/unictype/test-ctype_lower.c: Likewise.
58832         * tests/unictype/test-ctype_print.c: Likewise.
58833         * tests/unictype/test-ctype_punct.c: Likewise.
58834         * tests/unictype/test-ctype_space.c: Likewise.
58835         * tests/unictype/test-ctype_upper.c: Likewise.
58836         * tests/unictype/test-ctype_xdigit.c: Likewise.
58837         * tests/unictype/test-decdigit.h: Likewise.
58838         * tests/unictype/test-digit.h: Likewise.
58839         * tests/unictype/test-numeric.h: Likewise.
58840         * tests/unictype/test-pr_alphabetic.c: Likewise.
58841         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58842         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58843         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58844         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58845         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58846         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58847         * tests/unictype/test-pr_bidi_control.c: Likewise.
58848         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58849         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58850         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58851         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58852         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58853         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58854         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58855         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58856         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58857         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58858         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58859         * tests/unictype/test-pr_combining.c: Likewise.
58860         * tests/unictype/test-pr_composite.c: Likewise.
58861         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58862         * tests/unictype/test-pr_dash.c: Likewise.
58863         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58864         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58865         * tests/unictype/test-pr_deprecated.c: Likewise.
58866         * tests/unictype/test-pr_diacritic.c: Likewise.
58867         * tests/unictype/test-pr_extender.c: Likewise.
58868         * tests/unictype/test-pr_format_control.c: Likewise.
58869         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58870         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58871         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58872         * tests/unictype/test-pr_hex_digit.c: Likewise.
58873         * tests/unictype/test-pr_hyphen.c: Likewise.
58874         * tests/unictype/test-pr_id_continue.c: Likewise.
58875         * tests/unictype/test-pr_id_start.c: Likewise.
58876         * tests/unictype/test-pr_ideographic.c: Likewise.
58877         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58878         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58879         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58880         * tests/unictype/test-pr_iso_control.c: Likewise.
58881         * tests/unictype/test-pr_join_control.c: Likewise.
58882         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58883         * tests/unictype/test-pr_line_separator.c: Likewise.
58884         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58885         * tests/unictype/test-pr_lowercase.c: Likewise.
58886         * tests/unictype/test-pr_math.c: Likewise.
58887         * tests/unictype/test-pr_non_break.c: Likewise.
58888         * tests/unictype/test-pr_not_a_character.c: Likewise.
58889         * tests/unictype/test-pr_numeric.c: Likewise.
58890         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58891         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58892         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58893         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58894         * tests/unictype/test-pr_other_id_start.c: Likewise.
58895         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58896         * tests/unictype/test-pr_other_math.c: Likewise.
58897         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58898         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58899         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58900         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58901         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58902         * tests/unictype/test-pr_private_use.c: Likewise.
58903         * tests/unictype/test-pr_punctuation.c: Likewise.
58904         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58905         * tests/unictype/test-pr_radical.c: Likewise.
58906         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58907         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58908         * tests/unictype/test-pr_space.c: Likewise.
58909         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58910         * tests/unictype/test-pr_titlecase.c: Likewise.
58911         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58912         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58913         * tests/unictype/test-pr_uppercase.c: Likewise.
58914         * tests/unictype/test-pr_variation_selector.c: Likewise.
58915         * tests/unictype/test-pr_white_space.c: Likewise.
58916         * tests/unictype/test-pr_xid_continue.c: Likewise.
58917         * tests/unictype/test-pr_xid_start.c: Likewise.
58918         * tests/unictype/test-pr_zero_width.c: Likewise.
58919         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58920         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58921
58922 2007-11-12  Bruno Haible  <bruno@clisp.org>
58923
58924         Unicode character classification functions.
58925         * lib/unictype.h: New file.
58926         * modules/unictype/base: New file.
58927         * modules/unictype/category-L: New file.
58928         * modules/unictype/category-Lu: New file.
58929         * modules/unictype/category-Ll: New file.
58930         * modules/unictype/category-Lt: New file.
58931         * modules/unictype/category-Lm: New file.
58932         * modules/unictype/category-Lo: New file.
58933         * modules/unictype/category-M: New file.
58934         * modules/unictype/category-Mn: New file.
58935         * modules/unictype/category-Mc: New file.
58936         * modules/unictype/category-Me: New file.
58937         * modules/unictype/category-N: New file.
58938         * modules/unictype/category-Nd: New file.
58939         * modules/unictype/category-Nl: New file.
58940         * modules/unictype/category-No: New file.
58941         * modules/unictype/category-P: New file.
58942         * modules/unictype/category-Pc: New file.
58943         * modules/unictype/category-Pd: New file.
58944         * modules/unictype/category-Ps: New file.
58945         * modules/unictype/category-Pe: New file.
58946         * modules/unictype/category-Pi: New file.
58947         * modules/unictype/category-Pf: New file.
58948         * modules/unictype/category-Po: New file.
58949         * modules/unictype/category-S: New file.
58950         * modules/unictype/category-Sm: New file.
58951         * modules/unictype/category-Sc: New file.
58952         * modules/unictype/category-Sk: New file.
58953         * modules/unictype/category-So: New file.
58954         * modules/unictype/category-Z: New file.
58955         * modules/unictype/category-Zs: New file.
58956         * modules/unictype/category-Zl: New file.
58957         * modules/unictype/category-Zp: New file.
58958         * modules/unictype/category-C: New file.
58959         * modules/unictype/category-Cc: New file.
58960         * modules/unictype/category-Cf: New file.
58961         * modules/unictype/category-Cs: New file.
58962         * modules/unictype/category-Co: New file.
58963         * modules/unictype/category-Cn: New file.
58964         * modules/unictype/category-or: New file.
58965         * modules/unictype/category-of: New file.
58966         * modules/unictype/category-test: New file.
58967         * modules/unictype/category-test-withtable: New file.
58968         * modules/unictype/category-byname: New file.
58969         * modules/unictype/category-none: New file.
58970         * modules/unictype/category-and: New file.
58971         * modules/unictype/category-and-not: New file.
58972         * modules/unictype/category-name: New file.
58973         * modules/unictype/combining-class: New file.
58974         * modules/unictype/category-all: New file.
58975         * modules/unictype/bidicategory-all: New file.
58976         * modules/unictype/bidicategory-byname: New file.
58977         * modules/unictype/bidicategory-name: New file.
58978         * modules/unictype/bidicategory-of: New file.
58979         * modules/unictype/bidicategory-test: New file.
58980         * modules/unictype/decimal-digit: New file.
58981         * modules/unictype/digit: New file.
58982         * modules/unictype/numeric: New file.
58983         * modules/unictype/mirror: New file.
58984         * modules/unictype/property-white-space: New file.
58985         * modules/unictype/property-alphabetic: New file.
58986         * modules/unictype/property-other-alphabetic: New file.
58987         * modules/unictype/property-not-a-character: New file.
58988         * modules/unictype/property-default-ignorable-code-point: New file.
58989         * modules/unictype/property-other-default-ignorable-code-point: New
58990         file.
58991         * modules/unictype/property-deprecated: New file.
58992         * modules/unictype/property-logical-order-exception: New file.
58993         * modules/unictype/property-variation-selector: New file.
58994         * modules/unictype/property-private-use: New file.
58995         * modules/unictype/property-unassigned-code-value: New file.
58996         * modules/unictype/property-uppercase: New file.
58997         * modules/unictype/property-other-uppercase: New file.
58998         * modules/unictype/property-lowercase: New file.
58999         * modules/unictype/property-other-lowercase: New file.
59000         * modules/unictype/property-titlecase: New file.
59001         * modules/unictype/property-soft-dotted: New file.
59002         * modules/unictype/property-id-start: New file.
59003         * modules/unictype/property-other-id-start: New file.
59004         * modules/unictype/property-id-continue: New file.
59005         * modules/unictype/property-other-id-continue: New file.
59006         * modules/unictype/property-xid-start: New file.
59007         * modules/unictype/property-xid-continue: New file.
59008         * modules/unictype/property-pattern-white-space: New file.
59009         * modules/unictype/property-pattern-syntax: New file.
59010         * modules/unictype/property-join-control: New file.
59011         * modules/unictype/property-grapheme-base: New file.
59012         * modules/unictype/property-grapheme-extend: New file.
59013         * modules/unictype/property-other-grapheme-extend: New file.
59014         * modules/unictype/property-grapheme-link: New file.
59015         * modules/unictype/property-bidi-control: New file.
59016         * modules/unictype/property-bidi-left-to-right: New file.
59017         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59018         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59019         * modules/unictype/property-bidi-european-digit: New file.
59020         * modules/unictype/property-bidi-eur-num-separator: New file.
59021         * modules/unictype/property-bidi-eur-num-terminator: New file.
59022         * modules/unictype/property-bidi-arabic-digit: New file.
59023         * modules/unictype/property-bidi-common-separator: New file.
59024         * modules/unictype/property-bidi-block-separator: New file.
59025         * modules/unictype/property-bidi-segment-separator: New file.
59026         * modules/unictype/property-bidi-whitespace: New file.
59027         * modules/unictype/property-bidi-non-spacing-mark: New file.
59028         * modules/unictype/property-bidi-boundary-neutral: New file.
59029         * modules/unictype/property-bidi-pdf: New file.
59030         * modules/unictype/property-bidi-embedding-or-override: New file.
59031         * modules/unictype/property-bidi-other-neutral: New file.
59032         * modules/unictype/property-hex-digit: New file.
59033         * modules/unictype/property-ascii-hex-digit: New file.
59034         * modules/unictype/property-ideographic: New file.
59035         * modules/unictype/property-unified-ideograph: New file.
59036         * modules/unictype/property-radical: New file.
59037         * modules/unictype/property-ids-binary-operator: New file.
59038         * modules/unictype/property-ids-trinary-operator: New file.
59039         * modules/unictype/property-zero-width: New file.
59040         * modules/unictype/property-space: New file.
59041         * modules/unictype/property-non-break: New file.
59042         * modules/unictype/property-iso-control: New file.
59043         * modules/unictype/property-format-control: New file.
59044         * modules/unictype/property-dash: New file.
59045         * modules/unictype/property-hyphen: New file.
59046         * modules/unictype/property-punctuation: New file.
59047         * modules/unictype/property-line-separator: New file.
59048         * modules/unictype/property-paragraph-separator: New file.
59049         * modules/unictype/property-quotation-mark: New file.
59050         * modules/unictype/property-sentence-terminal: New file.
59051         * modules/unictype/property-terminal-punctuation: New file.
59052         * modules/unictype/property-currency-symbol: New file.
59053         * modules/unictype/property-math: New file.
59054         * modules/unictype/property-other-math: New file.
59055         * modules/unictype/property-paired-punctuation: New file.
59056         * modules/unictype/property-left-of-pair: New file.
59057         * modules/unictype/property-combining: New file.
59058         * modules/unictype/property-composite: New file.
59059         * modules/unictype/property-decimal-digit: New file.
59060         * modules/unictype/property-numeric: New file.
59061         * modules/unictype/property-diacritic: New file.
59062         * modules/unictype/property-extender: New file.
59063         * modules/unictype/property-ignorable-control: New file.
59064         * modules/unictype/property-test: New file.
59065         * modules/unictype/property-byname: New file.
59066         * modules/unictype/property-all: New file.
59067         * modules/unictype/scripts: New file.
59068         * modules/unictype/scripts-all: New file.
59069         * modules/unictype/block-of: New file.
59070         * modules/unictype/block-test: New file.
59071         * modules/unictype/block-list: New file.
59072         * modules/unictype/block-all: New file.
59073         * modules/unictype/syntax-c-whitespace: New file.
59074         * modules/unictype/syntax-java-whitespace: New file.
59075         * modules/unictype/syntax-c-ident: New file.
59076         * modules/unictype/syntax-java-ident: New file.
59077         * modules/unictype/ctype-alnum: New file.
59078         * modules/unictype/ctype-alpha: New file.
59079         * modules/unictype/ctype-cntrl: New file.
59080         * modules/unictype/ctype-digit: New file.
59081         * modules/unictype/ctype-graph: New file.
59082         * modules/unictype/ctype-lower: New file.
59083         * modules/unictype/ctype-print: New file.
59084         * modules/unictype/ctype-punct: New file.
59085         * modules/unictype/ctype-space: New file.
59086         * modules/unictype/ctype-upper: New file.
59087         * modules/unictype/ctype-xdigit: New file.
59088         * modules/unictype/ctype-blank: New file.
59089         * lib/unictype/bidi_byname.c: New file.
59090         * lib/unictype/bidi_name.c: New file.
59091         * lib/unictype/bidi_of.c: New file.
59092         * lib/unictype/bidi_test.c: New file.
59093         * lib/unictype/bitmap.h: New file.
59094         * lib/unictype/block_test.c: New file.
59095         * lib/unictype/blocks.c: New file.
59096         * lib/unictype/categ_C.c: New file.
59097         * lib/unictype/categ_Cc.c: New file.
59098         * lib/unictype/categ_Cf.c: New file.
59099         * lib/unictype/categ_Cn.c: New file.
59100         * lib/unictype/categ_Co.c: New file.
59101         * lib/unictype/categ_Cs.c: New file.
59102         * lib/unictype/categ_L.c: New file.
59103         * lib/unictype/categ_Ll.c: New file.
59104         * lib/unictype/categ_Lm.c: New file.
59105         * lib/unictype/categ_Lo.c: New file.
59106         * lib/unictype/categ_Lt.c: New file.
59107         * lib/unictype/categ_Lu.c: New file.
59108         * lib/unictype/categ_M.c: New file.
59109         * lib/unictype/categ_Mc.c: New file.
59110         * lib/unictype/categ_Me.c: New file.
59111         * lib/unictype/categ_Mn.c: New file.
59112         * lib/unictype/categ_N.c: New file.
59113         * lib/unictype/categ_Nd.c: New file.
59114         * lib/unictype/categ_Nl.c: New file.
59115         * lib/unictype/categ_No.c: New file.
59116         * lib/unictype/categ_P.c: New file.
59117         * lib/unictype/categ_Pc.c: New file.
59118         * lib/unictype/categ_Pd.c: New file.
59119         * lib/unictype/categ_Pe.c: New file.
59120         * lib/unictype/categ_Pf.c: New file.
59121         * lib/unictype/categ_Pi.c: New file.
59122         * lib/unictype/categ_Po.c: New file.
59123         * lib/unictype/categ_Ps.c: New file.
59124         * lib/unictype/categ_S.c: New file.
59125         * lib/unictype/categ_Sc.c: New file.
59126         * lib/unictype/categ_Sk.c: New file.
59127         * lib/unictype/categ_Sm.c: New file.
59128         * lib/unictype/categ_So.c: New file.
59129         * lib/unictype/categ_Z.c: New file.
59130         * lib/unictype/categ_Zl.c: New file.
59131         * lib/unictype/categ_Zp.c: New file.
59132         * lib/unictype/categ_Zs.c: New file.
59133         * lib/unictype/categ_and.c: New file.
59134         * lib/unictype/categ_and_not.c: New file.
59135         * lib/unictype/categ_byname.c: New file.
59136         * lib/unictype/categ_name.c: New file.
59137         * lib/unictype/categ_none.c: New file.
59138         * lib/unictype/categ_of.c: New file.
59139         * lib/unictype/categ_or.c: New file.
59140         * lib/unictype/categ_test.c: New file.
59141         * lib/unictype/combining.c: New file.
59142         * lib/unictype/ctype_alnum.c: New file.
59143         * lib/unictype/ctype_alpha.c: New file.
59144         * lib/unictype/ctype_blank.c: New file.
59145         * lib/unictype/ctype_cntrl.c: New file.
59146         * lib/unictype/ctype_digit.c: New file.
59147         * lib/unictype/ctype_graph.c: New file.
59148         * lib/unictype/ctype_lower.c: New file.
59149         * lib/unictype/ctype_print.c: New file.
59150         * lib/unictype/ctype_punct.c: New file.
59151         * lib/unictype/ctype_space.c: New file.
59152         * lib/unictype/ctype_upper.c: New file.
59153         * lib/unictype/ctype_xdigit.c: New file.
59154         * lib/unictype/decdigit.c: New file.
59155         * lib/unictype/digit.c: New file.
59156         * lib/unictype/identsyntaxmap.h: New file.
59157         * lib/unictype/mirror.c: New file.
59158         * lib/unictype/numeric.c: New file.
59159         * lib/unictype/pr_alphabetic.c: New file.
59160         * lib/unictype/pr_ascii_hex_digit.c: New file.
59161         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59162         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59163         * lib/unictype/pr_bidi_block_separator.c: New file.
59164         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59165         * lib/unictype/pr_bidi_common_separator.c: New file.
59166         * lib/unictype/pr_bidi_control.c: New file.
59167         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59168         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59169         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59170         * lib/unictype/pr_bidi_european_digit.c: New file.
59171         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59172         * lib/unictype/pr_bidi_left_to_right.c: New file.
59173         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59174         * lib/unictype/pr_bidi_other_neutral.c: New file.
59175         * lib/unictype/pr_bidi_pdf.c: New file.
59176         * lib/unictype/pr_bidi_segment_separator.c: New file.
59177         * lib/unictype/pr_bidi_whitespace.c: New file.
59178         * lib/unictype/pr_byname.c: New file.
59179         * lib/unictype/pr_byname.gperf: New file.
59180         * lib/unictype/pr_combining.c: New file.
59181         * lib/unictype/pr_composite.c: New file.
59182         * lib/unictype/pr_currency_symbol.c: New file.
59183         * lib/unictype/pr_dash.c: New file.
59184         * lib/unictype/pr_decimal_digit.c: New file.
59185         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59186         * lib/unictype/pr_deprecated.c: New file.
59187         * lib/unictype/pr_diacritic.c: New file.
59188         * lib/unictype/pr_extender.c: New file.
59189         * lib/unictype/pr_format_control.c: New file.
59190         * lib/unictype/pr_grapheme_base.c: New file.
59191         * lib/unictype/pr_grapheme_extend.c: New file.
59192         * lib/unictype/pr_grapheme_link.c: New file.
59193         * lib/unictype/pr_hex_digit.c: New file.
59194         * lib/unictype/pr_hyphen.c: New file.
59195         * lib/unictype/pr_id_continue.c: New file.
59196         * lib/unictype/pr_id_start.c: New file.
59197         * lib/unictype/pr_ideographic.c: New file.
59198         * lib/unictype/pr_ids_binary_operator.c: New file.
59199         * lib/unictype/pr_ids_trinary_operator.c: New file.
59200         * lib/unictype/pr_ignorable_control.c: New file.
59201         * lib/unictype/pr_iso_control.c: New file.
59202         * lib/unictype/pr_join_control.c: New file.
59203         * lib/unictype/pr_left_of_pair.c: New file.
59204         * lib/unictype/pr_line_separator.c: New file.
59205         * lib/unictype/pr_logical_order_exception.c: New file.
59206         * lib/unictype/pr_lowercase.c: New file.
59207         * lib/unictype/pr_math.c: New file.
59208         * lib/unictype/pr_non_break.c: New file.
59209         * lib/unictype/pr_not_a_character.c: New file.
59210         * lib/unictype/pr_numeric.c: New file.
59211         * lib/unictype/pr_other_alphabetic.c: New file.
59212         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59213         * lib/unictype/pr_other_grapheme_extend.c: New file.
59214         * lib/unictype/pr_other_id_continue.c: New file.
59215         * lib/unictype/pr_other_id_start.c: New file.
59216         * lib/unictype/pr_other_lowercase.c: New file.
59217         * lib/unictype/pr_other_math.c: New file.
59218         * lib/unictype/pr_other_uppercase.c: New file.
59219         * lib/unictype/pr_paired_punctuation.c: New file.
59220         * lib/unictype/pr_paragraph_separator.c: New file.
59221         * lib/unictype/pr_pattern_syntax.c: New file.
59222         * lib/unictype/pr_pattern_white_space.c: New file.
59223         * lib/unictype/pr_private_use.c: New file.
59224         * lib/unictype/pr_punctuation.c: New file.
59225         * lib/unictype/pr_quotation_mark.c: New file.
59226         * lib/unictype/pr_radical.c: New file.
59227         * lib/unictype/pr_sentence_terminal.c: New file.
59228         * lib/unictype/pr_soft_dotted.c: New file.
59229         * lib/unictype/pr_space.c: New file.
59230         * lib/unictype/pr_terminal_punctuation.c: New file.
59231         * lib/unictype/pr_test.c: New file.
59232         * lib/unictype/pr_titlecase.c: New file.
59233         * lib/unictype/pr_unassigned_code_value.c: New file.
59234         * lib/unictype/pr_unified_ideograph.c: New file.
59235         * lib/unictype/pr_uppercase.c: New file.
59236         * lib/unictype/pr_variation_selector.c: New file.
59237         * lib/unictype/pr_white_space.c: New file.
59238         * lib/unictype/pr_xid_continue.c: New file.
59239         * lib/unictype/pr_xid_start.c: New file.
59240         * lib/unictype/pr_zero_width.c: New file.
59241         * lib/unictype/scripts.c: New file.
59242         * lib/unictype/sy_c_ident.c: New file.
59243         * lib/unictype/sy_c_whitespace.c: New file.
59244         * lib/unictype/sy_java_ident.c: New file.
59245         * lib/unictype/sy_java_whitespace.c: New file.
59246
59247         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59248         Unicode 5.0.0.
59249         * lib/unictype/blocks.h: Likewise.
59250         * lib/unictype/categ_C.h: Likewise.
59251         * lib/unictype/categ_Cc.h: Likewise.
59252         * lib/unictype/categ_Cf.h: Likewise.
59253         * lib/unictype/categ_Cn.h: Likewise.
59254         * lib/unictype/categ_Co.h: Likewise.
59255         * lib/unictype/categ_Cs.h: Likewise.
59256         * lib/unictype/categ_L.h: Likewise.
59257         * lib/unictype/categ_Ll.h: Likewise.
59258         * lib/unictype/categ_Lm.h: Likewise.
59259         * lib/unictype/categ_Lo.h: Likewise.
59260         * lib/unictype/categ_Lt.h: Likewise.
59261         * lib/unictype/categ_Lu.h: Likewise.
59262         * lib/unictype/categ_M.h: Likewise.
59263         * lib/unictype/categ_Mc.h: Likewise.
59264         * lib/unictype/categ_Me.h: Likewise.
59265         * lib/unictype/categ_Mn.h: Likewise.
59266         * lib/unictype/categ_N.h: Likewise.
59267         * lib/unictype/categ_Nd.h: Likewise.
59268         * lib/unictype/categ_Nl.h: Likewise.
59269         * lib/unictype/categ_No.h: Likewise.
59270         * lib/unictype/categ_P.h: Likewise.
59271         * lib/unictype/categ_Pc.h: Likewise.
59272         * lib/unictype/categ_Pd.h: Likewise.
59273         * lib/unictype/categ_Pe.h: Likewise.
59274         * lib/unictype/categ_Pf.h: Likewise.
59275         * lib/unictype/categ_Pi.h: Likewise.
59276         * lib/unictype/categ_Po.h: Likewise.
59277         * lib/unictype/categ_Ps.h: Likewise.
59278         * lib/unictype/categ_S.h: Likewise.
59279         * lib/unictype/categ_Sc.h: Likewise.
59280         * lib/unictype/categ_Sk.h: Likewise.
59281         * lib/unictype/categ_Sm.h: Likewise.
59282         * lib/unictype/categ_So.h: Likewise.
59283         * lib/unictype/categ_Z.h: Likewise.
59284         * lib/unictype/categ_Zl.h: Likewise.
59285         * lib/unictype/categ_Zp.h: Likewise.
59286         * lib/unictype/categ_Zs.h: Likewise.
59287         * lib/unictype/categ_of.h: Likewise.
59288         * lib/unictype/combining.h: Likewise.
59289         * lib/unictype/ctype_alnum.h: Likewise.
59290         * lib/unictype/ctype_alpha.h: Likewise.
59291         * lib/unictype/ctype_blank.h: Likewise.
59292         * lib/unictype/ctype_cntrl.h: Likewise.
59293         * lib/unictype/ctype_digit.h: Likewise.
59294         * lib/unictype/ctype_graph.h: Likewise.
59295         * lib/unictype/ctype_lower.h: Likewise.
59296         * lib/unictype/ctype_print.h: Likewise.
59297         * lib/unictype/ctype_punct.h: Likewise.
59298         * lib/unictype/ctype_space.h: Likewise.
59299         * lib/unictype/ctype_upper.h: Likewise.
59300         * lib/unictype/ctype_xdigit.h: Likewise.
59301         * lib/unictype/decdigit.h: Likewise.
59302         * lib/unictype/digit.h: Likewise.
59303         * lib/unictype/mirror.h: Likewise.
59304         * lib/unictype/numeric.h: Likewise.
59305         * lib/unictype/pr_alphabetic.h: Likewise.
59306         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59307         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59308         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59309         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59310         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59311         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59312         * lib/unictype/pr_bidi_control.h: Likewise.
59313         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59314         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59315         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59316         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59317         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59318         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59319         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59320         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59321         * lib/unictype/pr_bidi_pdf.h: Likewise.
59322         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59323         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59324         * lib/unictype/pr_combining.h: Likewise.
59325         * lib/unictype/pr_composite.h: Likewise.
59326         * lib/unictype/pr_currency_symbol.h: Likewise.
59327         * lib/unictype/pr_dash.h: Likewise.
59328         * lib/unictype/pr_decimal_digit.h: Likewise.
59329         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59330         * lib/unictype/pr_deprecated.h: Likewise.
59331         * lib/unictype/pr_diacritic.h: Likewise.
59332         * lib/unictype/pr_extender.h: Likewise.
59333         * lib/unictype/pr_format_control.h: Likewise.
59334         * lib/unictype/pr_grapheme_base.h: Likewise.
59335         * lib/unictype/pr_grapheme_extend.h: Likewise.
59336         * lib/unictype/pr_grapheme_link.h: Likewise.
59337         * lib/unictype/pr_hex_digit.h: Likewise.
59338         * lib/unictype/pr_hyphen.h: Likewise.
59339         * lib/unictype/pr_id_continue.h: Likewise.
59340         * lib/unictype/pr_id_start.h: Likewise.
59341         * lib/unictype/pr_ideographic.h: Likewise.
59342         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59343         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59344         * lib/unictype/pr_ignorable_control.h: Likewise.
59345         * lib/unictype/pr_iso_control.h: Likewise.
59346         * lib/unictype/pr_join_control.h: Likewise.
59347         * lib/unictype/pr_left_of_pair.h: Likewise.
59348         * lib/unictype/pr_line_separator.h: Likewise.
59349         * lib/unictype/pr_logical_order_exception.h: Likewise.
59350         * lib/unictype/pr_lowercase.h: Likewise.
59351         * lib/unictype/pr_math.h: Likewise.
59352         * lib/unictype/pr_non_break.h: Likewise.
59353         * lib/unictype/pr_not_a_character.h: Likewise.
59354         * lib/unictype/pr_numeric.h: Likewise.
59355         * lib/unictype/pr_other_alphabetic.h: Likewise.
59356         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59357         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59358         * lib/unictype/pr_other_id_continue.h: Likewise.
59359         * lib/unictype/pr_other_id_start.h: Likewise.
59360         * lib/unictype/pr_other_lowercase.h: Likewise.
59361         * lib/unictype/pr_other_math.h: Likewise.
59362         * lib/unictype/pr_other_uppercase.h: Likewise.
59363         * lib/unictype/pr_paired_punctuation.h: Likewise.
59364         * lib/unictype/pr_paragraph_separator.h: Likewise.
59365         * lib/unictype/pr_pattern_syntax.h: Likewise.
59366         * lib/unictype/pr_pattern_white_space.h: Likewise.
59367         * lib/unictype/pr_private_use.h: Likewise.
59368         * lib/unictype/pr_punctuation.h: Likewise.
59369         * lib/unictype/pr_quotation_mark.h: Likewise.
59370         * lib/unictype/pr_radical.h: Likewise.
59371         * lib/unictype/pr_sentence_terminal.h: Likewise.
59372         * lib/unictype/pr_soft_dotted.h: Likewise.
59373         * lib/unictype/pr_space.h: Likewise.
59374         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59375         * lib/unictype/pr_titlecase.h: Likewise.
59376         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59377         * lib/unictype/pr_unified_ideograph.h: Likewise.
59378         * lib/unictype/pr_uppercase.h: Likewise.
59379         * lib/unictype/pr_variation_selector.h: Likewise.
59380         * lib/unictype/pr_white_space.h: Likewise.
59381         * lib/unictype/pr_xid_continue.h: Likewise.
59382         * lib/unictype/pr_xid_start.h: Likewise.
59383         * lib/unictype/pr_zero_width.h: Likewise.
59384         * lib/unictype/scripts.h: Likewise.
59385         * lib/unictype/scripts_byname.gperf: Likewise.
59386         * lib/unictype/sy_c_ident.h: Likewise.
59387         * lib/unictype/sy_c_whitespace.h: Likewise.
59388         * lib/unictype/sy_java_ident.h: Likewise.
59389         * lib/unictype/sy_java_whitespace.h: Likewise.
59390
59391         * lib/unictype/Makefile: New file.
59392         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59393         glibc.
59394         * lib/unictype/3level.h: New file, copied from glibc.
59395         * lib/unictype/3levelbit.h: New file.
59396
59397 2007-11-11  Bruno Haible  <bruno@clisp.org>
59398
59399         * modules/gperf: New file.
59400         * modules/iconv_open (Depends-on): Add it.
59401         (Makefile.am): Remove the GPERF definition.
59402
59403 2007-11-11  Bruno Haible  <bruno@clisp.org>
59404
59405         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59406         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59407
59408 2007-11-11  Bruno Haible  <bruno@clisp.org>
59409
59410         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59411         (usage): Remove function.
59412
59413 2007-11-11  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59416         gl_FUNC_CEILF_LIBS.
59417         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59418         gl_FUNC_CEIL_LIBS.
59419         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59420         gl_FUNC_CEILL_LIBS.
59421         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59422         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59423         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59424
59425 2007-11-11  Bruno Haible  <bruno@clisp.org>
59426
59427         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59428         roundf were declared but do not exist on functions.
59429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59430         roundl were declared but do not exist on functions.
59431         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59432         HAVE_FLOORL_AND_CEILL, respectively.
59433         Needed for Sun C on Solaris 10.
59434
59435 2007-11-11  Bruno Haible  <bruno@clisp.org>
59436
59437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59438         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59439         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59440         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59441         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59442         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59443         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59444         HAVE_DECL_ROUNDF.
59445         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59446         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59448         of HAVE_DECL_ROUND*.
59449         * modules/math (Makefile.am): Update.
59450
59451 2007-11-10  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59454         ptrdiff_t as m4/intl.m4.
59455
59456 2007-11-10  Jim Meyering  <meyering@redhat.com>
59457
59458         Avoid link failure for the argmatch test.
59459         * tests/test-argmatch.c (usage): Define function to avoid a link
59460         failure: argmatch_die requires a usage function.
59461
59462 2007-11-09  Bruno Haible  <bruno@clisp.org>
59463
59464         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59465         * doc/functions/vsnprintf.texi: Likewise.
59466         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59467         with a size argument < 2.
59468
59469 2007-11-09  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59472         buffer. Fixes an inefficiency introduced on 2007-11-03.
59473
59474 2007-11-09  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59477         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59478
59479 2007-11-08  Jim Meyering  <meyering@redhat.com>
59480
59481         Change cache variable name prefix "jm_" to "gl_" everywhere.
59482         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59483         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59484         * m4/uptime.m4: s/gl_/jm_/
59485
59486 2007-11-07  Bruno Haible  <bruno@clisp.org>
59487
59488         Update to GNU gettext 0.17.
59489         * m4/intl.m4: Update to GNU gettext 0.17.
59490         * m4/po.m4: Likewise.
59491         * modules/gettext (Files): Remove m4/ulonglong.m4.
59492         (configure.ac): Require gettext infrastructure from version 0.17.
59493
59494 2007-11-06  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59497         symbolic values are not defined in a public header.
59498         * lib/freadable.c (freadable) [QNX]: Likewise.
59499         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59500         * lib/freading.c (freading) [QNX]: Likewise.
59501         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59502         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59503         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59504         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59505         Reported by Alain Magloire.
59506
59507         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59508
59509 2007-11-05  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59512         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59513         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59514         Reported by Eric Blake.
59515
59516 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59517             Bruno Haible  <bruno@clisp.org>
59518
59519         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59520         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59521         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59522         (malloc): Undefine also before including <stdlib.h>.
59523         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59524         Needed on OSF/1 4.0.
59525
59526 2007-11-05  Jim Meyering  <meyering@redhat.com>
59527
59528         git-version-gen: sync from coreutils.
59529         * build-aux/git-version-gen: Add comments.
59530         Change the first '-' to '.' in the snapshot version string,
59531         e.g., 6.9-377-08144 -> 6.9.377-08144
59532         Remove first parameter.
59533         Don't declare a version "-dirty" merely because a time
59534         stamp has changed.
59535
59536 2007-11-04  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/lock.h: Protect all macro definitions containing an 'if'
59539         statement through a "do { ... } while (0)".
59540         * lib/tls.h: Likewise.
59541
59542 2007-11-04  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59545
59546 2007-11-04  Bruno Haible  <bruno@clisp.org>
59547
59548         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59549         * modules/fprintf-posix (Depends-on): Add nocrash.
59550         * modules/snprintf-posix (Depends-on): Likewise.
59551         * modules/sprintf-posix (Depends-on): Likewise.
59552         * modules/vasnprintf-posix (Depends-on): Likewise.
59553         * modules/vasprintf-posix (Depends-on): Likewise.
59554         * modules/vfprintf-posix (Depends-on): Likewise.
59555         * modules/vsnprintf-posix (Depends-on): Likewise.
59556         * modules/vsprintf-posix (Depends-on): Likewise.
59557         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59558         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59559         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59560         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59561         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59562         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59563         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59564
59565 2007-11-04  Bruno Haible  <bruno@clisp.org>
59566
59567         * modules/nocrash: New file.
59568         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59569         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59570
59571 2007-11-04  Bruno Haible  <bruno@clisp.org>
59572
59573         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59574         precision handling.
59575         * tests/test-vasprintf-posix.c (test_function): Likewise.
59576         * tests/test-snprintf-posix.h (test_function): Likewise.
59577         * tests/test-sprintf-posix.h (test_function): Likewise.
59578
59579         Fix *printf behaviour for large precisions on mingw and BeOS.
59580         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59581         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59583         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59585         gl_PRINTF_PRECISION and test its result. Invoke
59586         gl_PREREQ_VASNPRINTF_PRECISION.
59587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59588         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59591         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59593         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59594         * doc/functions/fprintf.texi: Update.
59595         * doc/functions/printf.texi: Update.
59596         * doc/functions/snprintf.texi: Update.
59597         * doc/functions/sprintf.texi: Update.
59598         * doc/functions/vfprintf.texi: Update.
59599         * doc/functions/vprintf.texi: Update.
59600         * doc/functions/vsnprintf.texi: Update.
59601         * doc/functions/vsprintf.texi: Update.
59602
59603 2007-11-04  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59606
59607 2007-11-04  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59610         Reported by Sylvain Beucler <beuc@gnu.org>.
59611
59612 2007-11-03  Bruno Haible  <bruno@clisp.org>
59613
59614         * tests/test-fprintf-posix2.sh: New file.
59615         * tests/test-fprintf-posix2.c: New file.
59616         * modules/fprintf-posix-tests (Files): Add them.
59617         (TESTS): Add test-fprintf-posix2.sh.
59618         (configure.ac): Check for getrlimit and setrlimit.
59619         (check_PROGRAMS): Add test-fprintf-posix2.
59620
59621         * tests/test-printf-posix2.sh: New file.
59622         * tests/test-printf-posix2.c: New file.
59623         * modules/printf-posix-tests (Files): Add them.
59624         (TESTS): Add test-printf-posix2.sh.
59625         (configure.ac): Check for getrlimit and setrlimit.
59626         (check_PROGRAMS): Add test-printf-posix2.
59627
59628         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59629         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59630         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59631         (decode_double): New function, copied from decode_long_double.
59632         (scale10_round_decimal_decoded): New function, extracted from
59633         scale10_round_decimal_long_double.
59634         (scale10_round_decimal_long_double): Use it.
59635         (scale10_round_decimal_double): New function.
59636         (floorlog10): New function.
59637         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59639         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59641         gl_PRINTF_ENOMEM and test its result. Invoke
59642         gl_PREREQ_VASNPRINTF_ENOMEM.
59643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59650         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59651         * modules/snprintf-posix (Depends-on): Likewise.
59652         * modules/sprintf-posix (Depends-on): Likewise.
59653         * modules/vasnprintf-posix (Depends-on): Likewise.
59654         * modules/vasprintf-posix (Depends-on): Likewise.
59655         * modules/vfprintf-posix (Depends-on): Likewise.
59656         * modules/vsnprintf-posix (Depends-on): Likewise.
59657         * modules/vsprintf-posix (Depends-on): Likewise.
59658         * doc/functions/fprintf.texi: Update.
59659         * doc/functions/printf.texi: Update.
59660         * doc/functions/snprintf.texi: Update.
59661         * doc/functions/sprintf.texi: Update.
59662         * doc/functions/vfprintf.texi: Update.
59663         * doc/functions/vprintf.texi: Update.
59664         * doc/functions/vsnprintf.texi: Update.
59665         * doc/functions/vsprintf.texi: Update.
59666
59667 2007-11-03  Bruno Haible  <bruno@clisp.org>
59668
59669         * modules/frexp-nolibm-tests: New file.
59670
59671         * modules/frexp-nolibm: New file.
59672         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59673
59674 2007-11-03  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59677         value is C99 compliant.
59678         Needed for OSF/1 5.1.
59679
59680 2007-11-03  Bruno Haible  <bruno@clisp.org>
59681
59682         Fix out-of-memory handling of vasnprintf.
59683         * lib/printf-parse.c: Include <errno.h>.
59684         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59685         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59686         is already set.
59687
59688 2007-11-02  Eric Blake  <ebb9@byu.net>
59689
59690         Fix tests on cygwin.
59691         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59692
59693 2007-11-01  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59696         warning.
59697         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59698         needed for POSIX compatibility.
59699
59700 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59703         for compatibility with GNU.
59704
59705 2007-11-01  Bruno Haible  <bruno@clisp.org>
59706
59707         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59708         (putenv): Renamed from rpl_putenv. Change argument type from
59709         'const char *' to 'char *'.
59710         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59711         of defining putenv in config.h, just set REPLACE_PUTENV.
59712         * modules/putenv (Depends-on): Add stdlib.
59713         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59714         (Include): Use <stdlib.h>.
59715         * lib/stdlib.in.h (putenv): New declaration.
59716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59717         REPLACE_PUTENV.
59718         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59719         REPLACE_PUTENV.
59720         Needed for MacOS X 10.5.0.
59721         Reported by Peter O'Gorman <peter@pogma.com>.
59722
59723 2007-11-01  Jim Meyering  <meyering@redhat.com>
59724
59725         Treat an empty date string exactly like "0".
59726         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59727         if the remaining date string (to be parsed) is empty, use "0".
59728         Reported by Mischa Molhoek and discussed in this thread:
59729         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59730
59731 2007-10-31  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59734         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59735         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59736         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59737         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59738         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59739
59740 2007-10-31  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59743         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59744         (AC_TYPE_LONG_LONG_INT): Use it.
59745         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59746         it as well.
59747         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59748         to m4/longlong.m4.
59749         * modules/stdint (Files): Remove m4/ulonglong.m4.
59750         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59751         m4/ulonglong.m4.
59752         * modules/strtoumax (Files): Likewise.
59753
59754 2007-10-30  Bruno Haible  <bruno@clisp.org>
59755
59756         * modules/xvasprintf-posix: New file.
59757         Suggested by Eric Blake.
59758
59759 2007-10-30  Bruno Haible  <bruno@clisp.org>
59760
59761         * modules/xprintf-posix-tests: New file.
59762         * tests/test-xprintf-posix.sh: New file.
59763         * tests/test-xprintf-posix.c: New file.
59764         * tests/test-xfprintf-posix.c: New file.
59765
59766         * modules/xprintf-posix: New file.
59767
59768 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59769
59770         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59771         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59772         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59773
59774 2007-10-29  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59777         contain the special marker '_cv_'.
59778         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59779         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59780         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59781         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59782         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59783         Reported by Ralf Wildenhues.
59784
59785 2007-10-29  Bruno Haible  <bruno@clisp.org>
59786
59787         * gnulib-tool (func_import): When --lgpl is not specified, set
59788         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59789         GPLv3.
59790         Reported by Simon Josefsson.
59791
59792 2007-10-28  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59795         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59796         HAVE_DECL_ISFINITE.
59797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59798         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59799         HAVE_DECL_ISFINITE.
59800
59801 2007-10-28  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59804         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59805
59806 2007-10-28  Bruno Haible  <bruno@clisp.org>
59807
59808         Fix link errors with Sun C 5.0 on Solaris 10.
59809         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59810         function is declared but not present in the compiler's libm.
59811         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59812         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59813         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59814         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59815         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59816         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59817         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59819         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59820         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59821         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59822         HAVE_DECL_FLOORL.
59823
59824 2007-10-28  Bruno Haible  <bruno@clisp.org>
59825
59826         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59827         gl_FUNC_FLOORL. Cache the result.
59828         (gl_FUNC_FLOORL): Use it.
59829         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59830         gl_FUNC_CEILL. Cache the result.
59831         (gl_FUNC_CEILL): Use it.
59832
59833         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59834         gl_FUNC_FLOOR. Cache the result.
59835         (gl_FUNC_FLOOR): Use it.
59836         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59837         gl_FUNC_CEIL. Cache the result.
59838         (gl_FUNC_CEIL): Use it.
59839
59840         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59841         gl_FUNC_FLOORF. Cache the result.
59842         (gl_FUNC_FLOORF): Use it.
59843         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59844         gl_FUNC_CEILF. Cache the result.
59845         (gl_FUNC_CEILF): Use it.
59846
59847 2007-10-28  Bruno Haible  <bruno@clisp.org>
59848
59849         * gnulib-tool: Allow specifying the LGPL version number through
59850         --lgpl=2 or --lgpl=3.
59851         (func_usage): Document --lgpl with argument.
59852         Handle --lgpl=... arguments.
59853         (func_import): Recognize also gl_LGPL calls with an argument. When
59854         --lgpl=2 is used and the module's license is just LGPL, report an
59855         error. Set sed_transform_lib_file according to the lgpl variable. In
59856         the generated files, use --lgpl or gl_LGPL invocations with argument,
59857         if necessary.
59858         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59859         an LGPv2+ license.
59860         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59861         gl_LGPL macro.
59862
59863 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59864             Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59867         (u16_uctomb_aux): Likewise.
59868         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59869         !HAVE_INLINE.
59870         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59871
59872 2007-10-28  Bruno Haible  <bruno@clisp.org>
59873
59874         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59875         Invoke AM_GETTEXT_OPTION if it exists.
59876         * modules/vasprintf: Likewise.
59877         * modules/verror: Likewise.
59878         * modules/xprintf: Likewise.
59879         * modules/xvasprintf: Likewise.
59880
59881 2007-10-27  Ben Pfaff  <blp@gnu.org>
59882
59883         * lib/math.in.h: Define isfinite macro and prototypes for
59884         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59885         implementations.
59886         * m4/math_h.m4: New substitutions for isfinite module.
59887         * lib/isfinite.c: New file.
59888         * m4/isfinite.m4: New file.
59889         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59890         * modules/isfinite: New file.
59891         * modules/isfinite-tests: New file.
59892         * tests/tests-isfinite.c: New file.
59893         * doc/functions/isfinite.texi: Mention isfinite module.
59894         * MODULES.html.sh: Mention new module.
59895
59896 2007-10-27  Ben Pfaff  <blp@gnu.org>
59897
59898         Ralf Wildenhues reported that Tru64 4.0D declares the round
59899         functions but does not have definitions.
59900         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59901         cannot be found in any library, set the output variable to
59902         "missing" instead of "".
59903         * m4/round.m4: Also use our substitute if we cannot find round in
59904         any library, even if it is declared.
59905         * m4/roundf.m4: Likewise for roundf.
59906         * m4/roundl.m4: Likewise for roundl.
59907         * lib/math.in.h: Undefine roundf, round, roundl before defining
59908         their replacements, to allow for hypothetical systems where these
59909         may be defined as macros but not available in libraries.
59910
59911 2007-10-27  Bruno Haible  <bruno@clisp.org>
59912
59913         * doc/gnulib.texi: Invoke @firstparagraphindent.
59914         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59915         changes in gnulib.
59916         (Source changes): New section.
59917
59918 2007-10-26  Bruno Haible  <bruno@clisp.org>
59919
59920         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59921         borrowed from autoconf.
59922
59923 2007-10-26  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59926         strerror returned the empty string. Needed on HP-UX 11.00.
59927
59928 2007-10-24  Micah Cowan  <micah@cowan.name>
59929
59930         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59931         * build-aux/bootstrap: Remove support for now-unnecessary option,
59932         --cvs-user, and envvars CVS_USER, CVS_RSH.
59933
59934 2007-10-24  Jim Meyering  <meyering@redhat.com>
59935
59936         Avoid diagnostics from sha1sum when there is no cached checksum.
59937         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59938         if the po.s1 file hasn't been created yet.
59939
59940         * build-aux/bootstrap: Sync from coreutils:
59941         2007-10-24  Jim Meyering  <meyering@redhat.com>
59942         Get gnulib from the git repository, not from an obsolete cvs one.
59943         * build-aux/bootstrap: Suggestion from Micah Cowan.
59944         2007-10-04  Jim Meyering  <jim@meyering.net>
59945         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59946         (update_po_files): Work also when there are no .po files in po/.
59947
59948 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59949
59950         * README: Append ".git" to git and cg examples.
59951         Problem reported by Benoit Sigoure.
59952
59953 2007-10-23  Micah Cowan  <micah@cowan.name>
59954
59955         * users.txt: Add wget.
59956
59957 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59958
59959         Fix linking of some unistdio tests on FreeBSD.
59960         * modules/unistdio/u16-vsnprintf-tests
59961         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59962         * modules/unistdio/u16-vsprintf-tests
59963         (test_u16_vsnprintf1_LDADD): Likewise.
59964         * modules/unistdio/u32-vsnprintf-tests
59965         (test_u32_vsnprintf1_LDADD): Likewise.
59966         * modules/unistdio/u32-vsprintf-tests
59967         (test_u32_vsprintf1_LDADD): Likewise.
59968         * modules/unistdio/u8-vsnprintf-tests
59969         (test_u8_vsnprintf1_LDADD): Likewise.
59970         * modules/unistdio/u8-vsprintf-tests
59971         (test_u8_vsprintf1_LDADD): Likewise.
59972         * modules/unistdio/ulc-vsnprintf-tests
59973         (test_ulc_vsnprintf1_LDADD): Likewise.
59974         * modules/unistdio/ulc-vsprintf-tests
59975         (test_ulc_vsprintf1_LDADD): Likewise.
59976
59977         Fix linking of some uniconv tests on FreeBSD.
59978         * modules/uniconv/u16-conv-from-enc-tests
59979         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59980         * modules/uniconv/u16-conv-to-enc-tests
59981         (test_u16_conv_to_enc_LDADD): Likewise.
59982         * modules/uniconv/u16-strconv-from-enc-tests
59983         (test_u16_strconv_from_enc_LDADD): Likewise.
59984         * modules/uniconv/u16-strconv-to-enc-tests
59985         (test_u16_strconv_to_enc_LDADD): Likewise.
59986         * modules/uniconv/u32-conv-from-enc-tests
59987         (test_u32_conv_from_enc_LDADD): Likewise.
59988         * modules/uniconv/u32-conv-to-enc-tests
59989         (test_u32_conv_to_enc_LDADD): Likewise.
59990         * modules/uniconv/u32-strconv-from-enc-tests
59991         (test_u32_strconv_from_enc_LDADD): Likewise.
59992         * modules/uniconv/u32-strconv-to-enc-tests
59993         (test_u32_strconv_to_enc_LDADD): Likewise.
59994         * modules/uniconv/u8-conv-from-enc-tests
59995         (test_u8_conv_from_enc_LDADD): Likewise.
59996         * modules/uniconv/u8-conv-to-enc-tests
59997         (test_u8_conv_to_enc_LDADD): Likewise.
59998         * modules/uniconv/u8-strconv-from-enc-tests
59999         (test_u8_strconv_from_enc_LDADD): Likewise.
60000         * modules/uniconv/u8-strconv-to-enc-tests
60001         (test_u8_strconv_to_enc_LDADD): Likewise.
60002
60003 2007-10-22  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60006         size.
60007
60008 2007-10-22  Eric Blake  <ebb9@byu.net>
60009
60010         Tweak x*printf documentation.
60011         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60012         variable name and comments.
60013         Suggested by Bruno Haible.
60014
60015 2007-10-22  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/acl.c (copy_acl): Fix file name in comment.
60018
60019 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         Fix Tru64 problem with stdbool.h.
60022         * lib/stdbool.in.h (false, true):
60023         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60024         Don't declare as an enum in this situation; it runs afoul of Tru64.
60025         Problem reported by Steven M. Schweda in
60026         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60027
60028 2007-10-22  Eric Blake  <ebb9@byu.net>
60029
60030         Also wrap vf?printf.
60031         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60032         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60033         (xvprintf, xvfprintf): New functions.
60034
60035 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60036
60037         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60038         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60039
60040         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60041         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60042
60043 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60046         by Bruno Haible.
60047
60048 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60049
60050         * lib/getloadavg.c
60051         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60052         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60053
60054         * tests/test-i-ring.c: Work for C89.
60055
60056 2007-10-22  Bruno Haible  <bruno@clisp.org>
60057
60058         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60059         -1u, in preprocessor expression, so that we don't test for the bug
60060         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60062
60063 2007-10-22  Eric Blake  <ebb9@byu.net>
60064
60065         * tests/test-yesno.sh: Silence stderr during test.
60066
60067 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60068
60069         * modules/crypto/gc-camellia: New file.
60070
60071         * m4/gc-camellia.m4: New file.
60072
60073         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60074
60075         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60076
60077 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60078
60079         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60080         --help to stdout.  Reported by sms@antinode.org (Steven
60081         M. Schweda).
60082
60083 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60084
60085         * users.txt: Fix link to libksba.
60086
60087 2007-10-21  Ben Pfaff  <blp@gnu.org>
60088
60089         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60090         round.c roundf implementation that depends on floorf and ceilf to
60091         be tested unconditionally.
60092
60093 2007-10-21  Ben Pfaff  <blp@gnu.org>
60094
60095         * m4/check-libm-func.m4: Removed.
60096         * m4/check-math-lib.m4: New file.
60097         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60098         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60099         definition and lack of AC_LIBOBJ([roundf]).
60100         * m4/roundl.m4: Ditto, and similarly for roundl.
60101         * modules/round: Reference new m4 file.
60102         * modules/roundf: Ditto.
60103         * modules/roundl: Ditto.
60104         * tests/test-round2.c (main): Use ROUND instead of round.
60105         Bug report from Bruno Haible.
60106
60107 2007-10-21  Bruno Haible  <bruno@clisp.org>
60108
60109         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60110         context.
60111
60112 2007-10-21  Bruno Haible  <bruno@clisp.org>
60113
60114         * tests/test-wcwidth.c (main): Allow negative result for some control
60115         characters.
60116
60117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60118         Needed on OSF/1 5.1.
60119
60120 2007-10-21  Bruno Haible  <bruno@clisp.org>
60121
60122         * tests/test-floorf1.c: Include isnanf.h.
60123         (main): Use isnanf() instead of isnan().
60124         * tests/test-ceilf1.c: Include isnanf.h.
60125         (main): Use isnanf() instead of isnan().
60126         * tests/test-truncf1.c: Include isnanf.h.
60127         (main): Use isnanf() instead of isnan().
60128         * tests/test-roundf1.c: Include isnanf.h.
60129         (main): Use isnanf() instead of isnan().
60130
60131 2007-10-21  Eric Blake  <ebb9@byu.net>
60132
60133         * users.txt: Update URL for m4.
60134
60135 2007-10-21  Bruno Haible  <bruno@clisp.org>
60136
60137         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60138
60139 2007-10-21  Bruno Haible  <bruno@clisp.org>
60140
60141         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60142         Git's management files if the CVS files are not present.
60143
60144 2007-10-20  Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60147         gcc-3.4.x.
60148
60149 2007-10-20  Ben Pfaff  <blp@gnu.org>
60150
60151         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60152         implementations.
60153         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60154         * lib/round.c: New file.
60155         * lib/roundf.c: New file.
60156         * lib/roundl.c: New file.
60157         * m4/round.m4: New file.
60158         * m4/roundf.m4: New file.
60159         * m4/roundl.m4: New file.
60160         * m4/check-libm-func-m4: New file.
60161         * modules/math: Replace round, roundf, roundl related @VARS@ in
60162         math.in.h.
60163         * modules/round: New file.
60164         * modules/round-tests: New file.
60165         * modules/roundf: New file.
60166         * modules/roundf-tests: New file.
60167         * modules/roundl: New file.
60168         * modules/roundl-tests: New file.
60169         * tests/test-round1.c: New file.
60170         * tests/test-round2.c: New file.
60171         * tests/test-roundf1.c: New file.
60172         * tests/test-roundf2.c: New file.
60173         * tests/test-roundl.c: New file.
60174         * doc/functions/round.texi: Mention round module.
60175         * doc/functions/roundf.texi: Mention roundf module.
60176         * doc/functions/roundl.texi: Mention roundl module.
60177         * MODULES.html.sh: Mention new modules.
60178         Thanks to Bruno Haible for suggestions.
60179
60180 2007-10-20  Jim Meyering  <meyering@redhat.com>
60181
60182         * lib/xprintf.c: Include <config.h> unconditionally.
60183
60184         Change xprintf's license to GPL.
60185         * modules/xprintf (License): s/LGPL/GPL/, since this module
60186         depends on modules (exit and exitfail) which are GPL.
60187         Suggestion from Bruno Haible.
60188
60189         xprintf fixes.
60190         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60191         Use a clearer diagnostic.
60192         Patch from Bruno Haible.
60193
60194 2007-10-20  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60197         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60199
60200 2007-10-20  Bruno Haible  <bruno@clisp.org>
60201
60202         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60203         precision in the comparison result > x - 1 or similar.
60204         * tests/test-ceilf2.c (correct_result_p): Likewise.
60205         * tests/test-truncf2.c (correct_result_p): Likewise.
60206         * tests/test-trunc2.c (correct_result_p): Likewise.
60207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60208
60209 2007-10-20  Bruno Haible  <bruno@clisp.org>
60210
60211         * modules/ceil: New file.
60212         * m4/ceil.m4: New file.
60213         * doc/functions/ceil.texi: Mention the 'ceil' module.
60214
60215 2007-10-20  Bruno Haible  <bruno@clisp.org>
60216
60217         * modules/floor: New file.
60218         * m4/floor.m4: New file.
60219         * doc/functions/floor.texi: Mention the 'floor' module.
60220
60221 2007-10-20  Bruno Haible  <bruno@clisp.org>
60222
60223         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60224         of %a.
60225         * modules/floorf-tests (Depends-on): Likewise.
60226         * modules/truncf-tests (Depends-on): Likewise.
60227         * modules/trunc-tests (Depends-on): Likewise.
60228         Reported by Ben Pfaff.
60229
60230 2007-10-19  Jim Meyering  <meyering@redhat.com>
60231
60232         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60233         Don't bother testing specific errno values.  Just test ferror.
60234
60235         New module: xprintf
60236         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60237
60238 2007-10-19  Bruno Haible  <bruno@clisp.org>
60239
60240         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60241         syntax.
60242         * modules/javaexec (Makefile.am): Likewise.
60243         * modules/relocatable-prog (Makefile.am): Likewise.
60244         Suggested by Jim Meyering.
60245
60246 2007-10-18  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60249         Reported by Jim Meyering.
60250
60251 2007-10-18  Eric Blake  <ebb9@byu.net>
60252
60253         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60254
60255 2007-10-18  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60258         the format string into writable memory. Needed in Fortify conditions.
60259
60260 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60261             Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60264         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60265         * modules/trim (Depends-on): Add mbchar.
60266         (configure.ac): Add gl_FUNC_MBRTOWC.
60267         (Makefile.am): Augment lib_SOURCES.
60268
60269 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60270
60271         Modify glob.c to use fstatat and dirfd, to simplify it.
60272         Suggested by Eric Blake.
60273         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60274         Don't include <stdbool.h>; not used.
60275         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60276         (link_exists_p): Simplify implementation, since we can now assume
60277         dirfd and fstatat.
60278         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60279
60280 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60281
60282         * gnulib-tool (func_get_dependencies): Fix sed script to
60283         match only tests.
60284
60285 2007-10-17  Bruno Haible  <bruno@clisp.org>
60286
60287         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60288         allow locale names without encoding suffix.
60289         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60291
60292 2007-10-16  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60295         * lib/getgroups.c (getgroups): Likewise.
60296         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60297
60298 2007-10-16  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60301         * modules/malloc-posix (License): Likewise.
60302         * modules/realloc-posix (License): Likewise.
60303         * modules/calloc-posix (License): Likewise.
60304         * modules/intprops (License): Change from GPL to LGPL, with
60305         Paul Eggert's approval.
60306
60307 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60308
60309         Merge glibc changes into lib/glob.c.
60310
60311         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60312         2007-10-15 04:59:03 UTC.  Here are the changes:
60313
60314         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60315
60316         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60317
60318         * lib/glob.c: Add some branch prediction throughout.
60319
60320         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60321
60322         [BZ #5103]
60323         * lib/glob.c (glob): Recognize patterns starting \/.
60324
60325         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60326
60327         [BZ #3996]
60328         * lib/glob.c (attribute_hidden): Define if not defined.
60329         (glob): Unescape dirname, filename or username when needed and not
60330         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60331         is NULL.  Handle unescaped [ in pattern without closing ].
60332         Don't pass GLOB_CHECK down to recursive glob for directories.
60333         (__glob_pattern_type): New function.
60334         (__glob_pattern_p): Implement using __glob_pattern_type.
60335         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60336         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60337         Remove unreachable code.
60338
60339         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60340
60341         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60342         explain why there are no leaks.
60343
60344         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60345
60346         [BZ #3253]
60347         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60348         time, rather allocate increasingly bigger arrays of pointers, if
60349         possible with alloca, if too large with malloc.
60350
60351 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60352
60353         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60354         Problem reported by H.Merijn Brand in
60355         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60357         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60358
60359 2007-10-15  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60362         with explicit rpl_ prefix.
60363         * lib/fopen.c (fopen): Likewise.
60364         * lib/freopen.c (freopen): Likewise.
60365         * lib/iconv.c (iconv): Likewise.
60366         * lib/iconv_close.c (iconv_close): Likewise.
60367
60368 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60369
60370         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60371
60372 2007-10-15  Bruno Haible  <bruno@clisp.org>
60373
60374         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60375         <stddef.h> instead of <stdlib.h> since we only need NULL.
60376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60377
60378 2007-10-15  Bruno Haible  <bruno@clisp.org>
60379
60380         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60381         Replace paragraph talking about LIBOBJS.
60382         Reported by Colin Watson <cjwatson@debian.org>.
60383
60384 2007-10-15  Bruno Haible  <bruno@clisp.org>
60385
60386         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60387         <stdlib.h> before using NULL.
60388
60389 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60390
60391         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60392         Reported by Albert Chin <china@thewrittenword.com>.
60393
60394 2007-10-14  Bruno Haible  <bruno@clisp.org>
60395
60396         * modules/iconv_open-utf-tests: New file.
60397         * tests/test-iconv-utf.c: New file.
60398
60399         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60400         * modules/iconv_open-utf: New file.
60401         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60402         (iconv, iconv_close): New declarations.
60403         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60404         be defined.
60405         (iconv_open): Add special handling of conversion between UTF-8 and
60406         UTF-{16,32}{BE,LE}.
60407         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60408         * lib/iconv_close.c: New file.
60409         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60410         gl_FUNC_ICONV_OPEN.
60411         (gl_FUNC_ICONV_OPEN): Use it.
60412         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60413         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60414         and REPLACE_ICONV_UTF.
60415         * modules/iconv_open (Depends-on): Add c-strcase.
60416         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60417         ICONV_CONST.
60418         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60419
60420 2007-10-13  Albert Chin  <china@thewrittenword.com>
60421             Bruno Haible  <bruno@clisp.org>
60422
60423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60424         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60425
60426 2007-10-13  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60429         defined, use the ISO C99 inline semantics.
60430         * lib/argp.h (ARGP_EI): Likewise.
60431
60432 2007-10-13  Bruno Haible  <bruno@clisp.org>
60433
60434         Handle 'inline' change in gcc 4.3.0.
60435         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60436         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60437         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60438         argp_fmtstream_point): Disable 'extern' declaration if the function
60439         definition is going to be provided inline.
60440         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60441         semantics, not the ISO C99 inline semantics.
60442         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60443         'extern' declaration if the function definition is going to be provided
60444         inline.
60445         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60446         the GNU C inline semantics, not the ISO C99 inline semantics. With
60447         GCC 4.2, avoid a warning.
60448
60449 2007-10-13  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/freading.h (freading): Enable the use of __freading for
60452         glibc >= 2.7.
60453         * lib/freading.c (freading): Likewise.
60454
60455 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60458         "warning: C99 inline functions are not supported; using GNU89".
60459
60460 2007-10-12  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60463         of 2.
60464         * tests/test-ceilf2.c: New file.
60465         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60466
60467         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60468         * modules/ceilf-tests: Update.
60469
60470 2007-10-12  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60473         of 2.
60474         * tests/test-floorf2.c: New file.
60475         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60476
60477         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60478         * modules/floorf-tests: Update.
60479
60480 2007-10-12  Bruno Haible  <bruno@clisp.org>
60481
60482         * tests/test-trunc2.c: New file.
60483         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60484
60485         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60486         * modules/trunc-tests: Update.
60487
60488 2007-10-12  Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60491         of 2.
60492         * tests/test-truncf2.c: New file.
60493         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60494
60495         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60496         * modules/truncf-tests: Update.
60497
60498 2007-10-11  Eric Blake  <ebb9@byu.net>
60499
60500         Don't claim strerror is broken on Interix.
60501         * doc/functions/strerror.texi (strerror): Known broken systems are
60502         now Solaris 8, and not Interix.
60503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60504         Interix on cross-compile.
60505         Reported by Martin Koeppe in
60506         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60507
60508 2007-10-11  Bruno Haible  <bruno@clisp.org>
60509
60510         * modules/i-ring-tests: New file.
60511         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60512         instead of assert.
60513
60514 2007-10-11  Bruno Haible  <bruno@clisp.org>
60515
60516         * modules/filenamecat-tests: New file.
60517         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60518         * lib/filenamecat.c: Remove test code.
60519
60520 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60523
60524         * lib/strerror.c: Include <string.h> always, to test interface,
60525         and to remove the need for the dummy.
60526         Include intprops.h to compute width instead of doing it ourselves
60527         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60528         (strerror): Define it to return NULL if there's no system strerror.
60529         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60530         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60531         ancient pre-strerror Unix systems well any more.  Saying "unknown
60532         system error" is enough.
60533         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60534         simpler strerror.c implementation.
60535         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60536         Simplify the tests to reflect the simpler strerror implementation.
60537         * modules/strerror (Depends-on): Add intprops.
60538
60539 2007-10-09  Eric Blake  <ebb9@byu.net>
60540
60541         Silence test-fpending.
60542         * modules/fpending-tests (Files): Add wrapper script.
60543         * tests/test-fpending.sh: New file.
60544
60545 2007-10-09  Bruno Haible  <bruno@clisp.org>
60546
60547         * MODULES.html.sh (func_module): Don't create a hyperlink for
60548         function names like 'printf_frexp'.
60549         (Misc): Add crc, memxor.
60550         (Characteristics of floating types): New section.
60551         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60552         isnanf-nolibm, signbit, trunc, truncf, truncl.
60553         (Enhancements for ISO C 99 functions): New subsection Input/output.
60554         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60555         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60556         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60557         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60558         (Enhancements for POSIX:2001 functions): Add chdir-long.
60559         (File system functions): Add areadlink, chdir-safer, read-file.
60560         Remove cycle-check.
60561         (File system as inode set): New section.
60562         (Date and time): Add gethrxtime.
60563         (Multithreading): Add openmp.
60564         (Internationalization functions): Add localename.
60565         (Unicode string functions): Add unistr/u*-mbsnlen.
60566         (Support for maintaining and releasing projects): Add git-version-gen.
60567         (Lone files): Remove directories.
60568
60569 2007-10-08  Ben Pfaff  <blp@gnu.org>
60570
60571         * lib/xmalloca.h: Fix typo in comment.
60572
60573 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60576         when avoiding problems with integer overflow.  Use a portable test
60577         instead.
60578
60579 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60580
60581         * modules/dummy (License): Change to LGPLv2+.
60582         * modules/float (License): Likewise
60583         * modules/realloc (License): Likewise
60584         * modules/stdlib (License): Likewise
60585
60586 2007-10-07  Bruno Haible  <bruno@clisp.org>
60587
60588         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60589         * floor.c (TWO_MANT_DIG): Likewise.
60590         * ceil.c (TWO_MANT_DIG): Likewise.
60591         Reported by Ben Pfaff.
60592
60593 2007-10-07  Bruno Haible  <bruno@clisp.org>
60594
60595         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60596         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60597         * lib/frexp.c (FUNC): Likewise.
60598         * lib/printf-frexp.h (printf_frexp): Likewise.
60599         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60600         * lib/printf-frexp.c (FUNC): Likewise.
60601         Suggested by Jim Meyering.
60602
60603 2007-10-07  Jim Meyering  <meyering@redhat.com>
60604
60605         Make xnanosleep's integer overflow test more robust.
60606         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60607         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60608
60609 2007-10-07  Bruno Haible  <bruno@clisp.org>
60610
60611         * NEWS: Mention the license change.
60612
60613         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60614         abbreviations in the modules files.
60615
60616         Change copyright notice from GPLv2+ to GPLv3+.
60617         * README: Change copyright notice.
60618         * MODULES.html.sh: Likewise.
60619         * build-aux/bootstrap.conf: Likewise.
60620         * build-aux/config.libpath: Likewise.
60621         * build-aux/csharpcomp.sh.in: Likewise.
60622         * build-aux/csharpexec.sh.in: Likewise.
60623         * build-aux/install-reloc: Likewise.
60624         * build-aux/javacomp.sh.in: Likewise.
60625         * build-aux/javaexec.sh.in: Likewise.
60626         * build-aux/ldd.sh.in: Likewise.
60627         * build-aux/reloc-ldflags: Likewise.
60628         * build-aux/relocatable.sh.in: Likewise.
60629         * build-aux/x-to-1.in: Likewise.
60630         * check-module: Likewise.
60631         * config/srclistvars.sh: Likewise.
60632         * gnulib-tool: Likewise.
60633         * lib/acl-internal.h: Likewise.
60634         * lib/acl.c: Likewise.
60635         * lib/acl.h: Likewise.
60636         * lib/acl_entries.c: Likewise.
60637         * lib/areadlink-with-size.c: Likewise.
60638         * lib/areadlink.c: Likewise.
60639         * lib/areadlink.h: Likewise.
60640         * lib/argmatch.c: Likewise.
60641         * lib/argmatch.h: Likewise.
60642         * lib/argp-ba.c: Likewise.
60643         * lib/argp-eexst.c: Likewise.
60644         * lib/argp-fmtstream.c: Likewise.
60645         * lib/argp-fmtstream.h: Likewise.
60646         * lib/argp-fs-xinl.c: Likewise.
60647         * lib/argp-help.c: Likewise.
60648         * lib/argp-namefrob.h: Likewise.
60649         * lib/argp-parse.c: Likewise.
60650         * lib/argp-pin.c: Likewise.
60651         * lib/argp-pv.c: Likewise.
60652         * lib/argp-pvh.c: Likewise.
60653         * lib/argp-xinl.c: Likewise.
60654         * lib/argp.h: Likewise.
60655         * lib/at-func.c: Likewise.
60656         * lib/atanl.c: Likewise.
60657         * lib/backupfile.c: Likewise.
60658         * lib/backupfile.h: Likewise.
60659         * lib/basename.c: Likewise.
60660         * lib/binary-io.h: Likewise.
60661         * lib/byteswap.in.h: Likewise.
60662         * lib/c-stack.c: Likewise.
60663         * lib/c-stack.h: Likewise.
60664         * lib/c-strcasestr.c: Likewise.
60665         * lib/c-strcasestr.h: Likewise.
60666         * lib/c-strstr.c: Likewise.
60667         * lib/c-strstr.h: Likewise.
60668         * lib/c-strtod.c: Likewise.
60669         * lib/calloc.c: Likewise.
60670         * lib/canon-host.c: Likewise.
60671         * lib/canon-host.h: Likewise.
60672         * lib/canonicalize-lgpl.c: Likewise.
60673         * lib/canonicalize.c: Likewise.
60674         * lib/canonicalize.h: Likewise.
60675         * lib/ceil.c: Likewise.
60676         * lib/ceilf.c: Likewise.
60677         * lib/ceill.c: Likewise.
60678         * lib/chdir-long.c: Likewise.
60679         * lib/chdir-long.h: Likewise.
60680         * lib/chdir-safer.c: Likewise.
60681         * lib/chdir-safer.h: Likewise.
60682         * lib/chown.c: Likewise.
60683         * lib/classpath.c: Likewise.
60684         * lib/classpath.h: Likewise.
60685         * lib/clean-temp.c: Likewise.
60686         * lib/clean-temp.h: Likewise.
60687         * lib/cloexec.c: Likewise.
60688         * lib/close-stream.c: Likewise.
60689         * lib/closein.c: Likewise.
60690         * lib/closein.h: Likewise.
60691         * lib/closeout.c: Likewise.
60692         * lib/closeout.h: Likewise.
60693         * lib/concat-filename.c: Likewise.
60694         * lib/copy-file.c: Likewise.
60695         * lib/copy-file.h: Likewise.
60696         * lib/count-one-bits.h: Likewise.
60697         * lib/crc.c: Likewise.
60698         * lib/crc.h: Likewise.
60699         * lib/creat-safer.c: Likewise.
60700         * lib/csharpcomp.c: Likewise.
60701         * lib/csharpcomp.h: Likewise.
60702         * lib/csharpexec.c: Likewise.
60703         * lib/csharpexec.h: Likewise.
60704         * lib/cycle-check.c: Likewise.
60705         * lib/cycle-check.h: Likewise.
60706         * lib/diacrit.c: Likewise.
60707         * lib/diacrit.h: Likewise.
60708         * lib/diffseq.h: Likewise.
60709         * lib/dirchownmod.c: Likewise.
60710         * lib/dirent.in.h: Likewise.
60711         * lib/dirfd.c: Likewise.
60712         * lib/dirfd.h: Likewise.
60713         * lib/dirname.c: Likewise.
60714         * lib/dirname.h: Likewise.
60715         * lib/dummy.c: Likewise.
60716         * lib/dup-safer.c: Likewise.
60717         * lib/dup2.c: Likewise.
60718         * lib/eealloc.h: Likewise.
60719         * lib/error.c: Likewise.
60720         * lib/error.h: Likewise.
60721         * lib/euidaccess.c: Likewise.
60722         * lib/exclude.c: Likewise.
60723         * lib/exclude.h: Likewise.
60724         * lib/execute.c: Likewise.
60725         * lib/execute.h: Likewise.
60726         * lib/exitfail.c: Likewise.
60727         * lib/exitfail.h: Likewise.
60728         * lib/expl.c: Likewise.
60729         * lib/fatal-signal.c: Likewise.
60730         * lib/fatal-signal.h: Likewise.
60731         * lib/fbufmode.c: Likewise.
60732         * lib/fbufmode.h: Likewise.
60733         * lib/fchdir.c: Likewise.
60734         * lib/fchmodat.c: Likewise.
60735         * lib/fchownat.c: Likewise.
60736         * lib/fcntl--.h: Likewise.
60737         * lib/fcntl-safer.h: Likewise.
60738         * lib/fcntl.in.h: Likewise.
60739         * lib/fd-safer.c: Likewise.
60740         * lib/fflush.c: Likewise.
60741         * lib/file-has-acl.c: Likewise.
60742         * lib/file-set.c: Likewise.
60743         * lib/file-type.c: Likewise.
60744         * lib/file-type.h: Likewise.
60745         * lib/fileblocks.c: Likewise.
60746         * lib/filemode.c: Likewise.
60747         * lib/filemode.h: Likewise.
60748         * lib/filename.h: Likewise.
60749         * lib/filenamecat.c: Likewise.
60750         * lib/filenamecat.h: Likewise.
60751         * lib/findprog.c: Likewise.
60752         * lib/findprog.h: Likewise.
60753         * lib/float.in.h: Likewise.
60754         * lib/floor.c: Likewise.
60755         * lib/floorf.c: Likewise.
60756         * lib/floorl.c: Likewise.
60757         * lib/fopen-safer.c: Likewise.
60758         * lib/fopen.c: Likewise.
60759         * lib/fpending.c: Likewise.
60760         * lib/fpending.h: Likewise.
60761         * lib/fprintf.c: Likewise.
60762         * lib/fprintftime.h: Likewise.
60763         * lib/fpucw.h: Likewise.
60764         * lib/fpurge.c: Likewise.
60765         * lib/fpurge.h: Likewise.
60766         * lib/freadable.c: Likewise.
60767         * lib/freadable.h: Likewise.
60768         * lib/freadahead.c: Likewise.
60769         * lib/freadahead.h: Likewise.
60770         * lib/freading.c: Likewise.
60771         * lib/freading.h: Likewise.
60772         * lib/free.c: Likewise.
60773         * lib/freopen.c: Likewise.
60774         * lib/frexp.c: Likewise.
60775         * lib/frexpl.c: Likewise.
60776         * lib/fseek.c: Likewise.
60777         * lib/fseterr.c: Likewise.
60778         * lib/fseterr.h: Likewise.
60779         * lib/fstatat.c: Likewise.
60780         * lib/fstrcmp.c: Likewise.
60781         * lib/fstrcmp.h: Likewise.
60782         * lib/fsusage.c: Likewise.
60783         * lib/fsusage.h: Likewise.
60784         * lib/ftell.c: Likewise.
60785         * lib/ftello.c: Likewise.
60786         * lib/fts-cycle.c: Likewise.
60787         * lib/fts.c: Likewise.
60788         * lib/fts_.h: Likewise.
60789         * lib/full-read.c: Likewise.
60790         * lib/full-read.h: Likewise.
60791         * lib/full-write.c: Likewise.
60792         * lib/full-write.h: Likewise.
60793         * lib/fwritable.c: Likewise.
60794         * lib/fwritable.h: Likewise.
60795         * lib/fwriteerror.c: Likewise.
60796         * lib/fwriteerror.h: Likewise.
60797         * lib/fwriting.c: Likewise.
60798         * lib/fwriting.h: Likewise.
60799         * lib/gcd.c: Likewise.
60800         * lib/gcd.h: Likewise.
60801         * lib/getcwd.c: Likewise.
60802         * lib/getdate.h: Likewise.
60803         * lib/getdate.y: Likewise.
60804         * lib/getdomainname.c: Likewise.
60805         * lib/getdomainname.h: Likewise.
60806         * lib/getgroups.c: Likewise.
60807         * lib/gethostname.c: Likewise.
60808         * lib/gethrxtime.c: Likewise.
60809         * lib/gethrxtime.h: Likewise.
60810         * lib/getloadavg.c: Likewise.
60811         * lib/getndelim2.c: Likewise.
60812         * lib/getndelim2.h: Likewise.
60813         * lib/getnline.c: Likewise.
60814         * lib/getnline.h: Likewise.
60815         * lib/getopt.c: Likewise.
60816         * lib/getopt.in.h: Likewise.
60817         * lib/getopt1.c: Likewise.
60818         * lib/getopt_int.h: Likewise.
60819         * lib/getpagesize.h: Likewise.
60820         * lib/getsubopt.c: Likewise.
60821         * lib/gettime.c: Likewise.
60822         * lib/getugroups.c: Likewise.
60823         * lib/getugroups.h: Likewise.
60824         * lib/getusershell.c: Likewise.
60825         * lib/gl_anyavltree_list1.h: Likewise.
60826         * lib/gl_anyavltree_list2.h: Likewise.
60827         * lib/gl_anyhash_list1.h: Likewise.
60828         * lib/gl_anyhash_list2.h: Likewise.
60829         * lib/gl_anylinked_list1.h: Likewise.
60830         * lib/gl_anylinked_list2.h: Likewise.
60831         * lib/gl_anyrbtree_list1.h: Likewise.
60832         * lib/gl_anyrbtree_list2.h: Likewise.
60833         * lib/gl_anytree_list1.h: Likewise.
60834         * lib/gl_anytree_list2.h: Likewise.
60835         * lib/gl_anytree_oset.h: Likewise.
60836         * lib/gl_anytreehash_list1.h: Likewise.
60837         * lib/gl_anytreehash_list2.h: Likewise.
60838         * lib/gl_array_list.c: Likewise.
60839         * lib/gl_array_list.h: Likewise.
60840         * lib/gl_array_oset.c: Likewise.
60841         * lib/gl_array_oset.h: Likewise.
60842         * lib/gl_avltree_list.c: Likewise.
60843         * lib/gl_avltree_list.h: Likewise.
60844         * lib/gl_avltree_oset.c: Likewise.
60845         * lib/gl_avltree_oset.h: Likewise.
60846         * lib/gl_avltreehash_list.c: Likewise.
60847         * lib/gl_avltreehash_list.h: Likewise.
60848         * lib/gl_carray_list.c: Likewise.
60849         * lib/gl_carray_list.h: Likewise.
60850         * lib/gl_linked_list.c: Likewise.
60851         * lib/gl_linked_list.h: Likewise.
60852         * lib/gl_linkedhash_list.c: Likewise.
60853         * lib/gl_linkedhash_list.h: Likewise.
60854         * lib/gl_list.c: Likewise.
60855         * lib/gl_list.h: Likewise.
60856         * lib/gl_oset.c: Likewise.
60857         * lib/gl_oset.h: Likewise.
60858         * lib/gl_rbtree_list.c: Likewise.
60859         * lib/gl_rbtree_list.h: Likewise.
60860         * lib/gl_rbtree_oset.c: Likewise.
60861         * lib/gl_rbtree_oset.h: Likewise.
60862         * lib/gl_rbtreehash_list.c: Likewise.
60863         * lib/gl_rbtreehash_list.h: Likewise.
60864         * lib/gl_sublist.c: Likewise.
60865         * lib/gl_sublist.h: Likewise.
60866         * lib/group-member.c: Likewise.
60867         * lib/group-member.h: Likewise.
60868         * lib/hard-locale.c: Likewise.
60869         * lib/hard-locale.h: Likewise.
60870         * lib/hash-pjw.c: Likewise.
60871         * lib/hash-pjw.h: Likewise.
60872         * lib/hash-triple.c: Likewise.
60873         * lib/hash.c: Likewise.
60874         * lib/hash.h: Likewise.
60875         * lib/human.c: Likewise.
60876         * lib/human.h: Likewise.
60877         * lib/i-ring.c: Likewise.
60878         * lib/i-ring.h: Likewise.
60879         * lib/idcache.c: Likewise.
60880         * lib/imaxabs.c: Likewise.
60881         * lib/imaxdiv.c: Likewise.
60882         * lib/inet_pton.c: Likewise.
60883         * lib/inet_pton.h: Likewise.
60884         * lib/intprops.h: Likewise.
60885         * lib/inttostr.c: Likewise.
60886         * lib/inttostr.h: Likewise.
60887         * lib/inttypes.in.h: Likewise.
60888         * lib/isapipe.c: Likewise.
60889         * lib/isdir.c: Likewise.
60890         * lib/isnan.c: Likewise.
60891         * lib/isnan.h: Likewise.
60892         * lib/isnanf.c: Likewise.
60893         * lib/isnanf.h: Likewise.
60894         * lib/isnanl-nolibm.h: Likewise.
60895         * lib/isnanl.c: Likewise.
60896         * lib/isnanl.h: Likewise.
60897         * lib/javacomp.c: Likewise.
60898         * lib/javacomp.h: Likewise.
60899         * lib/javaexec.c: Likewise.
60900         * lib/javaexec.h: Likewise.
60901         * lib/javaversion.c: Likewise.
60902         * lib/javaversion.h: Likewise.
60903         * lib/javaversion.java: Likewise.
60904         * lib/lbrkprop.h: Likewise.
60905         * lib/lchmod.h: Likewise.
60906         * lib/lchown.c: Likewise.
60907         * lib/ldexpl.c: Likewise.
60908         * lib/linebreak.c: Likewise.
60909         * lib/linebreak.h: Likewise.
60910         * lib/linebuffer.c: Likewise.
60911         * lib/linebuffer.h: Likewise.
60912         * lib/locale.in.h: Likewise.
60913         * lib/logl.c: Likewise.
60914         * lib/long-options.c: Likewise.
60915         * lib/long-options.h: Likewise.
60916         * lib/lstat.c: Likewise.
60917         * lib/lstat.h: Likewise.
60918         * lib/math.in.h: Likewise.
60919         * lib/mbchar.c: Likewise.
60920         * lib/mbchar.h: Likewise.
60921         * lib/mbfile.h: Likewise.
60922         * lib/mbiter.h: Likewise.
60923         * lib/mbscasecmp.c: Likewise.
60924         * lib/mbscasestr.c: Likewise.
60925         * lib/mbschr.c: Likewise.
60926         * lib/mbscspn.c: Likewise.
60927         * lib/mbslen.c: Likewise.
60928         * lib/mbsncasecmp.c: Likewise.
60929         * lib/mbsnlen.c: Likewise.
60930         * lib/mbspbrk.c: Likewise.
60931         * lib/mbspcasecmp.c: Likewise.
60932         * lib/mbsrchr.c: Likewise.
60933         * lib/mbssep.c: Likewise.
60934         * lib/mbsspn.c: Likewise.
60935         * lib/mbsstr.c: Likewise.
60936         * lib/mbstok_r.c: Likewise.
60937         * lib/mbswidth.c: Likewise.
60938         * lib/mbswidth.h: Likewise.
60939         * lib/mbuiter.h: Likewise.
60940         * lib/memcasecmp.c: Likewise.
60941         * lib/memcasecmp.h: Likewise.
60942         * lib/memchr.c: Likewise.
60943         * lib/memcmp.c: Likewise.
60944         * lib/memcoll.c: Likewise.
60945         * lib/memcoll.h: Likewise.
60946         * lib/memcpy.c: Likewise.
60947         * lib/memrchr.c: Likewise.
60948         * lib/mkancesdirs.c: Likewise.
60949         * lib/mkdir-p.c: Likewise.
60950         * lib/mkdir-p.h: Likewise.
60951         * lib/mkdir.c: Likewise.
60952         * lib/mkdirat.c: Likewise.
60953         * lib/mkdtemp.c: Likewise.
60954         * lib/mkstemp-safer.c: Likewise.
60955         * lib/mkstemp.c: Likewise.
60956         * lib/modechange.c: Likewise.
60957         * lib/modechange.h: Likewise.
60958         * lib/mountlist.c: Likewise.
60959         * lib/mountlist.h: Likewise.
60960         * lib/mpsort.c: Likewise.
60961         * lib/nanosleep.c: Likewise.
60962         * lib/obstack.c: Likewise.
60963         * lib/obstack.h: Likewise.
60964         * lib/open-safer.c: Likewise.
60965         * lib/open.c: Likewise.
60966         * lib/openat-die.c: Likewise.
60967         * lib/openat-priv.h: Likewise.
60968         * lib/openat-proc.c: Likewise.
60969         * lib/openat.c: Likewise.
60970         * lib/openat.h: Likewise.
60971         * lib/pagealign_alloc.c: Likewise.
60972         * lib/pagealign_alloc.h: Likewise.
60973         * lib/physmem.c: Likewise.
60974         * lib/physmem.h: Likewise.
60975         * lib/pipe-safer.c: Likewise.
60976         * lib/pipe.c: Likewise.
60977         * lib/pipe.h: Likewise.
60978         * lib/posixtm.c: Likewise.
60979         * lib/posixtm.h: Likewise.
60980         * lib/posixver.c: Likewise.
60981         * lib/printf-frexp.c: Likewise.
60982         * lib/printf-frexp.h: Likewise.
60983         * lib/printf-frexpl.c: Likewise.
60984         * lib/printf-frexpl.h: Likewise.
60985         * lib/printf.c: Likewise.
60986         * lib/progname.c: Likewise.
60987         * lib/progname.h: Likewise.
60988         * lib/progreloc.c: Likewise.
60989         * lib/putenv.c: Likewise.
60990         * lib/quote.c: Likewise.
60991         * lib/quote.h: Likewise.
60992         * lib/quotearg.c: Likewise.
60993         * lib/quotearg.h: Likewise.
60994         * lib/raise.c: Likewise.
60995         * lib/readline.c: Likewise.
60996         * lib/readline.h: Likewise.
60997         * lib/readlink.c: Likewise.
60998         * lib/readtokens.c: Likewise.
60999         * lib/readtokens.h: Likewise.
61000         * lib/readtokens0.c: Likewise.
61001         * lib/readtokens0.h: Likewise.
61002         * lib/readutmp.c: Likewise.
61003         * lib/readutmp.h: Likewise.
61004         * lib/realloc.c: Likewise.
61005         * lib/relocwrapper.c: Likewise.
61006         * lib/rename-dest-slash.c: Likewise.
61007         * lib/rename.c: Likewise.
61008         * lib/rmdir.c: Likewise.
61009         * lib/rpmatch.c: Likewise.
61010         * lib/safe-read.c: Likewise.
61011         * lib/safe-read.h: Likewise.
61012         * lib/safe-write.c: Likewise.
61013         * lib/safe-write.h: Likewise.
61014         * lib/same-inode.h: Likewise.
61015         * lib/same.c: Likewise.
61016         * lib/same.h: Likewise.
61017         * lib/save-cwd.c: Likewise.
61018         * lib/save-cwd.h: Likewise.
61019         * lib/savedir.c: Likewise.
61020         * lib/savedir.h: Likewise.
61021         * lib/savewd.c: Likewise.
61022         * lib/savewd.h: Likewise.
61023         * lib/search.in.h: Likewise.
61024         * lib/setenv.c: Likewise.
61025         * lib/setenv.h: Likewise.
61026         * lib/settime.c: Likewise.
61027         * lib/sh-quote.c: Likewise.
61028         * lib/sh-quote.h: Likewise.
61029         * lib/sig2str.c: Likewise.
61030         * lib/sig2str.h: Likewise.
61031         * lib/signal.in.h: Likewise.
61032         * lib/signbitd.c: Likewise.
61033         * lib/signbitf.c: Likewise.
61034         * lib/signbitl.c: Likewise.
61035         * lib/sigprocmask.c: Likewise.
61036         * lib/sincosl.c: Likewise.
61037         * lib/sleep.c: Likewise.
61038         * lib/sprintf.c: Likewise.
61039         * lib/sqrtl.c: Likewise.
61040         * lib/stat-time.h: Likewise.
61041         * lib/stdio--.h: Likewise.
61042         * lib/stdio-safer.h: Likewise.
61043         * lib/stdlib--.h: Likewise.
61044         * lib/stdlib-safer.h: Likewise.
61045         * lib/stdlib.in.h: Likewise.
61046         * lib/stpcpy.c: Likewise.
61047         * lib/stpncpy.c: Likewise.
61048         * lib/strchrnul.c: Likewise.
61049         * lib/strcspn.c: Likewise.
61050         * lib/strerror.c: Likewise.
61051         * lib/strftime.c: Likewise.
61052         * lib/strftime.h: Likewise.
61053         * lib/striconveh.c: Likewise.
61054         * lib/striconveh.h: Likewise.
61055         * lib/striconveha.c: Likewise.
61056         * lib/striconveha.h: Likewise.
61057         * lib/stripslash.c: Likewise.
61058         * lib/strnlen1.c: Likewise.
61059         * lib/strnlen1.h: Likewise.
61060         * lib/strtod.c: Likewise.
61061         * lib/strtoimax.c: Likewise.
61062         * lib/strtok_r.c: Likewise.
61063         * lib/strtol.c: Likewise.
61064         * lib/strtoll.c: Likewise.
61065         * lib/strtoul.c: Likewise.
61066         * lib/strtoull.c: Likewise.
61067         * lib/sysexits.in.h: Likewise.
61068         * lib/tempname.c: Likewise.
61069         * lib/tempname.h: Likewise.
61070         * lib/timespec.h: Likewise.
61071         * lib/tls.c: Likewise.
61072         * lib/tls.h: Likewise.
61073         * lib/tmpdir.c: Likewise.
61074         * lib/tmpdir.h: Likewise.
61075         * lib/tmpfile-safer.c: Likewise.
61076         * lib/tmpfile.c: Likewise.
61077         * lib/trigl.c: Likewise.
61078         * lib/trigl.h: Likewise.
61079         * lib/trim.c: Likewise.
61080         * lib/trim.h: Likewise.
61081         * lib/trunc.c: Likewise.
61082         * lib/truncf.c: Likewise.
61083         * lib/truncl.c: Likewise.
61084         * lib/tsearch.c: Likewise.
61085         * lib/unicodeio.c: Likewise.
61086         * lib/unicodeio.h: Likewise.
61087         * lib/unistd--.h: Likewise.
61088         * lib/unistd-safer.h: Likewise.
61089         * lib/unistdio/ulc-fprintf.c: Likewise.
61090         * lib/unistdio/ulc-vfprintf.c: Likewise.
61091         * lib/unlinkdir.c: Likewise.
61092         * lib/unlinkdir.h: Likewise.
61093         * lib/unlocked-io.h: Likewise.
61094         * lib/unsetenv.c: Likewise.
61095         * lib/userspec.c: Likewise.
61096         * lib/utime.c: Likewise.
61097         * lib/utimecmp.c: Likewise.
61098         * lib/utimecmp.h: Likewise.
61099         * lib/utimens.c: Likewise.
61100         * lib/verify.h: Likewise.
61101         * lib/verror.c: Likewise.
61102         * lib/verror.h: Likewise.
61103         * lib/version-etc-fsf.c: Likewise.
61104         * lib/version-etc.c: Likewise.
61105         * lib/version-etc.h: Likewise.
61106         * lib/vfprintf.c: Likewise.
61107         * lib/vprintf.c: Likewise.
61108         * lib/vsprintf.c: Likewise.
61109         * lib/w32spawn.h: Likewise.
61110         * lib/wait-process.c: Likewise.
61111         * lib/wait-process.h: Likewise.
61112         * lib/wcwidth.c: Likewise.
61113         * lib/write-any-file.c: Likewise.
61114         * lib/xalloc-die.c: Likewise.
61115         * lib/xalloc.h: Likewise.
61116         * lib/xasprintf.c: Likewise.
61117         * lib/xgetcwd.c: Likewise.
61118         * lib/xgetcwd.h: Likewise.
61119         * lib/xgetdomainname.c: Likewise.
61120         * lib/xgetdomainname.h: Likewise.
61121         * lib/xgethostname.c: Likewise.
61122         * lib/xmalloc.c: Likewise.
61123         * lib/xmalloca.c: Likewise.
61124         * lib/xmalloca.h: Likewise.
61125         * lib/xmemcoll.c: Likewise.
61126         * lib/xnanosleep.c: Likewise.
61127         * lib/xreadlink.c: Likewise.
61128         * lib/xreadlink.h: Likewise.
61129         * lib/xsetenv.c: Likewise.
61130         * lib/xsetenv.h: Likewise.
61131         * lib/xstriconv.c: Likewise.
61132         * lib/xstriconv.h: Likewise.
61133         * lib/xstrndup.c: Likewise.
61134         * lib/xstrndup.h: Likewise.
61135         * lib/xstrtod.c: Likewise.
61136         * lib/xstrtod.h: Likewise.
61137         * lib/xstrtol-error.c: Likewise.
61138         * lib/xstrtol.c: Likewise.
61139         * lib/xstrtol.h: Likewise.
61140         * lib/xtime.h: Likewise.
61141         * lib/xvasprintf.c: Likewise.
61142         * lib/xvasprintf.h: Likewise.
61143         * lib/yesno.c: Likewise.
61144         * lib/yesno.h: Likewise.
61145         * posix-modules: Likewise.
61146         * tests/test-alloca-opt.c: Likewise.
61147         * tests/test-arcfour.c: Likewise.
61148         * tests/test-arctwo.c: Likewise.
61149         * tests/test-argmatch.c: Likewise.
61150         * tests/test-argp-2.sh: Likewise.
61151         * tests/test-argp.c: Likewise.
61152         * tests/test-arpa_inet.c: Likewise.
61153         * tests/test-array_list.c: Likewise.
61154         * tests/test-array_oset.c: Likewise.
61155         * tests/test-atexit.c: Likewise.
61156         * tests/test-avltree_list.c: Likewise.
61157         * tests/test-avltree_oset.c: Likewise.
61158         * tests/test-avltreehash_list.c: Likewise.
61159         * tests/test-base64.c: Likewise.
61160         * tests/test-binary-io.c: Likewise.
61161         * tests/test-byteswap.c: Likewise.
61162         * tests/test-c-ctype.c: Likewise.
61163         * tests/test-c-strcasecmp.c: Likewise.
61164         * tests/test-c-strcasestr.c: Likewise.
61165         * tests/test-c-strncasecmp.c: Likewise.
61166         * tests/test-c-strstr.c: Likewise.
61167         * tests/test-canonicalize-lgpl.c: Likewise.
61168         * tests/test-canonicalize.c: Likewise.
61169         * tests/test-carray_list.c: Likewise.
61170         * tests/test-ceilf.c: Likewise.
61171         * tests/test-ceill.c: Likewise.
61172         * tests/test-count-one-bits.c: Likewise.
61173         * tests/test-crc.c: Likewise.
61174         * tests/test-dirname.c: Likewise.
61175         * tests/test-fbufmode.c: Likewise.
61176         * tests/test-fcntl.c: Likewise.
61177         * tests/test-fflush.c: Likewise.
61178         * tests/test-floorf.c: Likewise.
61179         * tests/test-floorl.c: Likewise.
61180         * tests/test-fopen.c: Likewise.
61181         * tests/test-fprintf-posix.c: Likewise.
61182         * tests/test-fprintf-posix.h: Likewise.
61183         * tests/test-fpurge.c: Likewise.
61184         * tests/test-freadable.c: Likewise.
61185         * tests/test-freadahead.c: Likewise.
61186         * tests/test-freading.c: Likewise.
61187         * tests/test-freopen.c: Likewise.
61188         * tests/test-frexp.c: Likewise.
61189         * tests/test-frexpl.c: Likewise.
61190         * tests/test-fseek.c: Likewise.
61191         * tests/test-fseeko.c: Likewise.
61192         * tests/test-fseterr.c: Likewise.
61193         * tests/test-fstrcmp.c: Likewise.
61194         * tests/test-ftell.c: Likewise.
61195         * tests/test-ftello.c: Likewise.
61196         * tests/test-fwritable.c: Likewise.
61197         * tests/test-fwriting.c: Likewise.
61198         * tests/test-getaddrinfo.c: Likewise.
61199         * tests/test-getpass.c: Likewise.
61200         * tests/test-gettimeofday.c: Likewise.
61201         * tests/test-hmac-md5.c: Likewise.
61202         * tests/test-hmac-sha1.c: Likewise.
61203         * tests/test-iconv.c: Likewise.
61204         * tests/test-iconvme.c: Likewise.
61205         * tests/test-inttypes.c: Likewise.
61206         * tests/test-isnan.c: Likewise.
61207         * tests/test-isnanf.c: Likewise.
61208         * tests/test-isnanl-nolibm.c: Likewise.
61209         * tests/test-isnanl.c: Likewise.
61210         * tests/test-isnanl.h: Likewise.
61211         * tests/test-ldexpl.c: Likewise.
61212         * tests/test-linked_list.c: Likewise.
61213         * tests/test-linkedhash_list.c: Likewise.
61214         * tests/test-locale.c: Likewise.
61215         * tests/test-localename.c: Likewise.
61216         * tests/test-lock.c: Likewise.
61217         * tests/test-lseek.c: Likewise.
61218         * tests/test-malloca.c: Likewise.
61219         * tests/test-math.c: Likewise.
61220         * tests/test-mbscasecmp.c: Likewise.
61221         * tests/test-mbscasestr1.c: Likewise.
61222         * tests/test-mbscasestr2.c: Likewise.
61223         * tests/test-mbscasestr3.c: Likewise.
61224         * tests/test-mbscasestr4.c: Likewise.
61225         * tests/test-mbschr.c: Likewise.
61226         * tests/test-mbscspn.c: Likewise.
61227         * tests/test-mbsncasecmp.c: Likewise.
61228         * tests/test-mbspbrk.c: Likewise.
61229         * tests/test-mbspcasecmp.c: Likewise.
61230         * tests/test-mbsrchr.c: Likewise.
61231         * tests/test-mbsspn.c: Likewise.
61232         * tests/test-mbsstr1.c: Likewise.
61233         * tests/test-mbsstr2.c: Likewise.
61234         * tests/test-mbsstr3.c: Likewise.
61235         * tests/test-md5.c: Likewise.
61236         * tests/test-memmem.c: Likewise.
61237         * tests/test-netinet_in.c: Likewise.
61238         * tests/test-open.c: Likewise.
61239         * tests/test-printf-frexp.c: Likewise.
61240         * tests/test-printf-frexpl.c: Likewise.
61241         * tests/test-printf-posix.c: Likewise.
61242         * tests/test-printf-posix.h: Likewise.
61243         * tests/test-rbtree_list.c: Likewise.
61244         * tests/test-rbtree_oset.c: Likewise.
61245         * tests/test-rbtreehash_list.c: Likewise.
61246         * tests/test-read-file.c: Likewise.
61247         * tests/test-rijndael.c: Likewise.
61248         * tests/test-search.c: Likewise.
61249         * tests/test-signbit.c: Likewise.
61250         * tests/test-sleep.c: Likewise.
61251         * tests/test-snprintf-posix.c: Likewise.
61252         * tests/test-snprintf-posix.h: Likewise.
61253         * tests/test-snprintf.c: Likewise.
61254         * tests/test-sprintf-posix.c: Likewise.
61255         * tests/test-sprintf-posix.h: Likewise.
61256         * tests/test-stat-time.c: Likewise.
61257         * tests/test-stdbool.c: Likewise.
61258         * tests/test-stdint.c: Likewise.
61259         * tests/test-stdio.c: Likewise.
61260         * tests/test-stdlib.c: Likewise.
61261         * tests/test-stpncpy.c: Likewise.
61262         * tests/test-strcasestr.c: Likewise.
61263         * tests/test-striconv.c: Likewise.
61264         * tests/test-striconveh.c: Likewise.
61265         * tests/test-striconveha.c: Likewise.
61266         * tests/test-string.c: Likewise.
61267         * tests/test-sys_select.c: Likewise.
61268         * tests/test-sys_socket.c: Likewise.
61269         * tests/test-sys_stat.c: Likewise.
61270         * tests/test-sys_time.c: Likewise.
61271         * tests/test-sysexits.c: Likewise.
61272         * tests/test-time.c: Likewise.
61273         * tests/test-tls.c: Likewise.
61274         * tests/test-trunc.c: Likewise.
61275         * tests/test-truncf.c: Likewise.
61276         * tests/test-truncl.c: Likewise.
61277         * tests/test-unistd.c: Likewise.
61278         * tests/test-vasnprintf-posix.c: Likewise.
61279         * tests/test-vasnprintf-posix2.c: Likewise.
61280         * tests/test-vasnprintf.c: Likewise.
61281         * tests/test-vasprintf-posix.c: Likewise.
61282         * tests/test-vasprintf.c: Likewise.
61283         * tests/test-verify.c: Likewise.
61284         * tests/test-vfprintf-posix.c: Likewise.
61285         * tests/test-vprintf-posix.c: Likewise.
61286         * tests/test-vsnprintf-posix.c: Likewise.
61287         * tests/test-vsnprintf.c: Likewise.
61288         * tests/test-vsprintf-posix.c: Likewise.
61289         * tests/test-wchar.c: Likewise.
61290         * tests/test-wctype.c: Likewise.
61291         * tests/test-wcwidth.c: Likewise.
61292         * tests/test-xstrtol.c: Likewise.
61293         * tests/test-xvasprintf.c: Likewise.
61294         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61295         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61296         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61297         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61298         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61299         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61300         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61301         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61302         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61303         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61304         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61305         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61306         * tests/uniname/test-uninames.c: Likewise.
61307         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61308         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61309         * tests/unistdio/test-u16-printf1.h: Likewise.
61310         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61311         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61312         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61313         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61314         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61315         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61316         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61317         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61318         * tests/unistdio/test-u32-printf1.h: Likewise.
61319         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61320         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61321         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61322         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61323         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61324         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61325         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61326         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61327         * tests/unistdio/test-u8-printf1.h: Likewise.
61328         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61329         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61330         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61331         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61332         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61333         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61334         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61335         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61336         * tests/unistdio/test-ulc-printf1.h: Likewise.
61337         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61338         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61339         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61340         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61341         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61342         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61343         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61344         * tests/uniwidth/test-u16-width.c: Likewise.
61345         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61346         * tests/uniwidth/test-u32-width.c: Likewise.
61347         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61348         * tests/uniwidth/test-u8-width.c: Likewise.
61349         * tests/uniwidth/test-uc_width.c: Likewise.
61350         * config/srclist-update: Likewise.
61351         (fixlicense): Update to GPLv3+.
61352
61353         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61354         * tests/test-tsearch.c: Change copyright notice.
61355
61356         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61357         * lib/c-strcaseeq.h: Change copyright notice.
61358         * lib/streq.h: Likewise.
61359         * lib/uniconv.h: Likewise.
61360         * lib/uniconv/u-conv-from-enc.h: Likewise.
61361         * lib/uniconv/u-conv-to-enc.h: Likewise.
61362         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61363         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61364         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61365         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61366         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61367         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61368         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61369         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61370         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61371         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61372         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61373         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61374         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61375         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61376         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61377         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61378         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61379         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61380         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61381         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61382         * lib/uniname.h: Likewise.
61383         * lib/uniname/uniname.c: Likewise.
61384         * lib/unistdio.h: Likewise.
61385         * lib/unistdio/u-asnprintf.h: Likewise.
61386         * lib/unistdio/u-asprintf.h: Likewise.
61387         * lib/unistdio/u-printf-args.c: Likewise.
61388         * lib/unistdio/u-printf-args.h: Likewise.
61389         * lib/unistdio/u-printf-parse.h: Likewise.
61390         * lib/unistdio/u-snprintf.h: Likewise.
61391         * lib/unistdio/u-sprintf.h: Likewise.
61392         * lib/unistdio/u-vasprintf.h: Likewise.
61393         * lib/unistdio/u-vsnprintf.h: Likewise.
61394         * lib/unistdio/u-vsprintf.h: Likewise.
61395         * lib/unistdio/u16-asnprintf.c: Likewise.
61396         * lib/unistdio/u16-asprintf.c: Likewise.
61397         * lib/unistdio/u16-printf-parse.c: Likewise.
61398         * lib/unistdio/u16-snprintf.c: Likewise.
61399         * lib/unistdio/u16-sprintf.c: Likewise.
61400         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61401         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61402         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61403         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61404         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61405         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61406         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61407         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61408         * lib/unistdio/u16-vasnprintf.c: Likewise.
61409         * lib/unistdio/u16-vasprintf.c: Likewise.
61410         * lib/unistdio/u16-vsnprintf.c: Likewise.
61411         * lib/unistdio/u16-vsprintf.c: Likewise.
61412         * lib/unistdio/u32-asnprintf.c: Likewise.
61413         * lib/unistdio/u32-asprintf.c: Likewise.
61414         * lib/unistdio/u32-printf-parse.c: Likewise.
61415         * lib/unistdio/u32-snprintf.c: Likewise.
61416         * lib/unistdio/u32-sprintf.c: Likewise.
61417         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61418         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61419         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61420         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61421         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61422         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61423         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61424         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61425         * lib/unistdio/u32-vasnprintf.c: Likewise.
61426         * lib/unistdio/u32-vasprintf.c: Likewise.
61427         * lib/unistdio/u32-vsnprintf.c: Likewise.
61428         * lib/unistdio/u32-vsprintf.c: Likewise.
61429         * lib/unistdio/u8-asnprintf.c: Likewise.
61430         * lib/unistdio/u8-asprintf.c: Likewise.
61431         * lib/unistdio/u8-printf-parse.c: Likewise.
61432         * lib/unistdio/u8-snprintf.c: Likewise.
61433         * lib/unistdio/u8-sprintf.c: Likewise.
61434         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61435         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61436         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61437         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61438         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61439         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61440         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61441         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61442         * lib/unistdio/u8-vasnprintf.c: Likewise.
61443         * lib/unistdio/u8-vasprintf.c: Likewise.
61444         * lib/unistdio/u8-vsnprintf.c: Likewise.
61445         * lib/unistdio/u8-vsprintf.c: Likewise.
61446         * lib/unistdio/ulc-asnprintf.c: Likewise.
61447         * lib/unistdio/ulc-asprintf.c: Likewise.
61448         * lib/unistdio/ulc-printf-parse.c: Likewise.
61449         * lib/unistdio/ulc-snprintf.c: Likewise.
61450         * lib/unistdio/ulc-sprintf.c: Likewise.
61451         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61452         * lib/unistdio/ulc-vasprintf.c: Likewise.
61453         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61454         * lib/unistdio/ulc-vsprintf.c: Likewise.
61455         * lib/unistr.h: Likewise.
61456         * lib/unistr/u-cpy-alloc.h: Likewise.
61457         * lib/unistr/u-cpy.h: Likewise.
61458         * lib/unistr/u-endswith.h: Likewise.
61459         * lib/unistr/u-move.h: Likewise.
61460         * lib/unistr/u-set.h: Likewise.
61461         * lib/unistr/u-startswith.h: Likewise.
61462         * lib/unistr/u-stpcpy.h: Likewise.
61463         * lib/unistr/u-stpncpy.h: Likewise.
61464         * lib/unistr/u-strcat.h: Likewise.
61465         * lib/unistr/u-strcpy.h: Likewise.
61466         * lib/unistr/u-strcspn.h: Likewise.
61467         * lib/unistr/u-strdup.h: Likewise.
61468         * lib/unistr/u-strlen.h: Likewise.
61469         * lib/unistr/u-strncat.h: Likewise.
61470         * lib/unistr/u-strncpy.h: Likewise.
61471         * lib/unistr/u-strnlen.h: Likewise.
61472         * lib/unistr/u-strpbrk.h: Likewise.
61473         * lib/unistr/u-strspn.h: Likewise.
61474         * lib/unistr/u-strstr.h: Likewise.
61475         * lib/unistr/u-strtok.h: Likewise.
61476         * lib/unistr/u16-check.c: Likewise.
61477         * lib/unistr/u16-chr.c: Likewise.
61478         * lib/unistr/u16-cmp.c: Likewise.
61479         * lib/unistr/u16-cpy-alloc.c: Likewise.
61480         * lib/unistr/u16-cpy.c: Likewise.
61481         * lib/unistr/u16-endswith.c: Likewise.
61482         * lib/unistr/u16-mblen.c: Likewise.
61483         * lib/unistr/u16-mbsnlen.c: Likewise.
61484         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61485         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61486         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61487         * lib/unistr/u16-mbtouc.c: Likewise.
61488         * lib/unistr/u16-mbtoucr.c: Likewise.
61489         * lib/unistr/u16-move.c: Likewise.
61490         * lib/unistr/u16-next.c: Likewise.
61491         * lib/unistr/u16-prev.c: Likewise.
61492         * lib/unistr/u16-set.c: Likewise.
61493         * lib/unistr/u16-startswith.c: Likewise.
61494         * lib/unistr/u16-stpcpy.c: Likewise.
61495         * lib/unistr/u16-stpncpy.c: Likewise.
61496         * lib/unistr/u16-strcat.c: Likewise.
61497         * lib/unistr/u16-strchr.c: Likewise.
61498         * lib/unistr/u16-strcmp.c: Likewise.
61499         * lib/unistr/u16-strcpy.c: Likewise.
61500         * lib/unistr/u16-strcspn.c: Likewise.
61501         * lib/unistr/u16-strdup.c: Likewise.
61502         * lib/unistr/u16-strlen.c: Likewise.
61503         * lib/unistr/u16-strmblen.c: Likewise.
61504         * lib/unistr/u16-strmbtouc.c: Likewise.
61505         * lib/unistr/u16-strncat.c: Likewise.
61506         * lib/unistr/u16-strncmp.c: Likewise.
61507         * lib/unistr/u16-strncpy.c: Likewise.
61508         * lib/unistr/u16-strnlen.c: Likewise.
61509         * lib/unistr/u16-strpbrk.c: Likewise.
61510         * lib/unistr/u16-strrchr.c: Likewise.
61511         * lib/unistr/u16-strspn.c: Likewise.
61512         * lib/unistr/u16-strstr.c: Likewise.
61513         * lib/unistr/u16-strtok.c: Likewise.
61514         * lib/unistr/u16-to-u32.c: Likewise.
61515         * lib/unistr/u16-to-u8.c: Likewise.
61516         * lib/unistr/u16-uctomb-aux.c: Likewise.
61517         * lib/unistr/u16-uctomb.c: Likewise.
61518         * lib/unistr/u32-check.c: Likewise.
61519         * lib/unistr/u32-chr.c: Likewise.
61520         * lib/unistr/u32-cmp.c: Likewise.
61521         * lib/unistr/u32-cpy-alloc.c: Likewise.
61522         * lib/unistr/u32-cpy.c: Likewise.
61523         * lib/unistr/u32-endswith.c: Likewise.
61524         * lib/unistr/u32-mblen.c: Likewise.
61525         * lib/unistr/u32-mbsnlen.c: Likewise.
61526         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61527         * lib/unistr/u32-mbtouc.c: Likewise.
61528         * lib/unistr/u32-mbtoucr.c: Likewise.
61529         * lib/unistr/u32-move.c: Likewise.
61530         * lib/unistr/u32-next.c: Likewise.
61531         * lib/unistr/u32-prev.c: Likewise.
61532         * lib/unistr/u32-set.c: Likewise.
61533         * lib/unistr/u32-startswith.c: Likewise.
61534         * lib/unistr/u32-stpcpy.c: Likewise.
61535         * lib/unistr/u32-stpncpy.c: Likewise.
61536         * lib/unistr/u32-strcat.c: Likewise.
61537         * lib/unistr/u32-strchr.c: Likewise.
61538         * lib/unistr/u32-strcmp.c: Likewise.
61539         * lib/unistr/u32-strcpy.c: Likewise.
61540         * lib/unistr/u32-strcspn.c: Likewise.
61541         * lib/unistr/u32-strdup.c: Likewise.
61542         * lib/unistr/u32-strlen.c: Likewise.
61543         * lib/unistr/u32-strmblen.c: Likewise.
61544         * lib/unistr/u32-strmbtouc.c: Likewise.
61545         * lib/unistr/u32-strncat.c: Likewise.
61546         * lib/unistr/u32-strncmp.c: Likewise.
61547         * lib/unistr/u32-strncpy.c: Likewise.
61548         * lib/unistr/u32-strnlen.c: Likewise.
61549         * lib/unistr/u32-strpbrk.c: Likewise.
61550         * lib/unistr/u32-strrchr.c: Likewise.
61551         * lib/unistr/u32-strspn.c: Likewise.
61552         * lib/unistr/u32-strstr.c: Likewise.
61553         * lib/unistr/u32-strtok.c: Likewise.
61554         * lib/unistr/u32-to-u16.c: Likewise.
61555         * lib/unistr/u32-to-u8.c: Likewise.
61556         * lib/unistr/u32-uctomb.c: Likewise.
61557         * lib/unistr/u8-check.c: Likewise.
61558         * lib/unistr/u8-chr.c: Likewise.
61559         * lib/unistr/u8-cmp.c: Likewise.
61560         * lib/unistr/u8-cpy-alloc.c: Likewise.
61561         * lib/unistr/u8-cpy.c: Likewise.
61562         * lib/unistr/u8-endswith.c: Likewise.
61563         * lib/unistr/u8-mblen.c: Likewise.
61564         * lib/unistr/u8-mbsnlen.c: Likewise.
61565         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61566         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61567         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61568         * lib/unistr/u8-mbtouc.c: Likewise.
61569         * lib/unistr/u8-mbtoucr.c: Likewise.
61570         * lib/unistr/u8-move.c: Likewise.
61571         * lib/unistr/u8-next.c: Likewise.
61572         * lib/unistr/u8-prev.c: Likewise.
61573         * lib/unistr/u8-set.c: Likewise.
61574         * lib/unistr/u8-startswith.c: Likewise.
61575         * lib/unistr/u8-stpcpy.c: Likewise.
61576         * lib/unistr/u8-stpncpy.c: Likewise.
61577         * lib/unistr/u8-strcat.c: Likewise.
61578         * lib/unistr/u8-strchr.c: Likewise.
61579         * lib/unistr/u8-strcmp.c: Likewise.
61580         * lib/unistr/u8-strcpy.c: Likewise.
61581         * lib/unistr/u8-strcspn.c: Likewise.
61582         * lib/unistr/u8-strdup.c: Likewise.
61583         * lib/unistr/u8-strlen.c: Likewise.
61584         * lib/unistr/u8-strmblen.c: Likewise.
61585         * lib/unistr/u8-strmbtouc.c: Likewise.
61586         * lib/unistr/u8-strncat.c: Likewise.
61587         * lib/unistr/u8-strncmp.c: Likewise.
61588         * lib/unistr/u8-strncpy.c: Likewise.
61589         * lib/unistr/u8-strnlen.c: Likewise.
61590         * lib/unistr/u8-strpbrk.c: Likewise.
61591         * lib/unistr/u8-strrchr.c: Likewise.
61592         * lib/unistr/u8-strspn.c: Likewise.
61593         * lib/unistr/u8-strstr.c: Likewise.
61594         * lib/unistr/u8-strtok.c: Likewise.
61595         * lib/unistr/u8-to-u16.c: Likewise.
61596         * lib/unistr/u8-to-u32.c: Likewise.
61597         * lib/unistr/u8-uctomb-aux.c: Likewise.
61598         * lib/unistr/u8-uctomb.c: Likewise.
61599         * lib/unitypes.h: Likewise.
61600         * lib/uniwidth.h: Likewise.
61601         * lib/uniwidth/cjk.h: Likewise.
61602         * lib/uniwidth/u16-strwidth.c: Likewise.
61603         * lib/uniwidth/u16-width.c: Likewise.
61604         * lib/uniwidth/u32-strwidth.c: Likewise.
61605         * lib/uniwidth/u32-width.c: Likewise.
61606         * lib/uniwidth/u8-strwidth.c: Likewise.
61607         * lib/uniwidth/u8-width.c: Likewise.
61608         * lib/uniwidth/width.c: Likewise.
61609
61610 2007-10-07  Bruno Haible  <bruno@clisp.org>
61611
61612         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61613         The file is still under LGPL (see modules/inttypes).
61614
61615 2007-10-06  Bruno Haible  <bruno@clisp.org>
61616
61617         * modules/trunc (Dependencies): Add 'extensions'.
61618         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61619         Reported by Ben Pfaff <blp@gnu.org>.
61620
61621 2007-10-06  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/freopen-tests: New file.
61624         * tests/test-freopen.c: New file.
61625
61626         * modules/fopen-tests: New file.
61627         * tests/test-fopen.c: New file.
61628
61629         * modules/fopen: New file.
61630         * lib/fopen.c: New file.
61631         * m4/fopen.m4: New file.
61632         * modules/freopen: New file.
61633         * lib/freopen.c: New file.
61634         * m4/freopen.m4: New file.
61635         * lib/stdio.in.h (fopen, freopen): New declarations.
61636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61637         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61638         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61639         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61640         * doc/functions/fopen.texi: Mention the 'fopen' module.
61641         * doc/functions/freopen.texi: Mention the 'freopen' module.
61642
61643 2007-10-06  Bruno Haible  <bruno@clisp.org>
61644
61645         * modules/open-tests: New file.
61646         * tests/test-open.c: New file.
61647
61648         * modules/open: New file.
61649         * lib/open.c: New file.
61650         * m4/open.m4: New file.
61651         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61652         lib/open.c does.
61653         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61654         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61655         macros.
61656         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61657         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61658         REPLACE_OPEN.
61659         * doc/functions/open.texi: Mention the 'open' module.
61660
61661 2007-10-04  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/ceill-tests: New file.
61664         * tests/test-ceill.c: New file.
61665
61666         * modules/ceill: New file.
61667         * lib/ceill.c: Replace entire file.
61668         * m4/ceill.m4: New file.
61669         * lib/math.in.h (ceill): Replace declaration.
61670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61671         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61672         * doc/functions/ceill.texi: Mention the 'ceill' module.
61673         * modules/mathl (Files): Remove lib/ceill.c.
61674         (Depends-on): Add ceill.
61675
61676 2007-10-04  Bruno Haible  <bruno@clisp.org>
61677
61678         * modules/ceilf-tests: New file.
61679         * tests/test-ceilf.c: New file.
61680
61681         * modules/ceilf: New file.
61682         * lib/ceil.c: New file.
61683         * lib/ceilf.c: New file.
61684         * m4/ceilf.m4: New file.
61685         * lib/math.in.h (ceilf): New declaration.
61686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61687         HAVE_DECL_CEILF.
61688         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61689         HAVE_DECL_CEILF.
61690         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61691
61692 2007-10-04  Bruno Haible  <bruno@clisp.org>
61693
61694         * modules/floorl-tests: New file.
61695         * tests/test-floorl.c: New file.
61696
61697         * modules/floorl: New file.
61698         * lib/floorl.c: Replace entire file.
61699         * m4/floorl.m4: New file.
61700         * lib/math.in.h (floorl): Replace declaration.
61701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61702         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61703         * doc/functions/floorl.texi: Mention the 'floorl' module.
61704         * modules/mathl (Files): Remove lib/floorl.c.
61705         (Depends-on): Add floorl.
61706
61707 2007-10-04  Bruno Haible  <bruno@clisp.org>
61708
61709         * modules/floorf-tests: New file.
61710         * tests/test-floorf.c: New file.
61711
61712         * modules/floorf: New file.
61713         * lib/floor.c: New file.
61714         * lib/floorf.c: New file.
61715         * m4/floorf.m4: New file.
61716         * lib/math.in.h (floorf): New declaration.
61717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61718         HAVE_DECL_FLOORF.
61719         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61720         HAVE_DECL_FLOORF.
61721         * doc/functions/floorf.texi: Mention the 'floorf' module.
61722
61723 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61724             Bruno Haible  <bruno@clisp.org>
61725
61726         Advertise for the Git server instead of the CVS server.
61727         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61728         repository instead of the CVS one.
61729         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61730         about all VCS systems generically.
61731         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61732
61733 2007-10-04  Bruno Haible  <bruno@clisp.org>
61734
61735         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61736         means.
61737         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61738
61739 2007-10-04  Bruno Haible  <bruno@clisp.org>
61740
61741         * modules/truncl-tests: New file.
61742         * tests/test-truncl.c: New file.
61743
61744         * modules/truncl: New file.
61745         * lib/truncl.c: New file.
61746         * m4/truncl.m4: New file.
61747         * lib/math.in.h (truncl): New declaration.
61748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61749         HAVE_DECL_TRUNCL.
61750         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61751         HAVE_DECL_TRUNCL.
61752         * doc/functions/truncl.texi: Mention the 'truncl' module.
61753
61754 2007-10-04  Bruno Haible  <bruno@clisp.org>
61755
61756         * modules/truncf-tests: New file.
61757         * tests/test-truncf.c: New file.
61758
61759         * modules/truncf: New file.
61760         * lib/trunc.c: Make paramerizable through USE_* macros.
61761         * lib/truncf.c: New file.
61762         * m4/truncf.m4: New file.
61763         * lib/math.in.h (truncf): New declaration.
61764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61765         HAVE_DECL_TRUNCF.
61766         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61767         HAVE_DECL_TRUNCF.
61768         * doc/functions/truncf.texi: Mention the 'truncf' module.
61769
61770 2007-10-03  Bruno Haible  <bruno@clisp.org>
61771
61772         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61773         augmentation also for tests modules.
61774         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61775         * modules/atexit-tests (Makefile.am): Likewise.
61776         * modules/binary-io-tests (Makefile.am): Likewise.
61777         * modules/c-strcase-tests (Makefile.am): Likewise.
61778         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61779         * modules/canonicalize-tests (Makefile.am): Likewise.
61780         * modules/closein-tests (Makefile.am): Likewise.
61781         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61782         * modules/freadahead-tests (Makefile.am): Likewise.
61783         * modules/fseek-tests (Makefile.am): Likewise.
61784         * modules/fseeko-tests (Makefile.am): Likewise.
61785         * modules/ftell-tests (Makefile.am): Likewise.
61786         * modules/ftello-tests (Makefile.am): Likewise.
61787         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61788         * modules/isnanl-tests (Makefile.am): Likewise.
61789         * modules/lseek-tests (Makefile.am): Likewise.
61790         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61791         * modules/mbscasestr-tests (Makefile.am): Likewise.
61792         * modules/mbschr-tests (Makefile.am): Likewise.
61793         * modules/mbscspn-tests (Makefile.am): Likewise.
61794         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61795         * modules/mbspbrk-tests (Makefile.am): Likewise.
61796         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61797         * modules/mbsrchr-tests (Makefile.am): Likewise.
61798         * modules/mbsspn-tests (Makefile.am): Likewise.
61799         * modules/mbsstr-tests (Makefile.am): Likewise.
61800         * modules/printf-posix-tests (Makefile.am): Likewise.
61801         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61802         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61803         * modules/tsearch-tests (Makefile.am): Likewise.
61804         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61805         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61806         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61807         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61808         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61809         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61810         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61811         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61812         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61813         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61814         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61815         * modules/xstrtol-tests (Makefile.am): Likewise.
61816         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61817         * modules/yesno-tests (Makefile.am): Likewise.
61818
61819 2007-10-03  Bruno Haible  <bruno@clisp.org>
61820
61821         * modules/trunc-tests: New file.
61822         * tests/test-trunc.c: New file.
61823
61824         * modules/trunc: New file.
61825         * lib/trunc.c: New file.
61826         * m4/trunc.m4: New file.
61827         * lib/math.in.h (trunc): New declaration.
61828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61829         HAVE_DECL_TRUNC.
61830         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61831         HAVE_DECL_TRUNC.
61832         * doc/functions/trunc.texi: Mention the 'trunc' module.
61833
61834 2007-10-03  Bruno Haible  <bruno@clisp.org>
61835
61836         * tests/test-fpending.c: New file, mostly copied
61837         from coreutils/lib/t-fpending.c.
61838         * modules/fpending-tests: New file.
61839
61840 2007-10-03  Bruno Haible  <bruno@clisp.org>
61841
61842         Port the stdio extensions to QNX (untested).
61843         * lib/fseterr.c (fseterr): Add support for QNX.
61844         * lib/fbufmode.c (fbufmode): Likewise.
61845         * lib/freadable.c (freadable): Likewise.
61846         * lib/fwritable.c (fwritable): Likewise.
61847         * lib/freading.c (freading): Likewise.
61848         * lib/fwriting.c (fwriting): Likewise.
61849         * lib/freadahead.c (freadahed): Likewise.
61850         * lib/fpurge.c (fpurge): Likewise.
61851         * lib/fseeko.c (rpl_fseeko): Likewise.
61852
61853 2007-10-03  Bruno Haible  <bruno@clisp.org>
61854             Jim Meyering  <jim@meyering.net>
61855             Eric Blake  <ebb9@byu.net>
61856
61857         * doc/relocatable.texi: Use @command instead of @program.
61858
61859 2007-10-02  Jim Meyering  <jim@meyering.net>
61860
61861         Perform one more "_.h" -> ".in.h" substitution.
61862         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61863         instead of unistd_.h here, too.
61864
61865 2007-10-01  Bruno Haible  <bruno@clisp.org>
61866
61867         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61868         Needed for the alloca-opt module.
61869
61870 2007-09-30  Bruno Haible  <bruno@clisp.org>
61871
61872         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61873         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61874         alloca_.h.
61875         * lib/argz.in.h: Renamed from lib/argz_.h.
61876         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61877         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61878         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61879         byteswap_.h.
61880         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61881         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61882         dirent_.h.
61883         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61884         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61885         fcntl_.h.
61886         * lib/float.in.h: Renamed from lib/float_.h.
61887         * modules/float (Files, Makefile.am): Use float.in.h instead of
61888         float_.h.
61889         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61890         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61891         fnmatch_.h.
61892         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61893         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61894         getopt_.h.
61895         * lib/glob.in.h: Renamed from lib/glob_.h.
61896         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61897         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61898         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61899         iconv_.h.
61900         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61901         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61902         inttypes_.h.
61903         * lib/locale.in.h: Renamed from lib/locale_.h.
61904         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61905         locale_.h.
61906         * lib/math.in.h: Renamed from lib/math_.h.
61907         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61908         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61909         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61910         of netinet_in_.h. Add dependency.
61911         * lib/poll.in.h: Renamed from lib/poll_.h.
61912         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61913         * lib/search.in.h: Renamed from lib/search_.h.
61914         * modules/search (Files, Makefile.am): Use search.in.h instead of
61915         search_.h.
61916         * lib/signal.in.h: Renamed from lib/signal_.h.
61917         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61918         _signal.h.
61919         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61920         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61921         stdbool_.h.
61922         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61923         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61924         stdint_.h.
61925         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61926         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61927         stdio_.h.
61928         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61929         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61930         stdlib_.h.
61931         * lib/string.in.h: Renamed from lib/string_.h.
61932         * modules/string (Files, Makefile.am): Use string.in.h instead of
61933         string_.h.
61934         * doc/gnulib-tool.texi (Initial import): Update.
61935         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61936         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61937         of sys_select_.h. Add dependency.
61938         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61939         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61940         of sys_socket_.h.
61941         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61942         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61943         sys_stat_.h.
61944         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61945         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61946         sys_time_.h.
61947         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61948         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61949         sysexits_.h.
61950         * lib/time.in.h: Renamed from lib/time_.h.
61951         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61952         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61953         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61954         unistd_.h.
61955         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61956         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61957         wchar_.h.
61958         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61959         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61960         wctype_.h.
61961         * build-aux/bootstrap (slurp): Update.
61962         * lib/.cppi-disable: Update.
61963
61964 2007-09-30  Bruno Haible  <bruno@clisp.org>
61965
61966         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61967         Needed on BeOS.
61968
61969 2007-09-30  Bruno Haible  <bruno@clisp.org>
61970
61971         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61972
61973 2007-09-29  Bruno Haible  <bruno@clisp.org>
61974
61975         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61976
61977 2007-09-29  Bruno Haible  <bruno@clisp.org>
61978
61979         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61980         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61981         * build-aux/install-reloc: Compile also areadlink.c.
61982         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61983
61984 2007-09-29  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool (func_emit_initmacro_done): Indentation.
61987
61988 2007-09-29  Bruno Haible  <bruno@clisp.org>
61989
61990         * README: Add CVS checkout update instructions.
61991         Info from Bob Proulx <bob@proulx.com>.
61992
61993 2007-09-28  Eric Blake  <ebb9@byu.net>
61994
61995         Provide move-if-change.
61996         * build-aux/move-if-change: New file, based on best practice
61997         rather than any canonical upstream location.
61998
61999 2007-09-28  Jim Meyering  <jim@meyering.net>
62000
62001         Fix canonicalize loop-detection corner case.
62002         Do not attempt to stat the symlink values stored via seen_triple.
62003         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62004         on linux-2.6.18, (but not 2.6.22).
62005         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62006         triple_compare.  The former compares dev,ino,filename, while the latter
62007         would actually stat dirname(filename) when dev and ino were equal.
62008         * lib/hash-triple.c: Install <string.h>.
62009         (STREQ): Define.
62010         (triple_compare_ino_str): New function.
62011         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62012
62013 2007-09-28  Eric Blake  <ebb9@byu.net>
62014
62015         Enforce that AC_REPLACE_FUNCS files exist.
62016         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62017         override check for typos.
62018
62019         Fix test-closein on Solaris 10.
62020         * tests/test-closein.c (main): Don't assume stdin can be inherited
62021         closed on all systems.
62022         * tests/test-closein.sh: Likewise.
62023         Reported by Piotr Tarnowski.
62024
62025 2007-09-28  Jim Meyering  <jim@meyering.net>
62026
62027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62028
62029 2007-09-27  Jim Meyering  <jim@meyering.net>
62030
62031         canonicalize: Avoid a false-positive cycle failure.
62032         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62033         Sort.  Remove cycle-check.
62034         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62035         not cycle-check.h.
62036         (seen_triple): New function.
62037         (canonicalize_filename_mode): Use it instead of cycle-check.
62038         * tests/test-canonicalize.c: Add a test for this bug.
62039         * tests/test-canonicalize.sh: Set up and run the test.
62040
62041         New module, file-set, from coreutils.
62042         * modules/file-set: Define it.
62043         * lib/file-set.c, lib/file-set.h: Implement.
62044
62045         New module, hash-triple, from coreutils.
62046         * modules/hash-triple: Define it.
62047         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62048
62049 2007-09-25  Eric Blake  <ebb9@byu.net>
62050
62051         Fix strerror on Interix.
62052         * lib/string_.h (strerror): Declare replacement.
62053         * doc/functions/strerror.texi (strerror): Document the Interix
62054         shortcoming.
62055         * modules/string (Makefile.am): Support new hooks.
62056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62057         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62058         gl_FUNC_STRERROR_SEPARATE.
62059         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62060         * lib/strerror.c (rpl_strerror): Provide replacement.
62061         * modules/strerror (Depends-on): Add string.
62062         (configure.ac): Detect use of module.
62063         * tests/test-strerror.c: New file.
62064         * modules/strerror-tests: New test module.
62065         * modules/argp (Depends-on): Add strerror.
62066         * modules/error (Depends-on): Likewise.
62067         Reported by Martin Koeppe.
62068
62069 2007-09-24  Bruno Haible  <bruno@clisp.org>
62070
62071         * README: Update git instructions.
62072
62073 2007-09-24  Eric Blake  <ebb9@byu.net>
62074
62075         Revert fpending breakage from 2007-09-08.
62076         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62077         __fpending.c.
62078
62079 2007-09-24  Jim Meyering  <jim@meyering.net>
62080
62081         filenamecat.c: Add a test.
62082         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62083         showing how the function works when DIR is the empty string.
62084
62085 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62086
62087         * tests/test-canonicalize.sh: Turn on executable bit.
62088
62089 2007-09-19  Eric Blake  <ebb9@byu.net>
62090
62091         * README: Update CVS instructions.
62092
62093 2007-09-18  Bruno Haible  <bruno@clisp.org>
62094
62095         * modules/areadlink: New file.
62096         * lib/areadlink.h (areadlink): New declaration.
62097         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62098
62099 2007-09-17  Jim Meyering  <jim@meyering.net>
62100
62101         * lib/savewd.c (ESTALE) [!defined]: Define.
62102         Reported to be required on Interix by Martin Koeppe.
62103
62104 2007-09-17  Bruno Haible  <bruno@clisp.org>
62105
62106         * gnulib-tool (func_version): Use $version.
62107
62108 2007-09-16  Bruno Haible  <bruno@clisp.org>
62109
62110         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62111         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62112         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62113         Reported by Greg Schafer <gschafer@zip.com.au>.
62114
62115 2007-09-15  Bruno Haible  <bruno@clisp.org>
62116
62117         * gnulib-tool (sed): Try a little harder to make bash understand the
62118         alias.
62119         Reported by Bruce Korb <bruce.korb@gmail.com>.
62120
62121 2007-09-13  Eric Blake  <ebb9@byu.net>
62122
62123         * ChangeLog: Remove conflict markers.
62124
62125 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62126
62127         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62128         Reported by Bruno Haible <bruno@clisp.org>.
62129
62130 2007-09-12  Bruno Haible  <bruno@clisp.org>
62131
62132         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62133         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62134         is not defined.
62135
62136 2007-09-12  Eric Blake  <ebb9@byu.net>
62137
62138         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62139         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62140         Autoconf definition.
62141         * modules/euidaccess (Depends-on): Add extensions, for
62142         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62143         * modules/fnmatch (Depends-on): Likewise.
62144         * modules/getaddrinfo (Depends-on): Likewise.
62145         * modules/getdelim (Depends-on): Likewise.
62146         * modules/getline (Depends-on): Likewise.
62147         * modules/getsubopt (Depends-on): Likewise.
62148         * modules/gettext (Depends-on): Likewise.
62149         * modules/group-member (Depends-on): Likewise.
62150         * modules/mbchar (Depends-on): Likewise.
62151         * modules/memmem (Depends-on): Likewise.
62152         * modules/mempcpy (Depends-on): Likewise.
62153         * modules/memrchr (Depends-on): Likewise.
62154         * modules/pagealign_alloc (Depends-on): Likewise.
62155         * modules/readutmp (Depends-on): Likewise.
62156         * modules/stpcpy (Depends-on): Likewise.
62157         * modules/stpncpy (Depends-on): Likewise.
62158         * modules/strchrnul (Depends-on): Likewise.
62159         * modules/strndup (Depends-on): Likewise.
62160         * modules/strsep (Depends-on): Likewise.
62161         * modules/strverscmp (Depends-on): Likewise.
62162         * modules/vasprintf (Depends-on): Likewise.
62163         * modules/wcwidth (Depends-on): Likewise.
62164         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62165         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62166         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62169         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62170         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62171         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62172         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62173         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62174         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62175         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62176         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62177         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62178         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62179         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62180         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62181         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62183         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62184         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62185         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62186         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62187         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62188         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62190         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62191         so that lock.m4 can be used in gettext without extensions module.
62192
62193 2007-09-11  Bruno Haible  <bruno@clisp.org>
62194
62195         * m4/isc-posix.m4: Remove file.
62196         Suggested by Eric Blake.
62197
62198 2007-09-11  Eric Blake  <ebb9@byu.net>
62199
62200         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62201
62202 2007-09-10  Bruno Haible  <bruno@clisp.org>
62203
62204         * posix-modules: Fix typo in error message.
62205         Reported by Matt <mkraai@beckman.com>.
62206
62207 2007-09-09  Bruno Haible  <bruno@clisp.org>
62208
62209         * doc/functions/getdelim.texi: Update list of platforms lacking the
62210         function.
62211         * doc/functions/getline.texi: Likewise.
62212
62213 2007-09-09  Jim Meyering  <jim@meyering.net>
62214
62215         * lib/hash.c (hash_initialize): Detect calloc failure.
62216         Reported by Bruno Haible.
62217
62218 2007-09-09  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62221         malloc or realloc fails.
62222
62223 2007-09-09  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/getcwd (Depends-on): Add malloc-posix.
62226         * modules/glob (Depends-on): Likewise.
62227         * modules/putenv (Depends-on): Likewise.
62228         * modules/strdup (Depends-on): Likewise.
62229         * modules/getdelim (Depends-on): Add realloc-posix.
62230         * modules/read-file (Depends-on): Likewise.
62231
62232 2007-09-09  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62235         (gl_FUNC_MALLOC_POSIX): Require it.
62236         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62237         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62238         * modules/realloc (Files): Add m4/malloc.m4.
62239         * modules/calloc (Files): Likewise.
62240
62241 2007-09-09  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/malloc-posix: New file.
62244         * modules/malloc (Depends-on): Add malloc-posix.
62245         * lib/malloc.c: Include errno.h.
62246         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62247         and a POSIX-compatible malloc into a single function. Set ENOMEM
62248         when returning NULL.
62249         * m4/malloc.m4: New file.
62250         * doc/functions/malloc.texi: Mention the malloc-posix module.
62251         * lib/stdlib_.h (malloc): New declaration.
62252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62253         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62254         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62255         and HAVE_MALLOC_POSIX.
62256
62257 2007-09-09  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/realloc-posix: New file.
62260         * modules/realloc (Depends-on): Add realloc-posix.
62261         * lib/realloc.c: Include errno.h.
62262         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62263         and a POSIX-compatible realloc into a single function. Set ENOMEM
62264         when returning NULL.
62265         * m4/realloc.m4: New file.
62266         * doc/functions/realloc.texi: Mention the realloc-posix module.
62267         * lib/stdlib_.h (realloc): New declaration.
62268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62269         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62270         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62271         and HAVE_REALLOC_POSIX.
62272
62273 2007-09-09  Bruno Haible  <bruno@clisp.org>
62274
62275         * modules/calloc-posix: New file.
62276         * modules/calloc (Depends-on): Add calloc-posix.
62277         * lib/calloc.c: Include errno.h.
62278         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62279         and a POSIX-compatible calloc into a single function. Set ENOMEM
62280         when returning NULL.
62281         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62282         * doc/functions/calloc.texi: Mention the calloc-posix module.
62283         * lib/stdlib_.h (calloc): New declaration.
62284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62285         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62286         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62287         and HAVE_CALLOC_POSIX.
62288
62289 2007-09-09  Bruno Haible  <bruno@clisp.org>
62290
62291         Allow for modules to show an arbitrary notice.
62292         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62293         * gnulib-tool: New option --extract-notice.
62294         (func_usage): Document it.
62295         (sed_extract_prog): Update.
62296         (func_get_notice): New function.
62297         (func_modules_notice): New function.
62298         (func_import, func_create_testdir): Invoke it.
62299         Suggested by Jim Meyering.
62300
62301 2007-09-09  Bruno Haible  <bruno@clisp.org>
62302
62303         * gnulib-tool: New options --verbose, --quiet.
62304         (func_usage): Document them.
62305         (verbose): New variable.
62306         (func_execute_command): New function.
62307         (func_import): Don't show the module list and the file list if
62308         $verbose < 0.
62309         (func_create_testdir): Likewise. Use func_execute_command.
62310         (func_create_megatestdir): Use func_execute_command.
62311
62312 2007-09-08  Bruno Haible  <bruno@clisp.org>
62313
62314         * gnulib-tool (func_import): Prefer rsync over wget when available,
62315         for fetching the PO files.
62316
62317 2007-09-08  Bruno Haible  <bruno@clisp.org>
62318
62319         * posix-modules: New file. Portions copied from gnulib-tool.
62320         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62321
62322 2007-09-08  Jim Meyering  <jim@meyering.net>
62323
62324         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62325         * lib/fpending.h: Rename from __fpending.h.
62326         * lib/fpending.c: Rename from __fpending.c.
62327         Include "fpending.h", not "__fpending.h".
62328         * lib/__fpending.h, lib/__fpending.c: Remove files.
62329         * modules/fpending (Files): Reflect new file names.
62330         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62331
62332 2007-09-08  Bruno Haible  <bruno@clisp.org>
62333
62334         * m4/inttypes-h.m4: Remove stub file.
62335
62336 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62337
62338         * doc/headers/stdint.texi: Discuss #include_next issue.
62339
62340 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62341
62342         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62343
62344 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62345
62346         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62347         in variable name.
62348
62349 2007-09-03  Jim Meyering  <jim@meyering.net>
62350
62351         New module: git-version-gen.
62352         * modules/git-version-gen: New file.
62353
62354         Import changes from coreutils for bootstrap script.
62355
62356         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62357
62358         bootstrap: uses rsync to download the .po files
62359         * build-aux/bootstrap (po_download_command_format): New global.
62360         (download_po_files): Use rsync.
62361         (update_po_files): Don't remove .po files after download,
62362         so future rsync runs can take advantage of the copies.
62363
62364         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62365
62366         Solve the unnecessary-.po-file-regeneration problem once and for all.
62367         * build-aux/bootstrap (download_po_files): New function, renamed from
62368         get_translations.  Now, downloads, but doesn't update LINGUAS.
62369         (update_po_files): New function.
62370
62371         bootstrap: Ignore more.
62372         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62373         uniwidth to e.g., lib/.gitignore.
62374         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62375
62376         * build-aux/bootstrap: New setting: vc_ignore.
62377         (insert_sorted_if_absent): Create $file if absent.
62378         Adapt to new, possibly empty, list: $vc_ignore.
62379
62380         bootstrap: generate more ignorable names
62381         * build-aux/bootstrap (slurp): When generating ignorable names,
62382         also map .sin to .sed, .gperf to .c, and .y to .c.
62383
62384 2007-09-03  Jim Meyering  <jim@meyering.net>
62385
62386         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62387         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62388
62389 2007-09-02  Bruno Haible  <bruno@clisp.org>
62390
62391         Fix mis-recognition of 'mcs' on QNX 6.
62392         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62393         output contains the string "Mono".
62394         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62395         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62396
62397 2007-09-01  Bruno Haible  <bruno@clisp.org>
62398
62399         Fix collision between uniwidth/* and linebreak modules.
62400         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62401         u32_width): Remove declarations.
62402         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62403         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62404         streq3, streq2, streq1, streq0): Remove functions.
62405         (STREQ): Remove macro.
62406         (is_cjk_encoding): Remove function.
62407         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62408         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62409         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62410         * NEWS: Document the change.
62411
62412 2007-09-01  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/streq.h: Add double-inclusion guard.
62415
62416 2007-09-01  Karl Berry  <karl@gnu.org>
62417
62418         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62419
62420 2007-08-28  Jim Meyering  <jim@meyering.net>
62421
62422         Rename mreadlink_with_size to areadlink_with_size.
62423         * NEWS: Document the change.
62424         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62425         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62426         * lib/mreadlink.h: Rename this to...
62427         * lib/areadlink.h: ...this.
62428         * modules/mreadlink-with-size: Rename this to...
62429         * modules/areadlink-with-size: ...this.
62430         * lib/canonicalize.c: Reflect the renaming.
62431         * modules/canonicalize: Likewise.
62432
62433 2007-08-26  Bruno Haible  <bruno@clisp.org>
62434
62435         * gnulib-tool (func_import): When deciding which files to remove,
62436         consider also dangling symbolic links.
62437         Reported by Eric Blake.
62438
62439 2007-08-26  Bruno Haible  <bruno@clisp.org>
62440
62441         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62442
62443 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62444
62445         * lib/readline.c: Don't include getline.h, the prototype is now
62446         found in stdio.h.
62447
62448 2007-08-23  Jim Meyering  <jim@meyering.net>
62449
62450         Getdelim touchup.
62451         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62452         around the funlockfile call, since funlockfile never sets errno.
62453         Don't set errno upon failed realloc.
62454
62455 2007-08-22  Eric Blake  <ebb9@byu.net>
62456
62457         Getline touchups.
62458         * lib/getdelim.c (getdelim): Revert regression that required *n to
62459         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62460         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62461         getdelim, rather than whether implementation is missing.
62462         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62463         * lib/stdio_.h (getline): Also declare if replacement is
62464         required.
62465         * doc/functions/getdelim.texi: New file.
62466         * doc/functions/getline.texi: Likewise.
62467         * doc/gnulib.texi (Function Substitutes): Add new files.
62468         Reported by Bruno Haible.
62469
62470 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62471
62472         * users.txt: Add Guile.
62473
62474 2007-08-22  Eric Blake  <ebb9@byu.net>
62475
62476         * tests/test-getdelim.c (main): Use remove, not unlink.
62477         * tests/test-getline.c (main): Likewise.
62478
62479         Move getline and getdelim into stdio.h, per POSIX 200x.
62480         * modules/getline (Files): Remove getline.h.
62481         (Depends-on): Add stdio.
62482         (configure.ac): Add module indicator.
62483         * modules/getdelim (Files): Remove getdelim.h.
62484         (Depends-on): Add stdio.
62485         (configure.ac): Add module indicator.
62486         * modules/stdio (Makefile.am): Work with new indicators.
62487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62489         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62490         * lib/getdelim.h: Delete.
62491         * lib/getline.h: Delete.
62492         * lib/stdio_.h (getdelim, getline): Declare.
62493         * modules/getdelim-tests: New module.
62494         * modules/getline-tests: Likewise.
62495         * tests/test-getdelim.c: New file.
62496         * tests/test-getline.c: Likewise.
62497         * NEWS: Document the change.
62498         * lib/getline.c: Update choice of header.
62499         * lib/csharpcomp.c: Likewise.
62500         * lib/getpass.c: Likewise.
62501         * lib/javacomp.c: Likewise.
62502         * lib/javaversion.c: Likewise.
62503         * lib/yesno.c: Likewise.
62504         * lib/getdelim.c: Likewise.
62505         (getdelim): Set errno on failure, and avoid memory leak.
62506
62507 2007-08-19  Bruno Haible  <bruno@clisp.org>
62508
62509         * modules/closein (Depends-on): Add freadahead.
62510         * lib/closein.c: Include freadahead.h.
62511         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62512         is zero.
62513
62514 2007-08-19  Bruno Haible  <bruno@clisp.org>
62515
62516         * modules/freadahead-tests: New file.
62517         * tests/test-freadahead.sh: New file.
62518         * tests/test-freadahead.c: New file.
62519
62520         * modules/freadahead: New file.
62521         * lib/freadahead.h: New file.
62522         * lib/freadahead.c: New file.
62523         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62524         fbufmode, fpurge, freadable, fwritable.
62525
62526 2007-08-19  Eric Blake  <ebb9@byu.net>
62527
62528         Test yesno in combination with closein.
62529         * lib/yesno.c (yesno): Document use of stdin.
62530         * modules/yesno-tests (Files): New module.
62531         * tests/test-yesno.c (main): New file.
62532         * tests/test-yesno.sh: Likewise.
62533
62534 2007-08-19  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62537         * lib/fseeko.c (rpl_fseeko): Likewise.
62538         * lib/fseterr.c (fseterr): Likewise.
62539
62540 2007-08-19  Bruno Haible  <bruno@clisp.org>
62541
62542         * tests/test-lseek.c (main): Disable a test for BeOS.
62543         * doc/functions/lseek.texi: Document the BeOS bug.
62544
62545 2007-08-19  Bruno Haible  <bruno@clisp.org>
62546             Eric Blake  <ebb9@byu.net>
62547
62548         * lib/lseek.c: Include <sys/stat.h>.
62549         (rpl_lseek): Add workaround code also for Unix platforms.
62550         Needed for BeOS.
62551         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62552         * doc/functions/lseek.texi: Document BeOS definiency.
62553
62554 2007-08-18  Bruno Haible  <bruno@clisp.org>
62555
62556         * modules/fstrcmp-tests: New file.
62557         * tests/test-fstrcmp.c: New file.
62558
62559 2007-08-18  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/fstrcmp: New file, from GNU gettext with modifications.
62562         * lib/fstrcmp.h: New file, from GNU gettext.
62563         * lib/fstrcmp.c: New file, from GNU gettext.
62564         * MODULES.html.sh (String handling): Add fstrcmp.
62565
62566 2007-08-18  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62569         'bool'.
62570         (diag, compareseq): Remove const from the ctxt argument.
62571         (USE_HEURISTIC): Undefine at the end.
62572
62573 2007-08-18  Jim Meyering  <jim@meyering.net>
62574
62575         New file: lib/idcache.h
62576         * NEWS: Mention the addition.
62577         * modules/idcache (Files): Add lib/idcache.h
62578         * lib/idcache.c: Include "idcache.h".
62579         Don't include <sys/types.h>.
62580         Add a FIXME comment.
62581         Move file-scoped "static" declarations to the top.
62582         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62583
62584 2007-08-17  Bruno Haible  <bruno@clisp.org>
62585         and Paul Eggert  <eggert@cs.ucla.edu>
62586
62587         * MODULES.html.sh: Add diffseq.
62588         * modules/diffseq: New file.
62589         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62590         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62591
62592 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Import changes from coreutils for bootstrap script.
62595
62596         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62597
62598         * build-aux/bootstrap (slurp): Work even in environments where
62599         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62600         current code does not slurp files whose names start with ".", and
62601         this looks like it might be a troublesome area.
62602
62603         2007-07-11  Jim Meyering  <jim@meyering.net>
62604
62605         If there's a GPL vN copyright comment, require that N == 3.
62606
62607         2007-07-08  Jim Meyering  <jim@meyering.net>
62608
62609         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62610         * build-aux/bootstrap (mam_template): Move definition out of loop.
62611
62612         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62613
62614         * build-aux/bootstrap (symlink_to_dir): Rename function from
62615         symlink_to_gnulib.  Add a directory parameter.  Update all
62616         callers.
62617         (cp_mark_as_generated): Also check for -- and link to -- files in
62618         gl/.
62619
62620         2007-07-08  Jim Meyering  <jim@meyering.net>
62621
62622         Adapt to deeper hierarchy in gnulib.
62623         * build-aux/bootstrap (symlink_to_dir): If the destination
62624         directory doesn't exist, create it. This is required at least for
62625         "lib/uniwidth/cjk.h".
62626
62627         2007-05-15  Jim Meyering  <jim@meyering.net>
62628
62629         * build-aux/bootstrap: Now that generated Makefile.am files
62630         are no longer under version control, they must be created at
62631         bootstrap time.
62632
62633 2007-08-14  Ben Pfaff  <blp@gnu.org>
62634
62635         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62636
62637 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62640         given the changes below.
62641         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62642         even on hosts that have padding bits beyond the supported 64.
62643
62644 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62647         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62648         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62649         depends on it.
62650         (xstrtol_error): Remove.
62651         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62652         but with a different signature.
62653         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62654         * lib/xstrtol-error.c: Include exitfail.h.
62655         (xstrtol_fatal): New function, with a different signature from the
62656         old xstrtol_error, so that the caller need not worry about passing
62657         in an exit status, or about storage management of the option argument.
62658         (xstrtol_error): Now a static function.  Redo signature to
62659         implement xstrtol_fatal.  Output the correct number of hyphens in
62660         front of the option so that the caller need not worry about
62661         storage management.
62662         (N_): New macro.
62663         (_): Remove; not used now.
62664         * modules/xstrtol: Depend on getopt.
62665         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62666         of old STRTOL_FATAL_ERROR macro.
62667         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62668         of test program.
62669         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62670         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62671
62672 2007-08-08  Eric Blake  <ebb9@byu.net>
62673
62674         * lib/xstrtol-error.c: Add missing include.
62675
62676         Move xstrtol messages into gnulib domain, when --pobase is used.
62677         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62678         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62679         * modules/xstrtol (Files): Distribute new file.
62680         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62681         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62682         * tests/test-xstrtol.c: ...into new file.
62683         * tests/test-xstrtoul.c: Also test xstrtoul.
62684         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62685         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62686         * tests/test-xstrtol.sh: Drive the tests.
62687         * tests/test-xstrtoimax.sh: Likewise.
62688         * tests/test-xstrtoumax.sh: Likewise.
62689         * modules/xstrtol-tests: New module.
62690         * modules/xstrtoimax-tests: Likewise.
62691         * modules/xstrtoumax-tests: Likewise.
62692
62693 2007-08-08  Jim Meyering  <jim@meyering.net>
62694
62695         New function: mfile_name_concat.
62696         * lib/filenamecat.c (mfile_name_concat): New function, just like
62697         file_name_concat, but return NULL upon failure rather than exiting
62698         with a diagnostic.
62699         * lib/filenamecat.h: Declare it.
62700
62701 2007-08-07  Bruno Haible  <bruno@clisp.org>
62702
62703         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62704         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62705         warning from gcc.
62706         Reported by Eric Blake.
62707
62708 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62709
62710         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62711         * modules/crypto/arcfour (License): Likewise.
62712         * modules/crypto/des-tests (License): Likewise.
62713         * modules/crypto/gc-arctwo-tests (License): Likewise.
62714         * modules/crypto/gc-des-tests (License): Likewise.
62715         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62716         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62717         * modules/crypto/gc-md2-tests (License): Likewise.
62718         * modules/crypto/gc-md4-tests (License): Likewise.
62719         * modules/crypto/gc-md5-tests (License): Likewise.
62720         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62721         * modules/crypto/gc-rijndael-tests (License): Likewise.
62722         * modules/crypto/gc-sha1-tests (License): Likewise.
62723         * modules/crypto/gc-tests (License): Likewise.
62724         * modules/crypto/hmac-md5 (License): Likewise.
62725         * modules/crypto/hmac-sha1 (License): Likewise.
62726         * modules/crypto/md2-tests (License): Likewise.
62727         * modules/crypto/md4-tests (License): Likewise.
62728         * modules/crypto/md5 (License): Likewise.
62729         * modules/crypto/rijndael (License): Likewise.
62730         * modules/crypto/sha1 (License): Likewise.
62731         * modules/memxor (License): Likewise.
62732
62733 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62734         and Bruno Haible  <bruno@clisp.org>
62735
62736         * NEWS: Describe interface changes to human, xstrtol.
62737         * lib/human.h: Include <xstrtol.h>.
62738         (human_options): Return enum strtol_error, not int.  Remove
62739         bool arg; take int * instead.
62740         * lib/human.c: Don't include "gettext.h".
62741         (_): Remove; no longer used.
62742         Don't include <xstrtol.h>, since human.h does it.
62743         (human_options): Adjust to abovementioned interface changes.
62744         Do not report error to stderr; that's now the caller's
62745         responsibility.
62746         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62747         interface change.
62748         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62749         Str, Argument_type_string.  All uses changed.  Put " argument"
62750         in diagnostics to make them clearer.  Change wording of suffix
62751         message for clarity.
62752         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62753         Argument_type_string.
62754         (STRTOL_FATAL_WARN): Remove; no longer used.
62755         * modules/human (Depends-on): Remove gettext-h.
62756
62757 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62758
62759         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62760
62761 2007-07-31  Bruno Haible  <bruno@clisp.org>
62762
62763         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62764         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62765         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62766
62767 2007-07-31  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62770         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62771
62772 2007-07-30  Bruno Haible  <bruno@clisp.org>
62773
62774         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62775         * modules/c-ctype (License): Likewise.
62776         * modules/c-strcase (License): Likewise.
62777         * modules/check-version (License): Likewise.
62778         * modules/iconv (License): Likewise.
62779         * modules/iconv_open (License): Likewise.
62780         * modules/read-file (License): Likewise.
62781         * modules/striconv (License): Likewise.
62782         * modules/strverscmp (License): Likewise.
62783         * modules/vasprintf (License): Likewise.
62784         * modules/crypto/des (License): Likewise.
62785         * modules/crypto/gc (License): Likewise.
62786         * modules/crypto/gc-arcfour (License): Likewise.
62787         * modules/crypto/gc-arctwo (License): Likewise.
62788         * modules/crypto/gc-des (License): Likewise.
62789         * modules/crypto/gc-hmac-md5 (License): Likewise.
62790         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62791         * modules/crypto/gc-md2 (License): Likewise.
62792         * modules/crypto/gc-md4 (License): Likewise.
62793         * modules/crypto/gc-md5 (License): Likewise.
62794         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62795         * modules/crypto/gc-random (License): Likewise.
62796         * modules/crypto/gc-rijndael (License): Likewise.
62797         * modules/crypto/gc-sha1 (License): Likewise.
62798         * modules/crypto/md2 (License): Likewise.
62799         * modules/crypto/md4 (License): Likewise.
62800
62801 2007-07-30  Jim Meyering  <jim@meyering.net>
62802
62803         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62804         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62805         it has valid stat data.  This bug would cause du not to count the
62806         sizes of inaccessible directories.
62807         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62808         in <http://bugzilla.redhat.com/250077>.
62809
62810 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62811             Bruno Haible  <bruno@clisp.org>
62812
62813         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62814         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62815         #include_next, gives a diagnostic about it, but reports no error in
62816         the exit code.
62817         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62818
62819 2007-07-24  Ben Pfaff  <blp@gnu.org>
62820
62821         Improve name: "count-one-bits" is better than "popcount".
62822         * MODULES.html.sh: Update name.
62823         * lib/popcount.h: Renamed lib/count-one-bits.h.
62824         (popcount): Renamed count_one_bits.
62825         (popcountl): Renamed count_one_bits_l.
62826         (popcountll): Renamed count_one_bits_ll.
62827         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62828         * modules/popcount: Renamed module/count-one-bits.
62829         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62830         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62831
62832 2007-07-23  Ben Pfaff  <blp@gnu.org>
62833
62834         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62835         better code generation, and add U to large constants to avoid
62836         warnings, in non-GCC case.
62837         Suggested by Bruno Haible.
62838
62839 2007-07-23  Ben Pfaff  <blp@gnu.org>
62840
62841         * lib/popcount.h: Use verify_true instead of if...abort.
62842         * modules/popcount: Depend on verify module.
62843         Suggested by Jim Meyering.
62844
62845 2007-07-23  Bruno Haible  <bruno@clisp.org>
62846
62847         * gnulib-tool (func_import): Create a .cvsignore file also when the
62848         directory is not yet in CVS but the toplevel directory is. When
62849         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62850         Reported by Karl Berry.
62851
62852 2007-07-22  Ben Pfaff  <blp@gnu.org>
62853
62854         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62855         case.
62856         Suggested by Eric Blake.
62857
62858 2007-07-22  Ben Pfaff  <blp@gnu.org>
62859
62860         New module: popcount.
62861         * MODULES.html.sh: Add popcount.
62862         * modules/popcount: New file.
62863         * modules/popcount-tests: New file.
62864         * tests/test-popcount.c: New file.
62865         * lib/popcount.h: New file.
62866         * m4/popcount.m4: New file.
62867
62868 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62869
62870         * build-aux/announce-gen: Update to GPLv3.
62871
62872         * build-aux/config.guess: Update from config.
62873
62874 2007-07-21  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62877         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62878
62879 2007-07-20  Jim Meyering  <jim@meyering.net>
62880
62881         * check-module: Diagnose a self-dependency.
62882
62883 2007-07-19  Bruno Haible  <bruno@clisp.org>
62884
62885         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62886         empty.
62887         Reported by Eric Blake.
62888
62889 2007-07-18  Bruno Haible  <bruno@clisp.org>
62890
62891         * gnulib-tool: New options --po-base, --po-domain.
62892         (func_usage): Document them.
62893         (pobase, po_domain): New variables.
62894         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62895         DEFAULT_TEXT_DOMAIN.
62896         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62897         (func_import): Consider pobase and po_domain. Create a po/ directory.
62898         (func_create_testdir): Set pobase and po_domain to empty.
62899         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62900         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62901
62902 2007-07-18  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62905         EXTRA_DIST augmentation for files in build-aux/.
62906
62907 2007-07-16  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62910         * modules/getdelim (License): Likewise.
62911
62912 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62913
62914         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62915         * modules/d-type (License): Likewise.
62916         * modules/extensions (License): Likewise.
62917         * modules/fnmatch (License): Likewise.
62918         * modules/fseeko (License): Likewise.
62919         * modules/getaddrinfo (License): Likewise.
62920         * modules/getline (License): Likewise.
62921         * modules/getlogin_r (License): Likewise.
62922         * modules/getpass (License): Likewise.
62923         * modules/gettimeofday (License): Likewise.
62924         * modules/glob (License): Likewise.
62925         * modules/inet_ntop (License): Likewise.
62926         * modules/malloc (License): Likewise.
62927         * modules/malloca (License): Likewise.
62928         * modules/memmem (License): Likewise.
62929         * modules/mempcpy (License): Likewise.
62930         * modules/memset (License): Likewise.
62931         * modules/minmax (License): Likewise.
62932         * modules/mktime (License): Likewise.
62933         * modules/netinet_in (License): Likewise.
62934         * modules/pathmax (License): Likewise.
62935         * modules/poll (License): Likewise.
62936         * modules/regex (License): Likewise.
62937         * modules/snprintf (License): Likewise.
62938         * modules/stdbool (License): Likewise.
62939         * modules/stdint (License): Likewise.
62940         * modules/stdio (License): Likewise.
62941         * modules/strcase (License): Likewise.
62942         * modules/strcasestr (License): Likewise.
62943         * modules/strdup (License): Likewise.
62944         * modules/string (License): Likewise.
62945         * modules/strndup (License): Likewise.
62946         * modules/strnlen (License): Likewise.
62947         * modules/strpbrk (License): Likewise.
62948         * modules/strptime (License): Likewise.
62949         * modules/strsep (License): Likewise.
62950         * modules/sys_select (License): Likewise.
62951         * modules/sys_socket (License): Likewise.
62952         * modules/sys_stat (License): Likewise.
62953         * modules/sys_time (License): Likewise.
62954         * modules/time (License): Likewise.
62955         * modules/time_r (License): Likewise.
62956         * modules/timegm (License): Likewise.
62957         * modules/unistd (License): Likewise.
62958         * modules/vsnprintf (License): Likewise.
62959         * modules/wctype (License): Likewise.
62960
62961 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62962
62963         * modules/argz (License): LGPLv2+.
62964
62965 2007-07-15  Karl Berry  <karl@gnu.org>
62966
62967         * doc/gnulib.texi: revise node structure per new fdl.texi.
62968
62969 2007-07-14  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62972         the output file.
62973         * lib/uniname/uninames.h: Regenerated.
62974
62975 2007-07-14  Karl Berry  <karl@gnu.org>
62976
62977         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62978         omitting sectioning and index commands.
62979
62980 2007-07-13  Bruno Haible  <bruno@clisp.org>
62981
62982         New gnulib-tool option --more-symlinks.
62983         * gnulib-tool (func_usage): Document --more-symlinks.
62984         (do_copyrights): New variable.
62985         Recognize option --more-symlinks.
62986         (func_import): Don't add a copyright notice transform to
62987         sed_transform_lib_file if do_copyrights is empty.
62988
62989 2007-07-13  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/vasnprintf.c (decimal_point_char): Define also if
62992         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62993         && !NEED_PRINTF_DIRECTIVE_A.
62994         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62995         Gary V. Vaughan <gary@gnu.org>.
62996
62997 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62998
62999         * lib/inttypes_.h: Undo previous change, since it was fixed
63000         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63001
63002 2007-07-13  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63005         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63006
63007 2007-07-13  Jim Meyering  <jim@meyering.net>
63008
63009         df: Don't fail for Tru64's "file-on-file mount".
63010         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63011         so we fall through and use statfs instead.  Details here:
63012         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63013         Reported by Albert Chin.
63014
63015 2007-07-13  Bruno Haible  <bruno@clisp.org>
63016
63017         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63018         * modules/configmake (License): Likewise.
63019         * modules/gettext (License): Likewise.
63020         * modules/gettext-h (License): Likewise.
63021         * modules/include_next (License): Likewise.
63022         * modules/link-warning (License): Likewise.
63023         * modules/localcharset (License): Likewise.
63024         * modules/localename (License): Likewise.
63025         * modules/lock (License): Likewise.
63026         * modules/relocatable-lib-lgpl (License): Likewise.
63027         * modules/size_max (License): Likewise.
63028         * modules/vasnprintf (License): Likewise.
63029         * modules/wchar (License): Likewise.
63030         * modules/xsize (License): Likewise.
63031
63032 2007-07-13  Bruno Haible  <bruno@clisp.org>
63033
63034         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63035         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63036
63037 2007-07-12  Bruno Haible  <bruno@clisp.org>
63038
63039         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63040         in the modules files.
63041
63042 2007-07-11  Karl Berry  <karl@gnu.org>
63043
63044         * MODULES.html.sh (func_module): use
63045          sed -e '\|^'"${includefile}"'$|d'
63046          instead of /.../d, to avoid errors on $includefile's containing /.
63047
63048 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63049
63050         * gnulib-tool (func_import): Avoid duplication of --avoid
63051         statements
63052         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63053         names to `_' in variable names.
63054
63055 2007-07-10  Eric Blake  <ebb9@byu.net>
63056
63057         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63058         * NEWS: Document this change.
63059
63060 2007-07-08  Bruno Haible  <bruno@clisp.org>
63061
63062         Update to Unicode 5.0.
63063         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63064         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63065         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63066         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63067         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63068         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63069         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63070         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63071         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63072         U+10A3F, U+1D242..U+1D244.
63073         (nonspacing_table_ind): Update.
63074         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63075         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63076
63077 2007-07-08  Bruno Haible  <bruno@clisp.org>
63078
63079         Update to Unicode 5.0.
63080         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63081         code transform. Extend the name index field of unicode_name_to_code and
63082         unicode_code_to_name from 16 to 24 bits.
63083         * lib/uniname/uniname.c (unicode_character_name,
63084         unicode_name_character): Add the range 0x12xxx to the code transform.
63085         * lib/uniname/uninames.h: Regenerated.
63086         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63087
63088 2007-07-07  Bruno Haible  <bruno@clisp.org>
63089
63090         * modules/wcwidth-tests: New file.
63091         * tests/test-wcwidth.c: New file.
63092
63093         Work around MacOS X wcwidth() bug.
63094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63095         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63096         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63097         original wcwidth in non-UTF-8 locales.
63098         * modules/wcwidth (Depends-on): Add localcharset, streq,
63099         uniwidth/width.
63100         * doc/functions/wcwidth.texi: Update.
63101
63102 2007-07-07  Bruno Haible  <bruno@clisp.org>
63103
63104         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63105         (wcwidth): New declaration.
63106         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63107         macros.
63108         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63109         here. Prepare for creating <wchar.h> unconditionally.
63110         * modules/wchar (Depends-on): Add link-warning.
63111         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63112         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63113         * lib/wcwidth.h: Remove file.
63114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63115         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63116         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63117         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63118         (Include): Replace wcwidth.h with <wchar.h>.
63119         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63120         * lib/mbchar.h: Don't include wcwidth.h.
63121         * lib/mbswidth.c: Likewise.
63122         * NEWS: Mention the change.
63123
63124 2007-07-07  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63127         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63128         definition with an external declaration.
63129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63130         defined as a function. Remove AC_C_INLINE requirement.
63131         * modules/wcwidth (Files): Add lib/wcwidth.c.
63132         (Makefile.am): Remove redundant statement.
63133
63134 2007-07-07  Bruno Haible  <bruno@clisp.org>
63135
63136         * MODULES.html.sh (Unicode string functions): Add the new modules.
63137
63138         * tests/uniwidth/test-u32-strwidth.c: New file.
63139         * modules/uniwidth/u32-strwidth-tests: New file.
63140
63141         * lib/uniwidth/u32-strwidth.c: New file.
63142         * modules/uniwidth/u32-strwidth: New file.
63143
63144         * tests/uniwidth/test-u16-strwidth.c: New file.
63145         * modules/uniwidth/u16-strwidth-tests: New file.
63146
63147         * lib/uniwidth/u16-strwidth.c: New file.
63148         * modules/uniwidth/u16-strwidth: New file.
63149
63150         * tests/uniwidth/test-u8-strwidth.c: New file.
63151         * modules/uniwidth/u8-strwidth-tests: New file.
63152
63153         * lib/uniwidth/u8-strwidth.c: New file.
63154         * modules/uniwidth/u8-strwidth: New file.
63155
63156         * tests/uniwidth/test-u32-width.c: New file.
63157         * modules/uniwidth/u32-width-tests: New file.
63158
63159         * lib/uniwidth/u32-width.c: New file.
63160         * modules/uniwidth/u32-width: New file.
63161
63162         * tests/uniwidth/test-u16-width.c: New file.
63163         * modules/uniwidth/u16-width-tests: New file.
63164
63165         * lib/uniwidth/u16-width.c: New file.
63166         * modules/uniwidth/u16-width: New file.
63167
63168         * tests/uniwidth/test-u8-width.c: New file.
63169         * modules/uniwidth/u8-width-tests: New file.
63170
63171         * lib/uniwidth/u8-width.c: New file.
63172         * modules/uniwidth/u8-width: New file.
63173
63174         * tests/uniwidth/test-uc_width.c: New file.
63175         * modules/uniwidth/width-tests: New file.
63176
63177         * lib/uniwidth/width.c: New file, from GNU libiconv.
63178         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63179         * modules/uniwidth/width: New file.
63180
63181         * lib/uniwidth.h: New file, from GNU libiconv.
63182         * modules/uniwidth/base: New file.
63183
63184 2007-07-07  Bruno Haible  <bruno@clisp.org>
63185
63186         * lib/uniname.h: New file, from GNU gettext.
63187         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63188         * lib/uniname/uninames.h: New file, from GNU gettext.
63189         * lib/uniname/uniname.c: New file, from GNU gettext.
63190         * tests/uniname/test-uninames.sh: New file.
63191         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63192         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63193         * modules/uniname/base: New file.
63194         * modules/uniname/uniname: New file.
63195         * modules/uniname/uniname-tests: New file.
63196         * MODULES.html.sh (Unicode string functions): Add the new modules.
63197
63198 2007-07-06  Bruno Haible  <bruno@clisp.org>
63199
63200         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63201
63202 2007-07-06  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63205         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63206         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63207         include <sys/time.h>.
63208         Reported by Eric Blake.
63209
63210 2007-07-06  Eric Blake  <ebb9@byu.net>
63211
63212         Fix testing canonicalize on cygwin.
63213         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63214         Revert patch from 2007-06-19.
63215         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63216         canonicalize module is also in use.
63217         * tests/test-canonicalize.c: New file.
63218         * tests/test-canonicalize.sh: Likewise.
63219         * modules/canonicalize-tests: Likewise.
63220
63221 2007-07-06  Jim Meyering  <jim@meyering.net>
63222
63223         * lib/getugroups.c (getugroups): Detect getgrent failure.
63224         Adjust comment to reflect reality: this function may return -1.
63225
63226 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63227
63228         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63229         the new TP address.
63230         (usage): Fix typo
63231         (gnulib_mk): New variable.
63232
63233 2007-07-05  Jim Meyering  <jim@meyering.net>
63234
63235         Don't let endgrent clobber errno, no matter how improbable.
63236         * lib/getugroups.c (getugroups): Save and restore errno around
63237         endgrent call.
63238
63239         Close the group DB even when failing with 2^31 or more members.
63240         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63241
63242 2007-07-04  Jim Meyering  <jim@meyering.net>
63243
63244         * lib/getugroups.h: New file.
63245         * lib/getugroups.c: Include "getugroups.h".
63246         Remove uses of "register" keyword.
63247         Move local variable, "cp", down into scope where used.
63248         Give "username" parameter the "const" attribute.
63249         * modules/getugroups (Files): Add lib/getugroups.h
63250
63251 2007-07-04  Karl Berry  <karl@gnu.org>
63252
63253         * MODULES.html.sh (func_all_modules): Complete rename of
63254         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63255
63256 2007-07-02  Bruno Haible  <bruno@clisp.org>
63257
63258         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63259         mode, when inttypes.h comes from gnulib.
63260         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63261
63262 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63263
63264         * NEWS: Mention lgpl module name change.
63265
63266         * modules/lgpl-2.1: Renamed from lgpl.
63267
63268         * NEWS: Mention gpl module name change.
63269
63270         * modules/gpl-3.0: New file, based on gpl-2.0.
63271
63272         * modules/gpl-2.0: Renamed from gpl.
63273
63274         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63275         doc/gpl-2.0.texi.
63276
63277 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63280         #define __STDC_LIMIT_MACROS temporarily while including
63281         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63282         Problem reported by Joel E. Denny in
63283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63284
63285 2007-07-01  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/unistdio.h: New file.
63288         * lib/unistdio/u-asnprintf.h: New file.
63289         * lib/unistdio/u-asprintf.h: New file.
63290         * lib/unistdio/u-printf-args.c: New file.
63291         * lib/unistdio/u-printf-args.h: New file.
63292         * lib/unistdio/u-printf-parse.h: New file.
63293         * lib/unistdio/u-snprintf.h: New file.
63294         * lib/unistdio/u-sprintf.h: New file.
63295         * lib/unistdio/u-vasprintf.h: New file.
63296         * lib/unistdio/u-vsnprintf.h: New file.
63297         * lib/unistdio/u-vsprintf.h: New file.
63298         * lib/unistdio/ulc-asnprintf.c: New file.
63299         * lib/unistdio/ulc-asprintf.c: New file.
63300         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63301         * lib/unistdio/ulc-printf-parse.c: New file.
63302         * lib/unistdio/ulc-snprintf.c: New file.
63303         * lib/unistdio/ulc-sprintf.c: New file.
63304         * lib/unistdio/ulc-vasnprintf.c: New file.
63305         * lib/unistdio/ulc-vasprintf.c: New file.
63306         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63307         * lib/unistdio/ulc-vsnprintf.c: New file.
63308         * lib/unistdio/ulc-vsprintf.c: New file.
63309         * lib/unistdio/u8-asnprintf.c: New file.
63310         * lib/unistdio/u8-asprintf.c: New file.
63311         * lib/unistdio/u8-printf-parse.c: New file.
63312         * lib/unistdio/u8-snprintf.c: New file.
63313         * lib/unistdio/u8-sprintf.c: New file.
63314         * lib/unistdio/u8-vasnprintf.c: New file.
63315         * lib/unistdio/u8-vasprintf.c: New file.
63316         * lib/unistdio/u8-vsnprintf.c: New file.
63317         * lib/unistdio/u8-vsprintf.c: New file.
63318         * lib/unistdio/u8-u8-asnprintf.c: New file.
63319         * lib/unistdio/u8-u8-asprintf.c: New file.
63320         * lib/unistdio/u8-u8-snprintf.c: New file.
63321         * lib/unistdio/u8-u8-sprintf.c: New file.
63322         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63323         * lib/unistdio/u8-u8-vasprintf.c: New file.
63324         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63325         * lib/unistdio/u8-u8-vsprintf.c: New file.
63326         * lib/unistdio/u16-asnprintf.c: New file.
63327         * lib/unistdio/u16-asprintf.c: New file.
63328         * lib/unistdio/u16-printf-parse.c: New file.
63329         * lib/unistdio/u16-snprintf.c: New file.
63330         * lib/unistdio/u16-sprintf.c: New file.
63331         * lib/unistdio/u16-vasnprintf.c: New file.
63332         * lib/unistdio/u16-vasprintf.c: New file.
63333         * lib/unistdio/u16-vsnprintf.c: New file.
63334         * lib/unistdio/u16-vsprintf.c: New file.
63335         * lib/unistdio/u16-u16-asnprintf.c: New file.
63336         * lib/unistdio/u16-u16-asprintf.c: New file.
63337         * lib/unistdio/u16-u16-snprintf.c: New file.
63338         * lib/unistdio/u16-u16-sprintf.c: New file.
63339         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63340         * lib/unistdio/u16-u16-vasprintf.c: New file.
63341         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63342         * lib/unistdio/u16-u16-vsprintf.c: New file.
63343         * lib/unistdio/u32-asnprintf.c: New file.
63344         * lib/unistdio/u32-asprintf.c: New file.
63345         * lib/unistdio/u32-printf-parse.c: New file.
63346         * lib/unistdio/u32-snprintf.c: New file.
63347         * lib/unistdio/u32-sprintf.c: New file.
63348         * lib/unistdio/u32-vasnprintf.c: New file.
63349         * lib/unistdio/u32-vasprintf.c: New file.
63350         * lib/unistdio/u32-vsnprintf.c: New file.
63351         * lib/unistdio/u32-vsprintf.c: New file.
63352         * lib/unistdio/u32-u32-asnprintf.c: New file.
63353         * lib/unistdio/u32-u32-asprintf.c: New file.
63354         * lib/unistdio/u32-u32-snprintf.c: New file.
63355         * lib/unistdio/u32-u32-sprintf.c: New file.
63356         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63357         * lib/unistdio/u32-u32-vasprintf.c: New file.
63358         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63359         * lib/unistdio/u32-u32-vsprintf.c: New file.
63360         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63361         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63362         * tests/unistdio/test-ulc-printf1.h: New file.
63363         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63364         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63365         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63366         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63367         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63368         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63369         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63370         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63371         * tests/unistdio/test-u8-asnprintf1.c: New file.
63372         * tests/unistdio/test-u8-asnprintf1.h: New file.
63373         * tests/unistdio/test-u8-printf1.h: New file.
63374         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63375         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63376         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63377         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63378         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63379         * tests/unistdio/test-u8-vasprintf1.c: New file.
63380         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63381         * tests/unistdio/test-u8-vsprintf1.c: New file.
63382         * tests/unistdio/test-u16-asnprintf1.c: New file.
63383         * tests/unistdio/test-u16-asnprintf1.h: New file.
63384         * tests/unistdio/test-u16-printf1.h: New file.
63385         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63386         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63387         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63388         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63389         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63390         * tests/unistdio/test-u16-vasprintf1.c: New file.
63391         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63392         * tests/unistdio/test-u16-vsprintf1.c: New file.
63393         * tests/unistdio/test-u32-asnprintf1.c: New file.
63394         * tests/unistdio/test-u32-asnprintf1.h: New file.
63395         * tests/unistdio/test-u32-printf1.h: New file.
63396         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63397         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63398         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63399         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63400         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63401         * tests/unistdio/test-u32-vasprintf1.c: New file.
63402         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63403         * tests/unistdio/test-u32-vsprintf1.c: New file.
63404         * modules/unistdio/base: New file.
63405         * modules/unistdio/u-printf-args: New file.
63406         * modules/unistdio/ulc-asnprintf: New file.
63407         * modules/unistdio/ulc-asprintf: New file.
63408         * modules/unistdio/ulc-fprintf: New file.
63409         * modules/unistdio/ulc-printf-parse: New file.
63410         * modules/unistdio/ulc-snprintf: New file.
63411         * modules/unistdio/ulc-sprintf: New file.
63412         * modules/unistdio/ulc-vasnprintf: New file.
63413         * modules/unistdio/ulc-vasprintf: New file.
63414         * modules/unistdio/ulc-vfprintf: New file.
63415         * modules/unistdio/ulc-vsnprintf: New file.
63416         * modules/unistdio/ulc-vsprintf: New file.
63417         * modules/unistdio/u8-asnprintf: New file.
63418         * modules/unistdio/u8-asprintf: New file.
63419         * modules/unistdio/u8-printf-parse: New file.
63420         * modules/unistdio/u8-snprintf: New file.
63421         * modules/unistdio/u8-sprintf: New file.
63422         * modules/unistdio/u8-vasnprintf: New file.
63423         * modules/unistdio/u8-vasprintf: New file.
63424         * modules/unistdio/u8-vsnprintf: New file.
63425         * modules/unistdio/u8-vsprintf: New file.
63426         * modules/unistdio/u8-u8-asnprintf: New file.
63427         * modules/unistdio/u8-u8-asprintf: New file.
63428         * modules/unistdio/u8-u8-snprintf: New file.
63429         * modules/unistdio/u8-u8-sprintf: New file.
63430         * modules/unistdio/u8-u8-vasnprintf: New file.
63431         * modules/unistdio/u8-u8-vasprintf: New file.
63432         * modules/unistdio/u8-u8-vsnprintf: New file.
63433         * modules/unistdio/u8-u8-vsprintf: New file.
63434         * modules/unistdio/u16-asnprintf: New file.
63435         * modules/unistdio/u16-asprintf: New file.
63436         * modules/unistdio/u16-printf-parse: New file.
63437         * modules/unistdio/u16-snprintf: New file.
63438         * modules/unistdio/u16-sprintf: New file.
63439         * modules/unistdio/u16-vasnprintf: New file.
63440         * modules/unistdio/u16-vasprintf: New file.
63441         * modules/unistdio/u16-vsnprintf: New file.
63442         * modules/unistdio/u16-vsprintf: New file.
63443         * modules/unistdio/u16-u16-asnprintf: New file.
63444         * modules/unistdio/u16-u16-asprintf: New file.
63445         * modules/unistdio/u16-u16-snprintf: New file.
63446         * modules/unistdio/u16-u16-sprintf: New file.
63447         * modules/unistdio/u16-u16-vasnprintf: New file.
63448         * modules/unistdio/u16-u16-vasprintf: New file.
63449         * modules/unistdio/u16-u16-vsnprintf: New file.
63450         * modules/unistdio/u16-u16-vsprintf: New file.
63451         * modules/unistdio/u32-asnprintf: New file.
63452         * modules/unistdio/u32-asprintf: New file.
63453         * modules/unistdio/u32-printf-parse: New file.
63454         * modules/unistdio/u32-snprintf: New file.
63455         * modules/unistdio/u32-sprintf: New file.
63456         * modules/unistdio/u32-vasnprintf: New file.
63457         * modules/unistdio/u32-vasprintf: New file.
63458         * modules/unistdio/u32-vsnprintf: New file.
63459         * modules/unistdio/u32-vsprintf: New file.
63460         * modules/unistdio/u32-u32-asnprintf: New file.
63461         * modules/unistdio/u32-u32-asprintf: New file.
63462         * modules/unistdio/u32-u32-snprintf: New file.
63463         * modules/unistdio/u32-u32-sprintf: New file.
63464         * modules/unistdio/u32-u32-vasnprintf: New file.
63465         * modules/unistdio/u32-u32-vasprintf: New file.
63466         * modules/unistdio/u32-u32-vsnprintf: New file.
63467         * modules/unistdio/u32-u32-vsprintf: New file.
63468         * modules/unistdio/ulc-asnprintf-tests: New file.
63469         * modules/unistdio/ulc-vasnprintf-tests: New file.
63470         * modules/unistdio/ulc-vasprintf-tests: New file.
63471         * modules/unistdio/ulc-vsnprintf-tests: New file.
63472         * modules/unistdio/ulc-vsprintf-tests: New file.
63473         * modules/unistdio/u8-asnprintf-tests: New file.
63474         * modules/unistdio/u8-vasnprintf-tests: New file.
63475         * modules/unistdio/u8-vasprintf-tests: New file.
63476         * modules/unistdio/u8-vsnprintf-tests: New file.
63477         * modules/unistdio/u8-vsprintf-tests: New file.
63478         * modules/unistdio/u16-asnprintf-tests: New file.
63479         * modules/unistdio/u16-vasnprintf-tests: New file.
63480         * modules/unistdio/u16-vasprintf-tests: New file.
63481         * modules/unistdio/u16-vsnprintf-tests: New file.
63482         * modules/unistdio/u16-vsprintf-tests: New file.
63483         * modules/unistdio/u32-asnprintf-tests: New file.
63484         * modules/unistdio/u32-vasnprintf-tests: New file.
63485         * modules/unistdio/u32-vasprintf-tests: New file.
63486         * modules/unistdio/u32-vsnprintf-tests: New file.
63487         * modules/unistdio/u32-vsprintf-tests: New file.
63488         * MODULES.html.sh (Unicode string functions): Add the new modules.
63489
63490 2007-07-01  Bruno Haible  <bruno@clisp.org>
63491
63492         * lib/sprintf.c (sprintf): Limit the available length estimation,
63493         to avoid address wraparound.
63494         * lib/vsprintf.c (vsprintf): Likewise.
63495         * modules/sprintf-posix (Dependencies): Add stdint.
63496         * modules/vsprintf-posix (Dependencies): Likewise.
63497
63498 2007-07-01  Bruno Haible  <bruno@clisp.org>
63499
63500         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63501         Windows PATH as well. Conservative double-quoting. Comments.
63502
63503 2007-07-01  Bruno Haible  <bruno@clisp.org>
63504             Eric Blake  <ebb9@byu.net>
63505             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63506
63507         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63508         empty components in $PATH, denoting '.'.
63509
63510 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63511
63512         * gnulib-tool: Fix indentation.
63513         (func_create_megatestdir): Likewise.
63514         Report by Bruno Haible.
63515
63516 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63517
63518         Sync from Automake.
63519         * build-aux/gnupload: Fix shell portability issues with for loops.
63520         Report by Karl Berry.
63521
63522 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63523
63524         * build-aux/maint.mk (POURL): Use translationproject.org.
63525
63526 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63527             Bruno Haible  <bruno@clisp.org>
63528
63529         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63530         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63531         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63532         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63533         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63534
63535 2007-06-27  Bruno Haible  <bruno@clisp.org>
63536
63537         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63538         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63539
63540 2007-06-26  Karl Berry  <karl@gnu.org>
63541
63542         * MODULES.html.sh: remove xreadlink-with-size.
63543
63544 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63547         method that I hope also handles the double-include problem noted
63548         by Bruno Haible in
63549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63550
63551 2007-06-23  Bruno Haible  <bruno@clisp.org>
63552
63553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63554         Don't let the 'mostlyclean' target fail if the last subdirectory could
63555         not be removed.
63556         Reported by Karl Berry.
63557
63558 2007-06-23  Bruno Haible  <bruno@clisp.org>
63559
63560         * gnulib-tool (echo): Add a speedier workaround for ksh.
63561         * tests/test-echo.sh: Likewise.
63562
63563 2007-06-23  Bruno Haible  <bruno@clisp.org>
63564
63565         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63566         * tests/test-echo.sh: Likewise.
63567
63568 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63569
63570         * gnulib-tool (IFS): Initialize early, so we don't set it to
63571         empty later.
63572         (self_abspathname): Rewrite algorithm to set it, reindent.
63573         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63574         (func_create_megatestdir): Merge some sed scripts.
63575
63576 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63579         exposed by Sun Studio 11 cc on Solaris 8.
63580
63581 2007-06-22  Bruno Haible  <bruno@clisp.org>
63582
63583         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63584         backslashes.
63585         * tests/test-echo.sh: New file.
63586
63587 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63588
63589         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63590         simplify `sed_replace_build_aux' scripts, they are portable but
63591         echoing them with `echo' is not.
63592         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63593
63594 2007-06-21  Karl Berry  <karl@gnu.org>
63595
63596         * config/srclist.txt: guess we can't handle the licenses via
63597         srclist at the moment.
63598
63599 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * MODULES.html.sh: Add include_next.
63602         * modules/include_next: New file.
63603
63604 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63605
63606         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63607         INCLUDE_NEXT.
63608         (gl_CHECK_NEXT_HEADERS): New macro.
63609         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63610         the obsolescent gl_ABSOLUTE_HEADER.
63611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63612         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63613         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63614         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63615         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63616         * m4/math_h.m4 (gl_MATH_H): Likewise.
63617         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63618         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63619         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63620         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63621         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63622         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63628         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63629         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63630         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63631         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63632         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63633         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63634         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63635         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63636         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63637         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63638         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63639         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63640         * lib/float_.h: Likewise.
63641         * lib/inttypes_.h: Likewise.
63642         * lib/math_.h: Likewise.
63643         * lib/search_.h: Likewise.
63644         * lib/signal_.h: Likewise.
63645         * lib/stdint_.h: Likewise.
63646         * lib/stdio_.h: Likewise.
63647         * lib/stdlib_.h: Likewise.
63648         * lib/string_.h: Likewise.
63649         * lib/sys_stat_.h: Likewise.
63650         * lib/sys_time_.h: Likewise.
63651         * lib/time_.h: Likewise.
63652         * lib/unistd_.h: Likewise.
63653         * lib/wchar_.h: Likewise.
63654         * lib/wctype_.h: Likewise.
63655         * lib/dirent_.h: Likewise.
63656         * lib/iconv_.h: Likewise.
63657         * lib/locale_.h: Likewise.
63658         * lib/netinet_in_.h: Likewise.
63659         * lib/sys_select_.h: Likewise.
63660         * lib/sys_socket_.h: Likewise.
63661         * lib/sysexits_.h: Likewise.
63662         * modules/fcntl (Depends-on): Depend on include_next, not
63663         absolute_header.
63664         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63665         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63666         * modules/fchdir: Likewise.
63667         * modules/float: Likewise.
63668         * modules/iconv_open: Likewise.
63669         * modules/inttypes: Likewise.
63670         * modules/locale: Likewise.
63671         * modules/math: Likewise.
63672         * modules/netinet_in: Likewise.
63673         * modules/search: Likewise.
63674         * modules/signal: Likewise.
63675         * modules/stdint: Likewise.
63676         * modules/stdio: Likewise.
63677         * modules/stdlib: Likewise.
63678         * modules/string: Likewise.
63679         * modules/sys_select: Likewise.
63680         * modules/sys_socket: Likewise.
63681         * modules/sys_stat: Likewise.
63682         * modules/sys_time: Likewise.
63683         * modules/sysexits: Likewise.
63684         * modules/time: Likewise.
63685         * modules/unistd: Likewise.
63686         * modules/wchar: Likewise.
63687         * modules/wctype: Likewise.
63688         * modules/sys_stat: Change maintainer to "all".
63689         * modules/unistd: Likewise.
63690
63691 2007-06-20  Karl Berry  <karl@gnu.org>
63692
63693         * config/srclist.txt: track www changes in license files.
63694
63695 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63696
63697         * build-aux/bootstrap: Remove stray dot.
63698         Make sure build_aux settings are honored when linking
63699         gnulib_extra_files.
63700
63701 2007-06-19  Eric Blake  <ebb9@byu.net>
63702
63703         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63704         Allow compilation on cygwin.
63705
63706 2007-06-19  Jim Meyering  <jim@meyering.net>
63707
63708         xreadlink-with-size: Remove module.  No longer used.
63709         Ex-callers now use xreadlink or mreadlink-with-size.
63710         * modules/xreadlink-with-size: Remove module.
63711         * lib/xreadlink-with-size.c: Remove file.
63712         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63713         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63714         just before the function definition *is* accurate.
63715
63716         Eliminate one way canonicalize_filename_mode could exit.
63717         * lib/canonicalize.c (canonicalize_filename_mode):
63718         Use mreadlink_with_size, not xreadlink_with_size.
63719
63720 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63721
63722         Detect porting problems to FreeBSD/arm, which has time_t wider than
63723         long int.  Original problem reported for GNU diff by Xin Li in
63724         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63725         * modules/getdate (Depends-on): Add intprops, verify.
63726         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63727         is an integer type no wider than long int.
63728
63729 2007-06-18  Jim Meyering  <jim@meyering.net>
63730
63731         New module: mreadlink-with-size.
63732         * MODULES.html.sh: Add mreadlink-with-size.
63733         * modules/mreadlink-with-size: New module
63734         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63735         not xreadlink-with-size.
63736         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63737
63738 2007-06-16  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63741         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63742         Reported by Gary V. Vaughan <gary@gnu.org>.
63743
63744 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         Revamp lchown so that it lives in unistd.h where it belongs.
63747         * lib/lchown.h: Remove.
63748         * lib/dirchownmod.c: Don't include lib/lchown.h.
63749         * lib/fchownat.c: Likewise.
63750         * lib/openat.c: Likewise.
63751         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63752         does not follow symlinks.
63753         (EOPNOTSUPP): Define if not defined.
63754         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63755         is defined to 0.
63756         (lchown): New decl.
63757         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63758         Do not check for lchown decl.
63759         Set REPLACE_LCHOWN.
63760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63761         REPLACE_LCHOWN.
63762         * modules/chown: Make it clear it follows symlinks.
63763         * modules/lchown: Make it clear it doesn't follow symlinks.
63764         (Files): Remove lib/lchown.h
63765         (Depends-on): Add unistd.
63766         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63767         (Include): Include <unistd.h>, not "lchown.h".
63768         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63769         REPLACE_LCHOWN.
63770
63771 2007-06-15  Jim Meyering  <jim@meyering.net>
63772
63773         Change license (GPL to LGPL) of fsusage and dependents.
63774         * modules/fsusage (License): Change to LGPL.
63775         * modules/full-read (License): Likewise.
63776         * modules/full-write (License): Likewise.
63777         * modules/safe-read (License): Likewise.
63778         * modules/safe-write (License): Likewise.
63779
63780 2007-06-14  Ben Pfaff  <blp@gnu.org>
63781
63782         Missing part of allocsa -> malloca transition.
63783         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63784         gl_MALLOCA.
63785
63786 2007-06-12  Bruno Haible  <bruno@clisp.org>
63787
63788         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63789         to ia64, x86_64, i386.
63790         Reported by Eric Blake.
63791
63792 2007-06-12  Bruno Haible  <bruno@clisp.org>
63793
63794         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63795         cross-compiling to x86_64.
63796
63797 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63800         glitch reported by Ralf Wildenhues in
63801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63802
63803         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63804         Vin Shelton.
63805
63806 2007-06-11  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63809         replacement string.
63810         Reported by Eric Blake.
63811
63812 2007-06-10  Bruno Haible  <bruno@clisp.org>
63813
63814         Prepare vasnprintf code for use with Unicode strings.
63815         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63816         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63817         TYPE_U32_STRING.
63818         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63819         a_u32_string variants.
63820         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63821         * lib/printf-args.c: Don't include config.h and the specification
63822         header if PRINTF_FETCHARGS is already defined.
63823         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63824         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63825         TYPE_U16_STRING, TYPE_U32_STRING.
63826         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63827         u16_directive, u16_directives, u32_directive, u32_directives): New
63828         types.
63829         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63830         New declarations.
63831         * lib/printf-parse.c: Don't include config.h and the specification
63832         header if PRINTF_PARSE is already defined. Eliminate the set of
63833         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63834         them now. Include c-ctype.h.
63835         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63836         directive and CHAR_T_ONLY_ASCII.
63837         * lib/vasnprintf.c: Don't include config.h and the specification header
63838         if VASNPRINTF is already defined.
63839         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63840         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63841         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63842         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63843         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63844         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63845         code accordingly.
63846         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63847         pad_ourselves also in this case, with the 'c' and 's' directives, and
63848         with a different notion of "width".
63849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63850
63851 2007-06-10  Bruno Haible  <bruno@clisp.org>
63852
63853         * modules/unistr/u32-mbsnlen: New file.
63854         * lib/unistr/u32-mbsnlen.c: New file.
63855
63856         * modules/unistr/u16-mbsnlen: New file.
63857         * lib/unistr/u16-mbsnlen.c: New file.
63858
63859         * modules/unistr/u8-mbsnlen: New file.
63860         * lib/unistr/u8-mbsnlen.c: New file.
63861
63862         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63863         declarations.
63864
63865 2007-06-10  Bruno Haible  <bruno@clisp.org>
63866
63867         * lib/string_.h (mbsnlen): New declaration.
63868         * lib/mbsnlen.c: New file.
63869         * m4/mbsnlen.m4: New file.
63870         * modules/mbsnlen: New file.
63871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63872         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63873         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63874
63875 2007-06-10  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63878
63879 2007-06-10  Bruno Haible  <bruno@clisp.org>
63880
63881         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63882         * lib/mbuiter.h: Likewise.
63883
63884 2007-06-10  Bruno Haible  <bruno@clisp.org>
63885
63886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63887         declaration.
63888
63889 2007-06-10  Karl Berry  <karl@gnu.org>
63890
63891         * config/srclist.txt: remove gettext entries, Bruno prefers
63892         to update individually.
63893
63894 2007-06-10  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63897         'maxlen'. Ensure only length + width bytes are allocated, not
63898         length + 1 + width.
63899
63900 2007-06-09  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63903         (CHAR_T): Remove macro.
63904         (VASNPRINTF): Update.
63905
63906 2007-06-09  Bruno Haible  <bruno@clisp.org>
63907
63908         * MODULES.html.sh (Unicode string functions): Add the new modules.
63909
63910         * modules/uniconv/u32-conv-to-enc: New file.
63911         * lib/uniconv/u32-conv-to-enc.c: New file.
63912         * modules/uniconv/u32-conv-to-enc-tests: New file.
63913         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63914
63915         * modules/uniconv/u16-conv-to-enc: New file.
63916         * lib/uniconv/u16-conv-to-enc.c: New file.
63917         * lib/uniconv/u-conv-to-enc.h: New file.
63918         * modules/uniconv/u16-conv-to-enc-tests: New file.
63919         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63920
63921         * modules/uniconv/u8-conv-to-enc: New file.
63922         * lib/uniconv/u8-conv-to-enc.c: New file.
63923         * modules/uniconv/u8-conv-to-enc-tests: New file.
63924         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63925
63926         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63927         u32_conv_to_encoding): New declarations.
63928
63929 2007-06-09  Bruno Haible  <bruno@clisp.org>
63930
63931         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63932
63933 2007-06-09  Bruno Haible  <bruno@clisp.org>
63934
63935         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63936         * modules/malloca: Renamed from modules/allocsa, updated.
63937         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63938         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63939         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63940         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63941         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63942         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63943         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63944         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63945         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63946         * modules/c-strcasestr (Depends-on): Update.
63947         * lib/c-strcasestr.c: Update.
63948         * modules/c-strstr (Depends-on): Update.
63949         * lib/c-strstr.c: Update.
63950         * modules/canonicalize-lgpl (Depends-on): Update.
63951         * lib/canonicalize-lgpl.c: Update.
63952         * modules/clean-temp (Depends-on): Update.
63953         * lib/clean-temp.c: Update.
63954         * modules/csharpcomp (Depends-on): Update.
63955         * lib/csharpcomp.c: Update.
63956         * modules/csharpexec (Depends-on): Update.
63957         * lib/csharpexec.c: Update.
63958         * modules/javacomp (Depends-on): Update.
63959         * lib/javacomp.c: Update.
63960         * modules/javaexec (Depends-on): Update.
63961         * lib/javaexec.c: Update.
63962         * modules/mbscasestr (Depends-on): Update.
63963         * lib/mbscasestr.c: Update.
63964         * modules/mbsstr (Depends-on): Update.
63965         * lib/mbsstr.c: Update.
63966         * modules/setenv (Depends-on): Update.
63967         * lib/setenv.c: Update.
63968         * modules/strcasestr (Depends-on): Update.
63969         * lib/strcasestr.c: Update.
63970         * modules/striconveha (Depends-on): Update.
63971         * lib/striconveha.c: Update.
63972         * modules/relocatable-prog-wrapper (Files): Update.
63973         * lib/relocwrapper.c: Update.
63974         * build-aux/install-reloc: Update.
63975         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63976
63977 2007-06-08  Bruno Haible  <bruno@clisp.org>
63978
63979         Port to uClibc.
63980         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63981         * lib/fpurge.c (fpurge): Likewise.
63982         * lib/freading.c (freading): Likewise.
63983         * lib/fseeko.c (rpl_fseeko): Likewise.
63984         * lib/fseterr.c (fseterr): Likewise.
63985         * lib/fwriting.c (fwriting): Likewise.
63986         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63987
63988 2007-06-08  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63991         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63992         * modules/gettext (Files): Add m4/intlmacosx.m4.
63993
63994 2007-06-07  Bruno Haible  <bruno@clisp.org>
63995
63996         * modules/localename-tests: New file.
63997         * tests/test-localename.c: New file.
63998
63999         New module 'localename'.
64000         * lib/localename.h: New file.
64001         * lib/localename.c: New file, from GNU gettext.
64002         * m4/localename.m4: New file.
64003         * modules/localename: New file.
64004
64005 2007-06-07  Bruno Haible  <bruno@clisp.org>
64006
64007         Work around the lack of <wchar.h> on some builds of uClibc.
64008         * doc/headers/wchar.texi: Update.
64009         * lib/wchar_.h: Include <wchar.h> only if it exists.
64010         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64011         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64012         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64013         doesn't exist.
64014         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64015         * modules/mbfile (Depends-on): Add wchar.
64016         * modules/mbiter (Depends-on): Likewise.
64017         * modules/mbuiter (Depends-on): Likewise.
64018         Reported by Simon Josefsson.
64019
64020 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Work around problem reported by Steven M. Schweda in
64023         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64024         Tru64 5.1B with the Compaq compiler environment installed declares
64025         an 'isblank' function but does not define it in the C library.
64026         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64027         * lib/regex_internal.h (isblank): Likewise.
64028         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64029         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64030
64031 2007-06-05  Bruno Haible  <bruno@clisp.org>
64032
64033         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64034         ia64.
64035         * modules/printf-safe: New file.
64036         * modules/fprintf-posix (Depends-on): Add printf-safe.
64037         * modules/printf-posix (Depends-on): Likewise.
64038         * modules/snprintf-posix (Depends-on): Likewise.
64039         * modules/sprintf-posix (Depends-on): Likewise.
64040         * modules/vasnprintf-posix (Depends-on): Likewise.
64041         * modules/vasprintf-posix (Depends-on): Likewise.
64042         * modules/vfprintf-posix (Depends-on): Likewise.
64043         * modules/vprintf-posix (Depends-on): Likewise.
64044         * modules/vsnprintf-posix (Depends-on): Likewise.
64045         * modules/vsprintf-posix (Depends-on): Likewise.
64046         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64047         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64048         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64049         "no" on i386, x86_64, ia64.
64050         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64051         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64052         on i386, x86_64, ia64.
64053         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64054         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64055         on i386, x86_64, ia64.
64056         * tests/test-vasnprintf-posix.c: Include float.h.
64057         (LDBL80_WORDS): New macro.
64058         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64059         on i386, x86_64, ia64.
64060         * tests/test-vasprintf-posix.c: Include float.h.
64061         (LDBL80_WORDS): New macro.
64062         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64063         on i386, x86_64, ia64.
64064         * tests/test-snprintf-posix.c: Include float.h.
64065         * tests/test-sprintf-posix.c: Likewise.
64066         * tests/test-vsnprintf-posix.c: Likewise.
64067         * tests/test-vsprintf-posix.c: Likewise.
64068
64069 2007-06-05  Bruno Haible  <bruno@clisp.org>
64070
64071         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64072         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64073         non-IEEE numbers on i386, x86_64, ia64.
64074         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64075         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64076         * tests/test-isnanl.h: Include float.h.
64077         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64078
64079 2007-06-05  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64082         also the %a / %A. Handle the %a / %A code before this extra handling.
64083
64084 2007-06-05  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64087         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64088
64089 2007-06-05  Bruno Haible  <bruno@clisp.org>
64090
64091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64092         typo in variable name.
64093
64094 2007-06-05  Eric Blake  <ebb9@byu.net>
64095
64096         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64097         Reported by Simon Josefsson.
64098
64099 2007-06-04  Bruno Haible  <bruno@clisp.org>
64100
64101         Avoid test failures on some PowerPC platforms.
64102         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64103         Define differently for PowerPC.
64104         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64105         Reported by Gary V. Vaughan <gary@gnu.org>.
64106
64107 2007-06-02  Bruno Haible  <bruno@clisp.org>
64108
64109         Fix test-stdint failure on FreeBSD/ia64.
64110         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64111         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64112         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64113         * doc/headers/stdint.texi: Update.
64114
64115 2007-06-01  Bruno Haible  <bruno@clisp.org>
64116
64117         * tests/test-binary-io.c (main): Pass a third argument to open().
64118         Reported by Gary V. Vaughan <gary@gnu.org>.
64119
64120 2007-06-01  Bruno Haible  <bruno@clisp.org>
64121
64122         * doc/functions/frexpl.texi: Update for mingw.
64123
64124 2007-06-01  Bruno Haible  <bruno@clisp.org>
64125
64126         * tests/test-lseek.c (main): Disable test of errno for invalid third
64127         argument.
64128         * doc/functions/lseek.texi: Update.
64129         Reported by Gary V. Vaughan <gary@gnu.org>.
64130
64131 2007-05-28  Bruno Haible  <bruno@clisp.org>
64132
64133         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64134
64135 2007-05-31  Eric Blake  <ebb9@byu.net>
64136
64137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64138         cross compiling.
64139
64140 2007-05-30  Eric Blake  <ebb9@byu.net>
64141         and Bruno Haible  <bruno@clisp.org>
64142
64143         Work around mingw test failures exposed by m4-1.4.9b.
64144         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64145         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64146         moment.
64147
64148 2007-05-30  Bruno Haible  <bruno@clisp.org>
64149
64150         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64151         assuming that they are closed. Needed on HP-UX 11.
64152
64153 2007-05-29  Bruno Haible  <bruno@clisp.org>
64154
64155         Fix a problem with #include_next.
64156         * lib/dirent_.h: Split the double-inclusion guard.
64157         * lib/fcntl_.h: Likewise.
64158         * lib/float_.h: Likewise.
64159         * lib/iconv_.h: Likewise.
64160         * lib/inttypes_.h: Likewise.
64161         * lib/locale_.h: Likewise.
64162         * lib/math_.h: Likewise.
64163         * lib/netinet_in_.h: Likewise.
64164         * lib/search_.h: Likewise.
64165         * lib/signal_.h: Likewise.
64166         * lib/stdint_.h: Likewise.
64167         * lib/stdio_.h: Likewise.
64168         * lib/stdlib_.h: Likewise.
64169         * lib/string_.h: Likewise.
64170         * lib/sys_select_.h: Likewise.
64171         * lib/sys_socket_.h: Likewise.
64172         * lib/sys_stat_.h: Likewise.
64173         * lib/sys_time_.h: Likewise.
64174         * lib/sysexits_.h: Likewise.
64175         * lib/time_.h: Likewise.
64176         * lib/unistd_.h: Likewise.
64177         * lib/wchar_.h: Likewise.
64178         * lib/wctype_.h: Likewise.
64179
64180 2007-05-29  Bruno Haible  <bruno@clisp.org>
64181
64182         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64183         for the moment.
64184
64185 2007-05-29  Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64188         invocation.
64189         Reported by Eric Blake.
64190
64191 2007-05-29  Bruno Haible  <bruno@clisp.org>
64192
64193         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64194         compiling case.
64195
64196 2007-05-29  Eric Blake  <ebb9@byu.net>
64197             Bruno Haible  <bruno@clisp.org>
64198
64199         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64200         cross compiles.
64201
64202 2007-05-28  Eric Blake  <ebb9@byu.net>
64203
64204         * modules/closein-tests (test_closein_LDADD): Support test on
64205         cygwin with libtool.
64206
64207 2007-05-28  Bruno Haible  <bruno@clisp.org>
64208
64209         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64210         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64211         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64212         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64213         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64214         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64215         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64216         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64217         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64218
64219 2007-05-28  Eric Blake  <ebb9@byu.net>
64220
64221         Unconditionally include <config.h> in unit tests.
64222         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64223         * tests/test-allocsa.c, tests/test-arcfour.c,
64224         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64225         tests/test-array_list.c, tests/test-array_oset.c,
64226         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64227         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64228         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64229         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64230         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64231         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64232         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64233         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64234         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64235         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64236         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64237         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64238         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64239         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64240         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64241         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64242         test-md5.c, test-memmem.c, test-printf-posix.c,
64243         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64244         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64245         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64246         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64247         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64248         test-vasnprintf-posix2.c, test-vasnprintf.c,
64249         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64250         test-vfprintf-posix.c, test-vprintf-posix.c,
64251         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64252         test-xvasprintf.c: Likewise.
64253
64254 2007-05-28  Bruno Haible  <bruno@clisp.org>
64255
64256         * gnulib-tool (func_import): Remember the --with-tests command-line
64257         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64258         Reported by Eric Blake.
64259
64260 2007-05-28  Bruno Haible  <bruno@clisp.org>
64261
64262         * modules/ftell-tests: New file.
64263         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64264         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64265
64266         * lib/ftell.c: New file.
64267         * modules/ftell: New file.
64268         * m4/ftell.m4: New file.
64269         * doc/functions/ftell.texi: Update.
64270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64271         REPLACE_FTELL.
64272         * lib/stdio_.h (rpl_ftell): New declaration.
64273         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64274         REPLACE_FTELL.
64275
64276 2007-05-28  Eric Blake  <ebb9@byu.net>
64277
64278         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64279
64280 2007-05-28  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/fseek-tests: New file.
64283         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64284         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64285
64286         * lib/fseek.c: New file.
64287         * modules/fseek: New file.
64288         * m4/fseek.m4: New file.
64289         * doc/functions/fseek.texi: Update.
64290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64291         REPLACE_FSEEK.
64292         * lib/stdio_.h (rpl_fseek): New declaration.
64293         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64294         REPLACE_FSEEK.
64295
64296 2007-05-28  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/stdio_.h (fflush): More comments.
64299
64300 2007-05-28  Bruno Haible  <bruno@clisp.org>
64301
64302         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64303         runtime test.
64304
64305 2007-05-28  Eric Blake  <ebb9@byu.net>
64306
64307         Improve lseek module.
64308         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64309         * lib/unistd_.h (lseek): Scale back link warning message.
64310         * tests/test-lseek.c: Beef up test.
64311         * tests/test-lseek.sh: Exercise more facets of lseek.
64312         Reported by Bruno Haible.
64313
64314 2007-05-28  Bruno Haible  <bruno@clisp.org>
64315
64316         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64317         to define.
64318
64319 2007-05-27  Bruno Haible  <bruno@clisp.org>
64320
64321         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64322
64323 2007-05-27  Bruno Haible  <bruno@clisp.org>
64324
64325         * modules/openmp: New file.
64326         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64327         Noah Misch.
64328
64329 2007-05-26  Bruno Haible  <bruno@clisp.org>
64330
64331         * modules/chdir-long (Depends-on): Add fchdir.
64332         * modules/chdir-safer (Depends-on): Likewise.
64333         * modules/fts (Depends-on): Likewise.
64334         * modules/fts-lgpl (Depends-on): Likewise.
64335         * modules/openat (Depends-on): Likewise.
64336         * modules/savewd (Depends-on): Likewise.
64337
64338 2007-05-24  Eric Blake  <ebb9@byu.net>
64339
64340         Fix lseek on mingw.
64341         * modules/lseek: New module.
64342         * m4/lseek.m4: New file.
64343         * lib/lseek.c: New file.
64344         * modules/lseek-tests: New file.
64345         * tests/test-lseek.c: New file.
64346         * tests/test-lseek.sh: New file.
64347         * MODULES.html.sh: Document lseek module.
64348         * modules/fflush (Depends-on): Add lseek, fseeko.
64349         * modules/fseeko (Depends-on): Likewise.
64350         * modules/ftello (Depends-on): Likewise.
64351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64352         broken.
64353         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64354         broken.
64355         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64356         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64357         * lib/ftello.c (rpl_ftello): Likewise.
64358         * tests/test-fseeko.c (main): Test this.
64359         * tests/test-fseeko.sh: Likewise.
64360         * tests/test-ftello.c (main): Likewise.
64361         * tests/test-ftello.sh: Likewise.
64362         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64363         implies replacing fseek.
64364         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64365         HAVE_FTELLO.
64366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64367         * modules/unistd (Makefile.am): Likewise.
64368         * lib/unistd_.h (lseek): Declare a replacement.
64369         * doc/functions/lseek.texi (lseek): Document this fix.
64370         * doc/functions/fseek.texi (fseek): Likewise.
64371         * doc/functions/ftell.texi (ftell): Likewise.
64372
64373 2007-05-24  Bruno Haible  <bruno@clisp.org>
64374
64375         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64376         in the printed representation of a NaN.
64377         * tests/test-vasprintf-posix.c (test_function): Likewise.
64378         * tests/test-snprintf-posix.h (test_function): Likewise.
64379         * tests/test-sprintf-posix.h (test_function): Likewise.
64380         Reported by Eric Blake.
64381
64382 2007-05-23  Eric Blake  <ebb9@byu.net>
64383
64384         Fix fseeko/ftello on cygwin 1.5.24.
64385         * doc/functions/fseeko.texi (fseeko): Document the fix.
64386         * doc/functions/ftello.texi (ftello): Document the fix.
64387         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64388         * doc/functions/stdout.text (stdout): New file.
64389         * doc/functions/stderr.text (stderr): New file.
64390         * doc/gnulib.texi (Function Substitutes): Use new files.
64391         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64392         prior to 1.7.0.
64393         * tests/test-ftello.c (main): Likewise for ftello.
64394         * tests/test-fseeko.sh: New file.
64395         * tests/test-ftello.sh: New file.
64396         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64397         with seekable stdin.
64398         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64400         (gl_REPLACE_FSEEKO): New macro.
64401         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64402         * modules/fseeko (Files): Distribute fseeko.c.
64403         * modules/ftello (Files): Distribute ftello.c.
64404         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64405         mode.
64406         * lib/ftello.c (rpl_ftello): New file.
64407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64408         fseeko, ftello.
64409         (gl_STDIN_LARGE_OFFSET): New macro.
64410         * modules/stdio (Makefile.am): Perform the replacement.
64411         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64412
64413 2007-05-23  Bruno Haible  <bruno@clisp.org>
64414
64415         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64416         GNULIB_POSIXCHECK is defined.
64417
64418 2007-05-21  Bruno Haible  <bruno@clisp.org>
64419
64420         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64421         Check also the output for NaN arguments. When cross-compiling, guess
64422         no on IRIX.
64423         * lib/vasnprintf.c: Update comments.
64424         * tests/test-vasnprintf-posix.c (strisnan): New function.
64425         (test_function): Use it.
64426         * tests/test-vasprintf-posix.c (strisnan): New function.
64427         (test_function): Use it.
64428         * tests/test-snprintf-posix.h (strisnan): New function.
64429         (test_function): Use it.
64430         * tests/test-sprintf-posix.h (strisnan): New function.
64431         (test_function): Use it.
64432         Reported by Eric Blake.
64433
64434 2007-05-20  Bruno Haible  <bruno@clisp.org>
64435
64436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64437         numbers that fails on BeOS.
64438         * doc/functions/frexpl.texi: Update.
64439
64440 2007-05-20  Jim Meyering  <jim@meyering.net>
64441
64442         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64443         forced upon us by glibc-2.6.
64444
64445 2007-05-20  Bruno Haible  <bruno@clisp.org>
64446
64447         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64448         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64449         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64450         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64451         NEED_PRINTF_INFINITE.
64452         (is_infinitel): New function.
64453         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64455         gl_PREREQ_VASNPRINTF_INFINITE.
64456         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64458         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64459         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64460         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64461         gl_PREREQ_VASNPRINTF_INFINITE.
64462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64469         * doc/functions/fprintf.texi: Update.
64470         * doc/functions/printf.texi: Update.
64471         * doc/functions/snprintf.texi: Update.
64472         * doc/functions/sprintf.texi: Update.
64473         * doc/functions/vfprintf.texi: Update.
64474         * doc/functions/vprintf.texi: Update.
64475         * doc/functions/vsnprintf.texi: Update.
64476         * doc/functions/vsprintf.texi: Update.
64477
64478 2007-05-20  Bruno Haible  <bruno@clisp.org>
64479
64480         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64481         was not found in libc.
64482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64483
64484 2007-05-20  Bruno Haible  <bruno@clisp.org>
64485
64486         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64487         printed as "-nan" instead of "nan".
64488         * tests/test-vasprintf-posix.c (test_function): Likewise.
64489         * tests/test-snprintf-posix.h (test_function): Likewise.
64490         * tests/test-sprintf-posix.h (test_function): Likewise.
64491         Needed for HP-UX 11.
64492
64493 2007-05-20  Jim Meyering  <jim@meyering.net>
64494
64495         Fix buggy test for the fchownat-deref bug.
64496         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64497         symlink required for the run-test.  Without it, this test would
64498         always declare that fchownat doesn't work, and client code would
64499         unnecessarily use the replacement function with fixed libc.
64500         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64501         Reported by Greg Schafer.
64502
64503 2007-05-19  Bruno Haible  <bruno@clisp.org>
64504
64505         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64506         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64507         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64508         Needed for IRIX 6.5 and Solaris 2.5.1.
64509
64510 2007-05-19  Bruno Haible  <bruno@clisp.org>
64511
64512         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64513         (test_function): Skip tests involving -0.0 on platforms where
64514         -0.0 = 0.0.
64515         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64516         (test_function): Skip tests involving -0.0 on platforms where
64517         -0.0 = 0.0.
64518         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64519         (test_function): Skip tests involving -0.0 on platforms where
64520         -0.0 = 0.0.
64521         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64522         (test_function): Skip tests involving -0.0 on platforms where
64523         -0.0 = 0.0.
64524         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64525         tests.
64526         * tests/test-printf-posix.h (test_function): Likewise.
64527         * tests/test-printf-posix.output: Remove all -0.0 related results.
64528         Needed for IRIX 6.5.
64529
64530 2007-05-19  Bruno Haible  <bruno@clisp.org>
64531
64532         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64533         printed as "nan0x7fffffff" instead of "nan".
64534         * tests/test-vasprintf-posix.c (test_function): Likewise.
64535         * tests/test-snprintf-posix.h (test_function): Likewise.
64536         * tests/test-sprintf-posix.h (test_function): Likewise.
64537         * tests/test-fprintf-posix.h (NaN): Remove macro.
64538         (test_function): Remove all NaN related tests.
64539         * tests/test-printf-posix.h (NaN): Remove macro.
64540         (test_function): Remove all NaN related tests.
64541         * tests/test-printf-posix.output: Remove all NaN related results.
64542         Needed for IRIX 6.5.
64543
64544 2007-05-19  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64548
64549 2007-05-19  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/float_.h: New file.
64552         * m4/float_h.m4: New file.
64553         * modules/float: New file.
64554         * modules/isnanl (Dependencies): Add float.
64555         * modules/isnanl-nolibm (Dependencies): Likewise.
64556         * modules/mathl (Dependencies): Likewise.
64557         * modules/printf-frexpl (Dependencies): Likewise.
64558         * modules/signbit (Dependencies): Likewise.
64559         * modules/vasnprintf (Dependencies): Likewise.
64560         * doc/headers/float.texi: Update.
64561
64562 2007-05-19  Jim Meyering  <jim@meyering.net>
64563
64564         * lib/utimens.c (gl_futimens): Rename from futimens,
64565         now that glibc-2.6 declares futimens.
64566         * lib/utimens.h: Likewise.
64567
64568 2007-05-19  Bruno Haible  <bruno@clisp.org>
64569
64570         Avoid test failures on mingw.
64571         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64572         * tests/test-printf-posix.sh: Likewise.
64573         * tests/test-vfprintf-posix.sh: Likewise.
64574         * tests/test-vprintf-posix.sh: Likewise.
64575
64576 2007-05-19  Bruno Haible  <bruno@clisp.org>
64577
64578         Fix *printf result for NaN, Inf, -0.0 on mingw.
64579         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64580         * lib/vasnprintf.c: Include math.h and isnan.h.
64581         (is_infinite_or_zero): New function.
64582         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64583         values in the %f, %F, %e, %E, %g, %G directives.
64584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64586         gl_PRINTF_INFINITE and test its result. Invoke
64587         gl_PREREQ_VASNPRINTF_INFINITE.
64588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64595         * doc/functions/fprintf.texi: Update.
64596         * doc/functions/printf.texi: Update.
64597         * doc/functions/snprintf.texi: Update.
64598         * doc/functions/sprintf.texi: Update.
64599         * doc/functions/vfprintf.texi: Update.
64600         * doc/functions/vprintf.texi: Update.
64601         * doc/functions/vsnprintf.texi: Update.
64602         * doc/functions/vsprintf.texi: Update.
64603
64604 2007-05-19  Bruno Haible  <bruno@clisp.org>
64605
64606         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64607         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64608         Instead of multiplying with 10^k, set extra_zeroes to k.
64609         (scale10_round_long_double): Remove function.
64610
64611 2007-05-18  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64614         introduced on 2007-05-06.
64615
64616 2007-05-18  Bruno Haible  <bruno@clisp.org>
64617
64618         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64619         %g directives.
64620         * tests/test-vasprintf-posix.c (test_function): Likewise.
64621         * tests/test-snprintf-posix.h (test_function): Likewise.
64622         * tests/test-sprintf-posix.h (test_function): Likewise.
64623
64624 2007-05-18  Bruno Haible  <bruno@clisp.org>
64625
64626         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64627         (strmatch): New function.
64628         (test_function): Test the %f directive on numbers of various exponents.
64629         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64630         (strmatch): New function.
64631         (test_function): Test the %f directive on numbers of various exponents.
64632         * tests/test-snprintf-posix.h (strmatch): New function.
64633         (test_function): Test the %f directive on numbers of various exponents.
64634         * tests/test-sprintf-posix.h (strmatch): New function.
64635         (test_function): Test the %f directive on numbers of various exponents.
64636         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64637         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64638         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64639         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64640
64641 2007-05-18  Bruno Haible  <bruno@clisp.org>
64642
64643         Add support for 'long double' number output.
64644         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64645         * lib/vasnprintf.c: Include math.h and float+.h.
64646         (mp_limb_t): New type.
64647         (GMP_LIMB_BITS): New macro.
64648         (mp_twolimb_t): New type.
64649         (GMP_TWOLIMB_BITS): New macro.
64650         (mpn_t): New type.
64651         (multiply, divide, convert_to_decimal, decode_long_double,
64652         scale10_round_long_double, scale10_round_decimal_long_double,
64653         floorlog10l): New functions.
64654         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64655         for the %f, %F, %e, %E, %g, %G directives.
64656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64658         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64659         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64667         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64668         * modules/snprintf-posix (Depends-on): Likewise.
64669         * modules/sprintf-posix (Depends-on): Likewise.
64670         * modules/vasnprintf-posix (Depends-on): Likewise.
64671         * modules/vasprintf-posix (Depends-on): Likewise.
64672         * modules/vfprintf-posix (Depends-on): Likewise.
64673         * modules/vsnprintf-posix (Depends-on): Likewise.
64674         * modules/vsprintf-posix (Depends-on): Likewise.
64675         * modules/vasnprintf (Files): Add lib/float+.h.
64676         * doc/functions/fprintf.texi: Update.
64677         * doc/functions/printf.texi: Update.
64678         * doc/functions/snprintf.texi: Update.
64679         * doc/functions/sprintf.texi: Update.
64680         * doc/functions/vfprintf.texi: Update.
64681         * doc/functions/vprintf.texi: Update.
64682         * doc/functions/vsnprintf.texi: Update.
64683         * doc/functions/vsprintf.texi: Update.
64684
64685 2007-05-18  Bruno Haible  <bruno@clisp.org>
64686
64687         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64688
64689 2007-05-18  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64692         for printing 64-bit integers. Needed for mingw.
64693
64694 2007-05-18  Bruno Haible  <bruno@clisp.org>
64695
64696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64697         gl_FUNC_FREXPL_WORKS.
64698         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64699
64700 2007-05-18  Bruno Haible  <bruno@clisp.org>
64701
64702         * modules/frexpl-nolibm-tests: New file.
64703
64704         * modules/frexpl-nolibm: New file.
64705         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64706
64707 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64710         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64711         GCC 4.2, which otherwise issues a lot of warnings.
64712         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64713         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64714         Likewise.
64715         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64716         * modules/iconv_open (iconv.h): Likewise.
64717         * modules/locale (locale.h): Likewise.
64718         * modules/netinet_in (netinet/in.h): Likewise.
64719         * modules/sys_select (sys_select.h): Likewise.
64720         * modules/sys_socket (sys/socket.h): Likewise.
64721         * modules/sys_stat (sys/stat.h): Likewise.
64722         * modules/sysexits (sysexits.h): Likewise.
64723         * modules/unistd (unistd.h): Likewise.
64724
64725 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64726
64727         * modules/closein-tests (Makefile.am): Distribute
64728         `test-closein.sh'.
64729
64730 2007-05-17  Bruno Haible  <bruno@clisp.org>
64731
64732         * tests/test-printf-posix.output: Renamed from
64733         tests/test-fprintf-posix.out.
64734         * modules/fprintf-posix-tests: Update.
64735         * modules/printf-posix-tests: Update.
64736         * modules/vfprintf-posix-tests: Update.
64737         * modules/vprintf-posix-tests: Update.
64738         * tests/test-fprintf-posix.sh: Update.
64739         * tests/test-printf-posix.sh: Update.
64740         * tests/test-vfprintf-posix.sh: Update.
64741         * tests/test-vprintf-posix.sh: Update.
64742         Reported by Ralf Wildenhues.
64743
64744 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64747         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64748         GCC 4.2, which otherwise issues a lot of warnings.
64749         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64750         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64751         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64752         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64753         it should no longer be needed.
64754         * lib/string_.h: Likewise.
64755         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64756         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64757         * modules/inttypes (inttypes.h): Likewise.
64758         * modules/math (math.h): Likewise.
64759         * modules/search (search.h): Likewise.
64760         * modules/signal (signal.h): Likewise.
64761         * modules/stdint (stdint.h): Likewise.
64762         * modules/stdio (stdio.h): Likewise.
64763         * modules/stdlib (stdlib.h): Likewise.
64764         * modules/string (string.h): Likewise.
64765         * modules/sys_time (sys/time.h): Likewise.
64766         * modules/time (time.h): Likewise.
64767         * modules/wchar (wchar.h): Likewise.
64768         * modules/wctype (wtype.h): Likewise.
64769
64770 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64771
64772         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64773
64774 2007-05-13  Bruno Haible  <bruno@clisp.org>
64775
64776         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64777         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64778         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64779         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64780         (gl_PREREQ_STRTOK_R): Don't require it here.
64781
64782 2007-05-13  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64785         when used in C++ mode.
64786
64787 2007-05-12  Bruno Haible  <bruno@clisp.org>
64788
64789         * lib/linebuffer.h: Tweak doc.
64790         * lib/linebuffer.c: Likewise.
64791
64792 2007-05-12  James Youngman  <jay@gnu.org>
64793
64794         * lib/linebuffer.c (readlinebuffer_delim): New function,
64795         like readlinebuffer, but use a caller-specified delimiter.
64796         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64797         as the delimiter.
64798         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64799
64800 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64801
64802         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64803         * modules/openat (Files): Remove openat-die.c.
64804         (Depends-on): Add openat-die.
64805         * modules/openat-die: New module.
64806
64807 2007-05-06  Bruno Haible  <bruno@clisp.org>
64808
64809         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64810         Update with info about Cygwin.
64811         * doc/functions/fprintf.texi: Update.
64812         * doc/functions/printf.texi: Update.
64813         * doc/functions/snprintf.texi: Update.
64814         * doc/functions/sprintf.texi: Update.
64815         * doc/functions/vfprintf.texi: Update.
64816         * doc/functions/vprintf.texi: Update.
64817         * doc/functions/vsnprintf.texi: Update.
64818         * doc/functions/vsprintf.texi: Update.
64819         Reported by Eric Blake.
64820
64821 2007-05-06  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64824         padding ourselves for the floating-point directives.
64825         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64828         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64829         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64837         * tests/test-snprintf-posix.h (test_function): Also check the width
64838         and some flags in the %f directive.
64839         * tests/test-sprintf-posix.h (test_function): Likewise.
64840         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64841         * tests/test-vasprintf-posix.c (test_function): Likewise.
64842         * doc/functions/fprintf.texi: Update.
64843         * doc/functions/printf.texi: Update.
64844         * doc/functions/snprintf.texi: Update.
64845         * doc/functions/sprintf.texi: Update.
64846         * doc/functions/vfprintf.texi: Update.
64847         * doc/functions/vprintf.texi: Update.
64848         * doc/functions/vsnprintf.texi: Update.
64849         * doc/functions/vsprintf.texi: Update.
64850
64851 2007-05-06  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64854         pass the ' flag character to sprintf or snprintf.
64855         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64858         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64859         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64860         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64861         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64867         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64868         flag.
64869         * tests/test-sprintf-posix.h (test_function): Likewise.
64870         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64871         * tests/test-vasprintf-posix.c (test_function): Likewise.
64872         * doc/functions/fprintf.texi: Update.
64873         * doc/functions/printf.texi: Update.
64874         * doc/functions/snprintf.texi: Update.
64875         * doc/functions/sprintf.texi: Update.
64876         * doc/functions/vfprintf.texi: Update.
64877         * doc/functions/vprintf.texi: Update.
64878         * doc/functions/vsnprintf.texi: Update.
64879         * doc/functions/vsprintf.texi: Update.
64880
64881 2007-05-01  Bruno Haible  <bruno@clisp.org>
64882
64883         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64884
64885 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64888         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64889
64890 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64893         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64895
64896 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64897
64898         * lib/argp-help.c (struct hol_entry): New member `ord'.
64899         (HOL_ENTRY_PTRCMP): Use ord for comparison
64900         (hol_sort): Initialize ord.
64901
64902 2007-05-01  Bruno Haible  <bruno@clisp.org>
64903
64904         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64905         Reported by Eric Blake.
64906         * doc/gnulib.texi (Function Substitutes): Update.
64907
64908 2007-05-01  Bruno Haible  <bruno@clisp.org>
64909
64910         * doc/functions.texi: Remove file, now redundant through
64911         doc/functions/*.texi.
64912
64913 2007-05-01  Bruno Haible  <bruno@clisp.org>
64914
64915         * modules/argp (Depends-on): Add sleep.
64916
64917 2007-05-01  Bruno Haible  <bruno@clisp.org>
64918
64919         * modules/sleep-tests: New file.
64920         * tests/test-sleep.c: New file.
64921
64922         * modules/sleep: New file.
64923         * lib/sleep.c: New file.
64924         * m4/sleep.m4: New file.
64925         * lib/unistd_.h (sleep): New declaration.
64926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64927         HAVE_SLEEP.
64928         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64929         * doc/functions/sleep.texi: Document the sleep module.
64930
64931 2007-05-01  Bruno Haible  <bruno@clisp.org>
64932
64933         * lib/sigprocmask.h: Remove file.
64934         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64935         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64937         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64938         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64939         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64940         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64941         HAVE_SIGSET_T as a shell variable.
64942         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64943         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64944         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64945         (Depends-on): Add signal. Remove verify.
64946         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64947         (Include): Mention <signal.h> instead of sigprocmask.h.
64948         * NEWS: Mention the change.
64949         * lib/fatal-signal.c: Don't include sigprocmask.h.
64950
64951 2007-05-01  Bruno Haible  <bruno@clisp.org>
64952
64953         * modules/signal: New file.
64954         * lib/signal_.h: New file.
64955         * m4/signal_h.m4: New file.
64956
64957 2007-05-01  Bruno Haible  <bruno@clisp.org>
64958
64959         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64960         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64961         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64962         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64963
64964 2007-05-01  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64967         configure time.
64968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64969         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64970         * modules/sys_stat (Makefile.am): Substitute their values into
64971         sys/stat.h.
64972
64973 2007-05-01  Bruno Haible  <bruno@clisp.org>
64974
64975         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64976         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64977         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64978
64979 2007-05-01  Bruno Haible  <bruno@clisp.org>
64980
64981         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64982         'assert' module here.
64983
64984 2007-05-01  Bruno Haible  <bruno@clisp.org>
64985
64986         * doc/functions/*.texi: New files.
64987         * doc/functions/google-ranking.txt: New file.
64988         * doc/gnulib.texi (Function Substitutes): New chapter.
64989         (ctime, inet_ntoa): Remove sections.
64990         * doc/ctime.texi: Remove file.
64991         * doc/inet_ntoa.texi: Remove file.
64992         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64993         dependencies.
64994         (%.info): New rule, specifying a --reference-limit.
64995
64996 2007-05-01  Bruno Haible  <bruno@clisp.org>
64997
64998         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64999
65000 2007-05-01  Bruno Haible  <bruno@clisp.org>
65001
65002         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65003         the portability of 'mkdir' to mingw systems.
65004
65005 2007-05-01  Bruno Haible  <bruno@clisp.org>
65006
65007         * doc/headers/google-ranking.txt: New file.
65008
65009 2007-04-30  Eric Blake  <ebb9@byu.net>
65010
65011         Prefer fseeko to fseek.
65012         * modules/getpass (Depends-on): Add fseeko.
65013         * lib/getpass.c (getpass): Use fseeko, not fseek.
65014
65015 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65016
65017         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65018         assumes the sorting is stable, while most qsort implementations
65019         are not.  Use argument addresses to ensure they never compare as
65020         equal.
65021
65022         * tests/test-argp-2.sh (usage-indent test): Fix output
65023         (func_compare): Restore diff options
65024         * tests/test-argp.c: Restore #include "progname.h"
65025
65026 2007-04-29  Bruno Haible  <bruno@clisp.org>
65027
65028         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65030         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65032         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65033         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65034         (TESTS, check_PROGRAMS): Add test-snprintf.
65035         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65036         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65037         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65038         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65039         assertions that fail on HP-UX, OSF/1, or IRIX.
65040         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65041
65042 2007-04-29  Bruno Haible  <bruno@clisp.org>
65043
65044         * MODULES.html.sh (posix_functions): Remove 'contents'.
65045
65046 2007-04-29  Karl Berry  <karl@gnu.org>
65047
65048         * config/srclist.txt (gendocs_template_min): new entry.
65049
65050 2007-04-29  Bruno Haible  <bruno@clisp.org>
65051
65052         Work around fpurge bug on BSD systems.
65053         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65055         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65056         fpurge to rpl_fpurge if the system already has this function.
65057         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65058         the case where the system already has this function. Correct invariants
65059         on BSD systems.
65060         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65061         BSD systems.
65062
65063 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65064
65065         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65066         proposed by Sven Verdoolaege.
65067
65068         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65069         options.
65070         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65071         (usage and help tests): Update
65072
65073 2007-04-29  Bruno Haible  <bruno@clisp.org>
65074
65075         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65076         Print more information in case of failure. Disable a test on BeOS.
65077
65078 2007-04-29  Bruno Haible  <bruno@clisp.org>
65079
65080         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65081         This helps debugging on systems on which no gdb is available.
65082
65083 2007-04-29  Bruno Haible  <bruno@clisp.org>
65084
65085         * lib/freading.h: Improve comments.
65086         * lib/fwriting.h: Likewise.
65087         * tests/test-freading.c (main): Don't check freading immediately after
65088         repositioning. Needed for glibc.
65089
65090 2007-04-29  Bruno Haible  <bruno@clisp.org>
65091
65092         * lib/freading.c (freading): Trivial simplification.
65093
65094 2007-04-28  Bruno Haible  <bruno@clisp.org>
65095
65096         * tests/test-fwriting.c (main): Also test the interaction between
65097         fflush and fwriting.
65098         * modules/fwriting-tests (Depends-on): Add fflush.
65099
65100         * tests/test-freading.c (main): Also test the interaction between
65101         fflush and freading.
65102         * modules/freading-tests (Depends-on): Add fflush.
65103
65104 2007-04-28  Bruno Haible  <bruno@clisp.org>
65105
65106         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65107         fseeko and ftello.
65108         Suggested by Eric Blake.
65109
65110 2007-04-28  Jim Meyering  <jim@meyering.net>
65111
65112         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65113         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65114         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65115
65116 2007-04-27  Eric Blake  <ebb9@byu.net>
65117
65118         * doc/headers/assert.texi (assert.h): Document assert module use.
65119
65120 2007-04-27  Bruno Haible  <bruno@clisp.org>
65121
65122         * doc/headers/*.texi: New files.
65123         * doc/gnulib.texi (Header File Substitutes): New chapter.
65124         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65125         dependencies.
65126         (standards.info ,standards.html, standards.dvi): Update dependencies.
65127         (mostlyclean, clean): New targets.
65128
65129 2007-04-27  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65132         * modules/sysexits (Files, Makefile.am): Update.
65133
65134         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65135         * modules/sys_socket (Files, Makefile.am): Update.
65136
65137         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65138         * modules/sys_stat (Files, Makefile.am): Update.
65139
65140 2007-04-27  Eric Blake  <ebb9@byu.net>
65141
65142         * lib/freading.h: Improve comments.
65143         * lib/fwriting.h: Likewise.
65144         * lib/fflush.c: Likewise.
65145
65146         Fix closein for mingw.
65147         * modules/closein-tests: Add tests for closein.
65148         * tests/test-closein.c: New file.
65149         * tests/test-closein.sh: Likewise.
65150         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65151         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65152
65153 2007-04-27  Bruno Haible  <bruno@clisp.org>
65154
65155         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65156         version is < 6.
65157         * lib/math_.h [__DECC]: Likewise.
65158         * lib/stdio_.h [__DECC]: Likewise.
65159         * lib/stdlib_.h [__DECC]: Likewise.
65160         * lib/string_.h [__DECC]: Likewise.
65161         * lib/time_.h [__DECC]: Likewise.
65162         * lib/wchar_.h [__DECC]: Likewise.
65163         * lib/wctype_.h [__DECC]: Likewise.
65164
65165 2007-04-27  Bruno Haible  <bruno@clisp.org>
65166
65167         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65168
65169 2007-04-27  Bruno Haible  <bruno@clisp.org>
65170
65171         * lib/fflush.c: Add comments.
65172         * modules/fpurge-tests (Depends-on): Add fflush.
65173         * modules/freadable-tests (Depends-on): Likewise.
65174         * modules/fwritable-tests (Depends-on): Likewise.
65175
65176 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65177
65178         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65179         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65180         Report by Bruno Haible <bruno@clisp.org>.
65181
65182 2007-04-26  Eric Blake  <ebb9@byu.net>
65183
65184         Fix fflush on mingw.
65185         * modules/fflush (Depends-on): Add freading.
65186         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65187         but unread data.
65188
65189 2007-04-26  Eric Blake  <ebb9@byu.net>
65190         and Bruno Haible  <bruno@clisp.org>
65191
65192         Implement freading and fwriting.
65193         * lib/freading.c: New file.
65194         * lib/freading.h: Likewise.
65195         * m4/freading.m4: Likewise.
65196         * modules/freading: Likewise.
65197         * modules/freading-tests: Likewise.
65198         * tests/test-freading.c: Likewise.
65199         * lib/fwriting.c: New file.
65200         * lib/fwriting.h: Likewise.
65201         * m4/fwriting.m4: Likewise.
65202         * modules/fwriting: Likewise.
65203         * modules/fwriting-tests: Likewise.
65204         * tests/test-fwriting.c: Likewise.
65205         * MODULES.html.sh (File stream based Input/Output): Mention them.
65206
65207 2007-04-26  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65210         'long' when we assume it.
65211         Suggested by Eric Blake.
65212
65213 2007-04-26  Bruno Haible  <bruno@clisp.org>
65214
65215         Ensure fseeko, ftello are declared on glibc systems.
65216         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65217         * modules/fseeko (configure.ac-early): Likewise.
65218         * modules/ftello (configure.ac-early): Likewise.
65219         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65220         AC_FUNC_FSEEKO for this.
65221         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65222         (gl_CHECK_FSEEKO): Remove macro.
65223
65224 2007-04-26  Bruno Haible  <bruno@clisp.org>
65225
65226         * tests/test-fflush.c (main): Also check the ftell result after
65227         fflush and fseek/fseeko.
65228         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65229         file descriptor position cache in the stream.
65230         * lib/fseeko.c (rpl_fseeko): Likewise.
65231
65232 2007-04-26  Bruno Haible  <bruno@clisp.org>
65233
65234         * modules/fflush-tests (Depends-on): Add fseeko.
65235
65236 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65237             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65238
65239         * lib/argz_.h: ensure error_t definition is obtained in same
65240         mechanism system argz.h would have.
65241         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65242         argz facilities are known bad.  Err on the side of caution if
65243         cross-compiling.
65244
65245 2007-04-25  Eric Blake  <ebb9@byu.net>
65246
65247         * lib/fpurge.c (includes): Use stdlib.h for free.
65248         * tests/test-fflush.c (main): Also test fflush-fseeko.
65249
65250 2007-04-25  Bruno Haible  <bruno@clisp.org>
65251
65252         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65253         * lib/fseeko.c: New file.
65254         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65255         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65256         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65257         gl_FUNC_FSEEKO.
65258         (gl_FUNC_FSEEKO): Invoke it.
65259         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65260         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65261         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65262
65263 2007-04-25  Bruno Haible  <bruno@clisp.org>
65264
65265         * modules/fflush (Depends-on): Add ftello.
65266
65267 2007-04-25  Bruno Haible  <bruno@clisp.org>
65268
65269         * modules/ftello-tests: New file.
65270         * tests/test-ftello.c: New file.
65271
65272         * modules/ftello: New file.
65273         * m4/ftello.m4: New file.
65274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65275         HAVE_FTELLO.
65276         * lib/stdio_.h (ftello): New declaration.
65277         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65278         HAVE_FTELLO.
65279
65280 2007-04-25  Bruno Haible  <bruno@clisp.org>
65281
65282         * modules/fseeko-tests: New file.
65283         * tests/test-fseeko.c: New file.
65284
65285         * modules/fseeko: New file.
65286         * m4/fseeko.m4: New file.
65287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65288         HAVE_FSEEKO.
65289         * lib/stdio_.h (fseeko): New declaration.
65290         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65291         HAVE_FSEEKO.
65292
65293 2007-04-25  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65296
65297 2007-04-25  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65300         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65301         * tests/test-unistd.c: Likewise.
65302         * tests/test-fcntl.c: Likewise.
65303
65304 2007-04-23  Eric Blake  <ebb9@byu.net>
65305
65306         * lib/fflush.c: Fix missing include.
65307         Reported by Bruno Haible.
65308
65309 2007-04-23  Bruno Haible  <bruno@clisp.org>
65310
65311         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65312         Reported by Eric Blake.
65313
65314 2007-04-23  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65317
65318 2007-04-23  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65321
65322 2007-04-23  Bruno Haible  <bruno@clisp.org>
65323
65324         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65325         Needed on HP-UX 11.
65326
65327 2007-04-16  Eric Blake  <ebb9@byu.net>
65328
65329         Make fflush rely on fpurge.
65330         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65331         open coding all variants.
65332         * modules/fflush (Depends-on): Add fpurge and unistd.
65333         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65334         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65335
65336         Fix --with-tests compilation on cygwin.
65337         * modules/argmatch-tests (Makefile.am): List gnulib library first
65338         in LDADD.
65339         * modules/argp-tests (Makefile.am): Likewise.
65340         * modules/array-list-tests (Makefile.am): Likewise.
65341         * modules/array-oset-tests (Makefile.am): Likewise.
65342         * modules/avltree-list-tests (Makefile.am): Likewise.
65343         * modules/avltree-oset-tests (Makefile.am): Likewise.
65344         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65345         * modules/carray-list-tests (Makefile.am): Likewise.
65346         * modules/dirname-tests (Makefile.am): Likewise.
65347         * modules/frexp-tests (Makefile.am): Likewise.
65348         * modules/isnanl-tests (Makefile.am): Likewise.
65349         * modules/linked-list-tests (Makefile.am): Likewise.
65350         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65351         * modules/lock-tests (Makefile.am): Likewise.
65352         * modules/rbtree-list-tests (Makefile.am): Likewise.
65353         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65354         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65355         * modules/tls-tests (Makefile.am): Likewise.
65356         * modules/tsearch-tests (Makefile.am): Likewise.
65357         * modules/xvasprintf-tests (Makefile.am): Likewise.
65358
65359         Fix fpurge for cygwin.
65360         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65361         value.
65362         * modules/fpurge-tests (Depends-on): Clean up trash.
65363
65364 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65365
65366         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65367
65368         * m4/autobuild.m4: Re-indent.
65369
65370 2007-04-13  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/fpurge-tests: New file.
65373         * tests/test-fpurge.c: New file.
65374
65375         * modules/fpurge: New file.
65376         * lib/fpurge.h: New file.
65377         * lib/fpurge.c: New file.
65378         * m4/fpurge.m4: New file.
65379
65380 2007-04-13  Bruno Haible  <bruno@clisp.org>
65381
65382         * modules/fbufmode-tests: New file.
65383         * tests/test-fbufmode.c: New file.
65384
65385         * modules/fbufmode: New file.
65386         * lib/fbufmode.h: New file.
65387         * lib/fbufmode.c: New file.
65388         * m4/fbufmode.m4: New file.
65389
65390 2007-04-13  Bruno Haible  <bruno@clisp.org>
65391
65392         * modules/fwritable-tests: New file.
65393         * tests/test-fwritable.c: New file.
65394
65395         * modules/fwritable: New file.
65396         * lib/fwritable.h: New file.
65397         * lib/fwritable.c: New file.
65398         * m4/fwritable.m4: New file.
65399
65400 2007-04-13  Bruno Haible  <bruno@clisp.org>
65401
65402         * modules/freadable-tests: New file.
65403         * tests/test-freadable.c: New file.
65404
65405         * modules/freadable: New file.
65406         * lib/freadable.h: New file.
65407         * lib/freadable.c: New file.
65408         * m4/freadable.m4: New file.
65409
65410 2007-04-13  Bruno Haible  <bruno@clisp.org>
65411
65412         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65413         MOSTLYCLEANFILES.
65414
65415 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65418         gzip bootstrap.conf to avoid dragging in i18n machinery.
65419         (gnulib_tool_option): Use it.
65420
65421 2007-04-13  Bruno Haible  <bruno@clisp.org>
65422
65423         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65424         %F directives.
65425         * tests/test-vasprintf-posix.c (test_function): Likewise.
65426         * tests/test-snprintf-posix.h (test_function): Likewise.
65427         * tests/test-sprintf-posix.h (test_function): Likewise.
65428         * tests/test-fprintf-posix.h (test_function): Likewise.
65429         * tests/test-printf-posix.h (test_function): Likewise.
65430         * tests/test-fprintf-posix.out: Likewise.
65431
65432 2007-04-13  Bruno Haible  <bruno@clisp.org>
65433
65434         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65435         * modules/tls-tests (configure.ac): Likewise.
65436         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65437
65438 2007-04-13  Bruno Haible  <bruno@clisp.org>
65439
65440         * lib/tls.c (glthread_tls_get): Fix return type.
65441         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65442
65443 2007-04-12  Eric Blake  <ebb9@byu.net>
65444
65445         * modules/gettime (Depends-on): Remove gettime.
65446         Reported by Dmitry V. Levin.
65447
65448 2007-04-12  Bruno Haible  <bruno@clisp.org>
65449
65450         * modules/fflush (Include): Mention <stdio.h>.
65451         * modules/strtoimax (Include): Mention <inttypes.h>.
65452         * modules/strtoumax (Include): Likewise.
65453
65454 2007-04-12  Eric Blake  <ebb9@byu.net>
65455
65456         * .cvsignore: New file.
65457         * .gitignore: Likewise.
65458
65459 2007-04-12  Bruno Haible  <bruno@clisp.org>
65460
65461         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65462         not before, since $(LDADD) often contains libgnu.a.
65463         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65464         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65465         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65466         Needed on Cygwin.
65467
65468 2007-04-12  Eric Blake  <ebb9@byu.net>
65469
65470         Work around glibc's failure to flush stdin on fclose.
65471         * lib/closein.c (close_stdin): Flush stdin before closing.
65472
65473         Work around glibc's failure to reset seekable stdin on exit.
65474         * modules/closein: New module.
65475         * lib/closein.c: New file.
65476         * lib/closein.h: Likewise.
65477         * m4/closein.m4: Likewise.
65478         * MODULES.html.sh (File stream based Input/Output): Document it.
65479
65480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65481
65482         * gnulib-tool: Rename generated 'autobuild' script to
65483         'do-autobuild' in --create-megatestdir output.
65484
65485         * doc/gnulib.texi (Build robot for gnulib): Fix.
65486
65487 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65488
65489         * modules/sysexits (Depends-on): Add absolute-header.
65490
65491 2007-04-12  Eric Blake  <ebb9@byu.net>
65492
65493         No need to preserve errno on success.
65494         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65495         Reported by Bruno Haible.
65496
65497 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65498
65499         * MODULES.html.sh (Support for maintaining and releasing
65500         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65501
65502 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65503
65504         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65505
65506 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65507
65508         * modules/autobuild: New module.
65509
65510         * m4/autobuild.m4: New file.
65511
65512 2007-04-11  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65515         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65519         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65520         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65521         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65522         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65523         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65525         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65526         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65528         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65529         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65531         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65532         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65534         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65535         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65537         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65538         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65540         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65541         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65542         Reported by Eric Blake.
65543
65544 2007-04-11  Bruno Haible  <bruno@clisp.org>
65545
65546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65547
65548 2007-04-10  Bruno Haible  <bruno@clisp.org>
65549
65550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65551         for NaN and Infinity. Needed on FreeBSD 6.1.
65552         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65553         regarding results for "%010a" of Infinity and NaN.
65554         * tests/test-vasprintf-posix.c (test_function): Likewise.
65555         * tests/test-snprintf-posix.h (test_function): Likewise.
65556         * tests/test-sprintf-posix.h (test_function): Likewise.
65557         * tests/test-fprintf-posix.h (test_function): Likewise.
65558         * tests/test-printf-posix.h (test_function): Likewise.
65559         * tests/test-fprintf-posix.out: Likewise.
65560
65561 2007-04-10  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/locale-tests: New file.
65564         * tests/test-locale.c: New file.
65565
65566         * modules/locale: New file.
65567         * lib/locale_.h: New file.
65568         * m4/locale_h.m4: New file.
65569
65570 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65571             Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65574         be determined, test for availability of the copysignf, copysign,
65575         copysignl functions.
65576         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65577         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65578         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65579
65580 2007-04-09  Eric Blake  <ebb9@byu.net>
65581
65582         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65583         * modules/stdio (Makefile.am): Support fflush.
65584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65585         * modules/fflush: New file.
65586         * lib/fflush.c: Likewise.
65587         * m4/fflush.m4: Likewise.
65588         * modules/fflush-tests: New test.
65589         * tests/test-fflush.c: Likewise.
65590         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65591
65592 2007-04-06  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65595         (VASNPRINTF): Use signbit for faster determination whether to print a
65596         minus sign.
65597         * modules/vasnprintf (Files): Remove lib/float+.h.
65598         * modules/fprintf-posix (Depends-on): Add signbit.
65599         * modules/snprintf-posix (Depends-on): Likewise.
65600         * modules/sprintf-posix (Depends-on): Likewise.
65601         * modules/vasnprintf-posix (Depends-on): Likewise.
65602         * modules/vasprintf-posix (Depends-on): Likewise.
65603         * modules/vfprintf-posix (Depends-on): Likewise.
65604         * modules/vsnprintf-posix (Depends-on): Likewise.
65605         * modules/vsprintf-posix (Depends-on): Likewise.
65606
65607 2007-04-06  Bruno Haible  <bruno@clisp.org>
65608
65609         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65610         * tests/test-frexpl.c (main): Likewise.
65611         * tests/test-ldexpl.c (main): Likewise.
65612         * modules/frexp-tests (Depends-on): Add signbit.
65613         * modules/frexpl-tests (Depdends-on): Likewise.
65614         * modules/ldexpl-tests (Depdends-on): Likewise.
65615
65616 2007-04-06  Bruno Haible  <bruno@clisp.org>
65617
65618         * modules/signbit-tests: New file.
65619         * tests/test-signbit.c: New file.
65620
65621         * modules/signbit: New file.
65622         * lib/signbitf.c: New file.
65623         * lib/signbitd.c: New file.
65624         * lib/signbitl.c: New file.
65625         * m4/signbit.m4: New file.
65626         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65627         (signbit): New macro.
65628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65629         REPLACE_SIGNBIT.
65630         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65631         REPLACE_FREXPL into math.h.
65632
65633 2007-04-06  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/isnanf-nolibm-tests: New file.
65636         * tests/test-isnanf.c: New file.
65637
65638         * modules/isnanf-nolibm: New file.
65639         * lib/isnanf.h: New file.
65640         * lib/isnanf.c: New file.
65641         * lib/isnan.c: Consider the USE_FLOAT macro.
65642         * m4/isnanf.m4: New file.
65643
65644 2007-04-06  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65647         (Link): New section.
65648
65649         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65650
65651 2007-04-06  Bruno Haible  <bruno@clisp.org>
65652
65653         Assume the 'long double' type.
65654         * m4/longdouble.m4: Remove file.
65655         * config/srclist.txt: Don't mention longdouble.m4.
65656         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65657         * lib/float+.h: Likewise.
65658         * lib/frexp.c: Likewise.
65659         * lib/printf-args.h: Likewise.
65660         * lib/printf-args.c: Likewise.
65661         * lib/printf-frexp.c: Likewise.
65662         * lib/printf-parse.c: Likewise.
65663         * lib/vasnprintf.c: Likewise.
65664         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65665         * m4/intl.m4: Likewise.
65666         * m4/isnanl.m4: Likewise.
65667         * m4/printf.m4: Likewise.
65668         * m4/printf-frexpl.m4: Likewise.
65669         * m4/vasnprintf.m4: Likewise.
65670         * modules/allocsa (Files): Remove m4/longdouble.m4.
65671         * modules/gettext (Files): Likewise.
65672         * modules/relocatable-prog-wrapper (Files): Likewise.
65673         * modules/vasnprintf (Files): Likewise.
65674         * modules/isnanl (Files): Likewise.
65675         (Include): Simplify.
65676         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65677         (Include): Simplify.
65678         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65679         (Include): Simplify.
65680         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65681         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65682         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65683         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65684         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65685         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65686         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65687         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65688         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65689         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65690         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65691         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65692         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65693         * tests/test-isnanl.c: Likewise.
65694         * tests/test-snprintf-posix.h: Likewise.
65695         * tests/test-sprintf-posix.h: Likewise.
65696         * tests/test-vasnprintf-posix.c: Likewise.
65697         * tests/test-vasnprintf-posix2.c: Likewise.
65698         * tests/test-vasprintf-posix.c: Likewise.
65699
65700 2007-04-06  Bruno Haible  <bruno@clisp.org>
65701
65702         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65703         * lib/math_.h [__DECC]: Include the overridden include file through
65704         #include_next, outside the double-inclusion guard.
65705         * lib/stdio_.h [__DECC]: Likewise.
65706         * lib/stdlib_.h [__DECC]: Likewise.
65707         * lib/string_.h [__DECC]: Likewise.
65708         * lib/time_.h [__DECC]: Likewise.
65709         * lib/wchar_.h [__DECC]: Likewise.
65710         * lib/wctype_.h [__DECC]: Likewise.
65711         * lib/inttypes_.h [__DECC]: Likewise.
65712         Reported by Albert Chin <china@thewrittenword.com> in
65713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65714
65715 2007-04-04  Eric Blake  <ebb9@byu.net>
65716
65717         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65718         1.5.x.
65719
65720 2007-04-04  Bruno Haible  <bruno@clisp.org>
65721
65722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65723         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65724
65725 2007-04-04  Bruno Haible  <bruno@clisp.org>
65726
65727         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65728         results for "%010a" of Infinity and NaN.
65729         * tests/test-vasprintf-posix.c (test_function): Likewise.
65730         * tests/test-snprintf-posix.h (test_function): Likewise.
65731         * tests/test-sprintf-posix.h (test_function): Likewise.
65732         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65733         * tests/test-printf-posix.h (test_function): Likewise.
65734         * tests/test-fprintf-posix.out: Update.
65735         Needed for FreeBSD 6.1.
65736
65737 2007-04-04  Bruno Haible  <bruno@clisp.org>
65738
65739         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65740         directly used by the gnulib modules nor by gnulib-tool.
65741
65742 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * DEPENDENCIES: Give overall description of version dependency
65745         desirability.  Use more-typical names for apps.
65746         Add shell, coreutils, diffutils, grep, tar, gzip.
65747
65748 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65749
65750         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65751
65752 2007-04-04  Karl Berry  <karl@gnu.org>
65753
65754         * MODULES.html.sh (func_module): missing '.
65755
65756 2007-04-03  Bruno Haible  <bruno@clisp.org>
65757
65758         * modules/argmatch-tests (Makefile.am): New variable
65759         test_argmatch_LDADD.
65760         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65761         * modules/array-list-tests (Makefile.am): New variable
65762         test_array_list_LDADD.
65763         * modules/array-oset-tests (Makefile.am): New variable
65764         test_array_oset_LDADD.
65765         * modules/avltree-list-tests (Makefile.am): New variable
65766         test_avltree_list_LDADD.
65767         * modules/avltree-oset-tests (Makefile.am): New variable
65768         test_avltree_oset_LDADD.
65769         * modules/avltreehash-list-tests (Makefile.am): New variable
65770         test_avltreehash_list_LDADD.
65771         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65772         test_canonicalize_lgpl_LDADD.
65773         * modules/carray-list-tests (Makefile.am): New variable
65774         test_carray_list_LDADD.
65775         * modules/dirname-tests (Makefile.am): New variable
65776         test_dirname_LDADD.
65777         * modules/linked-list-tests (Makefile.am): New variable
65778         test_linked_list_LDADD.
65779         * modules/linkedhash-list-tests (Makefile.am): New variable
65780         test_linkedhash_list_LDADD.
65781         * modules/rbtree-list-tests (Makefile.am): New variable
65782         test_rbtree_list_LDADD.
65783         * modules/rbtree-oset-tests (Makefile.am): New variable
65784         test_rbtree_oset_LDADD.
65785         * modules/rbtreehash-list-tests (Makefile.am): New variable
65786         test_rbtreehash_list_LDADD.
65787         * modules/xvasprintf-tests (Makefile.am): New variable
65788         test_xvasprintf_LDADD.
65789         Reported by Eric Blake.
65790
65791 2007-04-03  Eric Blake  <ebb9@byu.net>
65792
65793         * DEPENDENCIES: Weaken m4 requirements.
65794
65795 2007-04-03  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65798         * modules/isnanl-tests (configure.ac): Likewise.
65799
65800 2007-04-03  Ben Pfaff  <blp@gnu.org>
65801
65802         * modules/iconv_open: Add $(srcdir)/ to source directory
65803         references in Makefile fragments that call gperf, to fix VPATH
65804         builds.
65805
65806 2007-04-03  Bruno Haible  <bruno@clisp.org>
65807
65808         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65809         * lib/ldexpl.c: Undo last change.
65810
65811 2007-04-03  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/printf-frexpl (Depends-on): Undo last change.
65814         (Files): Add m4/ldexpl.m4.
65815
65816 2007-04-03  Bruno Haible  <bruno@clisp.org>
65817
65818         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65819         * modules/isnanl (Link): New section.
65820
65821         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65822         * modules/frexp (Link): New section.
65823
65824         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65825         * modules/frexpl (Link): New section.
65826
65827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65828         * modules/ldexpl (Link): New section.
65829
65830 2007-04-03  Bruno Haible  <bruno@clisp.org>
65831
65832         * modules/TEMPLATE-EXTENDED: New file.
65833         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65834
65835 2007-04-03  Bruno Haible  <bruno@clisp.org>
65836
65837         * DEPENDENCIES: New file.
65838         Suggested by Simon Josefsson.
65839
65840 2007-04-03  Bruno Haible  <bruno@clisp.org>
65841
65842         * doc/gnulib.texi: Escape @.
65843
65844 2007-04-03  James Youngman  <jay@gnu.org>
65845         and Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65848         birthtime on all systems that have birthtime, not just those which
65849         use st_birthtimensec rather than st_birthtim.  Putting zero in
65850         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65851         that the birth time is not available for files on an NFS mount.
65852
65853 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65854
65855         * modules/memxor: Move back from crypto/, suggested by Bruno.
65856         * modules/crypto/hmac-sha1: Fix memxor dependency.
65857
65858         * modules/crypto/gc: Moved from ../.
65859
65860 2007-04-02  Eric Blake  <ebb9@byu.net>
65861
65862         * lib/ldexpl.c (includes): Avoid libm.
65863
65864         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65865
65866 2007-04-02  Bruno Haible  <bruno@clisp.org>
65867
65868         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65869         on IRIX.
65870
65871 2007-04-02  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65874         x86 or x86_64 platforms running MacOS X.
65875         Reported by Ryan Schmidt <@ryandesign.com>.
65876
65877 2007-04-02  Bruno Haible  <bruno@clisp.org>
65878
65879         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65880         i386.
65881
65882 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65883
65884         * modules/crypto/arcfour: Moved from ../.
65885         * modules/crypto/arcfour-tests: Moved from ../.
65886         * modules/crypto/arctwo: Moved from ../.
65887         * modules/crypto/arctwo-tests: Moved from ../.
65888         * modules/crypto/des: Moved from ../.
65889         * modules/crypto/des-tests: Moved from ../.
65890         * modules/crypto/gc-arcfour: Moved from ../.
65891         * modules/crypto/gc-arcfour-tests: Moved from ../.
65892         * modules/crypto/gc-arctwo: Moved from ../.
65893         * modules/crypto/gc-arctwo-tests: Moved from ../.
65894         * modules/crypto/gc-des: Moved from ../.
65895         * modules/crypto/gc-des-tests: Moved from ../.
65896         * modules/crypto/gc-hmac-md5: Moved from ../.
65897         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65898         * modules/crypto/gc-hmac-sha1: Moved from ../.
65899         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65900         * modules/crypto/gc-md2: Moved from ../.
65901         * modules/crypto/gc-md2-tests: Moved from ../.
65902         * modules/crypto/gc-md4: Moved from ../.
65903         * modules/crypto/gc-md4-tests: Moved from ../.
65904         * modules/crypto/gc-md5: Moved from ../.
65905         * modules/crypto/gc-md5-tests: Moved from ../.
65906         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65907         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65908         * modules/crypto/gc-random: Moved from ../.
65909         * modules/crypto/gc-rijndael: Moved from ../.
65910         * modules/crypto/gc-rijndael-tests: Moved from ../.
65911         * modules/crypto/gc-sha1: Moved from ../.
65912         * modules/crypto/gc-sha1-tests: Moved from ../.
65913         * modules/crypto/gc-tests: Moved from ../.
65914         * modules/crypto/hmac-md5: Moved from ../.
65915         * modules/crypto/hmac-md5-tests: Moved from ../.
65916         * modules/crypto/hmac-sha1: Moved from ../.
65917         * modules/crypto/hmac-sha1-tests: Moved from ../.
65918         * modules/crypto/md2: Moved from ../.
65919         * modules/crypto/md2-tests: Moved from ../.
65920         * modules/crypto/md4: Moved from ../.
65921         * modules/crypto/md4-tests: Moved from ../.
65922         * modules/crypto/md5: Moved from ../.
65923         * modules/crypto/md5-tests: Moved from ../.
65924         * modules/crypto/memxor: Moved from ../.
65925         * modules/crypto/rijndael: Moved from ../.
65926         * modules/crypto/rijndael-tests: Moved from ../.
65927         * modules/crypto/sha1: Moved from ../.
65928
65929 2007-03-30  James Youngman  <jay@gnu.org>
65930
65931         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65932         rename() to change the ctime of a file (because ctime is unaffected
65933         by rename on jfs2 on AIX 5.1).
65934         (main): Start by doing cleanup, in case a previous run failed leaving
65935         test files behind.
65936
65937 2007-03-31  Bruno Haible  <bruno@clisp.org>
65938
65939         Support old proprietary implementations of iconv.
65940         * modules/iconv_open: New file.
65941         * lib/iconv_.h: New file.
65942         * m4/iconv_h.m4: New file.
65943         * lib/iconv_open.c: New file.
65944         * lib/iconv_open-aix.gperf: New file.
65945         * lib/iconv_open-hpux.gperf: New file.
65946         * lib/iconv_open-irix.gperf: New file.
65947         * lib/iconv_open-osf.gperf: New file.
65948         * m4/iconv_open.m4: New file.
65949         * modules/linebreak (Depends-on): Add iconv_open.
65950         * modules/striconv (Depends-on): Likewise.
65951         * modules/striconveh (Depends-on): Likewise.
65952         * modules/unicodeio (Depends-on): Likewise.
65953         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65954         (iconv_t)(-1).
65955         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65956         conversion if cd is (iconv_t)(-1).
65957         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65958         is not possible.
65959
65960 2007-03-31  Bruno Haible  <bruno@clisp.org>
65961
65962         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65963         work on Solaris either. Protect also second use of "autodetect_jp".
65964
65965 2007-03-31  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65968         the function is not present.
65969
65970 2007-03-31  Bruno Haible  <bruno@clisp.org>
65971
65972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65973         the function is not present.
65974
65975 2007-03-31  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65978         a bug in HP-UX iconv_open().
65979
65980 2007-03-31  Bruno Haible  <bruno@clisp.org>
65981
65982         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65983         (Mathematics <math.h>): New section, add fpieee.
65984         (Input/output <stdio.h>): Add fseterr.
65985         (Mathematics <math.h>): New section, add printf-frexp.
65986         (Container data structures): Add sublist.
65987         (Core language properties): Add fpucw, inline.
65988         (Functions for greatest-width integer types <inttypes.h>): Add
65989         imaxabs, imaxdiv, inttypes.
65990         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65991         isnanl-nolibm, ldexp.
65992         (Mathematics <math.h>): New section, add printf-frexpl.
65993         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65994         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65995         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65996         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65997         (Unicode string functions): Add unistr/u*-mbtoucr.
65998         (Java): Add javacomp-script, javaexec-script.
65999         (C#): Add csharpcomp-script, csharpexec-script.
66000         (Support for building libraries and executables): Add havelib,
66001         relocatable-*.
66002         (Support for maintaining and releasing projects): Renamed from
66003         'Support for maintaining and release projects'. Add announce-gen.
66004
66005 2007-03-31  Bruno Haible  <bruno@clisp.org>
66006
66007         * README: Talk primarily about git.
66008         (git and CVS): Renamed from CVS.
66009         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66010         gnulib is available through git.
66011         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66012
66013 2007-03-30  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66016         * lib/poll_.h: Likewise.
66017         * lib/stat_.h: Likewise.
66018         * lib/sys_time_.h: Likewise.
66019         * lib/sysexit_.h: Likewise.
66020         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66021         * lib/stdbool_.h: Likewise.
66022         * lib/byteswap_.h: Add double-inclusion guard.
66023
66024 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66025
66026         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66027
66028 2007-03-30  Karl Berry  <karl@gnu.org>
66029
66030         * config/srclist-update: double space after USA in the license
66031         substitution, since that's how it's usually (?) written.
66032
66033 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66036         reported by Bruno Haible.
66037
66038 2007-03-29  Bruno Haible  <bruno@clisp.org>
66039
66040         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66041         a bug in AIX iconv().
66042
66043 2007-03-29  Bruno Haible  <bruno@clisp.org>
66044
66045         * modules/ldexpl-tests: New file.
66046         * tests/test-ldexpl.c: New file.
66047
66048 2007-03-29  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/ldexpl.c: Include fpucw.h.
66051         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66052         multiplication.
66053         * modules/ldexpl (Depends-on): Add fpucw.
66054
66055 2007-03-29  Bruno Haible  <bruno@clisp.org>
66056
66057         * modules/ldexpl: New file.
66058         * m4/ldexpl.m4: New file.
66059         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66060         set.
66061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66062         REPLACE_LDEXPL.
66063         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66064         REPLACE_LDEXPL.
66065         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66066         gl_FUNC_LDEXPL_WORKS.
66067         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66068         * modules/mathl (Files): Remove lib/ldexpl.c.
66069         (Depends-on): Add ldexpl.
66070
66071 2007-03-29  Bruno Haible  <bruno@clisp.org>
66072
66073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66074
66075 2007-03-29  Bruno Haible  <bruno@clisp.org>
66076
66077         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66078         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66079         and possibly also HP-UX.
66080         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66081         work on AIX, IRIX, HP-UX, OSF/1.
66082         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66083         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66084         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66085         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66086         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66087         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66088
66089 2007-03-29  Bruno Haible  <bruno@clisp.org>
66090
66091         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66092
66093 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66096         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66097
66098 2007-03-29  Eric Blake  <ebb9@byu.net>
66099
66100         * lib/acl-internal.h: Remove redundant include.
66101         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66102         Cygwin when a file is locked.
66103
66104 2007-03-29  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66107         file.
66108         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66109
66110 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66113         try to remove a parent directory if the child couldn't be removed
66114         (except for the first rmdir, which could fail because the child
66115         doesn't exist).  Problem reported by Jeff Blaine in
66116         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66117
66118 2007-03-28  Bruno Haible  <bruno@clisp.org>
66119
66120         * lib/striconveh.c (utf8conv_carefully): New function.
66121         (mem_cd_iconveh_internal): Invoke it.
66122
66123 2007-03-28  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66126         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66127         input.
66128         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66129         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66130         unistr/u8-uctomb.
66131
66132 2007-03-28  Bruno Haible  <bruno@clisp.org>
66133
66134         * modules/unistr/u8-mbtoucr: New file.
66135         * lib/unistr/u8-mbtoucr.c: New file.
66136         * modules/unistr/u16-mbtoucr: New file.
66137         * lib/unistr/u16-mbtoucr.c: New file.
66138         * modules/unistr/u16-mbtoucr: New file.
66139         * lib/unistr/u16-mbtoucr.c: New file.
66140         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66141
66142 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66143             Bruno Haible  <bruno@clisp.org>
66144
66145         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66146         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66147         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66148
66149         * m4/stdio_h.m4: Add stubs for vasprintf too.
66150
66151         * modules/stdio: Support vasprintf in sed command.
66152
66153         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66154         vasprintf.h.  Add stdio module indicator.
66155
66156         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66157         vasprintf.h.
66158
66159         * lib/vasprintf.h: File removed.
66160
66161         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66162         * lib/vasprintf.c: Ditto.
66163         * lib/xvasprintf.c: Ditto.
66164         * tests/test-vasprintf-posix.c: Ditto.
66165         * tests/test-vasprintf.c: Ditto.
66166
66167 2007-03-27  Bruno Haible  <bruno@clisp.org>
66168
66169         Make vasnprintf multithread-safe.
66170         * lib/vasnprintf.c (decimal_point_char): New function.
66171         (VASNPRINTF): Use it.
66172         Suggested by Simon Josefsson.
66173
66174 2007-03-27  Eric Blake  <ebb9@byu.net>
66175
66176         Support sub-second birthtime on cygwin.
66177         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66178         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66179         (get_stat_birthtime): Also work with st_birthtim.
66180
66181 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66182
66183         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66184         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66185         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66186         (get_stat_birthtime_ns): Simplify compile-time tests.
66187         (get_stat_birthtime): Change the API to look like
66188         get_stat_mtime etc., except return a negative tv_nsec on error.
66189         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66190         Don't check for "spare" fields.
66191         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66192         or for struct stat.st_birthtime, as these tests aren't used.
66193         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66194
66195 2007-03-27  Bruno Haible  <bruno@clisp.org>
66196
66197         * lib/stat-time.h: Include <sys/stat.h>.
66198
66199 2007-03-27  James Youngman  <jay@gnu.org>
66200
66201         * lib/stat-time.h (get_stat_birthtime): New function for
66202           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66203         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66204           and its variants.
66205         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66206         * modules/stat-time-test: New file.
66207         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66208
66209 2007-03-26  Bruno Haible  <bruno@clisp.org>
66210
66211         Better support of signalling NaNs.
66212         * lib/atanl.c: Include isnanl.h.
66213         (atanl): Perform test for NaN at the beginning of the function and
66214         through a call to isnanl.
66215         * lib/cosl.c: Include isnanl.h.
66216         (cosl): Perform test for NaN at the beginning of the function and
66217         through a call to isnanl.
66218         * lib/ldexpl.c: Include isnanl.h.
66219         (ldexpl): Perform test for NaN through a call to isnanl.
66220         * lib/logl.c: Include isnanl.h.
66221         (logl): Perform test for NaN at the beginning of the function and
66222         through a call to isnanl.
66223         * lib/sinl.c: Include isnanl.h.
66224         (sinl): Perform test for NaN at the beginning of the function and
66225         through a call to isnanl.
66226         * lib/sqrtl.c: Include isnanl.h.
66227         (sqrtl): Perform test for NaN at the beginning of the function and
66228         through a call to isnanl.
66229         * lib/tanl.c: Include isnanl.h.
66230         (tanl): Perform test for NaN at the beginning of the function and
66231         through a call to isnanl.
66232         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66233         * modules/mathl (Depends-on): Add isnanl.
66234
66235 2007-03-26  Eric Blake  <ebb9@byu.net>
66236
66237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66238         regression in logic sense of previous patch.
66239
66240 2007-03-26  Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66243         unportable shell command "if ! ...".
66244         Reported by Ralf Wildenhues.
66245
66246 2007-03-25  Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66249         <sysexits.h> file, and only add EX_CONFIG.
66250         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66251         absolute file name and whether it is sufficient. Substitute also
66252         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66253         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66254         ABSOLUTE_SYSEXITS_H into sysexits.h.
66255
66256 2007-03-25  Bruno Haible  <bruno@clisp.org>
66257
66258         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66259         hints is NULL.
66260
66261 2007-03-25  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66264         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66265
66266 2007-03-25  Bruno Haible  <bruno@clisp.org>
66267
66268         * lib/vasnprintf.c: Include langinfo.h.
66269         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66270         multithread-safe.
66271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66280         Reported by Simon Josefsson.
66281
66282 2007-03-25  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66285         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66286         * modules/vasnprintf (Depends-on): Add stdint.
66287
66288 2007-03-25  Bruno Haible  <bruno@clisp.org>
66289
66290         * modules/fpieee: New file.
66291         * m4/fpieee.m4: New file.
66292         * modules/isnan-nolibm (Depends-on): Add fpieee.
66293         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66294         * modules/isnanl (Depends-on): Add fpieee.
66295
66296 2007-03-25  Bruno Haible  <bruno@clisp.org>
66297
66298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66299
66300 2007-03-25  Bruno Haible  <bruno@clisp.org>
66301
66302         Avoid test failures on IRIX 6.5.
66303         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66304         (main): Use it.
66305         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66306         macros.
66307         (main): Use them.
66308
66309 2007-03-25  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66312         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66313         exists but doesn't work.
66314         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66315         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66317         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66318         math.h.
66319
66320 2007-03-25  Bruno Haible  <bruno@clisp.org>
66321
66322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66323         returns inf. Needed on IRIX 6.5.
66324
66325 2007-03-25  Bruno Haible  <bruno@clisp.org>
66326
66327         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66328         (main): Use isnanl instead of x != x idiom.
66329         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66330
66331         * tests/test-frexp.c: Include isnan.h.
66332         (main): Use isnan instead of x != x idiom.
66333         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66334
66335 2007-03-25  Bruno Haible  <bruno@clisp.org>
66336
66337         * tests/test-frexp.c (NaN): New function/macro.
66338         (main): Use it instead of 0.0 / 0.0.
66339         * tests/test-isnan.c (NaN): New function/macro.
66340         (main): Use it instead of 0.0 / 0.0.
66341         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66342         (test_function): Use it instead of 0.0 / 0.0.
66343         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66344         (test_function): Use it instead of 0.0 / 0.0.
66345         * tests/test-snprintf-posix.h (NaN): New function/macro.
66346         (test_function): Use it instead of 0.0 / 0.0.
66347         * tests/test-sprintf-posix.h (NaN): New function/macro.
66348         (test_function): Use it instead of 0.0 / 0.0.
66349         * tests/test-fprintf-posix.h (NaN): New function/macro.
66350         (test_function): Use it instead of 0.0 / 0.0.
66351         * tests/test-printf-posix.h (NaN): New function/macro.
66352         (test_function): Use it instead of 0.0 / 0.0.
66353
66354         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66355
66356 2007-03-25  Bruno Haible  <bruno@clisp.org>
66357
66358         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66359
66360 2007-03-25  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/regexec.c (merge_state_with_log): Make static.
66363
66364 2007-03-25  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/trigl.c (kernel_rem_pio2): Make static.
66367
66368 2007-03-25  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/sincosl.c (sincosl_table): Make static.
66371
66372 2007-03-25  Bruno Haible  <bruno@clisp.org>
66373
66374         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66375         if the compiler does not support C99.
66376
66377 2007-03-25  Bruno Haible  <bruno@clisp.org>
66378
66379         * modules/time (Makefile.am): Ensure all rule action lines start with a
66380         tab.
66381
66382 2007-03-24  Bruno Haible  <bruno@clisp.org>
66383
66384         * modules/tsearch-tests: New file.
66385         * tests/test-tsearch.sh: New file.
66386         * tests/test-tsearch.c: New file, mostly copied from glibc.
66387
66388         * modules/search-tests: New file.
66389         * tests/test-search.c: New file.
66390
66391         * modules/search: New file.
66392         * lib/search_.h: New file, incorporating lib/tsearch.h.
66393         * m4/search_h.m4: New file.
66394         * lib/tsearch.h: Remove file.
66395         * lib/tsearch.c: Include search.h instead of tsearch.h.
66396         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66397         HAVE_TSEARCH.
66398         * modules/tsearch (Files): Remove lib/tsearch.h.
66399         (Depends-on): Add search.
66400         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66401         (Include): Change tsearch.h into search.h.
66402
66403 2007-03-24  Bruno Haible  <bruno@clisp.org>
66404
66405         * modules/fpucw: New file.
66406         * lib/fpucw.h: New file.
66407         * lib/frexp.c: Include fpucw.h.
66408         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66409         (FUNC): Use them.
66410         * lib/printf-frexp.c: Include fpucw.h.
66411         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66412         (FUNC): Use them.
66413         * lib/vasnprintf.c: Include fpucw.h.
66414         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66415         'long double' calculations.
66416         * tests/test-frexpl.c: Include fpucw.h.
66417         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66418         * tests/test-printf-frexpl.c: Include fpucw.h.
66419         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66420         * modules/frexpl (Depends-on): Add fpucw.
66421         * modules/printf-frexpl (Depends-on): Likewise.
66422         * modules/fprintf-posix (Depends-on): Likewise.
66423         * modules/snprintf-posix (Depends-on): Likewise.
66424         * modules/sprintf-posix (Depends-on): Likewise.
66425         * modules/vasnprintf-posix (Depends-on): Likewise.
66426         * modules/vasprintf-posix (Depends-on): Likewise.
66427         * modules/vfprintf-posix (Depends-on): Likewise.
66428         * modules/vsnprintf-posix (Depends-on): Likewise.
66429         * modules/vsprintf-posix (Depends-on): Likewise.
66430         * modules/frexpl-tests (Depends-on): Likewise.
66431         * modules/printf-frexpl-tests (Depends-on): Likewise.
66432
66433 2007-03-24  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/float+.h: New file.
66436         * lib/isnan.c: Include float+.h.
66437         (SIZE): New macro.
66438         (FUNC): Compare only SIZE bytes of the value.
66439         * lib/vasnprintf.c: Include float+.h.
66440         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66441         SIZEOF_LDBL or SIZEOF_DBL bytes.
66442         * modules/isnan-nolibm (Files): Add lib/float+.h.
66443         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66444         * modules/isnanl (Files): Add lib/float+.h.
66445         * modules/vasnprintf (Files): Add lib/float+.h.
66446
66447 2007-03-24  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66450         include isnanl-nolibm.h.
66451
66452 2007-03-24  Bruno Haible  <bruno@clisp.org>
66453
66454         * tests/test-read-file.c (main): Don't produce spurious output for
66455         expected situations. Make the test fail if it encountered unexpected
66456         results.
66457
66458 2007-03-24  Bruno Haible  <bruno@clisp.org>
66459
66460         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66461         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66462
66463 2007-03-24  Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66466
66467 2007-03-24  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66470         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66471
66472         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66473         * modules/utf8-ucs4: Turn into a symbolic link to module
66474         unistr/u8-mbtouc.
66475
66476         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66477         utf8-ucs4-unsafe.
66478         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66479         unistr/u8-mbtouc-unsafe.
66480
66481         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66482         * modules/utf16-ucs4: Turn into a symbolic link to module
66483         unistr/u16-mbtouc.
66484
66485         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66486         utf16-ucs4-unsafe.
66487         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66488         unistr/u16-mbtouc-unsafe.
66489
66490         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66491         * modules/ucs4-utf8: Turn into a symbolic link to module
66492         unistr/u8-ubtomb.
66493
66494         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66495         * modules/ucs4-utf16: Turn into a symbolic link to module
66496         unistr/u16-ubtomb.
66497
66498 2007-03-24  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66501         Enable the function only if HAVE_INLINE.
66502         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66503         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66504         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66505         Enable the function only if HAVE_INLINE.
66506         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66507         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66508         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66509         Enable the function only if HAVE_INLINE.
66510         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66511         Enable the function only if HAVE_INLINE.
66512         * modules/utf8-ucs4: Update.
66513         * modules/utf8-ucs4-unsafe: Update.
66514         * modules/utf16-ucs4: Update.
66515         * modules/utf16-ucs4-unsafe: Update.
66516         * modules/ucs4-utf8: Update.
66517         * modules/ucs4-utf16: Update.
66518
66519 2007-03-24  Bruno Haible  <bruno@clisp.org>
66520
66521         * lib/utf8-ucs4.h: Remove file.
66522         * lib/utf8-ucs4-unsafe.h: Remove file.
66523         * lib/utf16-ucs4.h: Remove file.
66524         * lib/utf16-ucs4-unsafe.h: Remove file.
66525         * lib/ucs4-utf8.h: Remove file.
66526         * lib/ucs4-utf16.h: Remove file.
66527         * lib/unistr.h: Include their previous contents.
66528         * m4/utf-ucs4.m4: Remove file.
66529         * m4/ucs4-utf.m4: Remove file.
66530         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66531         (Depends-on): Add unistr/base.
66532         (configure.ac): Remove gl_UTF_UCS4.
66533         (Makefile.am): Update.
66534         (Include): Change to unistr.h.
66535         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66536         (Depends-on): Add unistr/base.
66537         (configure.ac): Remove gl_UTF_UCS4.
66538         (Makefile.am): Update.
66539         (Include): Change to unistr.h.
66540         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66541         (Depends-on): Add unistr/base.
66542         (configure.ac): Remove gl_UTF_UCS4.
66543         (Makefile.am): Update.
66544         (Include): Change to unistr.h.
66545         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66546         (Depends-on): Add unistr/base.
66547         (configure.ac): Remove gl_UTF_UCS4.
66548         (Makefile.am): Update.
66549         (Include): Change to unistr.h.
66550         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66551         (Depends-on): Add unistr/base.
66552         (configure.ac): Remove gl_UCS4_UTF.
66553         (Makefile.am): Update.
66554         (Include): Change to unistr.h.
66555         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66556         (Depends-on): Add unistr/base.
66557         (configure.ac): Remove gl_UCS4_UTF.
66558         (Makefile.am): Update.
66559         (Include): Change to unistr.h.
66560         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66561         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66562         utf8-ucs4-unsafe.h.
66563         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66564         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66565         utf16-ucs4-unsafe.h.
66566         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66567         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66568         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66569         * lib/unistr/u8-strchr.c: Likewise.
66570         * lib/unistr/u8-strrchr.c: Likewise.
66571         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66572         * lib/unistr/u16-strchr.c: Likewise.
66573         * lib/unistr/u16-strrchr.c: Likewise.
66574         * lib/striconveh.c: Update.
66575         * lib/linebreak.c: Update.
66576
66577 2007-03-24  Bruno Haible  <bruno@clisp.org>
66578
66579         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66580         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66581
66582 2007-03-22  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66585
66586 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66587
66588         * MODULES.html.sh (File system functions): New module write-any-file.
66589         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66590         * m4/write-any-file.m4: New files.
66591
66592 2007-03-23  Eric Blake  <ebb9@byu.net>
66593
66594         * gnulib-tool: Rearrange space-tab sequences, since some editors
66595         like to eat them.
66596
66597 2007-03-23  Eric Blake  <ebb9@byu.net>
66598
66599         * lib/version-etc.c (version_etc_va): Update license wording to
66600         be more concise.  Recommended by Richard Stallman.
66601
66602 2007-03-22  Bruno Haible  <bruno@clisp.org>
66603
66604         * lib/poll.c (MSG_PEEK): New fallback definition.
66605
66606 2007-03-22  Bruno Haible  <bruno@clisp.org>
66607
66608         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66609         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66610         (main): Update.
66611         Fixes a compilation error on BeOS.
66612
66613 2007-03-22  Bruno Haible  <bruno@clisp.org>
66614
66615         * modules/frexpl-tests: New file.
66616         * tests/test-frexpl.c: New file.
66617
66618         * modules/frexpl: New file.
66619         * m4/frexpl.m4: New file.
66620         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66621         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66623         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66624         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66625         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66626
66627 2007-03-22  Bruno Haible  <bruno@clisp.org>
66628
66629         * lib/frexpl.c: Share code with lib/frexp.c.
66630         * modules/mathl (Files): Add lib/frexp.c.
66631         (Depends-on): Add isnanl-nolibm.
66632
66633 2007-03-22  Bruno Haible  <bruno@clisp.org>
66634
66635         * modules/printf-frexp (Files): Add m4/frexp.m4.
66636         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66637         only if the found frexp function actually works.
66638
66639 2007-03-22  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/frexp.c: Remove older implementation that uses divisions.
66642
66643 2007-03-21  Bruno Haible  <bruno@clisp.org>
66644
66645         * modules/frexp-tests: New file.
66646         * tests/test-frexp.c: New file.
66647
66648         * modules/frexp: New file.
66649         * lib/frexp.c: New file.
66650         * m4/frexp.m4: New file.
66651         * lib/math_.h (frexp): New declaration.
66652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66653         REPLACE_FREXP.
66654         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66655
66656 2007-03-21  Bruno Haible  <bruno@clisp.org>
66657
66658         * modules/isnanl-tests: New file.
66659         * tests/test-isnanl.c: New file.
66660
66661         * modules/isnanl: New file.
66662         * lib/isnanl.h: New file.
66663         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66664         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66665         gl_FUNC_ISNANL_WORKS.
66666         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66667         New macros.
66668
66669 2007-03-21  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66672         lib/isnanl.h.
66673         (Include): Update.
66674         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66675         * lib/vasnprintf.c: Update.
66676         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66677         tests/test-isnanl.h, remove tests/test-isnanl.c.
66678         (Makefile.am): Update.
66679         * tests/test-isnanl-nolibm.c: New file.
66680         * tests/test-isnanl.h: New file.
66681         * tests/test-isnanl.c: Remove file.
66682
66683 2007-03-21  Jim Meyering  <jim@meyering.net>
66684
66685         When trying to open ".", treat ESTALE like EACCES.
66686         * lib/savewd.c (savewd_save): Resort to forking not just upon
66687         failure with EACCES, but also when errno is ESTALE.
66688
66689 2007-03-20  Bruno Haible  <bruno@clisp.org>
66690
66691         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66692         Needed on AIX 5.1. Reported by Matthew Woehlke.
66693
66694 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         Suggestions by Bruno Haible:
66697         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66698         our own.
66699         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66700         * modules/acl (Depends-on): Add gettext.
66701
66702 2007-03-19  Bruno Haible  <bruno@clisp.org>
66703
66704         * modules/iconvme: Remove file.
66705         * lib/iconvme.h: Remove file.
66706         * lib/iconvme.c: Remove file.
66707         * m4/iconvme.m4: Remove file.
66708
66709 2007-03-19  Bruno Haible  <bruno@clisp.org>
66710
66711         * doc/relocatable-maint.texi: Break long shell script line.
66712         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66713
66714 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66717         handle file_has_acl.
66718         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66719         * lib/acl.c: Move header inclusions and related macro defns into
66720         lib/acl-internal.h.
66721         (S_ISLNK): Remove defn, since that's now done for us.
66722         (file_has_acl): Move to lib/file-has-acl.c.
66723         Call acl_trivial if available.  This is the crucial part of the fix.
66724         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66725         shared within the library.  Rewrite a bit, partly to make it compatible
66726         with the GNU coding style.
66727         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66728         Remove unnecessary double-quotes.
66729         Don't test for acl_to_text; the build will catch that.
66730         Replace acl_entries if it doesn't exist and it is needed.
66731         Check for -lsec and acl_trivial (as used on Solaris 10).
66732         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66733         lib/file-has-acl.c.
66734         (Depends-on): Add sys_stat, for S_ISLNK.
66735
66736 2007-03-19  Ben Pfaff  <blp@gnu.org>
66737
66738         * doc/gnulib.texi: Fix typos.
66739         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66740
66741 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66744         If size is zero here, buf must be zero.
66745
66746 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66747
66748         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66749         <bruno@clisp.org>.
66750
66751 2007-03-18  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66754         Suggested by Eric Blake.
66755
66756 2007-03-18  Ben Pfaff  <blp@gnu.org>
66757
66758         * doc/relocatable.texi: Recommend using as prefix a directory
66759         that does not exist and will never be created.  Based on
66760         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66761         and others.
66762
66763 2007-03-17  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/fchownat.c: Include lchown.h.
66766
66767 2007-03-17  Bruno Haible  <bruno@clisp.org>
66768
66769         Fix endless loop when the given allocated size was > INT_MAX.
66770         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66771         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66772         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66773         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66774         * lib/sprintf.c (sprintf): Likewise.
66775
66776 2007-03-17  Bruno Haible  <bruno@clisp.org>
66777
66778         * tests/test-argp-2.sh (func_compare): Output a context diff.
66779
66780 2007-03-17  Bruno Haible  <bruno@clisp.org>
66781
66782         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66783         locale's decimal-point character.
66784
66785 2007-03-17  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66788         before comparing it. Needed because on some platforms (e.g. x86) a
66789         'long double' occupies less bytes than sizeof (long double).
66790
66791 2007-03-17  Bruno Haible  <bruno@clisp.org>
66792
66793         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66794         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66795         * tests/test-getaddrinfo.c (simple): Likewise.
66796         * tests/test-read-file.c (main): Likewise.
66797
66798 2007-03-17  Bruno Haible  <bruno@clisp.org>
66799
66800         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66801
66802 2007-03-17  Bruno Haible  <bruno@clisp.org>
66803
66804         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66805         unused variable.
66806
66807 2007-03-17  Bruno Haible  <bruno@clisp.org>
66808
66809         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66810         * tests/test-c-strncasecmp.c: Likewise.
66811
66812 2007-03-17  Bruno Haible  <bruno@clisp.org>
66813
66814         * modules/stdlib (Depends-on): Add unistd.
66815         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66816         Needed for MacOS X 10.3.
66817
66818 2007-03-17  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66821
66822 2007-03-17  Bruno Haible  <bruno@clisp.org>
66823
66824         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66825
66826 2007-03-17  Bruno Haible  <bruno@clisp.org>
66827
66828         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66829         to reflect files copied from gnulib (with or without modifications).
66830         Suggested by Jim Meyering.
66831
66832 2007-03-17  Eric Blake  <ebb9@byu.net>
66833
66834         * NEWS: Document stdlib change from 2007-02-18.
66835
66836 2007-03-17  Jim Meyering  <jim@meyering.net>
66837
66838         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66839         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66840         someone uses a name containing shell meta-characters.
66841         Reported by Alfred M. Szmidt.
66842
66843         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66844
66845 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66846
66847         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66848         and copy gettext configuration files only if configure.ac contains
66849         a use of AM_GNU_GETTEXT_VERSION.
66850
66851 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66852
66853         * build-aux/bootstrap (gnulib_name): New variable.
66854         (gnulib_tool_options): Use it.
66855
66856 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66857
66858         * tests/test-des.c: Use new namespace.
66859
66860 2007-03-15  Bruno Haible  <bruno@clisp.org>
66861
66862         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66863         Reported by James Youngman <jay@gnu.org>.
66864
66865 2007-03-15  Bruno Haible  <bruno@clisp.org>
66866
66867         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66868         declared prototype. Needed with cc on OSF/1 5.1.
66869
66870 2007-03-15  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66873         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66874         (struct gl_list_implementation): Add dispose_fn argument to the
66875         'create_empty', 'create' methods.
66876         (struct gl_list_impl_base): Add field 'dispose_fn'.
66877         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66878         argument.
66879         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66880         dispose_fn argument.
66881         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66882         dispose_fn on the dropped values.
66883         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66884         dispose_fn argument.
66885         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66886         dropped values.
66887         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66888         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66889         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66890         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66891         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66892         argument.
66893         (gl_tree_list_free): Call dispose_fn on the dropped values.
66894         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66895         the dropped values.
66896         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66897         Add dispose_fn argument.
66898         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66899         Call dispose_fn on the dropped values.
66900         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66901         Add dispose_fn argument.
66902         (gl_sublist_create): Initialize the 'dispose_fn' field.
66903         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66904         * tests/test-array_list.c (main): Update.
66905         * tests/test-carray_list.c (main): Update.
66906         * tests/test-avltree_list.c (main): Update.
66907         * tests/test-rbtree_list.c (main): Update.
66908         * tests/test-avltreehash_list.c (main): Update.
66909         * tests/test-rbtreehash_list.c (main): Update.
66910         * tests/test-linked_list.c (main): Update.
66911         * tests/test-linkedhash_list.c (main): Update.
66912         * tests/test-array_oset.c (main): Update.
66913
66914 2007-03-15  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66917         (gl_oset_create_empty): Add dispose_fn argument.
66918         (struct gl_oset_implementation): Add dispose_fn argument to
66919         'create_empty' method.
66920         (struct gl_oset_impl_base): Add dispose_fn field.
66921         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66922         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66923         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66924         values.
66925         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66926         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66927         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66928         dropped value.
66929         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66930         dropped value.
66931         * tests/test-array_oset.c (main): Update.
66932         * tests/test-avltree_oset.c (main): Update.
66933         * tests/test-rbtree_oset.c (main): Update.
66934         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66935
66936 2007-03-13  Bruno Haible  <bruno@clisp.org>
66937
66938         * tests/test-stdbool.c (i): Update after last patch.
66939
66940 2007-03-12  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66943         the iswprint macro. Needed on Solaris 2.5.1.
66944
66945 2007-03-12  Bruno Haible  <bruno@clisp.org>
66946
66947         * tests/test-printf-frexp.c (main): Declare x as volatile.
66948
66949 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66950
66951         * doc/gnulib.texi (Build robot for gnulib): New section.
66952
66953 2007-03-12  Jim Meyering  <jim@meyering.net>
66954
66955         * build-aux/bootstrap: New file.
66956         * build-aux/bootstrap.conf: New file, from coreutils.
66957
66958 2007-03-11  Bruno Haible  <bruno@clisp.org>
66959
66960         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66961
66962 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66963
66964         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66965         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66966         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66967
66968 2007-03-11  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66971         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66972
66973 2007-03-11  Bruno Haible  <bruno@clisp.org>
66974
66975         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66976         formula. Needed for SunPRO C 5.0.
66977
66978 2007-03-11  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/long-options (Depends-on): Add getopt.
66981
66982 2007-03-11  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/modechange (Depends-on): Add stdbool.
66985
66986 2007-03-11  Bruno Haible  <bruno@clisp.org>
66987
66988         * modules/i-ring (Depends-on): Add stdbool.
66989
66990 2007-03-11  Bruno Haible  <bruno@clisp.org>
66991
66992         * modules/gc-des (Depends-on): Add stdbool.
66993
66994 2007-03-11  Bruno Haible  <bruno@clisp.org>
66995
66996         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66997
66998 2007-03-11  Bruno Haible  <bruno@clisp.org>
66999
67000         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67001
67002 2007-03-11  Bruno Haible  <bruno@clisp.org>
67003
67004         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67005
67006 2007-03-11  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/vasnprintf.c (sprintf): Undefine.
67009
67010 2007-03-11  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67013         initializers in SunPRO C and Compaq C compilers.
67014
67015 2007-03-11  Bruno Haible  <bruno@clisp.org>
67016
67017         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67018         decrementing code ANSI C compliant.
67019
67020 2007-03-11  Bruno Haible  <bruno@clisp.org>
67021
67022         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67023         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67024
67025 2007-03-11  Bruno Haible  <bruno@clisp.org>
67026
67027         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67028         <stdbool.h> substitute doesn't pass.
67029
67030 2007-03-11  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67033
67034 2007-03-11  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67037         script, for submission to autobuild.josefsson.org.
67038
67039 2007-03-10  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/canonicalize-lgpl-tests: New file.
67042         * tests/test-canonicalize-lgpl.sh: New file.
67043         * tests/test-canonicalize-lgpl.c: New file.
67044
67045         * modules/c-strcase-tests: New file.
67046         * tests/test-c-strcase.sh: New file.
67047         * tests/test-c-strcasecmp.c: New file.
67048         * tests/test-c-strncasecmp.c: New file.
67049
67050         * modules/atexit-tests: New file.
67051         * tests/test-atexit.sh: New file.
67052         * tests/test-atexit.c: New file.
67053
67054 2007-03-10  Bruno Haible  <bruno@clisp.org>
67055
67056         * tests/test-binary-io.sh: Use temporary filenames that are not so
67057         likely to clash with those of other tests (in a parallel make).
67058         * tests/test-binary-io.c: Likewise.
67059
67060 2007-03-10  Bruno Haible  <bruno@clisp.org>
67061
67062         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67063         fallback; use #error instead.
67064         Suggested by Simon Josefsson.
67065
67066 2007-03-10  Bruno Haible  <bruno@clisp.org>
67067
67068         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67069         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67070         first and the last.
67071
67072 2007-03-10  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67075
67076 2007-03-10  Bruno Haible  <bruno@clisp.org>
67077
67078         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67079         "make distcheck".
67080         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67081         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67082         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67083
67084 2007-03-10  Bruno Haible  <bruno@clisp.org>
67085
67086         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67087         variable.
67088         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67089         variable.
67090
67091 2007-03-09  Eric Blake  <ebb9@byu.net>
67092         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67093
67094         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67095         types are not being provided by gnulib.
67096         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67097         types are supported.
67098
67099 2007-03-10  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/stdio_.h (__attribute__): New macro.
67102         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67103         vsprintf): Specify __attribute__ __format__ for GCC.
67104         Suggested by Eric Blake.
67105
67106 2007-03-09  Bruno Haible  <bruno@clisp.org>
67107
67108         * modules/printf-posix-tests: New file.
67109         * tests/test-printf-posix.sh: New file.
67110         * tests/test-printf-posix.c: New file.
67111
67112         * modules/printf-posix: New file.
67113         * lib/printf.c: New file.
67114         * m4/printf-posix-rpl.m4: New file.
67115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67116         REPLACE_PRINTF.
67117         * lib/stdio_.h (printf): New declaration.
67118         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67119         ____strfmon____): New macros.
67120         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67121         REPLACE_PRINTF.
67122
67123 2007-03-09  Bruno Haible  <bruno@clisp.org>
67124
67125         * tests/test-vasnprintf-posix2.sh: New file.
67126         * tests/test-vasnprintf-posix2.c: New file.
67127         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67128         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67129         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67130
67131         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67132         a locale dependent decimal point, rather than always '.'.
67133
67134 2007-03-09  Eric Blake  <ebb9@byu.net>
67135
67136         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67137         spite of platforms like Tandem/NSK that define it to -1.
67138
67139 2007-03-08  Bruno Haible  <bruno@clisp.org>
67140
67141         * modules/vprintf-posix-tests: New file.
67142         * tests/test-vprintf-posix.sh: New file.
67143         * tests/test-vprintf-posix.c: New file.
67144         * tests/test-printf-posix.h: New file.
67145
67146         * modules/vprintf-posix: New file.
67147         * lib/vprintf.c: New file.
67148         * m4/vprintf-posix.m4: New file.
67149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67150         REPLACE_VPRINTF.
67151         * lib/stdio_.h (vprintf): New declaration.
67152         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67153         REPLACE_VPRINTF.
67154
67155 2007-03-08  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/fprintf-posix-tests: New file.
67158         * tests/test-fprintf-posix.sh: New file.
67159         * tests/test-fprintf-posix.c: New file.
67160
67161         * modules/fprintf-posix: New file.
67162         * lib/fprintf.c: New file.
67163         * m4/fprintf-posix.m4: New file.
67164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67165         REPLACE_FPRINTF.
67166         * lib/stdio_.h (fprintf): New declaration.
67167         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67168         REPLACE_FPRINTF.
67169
67170 2007-03-08  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/vfprintf-posix-tests: New file.
67173         * tests/test-vfprintf-posix.sh: New file.
67174         * tests/test-vfprintf-posix.c: New file.
67175         * tests/test-fprintf-posix.h: New file.
67176         * tests/test-fprintf-posix.out: New file.
67177
67178         * modules/vfprintf-posix: New file.
67179         * lib/vfprintf.c: New file.
67180         * m4/vfprintf-posix.m4: New file.
67181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67182         REPLACE_VFPRINTF.
67183         * lib/stdio_.h (vfprintf): New declaration.
67184         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67185         REPLACE_VFPRINTF.
67186
67187 2007-03-08  Bruno Haible  <bruno@clisp.org>
67188
67189         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67190
67191 2007-03-08  Bruno Haible  <bruno@clisp.org>
67192
67193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67194         instead of 'expr' invocations.
67195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67200         Suggested by Paul Eggert.
67201
67202 2007-03-08  Bruno Haible  <bruno@clisp.org>
67203
67204         * modules/fseterr-tests: New file.
67205         * tests/test-fseterr.c: New file.
67206
67207         * modules/fseterr: New file.
67208         * lib/fseterr.h: New file.
67209         * lib/fseterr.c: New file.
67210
67211 2007-03-08  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67214         * lib/getopt_.h: Likewise.
67215         * lib/mbswidth.h: Likewise.
67216         * lib/setenv.h: Likewise.
67217         * lib/vasnprintf.h: Likewise.
67218         * lib/vasprintf.h: Likewise.
67219         * lib/verror.h: Likewise.
67220         * lib/xsetenv.h: Likewise.
67221         * lib/xvasprintf.h: Likewise.
67222
67223 2007-03-08  Jim Meyering  <jim@meyering.net>
67224
67225         * users.txt: Add parted.
67226
67227         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67228
67229 2007-03-07  Bruno Haible  <bruno@clisp.org>
67230
67231         * m4/printf.m4: Make the shell script snippets copy&pastable.
67232
67233 2007-03-02  Bruno Haible  <bruno@clisp.org>
67234
67235         * lib/netinet_in_.h: New file.
67236         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67237         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67238         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67239         (Depends-on): Add absolute-header.
67240         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67241         into netinet/in.h.
67242
67243 2007-03-03  Bruno Haible  <bruno@clisp.org>
67244
67245         * lib/sys_select_.h: New file.
67246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67247         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67248         * modules/sys_select (Files): Add lib/sys_select_.h.
67249         (Depends-on): Add absolute-header.
67250         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67251         into sys/select.h.
67252
67253 2007-03-02  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67256         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67257         values.
67258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67259         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67260         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67261         * modules/sys_socket (Depends-on): Add absolute-header.
67262         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67263         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67264         (Include): Remove requirement of inclusion of <sys/types.h>.
67265
67266 2007-03-02  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/byteswap_.h (bswap_32): Fix formula.
67269
67270 2007-03-06  Bruno Haible  <bruno@clisp.org>
67271
67272         * modules/sprintf-posix-tests: New file.
67273         * tests/test-sprintf-posix.c: New file.
67274
67275         * modules/sprintf-posix: New file.
67276         * lib/sprintf.c: New file.
67277         * m4/sprintf-posix.m4: New file.
67278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67279         REPLACE_SPRINTF.
67280         * lib/stdio_.h (sprintf): New declaration.
67281         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67282         REPLACE_SPRINTF.
67283
67284 2007-03-06  Bruno Haible  <bruno@clisp.org>
67285
67286         * modules/vsprintf-posix-tests: New file.
67287         * tests/test-vsprintf-posix.c: New file.
67288         * tests/test-sprintf-posix.h: New file.
67289
67290         * modules/vsprintf-posix: New file.
67291         * lib/vsprintf.c: New file.
67292         * m4/vsprintf-posix.m4: New file.
67293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67294         REPLACE_VSPRINTF.
67295         * lib/stdio_.h (vsprintf): New declaration.
67296         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67297         REPLACE_VSPRINTF.
67298
67299 2007-03-06  Bruno Haible  <bruno@clisp.org>
67300
67301         * modules/vsnprintf (Depend-on): Remove minmax.
67302
67303 2007-03-06  Bruno Haible  <bruno@clisp.org>
67304
67305         * modules/snprintf-posix-tests: New file.
67306         * tests/test-snprintf-posix.c: New file.
67307
67308         * modules/snprintf-posix: New file.
67309         * m4/snprintf-posix.m4: New file.
67310         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67311         gl_FUNC_SNPRINTF.
67312         (gl_FUNC_SNPRINTF): Invoke it.
67313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67314         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67315         is set.
67316         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67317
67318 2007-03-06  Bruno Haible  <bruno@clisp.org>
67319
67320         * modules/vsnprintf-posix-tests: New file.
67321         * tests/test-vsnprintf-posix.c: New file.
67322         * tests/test-snprintf-posix.h: New file.
67323
67324         * modules/vsnprintf-posix: New file.
67325         * m4/vsnprintf-posix.m4: New file.
67326         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67327         gl_FUNC_VSNPRINTF.
67328         (gl_FUNC_VSNPRINTF): Invoke it.
67329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67330         * lib/stdio_.h (vsnprintf): Define as a replacement if
67331         REPLACE_VSNPRINTF is set.
67332         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67333
67334 2007-03-06  Bruno Haible  <bruno@clisp.org>
67335
67336         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67338
67339 2007-03-06  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67342         (asinl): Declare also if HAVE_DECL_ASINL is set.
67343         (atanl): Declare also if HAVE_DECL_ATANL is set.
67344         (ceill): Declare also if HAVE_DECL_CEILL is set.
67345         (cosl): Declare also if HAVE_DECL_COSL is set.
67346         (expl): Declare also if HAVE_DECL_EXPL is set.
67347         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67348         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67349         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67350         (logl): Declare also if HAVE_DECL_LOGL is set.
67351         (sinl): Declare also if HAVE_DECL_SINL is set.
67352         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67353         (tanl): Declare also if HAVE_DECL_TANL is set.
67354         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67357         declaration of frexpl, ldexpl.
67358         * modules/printf-frexpl (Depends-on): Add math.
67359         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67360
67361 2007-03-05  Bruno Haible  <bruno@clisp.org>
67362
67363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67364         frexpl and ldexpl are declared.
67365         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67366
67367 2007-03-05  Bruno Haible  <bruno@clisp.org>
67368
67369         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67370         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67371
67372 2007-03-05  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/stdio_.h: Include <stddef.h>.
67375
67376 2007-03-05  Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67379
67380 2007-03-05  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67383         NetBSD 4, from Ralf Wildenhues.
67384
67385 2007-03-04  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/vasprintf.h: Update #if logic for the case when the functions
67388         exist but are overridden.
67389
67390 2007-03-04  Bruno Haible  <bruno@clisp.org>
67391
67392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67393         implementations: glibc-2.4 and MacOS X 10.3.
67394         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67395         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67396         * tests/test-vasprintf-posix.c (test_function): Likewise.
67397
67398 2007-03-04  Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/vasprintf-posix-tests: New file.
67401         * tests/test-vasprintf-posix.c: New file.
67402
67403         * modules/vasprintf-posix: New file.
67404         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67405         defined.
67406         * m4/vasprintf-posix.m4: New file.
67407         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67408         gl_FUNC_VASPRINTF.
67409         (gl_FUNC_VASPRINTF): Invoke it.
67410         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67411         here.
67412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67413
67414 2007-03-04  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67417         REPLACE_GETTIMEOFDAY.
67418         * modules/sys_time (Makefile.am): Likewise.
67419         * m4/sys_time_h.m4: Likewise.
67420         * m4/gettimeofday.m4: Likewise.
67421
67422 2007-03-04  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/vasnprintf-posix-tests: New file.
67425         * tests/test-vasnprintf-posix.c: New file.
67426
67427         * modules/vasnprintf-posix: New file.
67428         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67429         printf-frexpl.h.
67430         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67431         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67432         REPLACE_VASNPRINTF is defined.
67433         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67434         gl_FUNC_VASNPRINTF.
67435         (gl_FUNC_VASNPRINTF): Invoke it.
67436         * m4/vasnprintf-posix.m4: New file.
67437         * m4/printf.m4: New file.
67438
67439 2007-03-04  Bruno Haible  <bruno@clisp.org>
67440
67441         Compile progreloc.c only if --enable-relocatable is specified.
67442         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67443         if --enable-relocatable was specified.
67444         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67445         lib_SOURCES.
67446
67447 2007-03-04  Jim Meyering  <jim@meyering.net>
67448
67449         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67450         Use it consistently, rather than enumerating errno constants.
67451
67452 2007-03-04  Bruno Haible  <bruno@clisp.org>
67453
67454         * modules/xvasprintf-tests: New file.
67455         * tests/test-xvasprintf.c: New file.
67456
67457         * modules/vasprintf-tests: New file.
67458         * tests/test-vasprintf.c: New file.
67459
67460         * modules/vasnprintf-tests: New file.
67461         * tests/test-vasnprintf.c: New file.
67462
67463         * modules/vsnprintf-tests: New file.
67464         * tests/test-vsnprintf.c: New file.
67465
67466         * modules/snprintf-tests: New file.
67467         * tests/test-snprintf.c: New file.
67468
67469 2007-03-04  Bruno Haible  <bruno@clisp.org>
67470
67471         Compile relocatable.c only if --enable-relocatable is specified.
67472         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67473         gl_RELOCATABLE_LIBRARY.
67474         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67475         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67476         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67477         gl_RELOCATABLE_LIBRARY.
67478         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67479         (Makefile.am): Remove lib_SOURCES.
67480         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67481         gl_RELOCATABLE_LIBRARY.
67482         (Makefile.am): Remove lib_SOURCES.
67483         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67484         always.
67485         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67486         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67487
67488 2007-03-04  Bruno Haible  <bruno@clisp.org>
67489
67490         * modules/argmatch-tests: New file.
67491         * tests/test-argmatch.c: New file.
67492
67493         * tests/test-allocsa.c (main): Halve the number of loop runs.
67494
67495         * modules/alloca-opt-tests: New file.
67496         * tests/test-alloca-opt.c: New file.
67497
67498 2007-03-04  Jim Meyering  <jim@meyering.net>
67499
67500         Work around difference between Linux ACLs and Solaris 10 ZFS.
67501         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67502         for EINVAL.
67503
67504 2007-03-03  Bruno Haible  <bruno@clisp.org>
67505
67506         * modules/relocatable-prog (Depends-on): Add back progreloc's
67507         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67508
67509 2007-03-03  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67512         * modules/relocatable-lib: New file.
67513
67514 2007-03-03  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/relocatable-prog: Renamed from modules/relocatable.
67517         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67518
67519 2007-03-03  Bruno Haible  <bruno@clisp.org>
67520
67521         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67522         m4/relocatable-lib.m4.
67523         (Depends-on): Remove 'relocatable'.
67524         (configure.ac): Add gl_RELOCATABLE_NOP.
67525
67526 2007-03-03  Bruno Haible  <bruno@clisp.org>
67527
67528         * modules/relocatable-prog-wrapper: New file.
67529         * modules/relocatable (Depends-on): Add it. Remove all other
67530         dependencies except progname.
67531         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67532
67533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67534         (gl_FUNC_STRERROR): Nop.
67535         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67536
67537         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67538         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67539
67540         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67541         (gl_FUNC_READLINK): Update.
67542
67543         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67544
67545 2007-03-03  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67548         * modules/xreadlink (Depends-on): Add unistd.
67549         * modules/xreadlink-with-size (Depends-on): Likewise.
67550
67551 2007-03-03  Bruno Haible  <bruno@clisp.org>
67552
67553         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67554         extracted from gt_FUNC_SETENV.
67555         (gt_FUNC_SETENV): Remove macro.
67556         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67557         remove gt_FUNC_SETENV.
67558
67559 2007-03-03  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67562         ENABLE_RELOCATABLE here.
67563         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67564
67565 2007-03-03  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67568         * tests/test-rbtreehash_list.c: Include progname.h.
67569         (main): Call set_program_name.
67570
67571         * modules/rbtree-oset-tests (Depends-on): Add progname.
67572         * tests/test-rbtree_oset.c: Include progname.h.
67573         (main): Call set_program_name.
67574
67575         * modules/rbtree-list-tests (Depends-on): Add progname.
67576         * tests/test-rbtree_list.c: Include progname.h.
67577         (main): Call set_program_name.
67578
67579         * modules/linked-list-tests (Depends-on): Add progname.
67580         * tests/test-linked_list.c: Include progname.h.
67581         (main): Call set_program_name.
67582
67583 2007-03-03  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67586         All uses of __restrict changed to _Restrict_.
67587         * lib/glob_.h (__restrict): Remove macro.
67588
67589 2007-03-02  Bruno Haible  <bruno@clisp.org>
67590
67591         * modules/gettext (configure.ac): Require gettext infrastructure
67592         from version 0.16.1.
67593
67594 2007-03-02  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/linkedhash-list-tests (Depends-on): Add progname.
67597         * tests/test-linkedhash_list.c: Include progname.h.
67598         (main): Call set_program_name.
67599
67600         * modules/carray-list-tests (Depends-on): Add progname.
67601         * tests/test-carray_list.c: Include progname.h.
67602         (main): Call set_program_name.
67603
67604         * modules/avltreehash-list-tests (Depends-on): Add progname.
67605         * tests/test-avltreehash_list.c: Include progname.h.
67606         (main): Call set_program_name.
67607
67608         * modules/avltree-oset-tests (Depends-on): Add progname.
67609         * tests/test-avltree_oset.c: Include progname.h.
67610         (main): Call set_program_name.
67611
67612         * modules/avltree-list-tests (Depends-on): Add progname.
67613         * tests/test-avltree_list.c: Include progname.h.
67614         (main): Call set_program_name.
67615
67616         * modules/array-oset-tests (Depends-on): Add progname.
67617         * tests/test-array_oset.c: Include progname.h.
67618         (main): Call set_program_name.
67619
67620         * modules/array-list-tests (Depends-on): Add progname.
67621         * tests/test-array_list.c: Include progname.h.
67622         (main): Call set_program_name.
67623
67624         * modules/argp-tests (Depends-on): Add progname.
67625         * tests/test-argp.c: Include argp.h first. Include progname.h.
67626         (main): Call set_program_name.
67627
67628 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * doc/gnulib-tool.texi (Initial import): Reword description of
67631         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67632         limited effect even if defined after the first system include.
67633
67634 2007-03-01  Bruno Haible  <bruno@clisp.org>
67635
67636         * build-aux/config.libpath: Update to libtool-1.5.22.
67637         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67638
67639 2007-03-01  Bruno Haible  <bruno@clisp.org>
67640
67641         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67642         foo_CFLAGS.
67643         Reported by Ralf Wildenhues.
67644
67645 2007-03-01  Bruno Haible  <bruno@clisp.org>
67646
67647         * build-aux/install-reloc: Remove object files left over by some
67648         compilers.
67649         Reported by Ralf Wildenhues.
67650
67651 2007-03-01  Bruno Haible  <bruno@clisp.org>
67652
67653         * build-aux/install-reloc: Break long lines.
67654
67655 2007-03-01  Bruno Haible  <bruno@clisp.org>
67656
67657         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67658         Reported by Ralf Wildenhues.
67659
67660 2007-03-01  Bruno Haible  <bruno@clisp.org>
67661
67662         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67663         include ordering constraints.
67664
67665 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67669         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67670         as another example.
67671         * lib/time_.h: Fix misspelling.
67672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67673         Require gl_HEADER_TIME_H_DEFAULTS.
67674         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67675         * m4/time_r.m4 (gl_TIME_R): Likewise.
67676         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67677
67678 2007-03-01  Bruno Haible  <bruno@clisp.org>
67679
67680         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67681         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67682
67683 2007-03-01  Jim Meyering  <jim@meyering.net>
67684
67685         * modules/xreadlink (Maintainer): Add my name.
67686         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67687
67688 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67689             Bruno Haible  <bruno@clisp.org>
67690
67691         * build-aux/install-reloc: Compile also c-ctype.c.
67692         * build-aux/relocatable.sh.in: New file.
67693         * doc/relocatable.texi: New file.
67694         * doc/relocatable-maint.texi: New file.
67695         * doc/gnulib.texi: Include relocatable-maint.texi.
67696         * lib/progreloc.c: Include unistd.h unconditionally.
67697         * lib/relocwrapper.c: Include unistd.h unconditionally.
67698         Include c-ctype.h.
67699         (add_dotbin): Use c_tolower.
67700         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67701         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67702         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67703         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67704         to m4/relocatable-lib.m4.
67705         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67706         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67707         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67708         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67709         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67710         * modules/relocatable: New file.
67711         * modules/relocatable-lib: New file.
67712         * modules/relocatable-script: New file.
67713
67714 2007-02-28  Bruno Haible  <bruno@clisp.org>
67715
67716         Import --enable-relocatable infrastructure.
67717         * build-aux/config.libpath: New file, from GNU gettext.
67718         * build-aux/install-reloc: New file, from GNU gettext.
67719         * build-aux/reloc-ldflags: New file, from GNU gettext.
67720         * lib/relocatable.h: New file, from GNU gettext.
67721         * lib/relocatable.c: New file, from GNU gettext.
67722         * lib/relocwrapper.c: New file, from GNU gettext.
67723         * m4/relocatable.m4: New file, from GNU gettext.
67724
67725 2007-02-28  Bruno Haible  <bruno@clisp.org>
67726
67727         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67728
67729         * modules/xreadlink: New file, from GNU gettext with modifications.
67730         * lib/xreadlink.c: New file, from GNU gettext.
67731         * lib/xreadlink.h: Add comments.
67732         (xreadlink): New declaration.
67733
67734         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67735         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67736         lib/xreadlink-with-size.c.
67737         (configure.ac): Remove gl_XREADLINK invocation.
67738         (Makefile.am): Augment lib_SOURCES.
67739         * m4/xreadlink.m4: Remove file.
67740         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67741         (xreadlink_with_size): Renamed from xreadink.
67742         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67743         * modules/canonicalize (Depends-on): Replace xreadlink with
67744         xreadlink-with-size.
67745         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67746
67747 2007-02-25  Jim Meyering  <jim@meyering.net>
67748
67749         * build-aux/announce-gen: When complaining about excess arguments,
67750         list them.
67751
67752 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67753
67754         * README: Document signed integer overflow situation more
67755         accurately.
67756
67757 2007-02-25  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67760         'a' or 'A' conversion.
67761
67762 2007-02-25  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/filename: Renamed from modules/pathname.
67765         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67766         lib/concatpath.c with lib/concat-filename.c.
67767         (Makefile.am): Update.
67768         (Include): Replace pathname.h with filename.h.
67769         * lib/filename.h: Renamed from lib/pathname.h.
67770         (concatenated_filename): Renamed from concatenated_pathname.
67771         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67772         (concatenated_filename): Renamed from concatenated_pathname.
67773         * lib/findprog.c: Include filename.h instead of pathname.h.
67774         (find_in_path): Update.
67775         * lib/javacomp.c: Include filename.h instead of pathname.h.
67776         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67777         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67778         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67779         is_oldgcj_14_13_usable, is_javac_usable): Update.
67780         * lib/javaexec.c: Include filename.h instead of pathname.h.
67781         (execute_java_class): Update.
67782         * modules/findprog: Update.
67783         * modules/javacomp: Update.
67784         * modules/javaexec: Update.
67785         * MODULES.html.sh (File system functions): Add 'filename', remove
67786         'pathname'.
67787
67788 2007-02-25  Bruno Haible  <bruno@clisp.org>
67789
67790         * modules/printf-frexpl-tests: New file.
67791         * tests/test-printf-frexpl.c: New file.
67792
67793         * modules/printf-frexpl: New file.
67794         * lib/printf-frexpl.h: New file.
67795         * lib/printf-frexpl.c: New file.
67796         * m4/printf-frexpl.m4: New file.
67797
67798 2007-02-25  Bruno Haible  <bruno@clisp.org>
67799
67800         * modules/printf-frexp-tests: New file.
67801         * tests/test-printf-frexp.c: New file.
67802
67803         * modules/printf-frexp: New file.
67804         * lib/printf-frexp.h: New file.
67805         * lib/printf-frexp.c: New file.
67806         * m4/printf-frexp.m4: New file.
67807
67808 2007-02-25  Bruno Haible  <bruno@clisp.org>
67809
67810         Assume automake >= 1.10 for the tests.
67811         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67812         * modules/arctwo-tests: Likewise.
67813         * modules/argp-tests: Likewise.
67814         * modules/avltree-list-tests: Likewise.
67815         * modules/avltree-oset-tests: Likewise.
67816         * modules/avltreehash-list-tests: Likewise.
67817         * modules/carray-list-tests: Likewise.
67818         * modules/crc-tests: Likewise.
67819         * modules/des-tests: Likewise.
67820         * modules/gc-arcfour-tests: Likewise.
67821         * modules/gc-arctwo-tests: Likewise.
67822         * modules/gc-des-tests: Likewise.
67823         * modules/gc-hmac-md5-tests: Likewise.
67824         * modules/gc-hmac-sha1-tests: Likewise.
67825         * modules/gc-md2-tests: Likewise.
67826         * modules/gc-md4-tests: Likewise.
67827         * modules/gc-md5-tests: Likewise.
67828         * modules/gc-pbkdf2-sha1-tests: Likewise.
67829         * modules/gc-rijndael-tests: Likewise.
67830         * modules/gc-sha1-tests: Likewise.
67831         * modules/gc-tests: Likewise.
67832         * modules/getaddrinfo-tests: Likewise.
67833         * modules/hmac-md5-tests: Likewise.
67834         * modules/hmac-sha1-tests: Likewise.
67835         * modules/linked-list-tests: Likewise.
67836         * modules/linkedhash-list-tests: Likewise.
67837         * modules/lock-tests: Likewise.
67838         * modules/md2-tests: Likewise.
67839         * modules/md4-tests: Likewise.
67840         * modules/md5-tests: Likewise.
67841         * modules/rbtree-list-tests: Likewise.
67842         * modules/rbtree-oset-tests: Likewise.
67843         * modules/rbtreehash-list-tests: Likewise.
67844         * modules/read-file-tests: Likewise.
67845         * modules/rijndael-tests: Likewise.
67846         * modules/stdint-tests: Likewise.
67847         * modules/tls-tests: Likewise.
67848
67849 2007-02-24  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67852         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67853         function; instead check whether isnan with a double argument links.
67854         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67855         function; instead check whether isnan with a 'long double' argument
67856         links.
67857         Reported by Eric Blake <ebb9@byu.net>.
67858
67859 2007-02-24  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67862         defined.
67863         * lib/isnanl.c: Remove all code. Just include isnan.c.
67864         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67865
67866 2007-02-25  Jim Meyering  <jim@meyering.net>
67867
67868         Avoid conflicting types for 'unsetenv' on FreeBSD.
67869         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67870         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67871         in stdlib.h.
67872
67873 2007-02-24  Bruno Haible  <bruno@clisp.org>
67874
67875         * modules/isnanl-nolibm-tests: New file.
67876         * tests/test-isnanl.c: New file.
67877
67878         * modules/isnanl-nolibm: New file.
67879         * lib/isnanl.h: New file.
67880         * lib/isnanl.c: New file.
67881         * m4/isnanl.m4: New file.
67882
67883 2007-02-24  Bruno Haible  <bruno@clisp.org>
67884
67885         * modules/isnan-nolibm-tests: New file.
67886         * tests/test-isnan.c: New file.
67887
67888         * modules/isnan-nolibm: New file.
67889         * lib/isnan.h: New file.
67890         * lib/isnan.c: New file.
67891         * m4/isnan.m4: New file.
67892
67893 2007-02-24  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67896         assume that an exponent fits in 20 bits.
67897
67898 2007-02-24  Jim Meyering  <jim@meyering.net>
67899
67900         * m4/regex.m4: Update the description of the configure-time option,
67901         --without-included-regex, to state accurately what the defaults are,
67902         and perhaps to give people an idea why using this option is risky.
67903
67904 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67907         loops on small arguments.  This attempts to avoid the problem
67908         Bruno Haible reported for AIX 4.3.2 in
67909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67910
67911 2007-02-23  Bruno Haible  <bruno@clisp.org>
67912
67913         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67914         Needed for help2man.
67915
67916 2007-02-23  Karl Berry  <karl@gnu.org>
67917
67918         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67919         exists, foo.h should be cvs-ignored, not committed.
67920
67921 2007-02-23  Eric Blake  <ebb9@byu.net>
67922
67923         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67924         * lib/stat-time.h (includes): Likewise.
67925         * lib/utimecmp.c (includes): Likewise.
67926         * lib/utimens.h (includes): Likewise.
67927         * lib/getdate.y (includes): Also include "timespec.h" for use
67928         internal to the module.
67929         * modules/utimens (Depends-on): Revert yesterday's patch.
67930         * modules/nanosleep (Depends-on): Add missing dependency.
67931
67932 2007-02-22  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/glob.c: Don't include getlogin_r.h.
67935
67936 2007-02-22  Jim Meyering  <jim@meyering.net>
67937
67938         * modules/utimens (Depends-on): Add timespec, required for
67939         utimens.h's inclusion of timespec.h.
67940
67941 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67944         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67945         Schwab in
67946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67947         I'll try to think of a better way to fix the Solaris problem.
67948
67949         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67950         like glibc; on Solaris 10, it fails with errno == EINVAL.
67951         POSIX says the behavior is unspecified if the first argument is NULL,
67952         so play it safe and never pass NULL to the system getcwd.
67953
67954 2007-02-21  Jim Meyering  <jim@meyering.net>
67955
67956         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67957         of gettimeofday.  It would conflict with the one now always
67958         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67959         an IRIX 6.5 build failure.
67960
67961 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         Minor fixups to port to Solaris 10 with Sun C 5.8.
67964         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67965         * modules/getcwd (Depends-on): Add dirfd.
67966         * lib/putenv.c (putenv): #undef it.
67967         (rpl_putenv): New decl.
67968         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67969
67970 2007-02-20  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/stdio-tests: New file.
67973         * tests/test-stdio.c: New file.
67974
67975         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67976         (Depends-on): Add stdio.
67977         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67978         (Include): Use <stdio.h> instead of vsnprintf.h.
67979         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67980         HAVE_DECL_VSNPRINTF.
67981         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67982
67983         * modules/snprintf (Files): Remove lib/snprintf.h.
67984         (Depends-on): Add stdio.
67985         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67986         (Include): Use <stdio.h> instead of snprintf.h.
67987         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67988         HAVE_DECL_SNPRINTF.
67989         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67990         * lib/getaddrinfo.c: Likewise.
67991
67992         * modules/stdio: New file.
67993         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67994         * lib/snprintf.h: Remove file.
67995         * lib/vsnprintf.h: Remove file.
67996         * lib/.cppi-disable: Remove snprintf.h.
67997         * m4/stdio_h.m4: New file.
67998         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67999
68000 2007-02-20  Jim Meyering  <jim@meyering.net>
68001
68002         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68003         used by e.g., mingw.  From Bruno Haible.
68004
68005 2007-02-19  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68008         warnings.
68009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68010
68011 2007-02-19  Bruno Haible  <bruno@clisp.org>
68012
68013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68014         from mingw users.
68015
68016 2007-02-19  Bruno Haible  <bruno@clisp.org>
68017
68018         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68019         warnings.
68020         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68021
68022 2007-02-19  Jim Meyering  <jim@meyering.net>
68023
68024         Don't use FD after a successful "fdopendir (fd)".
68025         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68026         Reset it by calling dirfd on the just-obtained DIR*.
68027
68028         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68029         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68030
68031 2007-02-18  Bruno Haible  <bruno@clisp.org>
68032
68033         * lib/readlink.c: Include <unistd.h>.
68034         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68035         HAVE_READLINK.
68036         * modules/readlink (Depends-on): Add unistd.
68037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68038         (Include): Add <unistd.h>.
68039
68040         * lib/getlogin_r.h: Remove file.
68041         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68042         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68043         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68044         HAVE_DECL_GETLOGIN_R.
68045         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68047         (Include): Use <unistd.h> instead of getlogin_r.h.
68048
68049         * lib/getcwd.h: Remove file.
68050         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68051         * lib/xgetcwd.c: Likewise.
68052         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68053         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68054         * modules/getcwd (Files): Remove lib/getcwd.h.
68055         (Depends-on): Add unistd.
68056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68057         (Include): Use <unistd.h> instad of getcwd.h.
68058
68059         * lib/ftruncate.c: Include <unistd.h> first.
68060         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68061         Set HAVE_FTRUNCATE.
68062         * modules/ftruncate (Depends-on): Add unistd.
68063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68064
68065         * lib/fchdir.c: Include <unistd.h> first.
68066         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68068         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68069         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68070         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68071
68072         * lib/dup2.c: Include <unistd.h> first.
68073         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68074         HAVE_DUP2.
68075         * modules/dup2 (Depends-on): Add unistd.
68076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68077
68078         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68079         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68080         REPLACE_CHOWN. Don't define chown as a macro here.
68081         * modules/chown (Depends-on): Add unistd.
68082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68083
68084         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68085         Add definition for GL_LINK_WARNING.
68086         (chown, dup2): New declarations.
68087         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68088         link warning.
68089         (ftruncate): New declaration.
68090         (getcwd): New declaration, taken from old getcwd.h.
68091         (getlogin_r): New declaration, taken from old getlogin_r.h.
68092         (readlink): New declaration.
68093         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68094         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68095         (gl_PREREQ_UNISTD): Remove macro.
68096         (gl_UNISTD_MODULE_INDICATOR): New macro.
68097         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68098         many new variables. Don't set UNISTD_H.
68099         * modules/unistd (Description): Change.
68100         (Depends-on): Add link-warning.
68101         (configure.ac): Update.
68102         (Makefile.am): Create unistd.h always. Substitute many new variables
68103         into it.
68104
68105 2007-02-18  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68108         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68109         HAVE_GETSUBOPT.
68110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68111         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68112         * lib/getsubopt.h: Remove file.
68113         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68114         (Depends-on): Add stdlib.
68115         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68116         (Includes): Use <stdlib.h> instead of getsubopt.h.
68117         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68118         Set HAVE_GETSUBOPT.
68119         * lib/getsubopt.c: Don't include getsubopt.h.
68120
68121 2007-02-18  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/fchdir (Depends-on): Add dup2.
68124
68125 2007-02-18  Bruno Haible  <bruno@clisp.org>
68126
68127         * lib/stdlib_.h: Handle glibc's special invocation convention
68128         specially.
68129
68130 2007-02-18  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/stdlib-tests: New file.
68133         * tests/test-stdlib.c: New file.
68134
68135         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68136         (Depends-on): Add stdlib.
68137         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68138         (Includes): Use <stdlib.h> instead of mkstemp.h.
68139         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68140         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68141         * lib/mkstemp.c: Don't include mkstemp.h.
68142         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68143         * lib/stdlib--.h: Don't include mkstemp.h.
68144
68145         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68146         (Depends-on): Add stdlib.
68147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68148         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68149         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68150         HAVE_MKDTEMP.
68151         * lib/mkdtemp.c: Don't include mkdtemp.h.
68152         * lib/clean-temp.c: Don't include mkdtemp.h.
68153
68154         * modules/exit (Files): Remove lib/exit.h.
68155         (Depends-on): Add stdlib.
68156         (Makefile.am): Remove lib_SOURCES.
68157         (Include): Use <stdlib.h> instead of exit.h.
68158         * lib/argmatch.c: Don't include exit.h.
68159         * lib/execute.c: Likewise.
68160         * lib/pagealign_alloc.c: Likewise.
68161         * lib/pipe.c: Likewise.
68162         * lib/wait-process.c: Likewise.
68163         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68164         * lib/exitfail.c: Likewise.
68165         * lib/savewd.c: Likewise.
68166         * lib/xsetenv.c: Likewise.
68167
68168         * modules/stdlib: New file.
68169         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68170         and extra comments about mkstemp().
68171         * lib/exit.h: Remove file.
68172         * lib/mkdtemp.h: Remove file.
68173         * lib/mkstemp.h: Remove file.
68174         * m4/stdlib_h.m4: New file.
68175         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68176
68177 2007-02-18  Bruno Haible  <bruno@clisp.org>
68178
68179         * modules/math-tests: New file.
68180         * tests/test-math.c: New file.
68181
68182         * modules/math: New file.
68183         * modules/mathl (Files): Remove lib/mathl.h.
68184         (Depends-on): Add math.
68185         (Makefile.am): Don't mention mathl.h.
68186         (Include): Use <math.h> instead of mathl.h.
68187         * lib/math_.h: New file.
68188         * lib/mathl.h: Remove file.
68189         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68190         mathl.h.
68191         * lib/asinl.c: Likewise.
68192         * lib/atanl.c: Likewise.
68193         * lib/ceill.c: Likewise.
68194         * lib/cosl.c: Likewise.
68195         * lib/expl.c: Likewise.
68196         * lib/floorl.c: Likewise.
68197         * lib/frexpl.c: Likewise.
68198         * lib/ldexpl.c: Likewise.
68199         * lib/logl.c: Likewise.
68200         * lib/sincosl.c: Likewise.
68201         * lib/sinl.c: Likewise.
68202         * lib/sqrtl.c: Likewise.
68203         * lib/tanl.c: Likewise.
68204         * lib/trigl.c: Likewise.
68205         * m4/math_h.m4: New file.
68206         * MODULES.html.sh (Mathematics): Add math.
68207
68208 2007-02-17  Bruno Haible  <bruno@clisp.org>
68209
68210         * modules/wctype-tests: New file.
68211         * tests/test-wctype.c: New file.
68212
68213         * modules/wchar-tests: New file.
68214         * tests/test-wchar.c: New file.
68215
68216         * modules/unistd-tests: New file.
68217         * tests/test-unistd.c: New file.
68218
68219         * modules/time-tests: New file.
68220         * tests/test-time.c: New file.
68221
68222         * modules/sysexits-tests: New file.
68223         * tests/test-sysexits.c: New file.
68224
68225         * modules/sys_time-tests: New file.
68226         * tests/test-sys_time.c: New file.
68227
68228         * modules/sys_stat-tests: New file.
68229         * tests/test-sys_stat.c: New file.
68230
68231         * modules/sys_socket-tests: New file.
68232         * tests/test-sys_socket.c: New file.
68233
68234         * modules/sys_select-tests: New file.
68235         * tests/test-sys_select.c: New file.
68236
68237         * modules/string-tests: New file.
68238         * tests/test-string.c: New file.
68239
68240         * modules/stdbool-tests: New file.
68241         * tests/test-stdbool.c: New file.
68242
68243         * modules/netinet_in-tests: New file.
68244         * tests/test-netinet_in.c: New file.
68245
68246         * modules/inttypes-tests: New file.
68247         * tests/test-inttypes.c: New file.
68248
68249         * modules/fcntl-tests: New file.
68250         * tests/test-fcntl.c: New file.
68251
68252         * modules/byteswap-tests: New file.
68253         * tests/test-byteswap.c: New file.
68254
68255         * modules/arpa_inet-tests: New file.
68256         * tests/test-arpa_inet.c: New file.
68257
68258 2007-02-17  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68261         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68262         if the corresponding module is not enabled. Emit link warnings if
68263         the function is used nevertheless.
68264         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68265         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68266         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68267         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68268         * modules/inttypes (Depends-on): Add link-warning.
68269         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68270         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68271         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68272         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68273         * modules/imaxdiv (configure.ac): Likewise.
68274         * modules/strtoimax (configure.ac): Likewise.
68275         * modules/strtoumax (configure.ac): Likewise.
68276
68277 2007-02-17  Bruno Haible  <bruno@clisp.org>
68278
68279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68280         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68281         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68282         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68283
68284 2007-02-17  Bruno Haible  <bruno@clisp.org>
68285
68286         * modules/link-warning: New file.
68287         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68288         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68289         * modules/string (Depends-on): Add link-warning.
68290         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68291         string.h.
68292         * MODULES.html.sh (Support for building libraries and executables): Add
68293         link-warning.
68294
68295 2007-02-17  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68298         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68299         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68300         long lines.
68301
68302 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68303             Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/tmpfile: New file.
68306         * lib/tmpfile.c: New file.
68307         * m4/tmpfile.m4: New file.
68308         * MODULES.html.sh (func_all_modules): New section "Input/output".
68309
68310 2007-02-15  Bruno Haible  <bruno@clisp.org>
68311
68312         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68313         (supports_delete_on_close): New function.
68314         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68315
68316 2007-02-14  Bruno Haible  <bruno@clisp.org>
68317
68318         * modules/mbspcasecmp-tests: New file.
68319         * tests/test-mbspcasecmp.sh: New file.
68320         * tests/test-mbspcasecmp.c: New file.
68321
68322         New module mbspcasecmp.
68323         * modules/mbspcasecmp: New file.
68324         * lib/mbspcasecmp.c: New file.
68325         * lib/string_.h (strncasecmp): Change warning message.
68326         (mbspcasecmp): New declaration.
68327         * m4/mbspcasecmp.m4: New file.
68328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68329         GNULIB_MBSPCASECMP.
68330         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68331         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68332
68333 2007-02-14  Bruno Haible  <bruno@clisp.org>
68334
68335         * modules/mbsncasecmp-tests: New file.
68336         * tests/test-mbsncasecmp.sh: New file.
68337         * tests/test-mbsncasecmp.c: New file.
68338
68339         New module mbsncasecmp.
68340         * modules/mbsncasecmp: New file.
68341         * lib/mbsncasecmp.c: New file.
68342         * lib/string_.h (mbsncasecmp): New declaration.
68343         * m4/mbsncasecmp.m4: New file.
68344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68345         GNULIB_MBSNCASECMP.
68346         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68347         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68348
68349 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68352         Verify that it doesn't overlap with our flags.
68353         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68354         do not have the desired effect in multibyte locales; instead, use
68355         mbscasecmp.
68356         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68357         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68358         we don't require GNU fnmatch ourselves (if our users require it, they
68359         should do so explicitly).
68360
68361         Fix regex code so it doesn't rely on strcasecmp.
68362         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68363         Otherwise, include gnulib's langinfo.h.
68364         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68365         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68366         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68367         * modules/regex (FILES): Remove m4/codeset.m4.
68368         (Depends-on): Add localcharset.  Remove strcase.
68369
68370 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68371
68372         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68373         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68374
68375 2007-02-13  Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68379
68380 2007-02-12  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68383         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68384         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68385         time warning rather than a link error.
68386
68387 2007-02-12  Bruno Haible  <bruno@clisp.org>
68388
68389         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68390         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68391         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68392
68393 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68396         args, not 2.
68397
68398 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         New module 'time', so that apps can include <time.h> as per
68401         POSIX and GNU instead of separate include files like time_r.h
68402         and timegm.h.  This implementation tries out a simpler approach
68403         for replacing decls in standard include files (as compared to
68404         the string module), somewhat as an experiment.
68405
68406         * config/srclist.txt: Comment out mktime.c for now.
68407         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68408         since it doesn't apply any more.  Use generic wording instead.
68409         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68410         'time'.
68411         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68412         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68413         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68414         Don't include <sys/types.h>; no longer needed since we assume C89.
68415         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68416         * lib/strftime.c: Likewise.
68417         * lib/time_r.c: Likewise.
68418         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68419         * lib/nanosleep.c: Include <time.h> first, to check interface.
68420         * lib/strptime.c: Likewise.
68421         * lib/time_r.c: Likewise.
68422         * lib/timegm.c: Likewise.
68423         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68424         needed.
68425         * lib/timegm.c: Don't include timegm.h; no longer needed.
68426         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68427         time.h now handles any problems in that area.
68428         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68429         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68430         that time.h defines struct timespec.
68431         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68432         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68433         handles that.
68434         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68435         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68436         needed.  Set REPLACE_LOCALTIME.
68437         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68438         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68439         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68440         nanosleep; time_h.m4 now does that.  Don't require
68441         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68442         module handles this now.
68443         * modules/getdate (Depends-on): Remove timespec.  Add time.
68444         * modules/nanosleep (Depends-on): Likewise.
68445         * modules/stat-time (Depends-on): Likewise.
68446         * modules/nanosleep (Include): Include time.h, not timespec.h.
68447         * modules/strptime (Files): Remove lib/strptime.h.
68448         (Depends-on): Add extensions, time.
68449         (Include): Include time.h, not strptime.h.
68450         * modules/time_r (Files): Remove lib/time_r.h.
68451         (Depends-on): Add time.
68452         (Include): Include time.h, not time_r.h.
68453         * modules/timegm: Likewise.
68454         * modules/timespec (Description): Now does timespec-related decls
68455         of our own, instead of struct timespec itself.
68456         (Depends-on): Add time; remove extensions.
68457         (Maintainer): Add self.
68458         * modules/utimecmp (Depends-on): Add time; remove timespec.
68459         * modules/utimens (Depends-on): Likewise.
68460         * modules/xnanosleep (Depends-on): Likewise.
68461
68462 2007-02-11  Bruno Haible  <bruno@clisp.org>
68463
68464         * lib/c-strstr.c: Include allocsa.h.
68465         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68466         * lib/c-strcasestr.c: Include allocsa.h.
68467         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68468         * lib/strcasestr.c: Include allocsa.h.
68469         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68470         * lib/mbsstr.c: Include allocsa.h.
68471         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68472         allocsa/freesa instead of malloc/free.
68473         * lib/mbscasestr.c: Include allocsa.h.
68474         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68475         allocsa/freesa instead of malloc/free.
68476         * modules/c-strstr (Depends-on): Add allocsa.
68477         * modules/c-strcasestr (Depends-on): Likewise.
68478         * modules/strcasestr (Depends-on): Likewise.
68479         * modules/mbsstr (Depends-on): Likewise.
68480         * modules/mbscasestr (Depends-on): Likewise.
68481
68482 2007-02-11  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68485
68486         * modules/mbsspn-tests: New file.
68487         * tests/test-mbsspn.sh: New file.
68488         * tests/test-mbsspn.c: New file.
68489
68490 2007-02-11  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68493
68494         * modules/mbspbrk-tests: New file.
68495         * tests/test-mbspbrk.sh: New file.
68496         * tests/test-mbspbrk.c: New file.
68497
68498 2007-02-11  Bruno Haible  <bruno@clisp.org>
68499
68500         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68501         unneeded cast.
68502
68503         * modules/mbscspn-tests: New file.
68504         * tests/test-mbscspn.sh: New file.
68505         * tests/test-mbscspn.c: New file.
68506
68507 2007-02-11  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/mbscasecmp-tests: New file.
68510         * tests/test-mbscasecmp.sh: New file.
68511         * tests/test-mbscasecmp.c: New file.
68512
68513 2007-02-11  Bruno Haible  <bruno@clisp.org>
68514
68515         Ensure O(n) worst-case complexity of mbscasestr.
68516         * lib/mbscasestr.c: Include stdbool.h.
68517         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68518         functions.
68519         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68520         the bookkeeping indicates that it's worth it.
68521         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68522
68523         * modules/mbscasestr-tests: New file.
68524         * tests/test-mbscasestr1.c: New file.
68525         * tests/test-mbscasestr2.sh: New file.
68526         * tests/test-mbscasestr2.c: New file.
68527         * tests/test-mbscasestr3.sh: New file.
68528         * tests/test-mbscasestr3.c: New file.
68529         * tests/test-mbscasestr4.sh: New file.
68530         * tests/test-mbscasestr4.c: New file.
68531         * m4/locale-tr.m4: New file.
68532
68533 2007-02-11  Bruno Haible  <bruno@clisp.org>
68534
68535         Ensure O(n) worst-case complexity of mbsstr.
68536         * lib/mbsstr.c: Include stdbool.h.
68537         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68538         functions.
68539         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68540         bookkeeping indicates that it's worth it.
68541         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68542
68543         * modules/mbsstr-tests: New file.
68544         * tests/test-mbsstr1.c: New file.
68545         * tests/test-mbsstr2.sh: New file.
68546         * tests/test-mbsstr2.c: New file.
68547         * tests/test-mbsstr3.sh: New file.
68548         * tests/test-mbsstr3.c: New file.
68549         * m4/locale-fr.m4: New file.
68550
68551 2007-02-11  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/mbsrchr.c (mbsrchr): Fix bug.
68554
68555         * modules/mbsrchr-tests: New file.
68556         * tests/test-mbsrchr.sh: New file.
68557         * tests/test-mbsrchr.c: New file.
68558
68559 2007-02-11  Bruno Haible  <bruno@clisp.org>
68560
68561         * lib/mbschr.c (mbschr): Fix bug.
68562
68563         * modules/mbschr-tests: New file.
68564         * tests/test-mbschr.sh: New file.
68565         * tests/test-mbschr.c: New file.
68566         * m4/locale-zh.m4: New file.
68567
68568 2007-02-11  Bruno Haible  <bruno@clisp.org>
68569
68570         Support for copying multibyte string iterators.
68571         * lib/mbiter.h: Include <string.h>.
68572         (mbiter_multi_copy): New function.
68573         (mbi_copy): New macro.
68574         * lib/mbuiter.h: Include <string.h>.
68575         (mbuiter_multi_copy): New function.
68576         (mbui_copy): New macro.
68577
68578 2007-02-11  Bruno Haible  <bruno@clisp.org>
68579
68580         New module mbslen.
68581         * modules/mbslen: New file.
68582         * lib/mbslen.c: New file.
68583         * lib/string_.h (mbslen): New declaration.
68584         * m4/mbslen.m4: New file.
68585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68586         GNULIB_MBSLEN.
68587         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68588         * MODULES.html.sh (Internationalization functions): Add mbslen.
68589
68590 2007-02-11  Bruno Haible  <bruno@clisp.org>
68591
68592         Ensure O(n) worst-case complexity of strcasestr substitute.
68593         * lib/strcasestr.c: Include stdbool.h.
68594         (knuth_morris_pratt): New function.
68595         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68596         bookkeeping indicates that it's worth it.
68597         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68598
68599         * modules/strcasestr-tests: New file.
68600         * tests/test-strcasestr.c: New file.
68601
68602 2007-02-11  Bruno Haible  <bruno@clisp.org>
68603
68604         Ensure O(n) worst-case complexity of c_strcasestr.
68605         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68606         (knuth_morris_pratt): New function.
68607         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68608         the bookkeeping indicates that it's worth it.
68609         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68610
68611         * modules/c-strcasestr-tests: New file.
68612         * tests/test-c-strcasestr.c: New file.
68613
68614 2007-02-11  Bruno Haible  <bruno@clisp.org>
68615
68616         Ensure O(n) worst-case complexity of c_strstr.
68617         * lib/c-strstr.c: Include stdbool.h, string.h.
68618         (knuth_morris_pratt): New function.
68619         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68620         bookkeeping indicates that it's worth it.
68621         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68622
68623         * lib/c-strstr.c: Complete rewrite for maintainability.
68624
68625         * modules/c-strstr-tests: New file.
68626         * tests/test-c-strstr.c: New file.
68627
68628 2007-02-11  Bruno Haible  <bruno@clisp.org>
68629
68630         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68631         5.2.1 and earlier, whereby \055 was treated just like the range
68632         delimiter '-'.
68633         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68634
68635 2007-02-08  Bruno Haible  <bruno@clisp.org>
68636
68637         * modules/regex (Depends-on): Add stdbool.
68638         Reported by Dalibor Topic <robilad@kaffe.org>.
68639
68640 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68643         Prefer returning from main to exiting from it.
68644         Remove unnecessary parens after sizeof.
68645
68646 2007-02-05  Bruno Haible  <bruno@clisp.org>
68647
68648         New module mbssep.
68649         * modules/mbssep: New file.
68650         * lib/mbssep.c: New file.
68651         * lib/string_.h (strsep): Add a conditional link warning.
68652         (mbssep): New declaration.
68653         * m4/mbssep.m4: New file.
68654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68655         GNULIB_MBSSEP.
68656         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68657         * MODULES.html.sh (Internationalization functions): Add mbssep.
68658
68659 2007-02-05  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68662         Optimize search in case of 1 delimiter.
68663
68664 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68665
68666         * lib/acl.h: Include sys/types.h before sys/acl.h.
68667
68668 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68669
68670         Merge upstream fix for glibc bugzilla #3957:
68671
68672         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68673
68674         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68675         bit for RE_HAT_LISTS_NOT_NEWLINE.
68676         (build_charclass_op): Remove bogus comment.
68677
68678 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68679
68680         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68681
68682 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68685         * lib/memmem.c [!defined _LIBC]: Include config.h.
68686
68687 2007-02-04  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68690         warning message.
68691
68692 2007-02-04  Bruno Haible  <bruno@clisp.org>
68693
68694         New module mbstok_r.
68695         * modules/mbstok_r: New file.
68696         * lib/mbstok_r.c: New file.
68697         * lib/string_.h (strtok_r): Change argument names to match the
68698         comments. Add a conditional link warning.
68699         (mbstok_r): New declaration.
68700         * m4/mbstok_r.m4: New file.
68701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68702         GNULIB_MBSTOK_R.
68703         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68704         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68705
68706 2007-02-04  Bruno Haible  <bruno@clisp.org>
68707
68708         New module mbsspn.
68709         * modules/mbsspn: New file.
68710         * lib/mbsspn.c: New file.
68711         * lib/string_.h (strspn): Add a conditional link warning.
68712         (mbsspn): New declaration.
68713         * m4/mbsspn.m4: New file.
68714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68715         GNULIB_MBSSPN.
68716         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68717         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68718
68719 2007-02-04  Bruno Haible  <bruno@clisp.org>
68720
68721         New module mbspbrk.
68722         * modules/mbspbrk: New file.
68723         * lib/mbspbrk.c: New file.
68724         * lib/string_.h (strpbrk): Add a conditional link warning.
68725         (mbspbrk): New declaration.
68726         * m4/mbspbrk.m4: New file.
68727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68728         GNULIB_MBSPBRK.
68729         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68730         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68731
68732 2007-02-04  Bruno Haible  <bruno@clisp.org>
68733
68734         New module mbscspn.
68735         * modules/mbscspn: New file.
68736         * lib/mbscspn.c: New file.
68737         * lib/string_.h (strcspn): Add a conditional link warning.
68738         (mbscspn): New declaration.
68739         * m4/mbscspn.m4: New file.
68740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68741         GNULIB_MBSCSPN.
68742         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68743         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68744
68745 2007-02-04  Bruno Haible  <bruno@clisp.org>
68746
68747         New module mbscasestr, reduced goal of strcasestr.
68748         * modules/mbscasestr: New file.
68749         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68750         (mbscasestr): Renamed from strcasestr.
68751         * lib/strcasestr.c: Don't include mbuiter.h.
68752         (strcasestr): Remove support for multibyte locales.
68753         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68754         Change the conditional link warning.
68755         (mbscasestr): New declaration.
68756         * m4/mbscasestr.m4: New file.
68757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68758         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68759         REPLACE_STRCASESTR.
68760         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68762         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68763         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68764         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68765         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68766         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68767         (Depends-on): Remove mbuiter.
68768         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68769
68770 2007-02-04  Bruno Haible  <bruno@clisp.org>
68771
68772         Simplify handling of strncasecmp.
68773         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68774         the conditional link warning.
68775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68776         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68777         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68778         * modules/strcase (configure.ac): Don't invoke
68779         gl_STRING_MODULE_INDICATOR.
68780         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68781
68782 2007-02-04  Bruno Haible  <bruno@clisp.org>
68783
68784         New module mbscasecmp, reduced goal of strcasecmp.
68785         * modules/mbscasecmp: New file.
68786         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68787         (mbscasecmp): Renamed from strcasecmp.
68788         * lib/strcasecmp.c: Don't include mbuiter.h.
68789         (strcasecmp): Remove support for multibyte locales.
68790         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68791         Change the conditional link warning.
68792         (mbscasecmp): New declaration.
68793         * m4/mbscasecmp.m4: New file.
68794         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68795         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68796         REPLACE_STRCASECMP.
68797         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68799         GNULIB_MBSCASECMP.
68800         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68801         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68802         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68803         (Depends-on): Remove mbuiter.
68804         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68805
68806 2007-02-04  Bruno Haible  <bruno@clisp.org>
68807
68808         New module mbsstr. Remove module strstr.
68809         * modules/mbsstr: New file.
68810         * modules/strstr: Remove file.
68811         * lib/mbsstr.c: Renamed from lib/strstr.c.
68812         (mbsstr): Renamed from strstr.
68813         * lib/string_.h (strstr): Remove declaration. Change the conditional
68814         link warning.
68815         (mbsstr): New declaration.
68816         * m4/mbsstr.m4: New file.
68817         * m4/strstr.m4: Remove file.
68818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68819         REPLACE_STRSTR.
68820         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68821         Don't initialize GNULIB_STRSTR.
68822         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68823         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68824         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68825         (Support for systems lacking ANSI C 89): Remove strstr.
68826
68827 2007-02-04  Bruno Haible  <bruno@clisp.org>
68828
68829         New module mbsrchr.
68830         * modules/mbsrchr: New file.
68831         * lib/mbsrchr.c: New file.
68832         * lib/string_.h (strrchr): Add a conditional link warning.
68833         (mbsrchr): New declaration.
68834         * m4/mbsrchr.m4: New file.
68835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68836         GNULIB_MBSRCHR.
68837         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68838         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68839
68840 2007-02-04  Bruno Haible  <bruno@clisp.org>
68841
68842         New module mbschr.
68843         * modules/mbschr: New file.
68844         * lib/mbschr.c: New file.
68845         * lib/string_.h (strchr): Add a conditional link warning.
68846         (mbschr): New declaration.
68847         * m4/mbschr.m4: New file.
68848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68849         GNULIB_MBSCHR.
68850         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68851         * MODULES.html.sh (Internationalization functions): Add mbschr.
68852
68853 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68856
68857         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68858
68859 2007-02-04  Bruno Haible  <bruno@clisp.org>
68860
68861         New module description section 'configure.ac-early'.
68862         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68863         (func_get_autoconf_early_snippet): New function.
68864         (func_import, func_create_testdir): Use it. Remove special cases for
68865         modules 'extensions' and 'lock'.
68866         * modules/extensions (configure.ac-early): Require
68867         gl_USE_SYSTEM_EXTENSIONS.
68868         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68869
68870 2007-02-04  Bruno Haible  <bruno@clisp.org>
68871
68872         Make use of gcj-4.3's -fsource and -ftarget option.
68873         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68874         and if so try the options -fsource and -ftarget.
68875         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68876         source_version, ftarget_option, target_version arguments.
68877         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68878         (is_envjavac_oldgcj_14_14_usable): Renamed from
68879         is_envjavac_gcj_14_14_usable.
68880         (is_envjavac_oldgcj_14_13_usable): Renamed from
68881         is_envjavac_gcj_14_13_usable.
68882         (is_gcj_present): Update.
68883         (is_gcj_43, is_gcj43_usable): New functions.
68884         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68885         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68886         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68887         try the options -fsource and -ftarget.
68888
68889 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68890
68891         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68892         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68893         larger value.
68894
68895 2007-02-03  Jim Meyering  <jim@meyering.net>
68896
68897         Give tools a better chance to allocate space for very large buffers.
68898         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68899
68900         Make pwd and readlink work also when run with an unreadable parent dir
68901         on systems with openat support.
68902         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68903         provided getcwd function, even when we have openat support.
68904         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68905
68906 2007-02-02  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68909         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68910         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68911         portability problems if one of these functions is only used on specific
68912         platforms.
68913         Reported by Paul Eggert.
68914
68915 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68918         is causing more trouble than it's curing.
68919         * lib/regex_internal.h (__mempcpy): Remove.
68920         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68921         (and make the code a tad smaller to boot).
68922         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68923
68924 2007-02-02  Jim Meyering  <jim@meyering.net>
68925
68926         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68927         section, not in the Makefile.am: one.
68928
68929 2007-02-02  Eric Blake  <ebb9@byu.net>
68930
68931         * lib/strchrnul.c: Always include config.h first.
68932
68933         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68934         gnulib strstr is not necessary here.
68935
68936 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68937
68938         * m4/socklen.m4: Fix typo.
68939
68940 2007-02-02  Eric Blake  <ebb9@byu.net>
68941
68942         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68943         * modules/netinet_in (Makefile.am): Likewise.
68944
68945 2007-02-01  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/string_.h (GL_LINK_WARNING): New macro.
68948         (strcasecmp, strstr, strcasestr): If provided by the system,
68949         conditionally define as a macro that leads to a warning instead of to
68950         an error.
68951         (strncasecmp): Conditionally define as a macro that leads to a warning.
68952
68953 2007-02-01  Karl Berry  <karl@gnu.org>
68954
68955         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68956
68957 2007-02-01  Bruno Haible  <bruno@clisp.org>
68958
68959         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68960         renamings.
68961
68962 2007-02-01  Eric Blake  <ebb9@byu.net>
68963
68964         * modules/regex (Depends-on): Revert dependence on mempcpy.
68965         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68966         module's definition of mempcpy.
68967         Reported by Paul Eggert.
68968
68969 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68972         the symbol XYZ before redefining it.  This fixes a problem with
68973         programs that don't use XYZ, when compiled on systems that define
68974         XYZ to something else.
68975
68976 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68977
68978         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68979         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68980         writeable to group or other and (2) is intended to have a special
68981         mode bit that is set or cleared.  In such a case, the directory
68982         should be neither group- nor other-writeable until the special
68983         mode bits are right.
68984
68985 2007-01-31  Eric Blake  <ebb9@byu.net>
68986
68987         * modules/mountlist (Depends-on): Add strstr.
68988
68989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68990         bug.
68991         * modules/string (Makefile.am): Remove redundant replacement.
68992         * modules/regex (Depends-on): Add mempcpy.
68993
68994 2007-01-31  Bruno Haible  <bruno@clisp.org>
68995
68996         New module description field 'Link'.
68997         * gnulib-tool (func_usage): Document --extract-link-directive.
68998         (sed_extract_prog): Recognize 'Link' directive.
68999         (func_get_link_directive): New function.
69000         (func_import): Show summary of link directives.
69001         Handle --extract-link-directive option.
69002         * modules/acl (Link): New section.
69003         * modules/clock-time (Link): New section.
69004         * modules/euidaccess (Link): New section.
69005         * modules/gettext (Link): New section.
69006         * modules/iconv (Link): New section.
69007         * modules/lock (Link): New section.
69008         * modules/nanosleep (Link): New section.
69009         * modules/readline (Link): New section.
69010
69011 2007-01-27  Bruno Haible  <bruno@clisp.org>
69012
69013         Enforce the use of gnulib modules for unportable <string.h> functions.
69014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69015         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69016         (gl_HEADER_STRING_H_BODY): Require it.
69017         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69018         the symbol XYZ to one that gives a link error.
69019         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69020         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69021         * modules/mempcpy (configure.ac): Likewise.
69022         * modules/memrchr (configure.ac): Likewise.
69023         * modules/stpcpy (configure.ac): Likewise.
69024         * modules/stpncpy (configure.ac): Likewise.
69025         * modules/strcase (configure.ac): Likewise.
69026         * modules/strcasestr (configure.ac): Likewise.
69027         * modules/strchrnul (configure.ac): Likewise.
69028         * modules/strdup (configure.ac): Likewise.
69029         * modules/strndup (configure.ac): Likewise.
69030         * modules/strnlen (configure.ac): Likewise.
69031         * modules/strpbrk (configure.ac): Likewise.
69032         * modules/strsep (configure.ac): Likewise.
69033         * modules/strstr (configure.ac): Likewise.
69034         * modules/strtok_r (configure.ac): Likewise.
69035
69036 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69037
69038         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69039
69040 2007-01-30  Jim Meyering  <jim@meyering.net>
69041
69042         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69043
69044 2007-01-29  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69047         * lib/execute.c: Likewise.
69048         * lib/pipe.c: Likewise.
69049         * lib/printf-args.h: Likewise.
69050         * lib/printf-args.c: Likewise.
69051         * lib/printf-parse.c: Likewise.
69052         * lib/vasnprintf.c: Likewise.
69053
69054 2007-01-29  Eric Blake  <ebb9@byu.net>
69055
69056         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69057         declaration.
69058
69059 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69060
69061         * lib/strptime.h (strptime): Use 'restrict' for args where
69062         POSIX requires this.
69063         * lib/strptime.c (strptime): Likewise.
69064         Change license notice from LGPL to GPL, since gnulib-tool will
69065         change this as needed.
69066         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69067         defined.
69068         Include "strptime.h" first, to check interface.
69069         Do not #undef _LIBC and _NL_CURRENT.
69070         Do not include <stdlib.h>; no longer needed.
69071         Include "time_r.h" and declare ptime_locale_status
69072         only if _LIBC is not defined.
69073         (__P): Remove unused macro.
69074         (match_string): Bring back glibc version, but use it only if _LIBC
69075         is defined.
69076         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69077         Remove unnecessary assertion and abort() call.
69078         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69079         * m4/strptime.m4: Fix serial number comment.
69080         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69081         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69082         (Depends-on): Add time_r.
69083
69084 2007-01-29  Bruno Haible  <bruno@clisp.org>
69085
69086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69087         strptime.
69088         * modules/strptime (Depends-on): Add stdbool.
69089         * lib/strptime.h: Include <time.h> always. Add comments.
69090
69091 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69092
69093         * modules/strptime: New file.
69094         * lib/strptime.h: New file.
69095         * lib/strptime.c: New file.
69096         * m4/strptime.m4: New file.
69097
69098 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * MODULES.html.sh: New module mpsort.
69101         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69102
69103         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69104         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69106         All uses changed.
69107         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69108         All uses changed.
69109         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69110         to _Restrict_.
69111         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69112         the parameter matches the prototype.
69113
69114 2007-01-28  Jim Meyering  <jim@meyering.net>
69115
69116         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69117         sys/time.h here, reverting that part of the previous patch:
69118         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69119
69120 2007-01-28  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69123         value of $(SYS_TIME_H).
69124         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69125         remove it conditionally, too. [added by Jim Meyering]
69126         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69128         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69129         GETTIMEOFDAY_REPLACEMENT to 1.
69130
69131 2007-01-28  Bruno Haible  <bruno@clisp.org>
69132
69133         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69134         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69136         Set UNISTD_H instead of UNISTD_H2.
69137         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69138
69139 2007-01-28  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69142         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69143
69144 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69145
69146         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69147         (func_create_testdir): Ensure C locale for `grep' and `tr'
69148         character ranges.
69149         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69150         ACLOCAL_AMFLAGS parsing state machine.
69151
69152 2007-01-27  Bruno Haible  <bruno@clisp.org>
69153
69154         * modules/unistr/base: Update.
69155
69156 2007-01-27  Bruno Haible  <bruno@clisp.org>
69157
69158         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69159         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69160         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69161         modules/unistr/u32-mbtouc.
69162         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69163         * lib/unistr.h: Update.
69164         * lib/linebreak.c: Update.
69165         * modules/unistr/u32-mbtouc: Renamed from
69166         modules/unistr/u32-mbtouc-safe.
69167         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69168         * lib/unistr.h: Update.
69169         * lib/unistr/u32-to-u8.c: Update.
69170         * lib/unistr/u32-to-u16.c: Update.
69171
69172 2007-01-27  Bruno Haible  <bruno@clisp.org>
69173
69174         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69175         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69176         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69177         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69178         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69179         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69180         modules/unistr/u16-mbtouc.
69181         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69182         * lib/unistr.h: Update.
69183         * lib/linebreak.c: Update.
69184         * modules/linebreak: Update.
69185         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69186         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69187         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69188         * modules/unistr/u16-mbtouc: Renamed from
69189         modules/unistr/u16-mbtouc-safe.
69190         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69191         * lib/unistr.h: Update.
69192         * lib/unistr/u16-to-u8.c: Update.
69193         * modules/unistr/u16-to-u8: Update.
69194         * lib/unistr/u16-to-u32.c: Update.
69195         * modules/unistr/u16-to-u32: Update.
69196
69197 2007-01-27  Bruno Haible  <bruno@clisp.org>
69198
69199         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69200         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69201         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69202         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69203         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69204         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69205         modules/unistr/u8-mbtouc.
69206         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69207         * lib/unistr.h: Update.
69208         * lib/striconveh.c: Update.
69209         * modules/striconveh: Update.
69210         * lib/linebreak.c: Update.
69211         * modules/linebreak: Update.
69212         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69213         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69214         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69215         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69216         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69217         * lib/unistr.h: Update.
69218         * lib/striconveh.c: Update.
69219         * modules/striconveh: Update.
69220         * lib/unistr/u8-to-u16.c: Update.
69221         * modules/unistr/u8-to-u16: Update.
69222         * lib/unistr/u8-to-u32.c: Update.
69223         * modules/unistr/u8-to-u32: Update.
69224
69225 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69226
69227         Sync from Libtool.
69228         * lib/argz.c: Do not include strings.h nor memory.h, include
69229         string.h unconditionally.  Patch by Simon Josefsson.
69230
69231 2007-01-27  Bruno Haible  <bruno@clisp.org>
69232
69233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69234         from gl_HEADER_STRING_H_BODY.
69235         (gl_HEADER_STRING_H_BODY): Require it.
69236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69237         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69238         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69239         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69241         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69243         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69244         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69245         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69246         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69247         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69248         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69249         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69250         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69251
69252 2007-01-27  Bruno Haible  <bruno@clisp.org>
69253
69254         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69255         check_PROGRAMS into noinst_PROGRAMS.
69256         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69257         check_PROGRAMS in this case.
69258         (func_import): Set for_test to false.
69259         (func_create_testdir): Set for_test to true.
69260
69261 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69262             Bruno Haible  <bruno@clisp.org>
69263
69264         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69265         (Depends-on): Add string.
69266         (Includes): Use <string.h> instead of strcasestr.h.
69267         * modules/string (Makefile.am): Also substitute the value of
69268         REPLACE_STRCASESTR.
69269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69270         assume strcasestr is declared in <string.h> not <strings.h>. Also
69271         set REPLACE_STRCASESTR.
69272         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69273         REPLACE_STRCASESTR.
69274         * lib/strcasestr.h: Remove file.
69275         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69276         * lib/string_.h (strcasestr): New declaration.
69277
69278 2007-01-27  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/string_.h: Use 'extern'.
69281
69282 2007-01-27  Jim Meyering  <jim@meyering.net>
69283
69284         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69285         of set-but-not-used local, "q".
69286
69287         * lib/mempcpy.c: Include <config.h> before <string.h>.
69288         This fixes a compilation error on HP-UX, due to the system's
69289         "restrict"-using mempcpy prototype.
69290
69291 2007-01-26  Bruno Haible  <bruno@clisp.org>
69292
69293         Small optimization.
69294         * lib/javacomp.c: Include c-strstr.h.
69295          (is_envjavac_gcj): Use c_strstr instead of strstr.
69296         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69297
69298 2007-01-26  Bruno Haible  <bruno@clisp.org>
69299
69300         * MODULES.html.sh (Unicode string functions): Add the new modules.
69301
69302         * modules/uniconv/u32-strconv-to-locale: New file.
69303         * lib/uniconv/u32-strconv-to-locale.c: New file.
69304
69305         * modules/uniconv/u16-strconv-to-locale: New file.
69306         * lib/uniconv/u16-strconv-to-locale.c: New file.
69307
69308         * modules/uniconv/u8-strconv-to-locale: New file.
69309         * lib/uniconv/u8-strconv-to-locale.c: New file.
69310
69311         * modules/uniconv/u32-strconv-from-locale: New file.
69312         * lib/uniconv/u32-strconv-from-locale.c: New file.
69313
69314         * modules/uniconv/u16-strconv-from-locale: New file.
69315         * lib/uniconv/u16-strconv-from-locale.c: New file.
69316
69317         * modules/uniconv/u8-strconv-from-locale: New file.
69318         * lib/uniconv/u8-strconv-from-locale.c: New file.
69319
69320         * modules/uniconv/u32-strconv-to-enc: New file.
69321         * lib/uniconv/u32-strconv-to-enc.c: New file.
69322         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69323         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69324
69325         * modules/uniconv/u16-strconv-to-enc: New file.
69326         * lib/uniconv/u16-strconv-to-enc.c: New file.
69327         * lib/uniconv/u-strconv-to-enc.h: New file.
69328         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69329         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69330
69331         * modules/uniconv/u8-strconv-to-enc: New file.
69332         * lib/uniconv/u8-strconv-to-enc.c: New file.
69333         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69334         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69335
69336         * modules/uniconv/u32-strconv-from-enc: New file.
69337         * lib/uniconv/u32-strconv-from-enc.c: New file.
69338         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69339         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69340
69341         * modules/uniconv/u16-strconv-from-enc: New file.
69342         * lib/uniconv/u16-strconv-from-enc.c: New file.
69343         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69344         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69345
69346         * modules/uniconv/u8-strconv-from-enc: New file.
69347         * lib/uniconv/u8-strconv-from-enc.c: New file.
69348         * lib/uniconv/u-strconv-from-enc.h: New file.
69349         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69350         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69351
69352         * modules/uniconv/u32-conv-from-enc: New file.
69353         * lib/uniconv/u32-conv-from-enc.c: New file.
69354         * modules/uniconv/u32-conv-from-enc-tests: New file.
69355         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69356
69357         * modules/uniconv/u16-conv-from-enc: New file.
69358         * lib/uniconv/u16-conv-from-enc.c: New file.
69359         * lib/uniconv/u-conv-from-enc.h: New file.
69360         * modules/uniconv/u16-conv-from-enc-tests: New file.
69361         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69362
69363         * modules/uniconv/u8-conv-from-enc: New file.
69364         * lib/uniconv/u8-conv-from-enc.c: New file.
69365         * modules/uniconv/u8-conv-from-enc-tests: New file.
69366         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69367
69368         * modules/uniconv/base: New file.
69369         * lib/uniconv.h: New file.
69370
69371 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69372
69373         * doc/gnulib-tool.texi (Initial import): Update to match current
69374         behavior with strdup module.
69375         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69376         * lib/memmem.h: Remove; all uses removed.  This is now done
69377         by <string.h>.
69378         * lib/mempcpy.h: Likewise.
69379         * lib/memrchr.h: Likewise.
69380         * lib/stpcpy.h: Likewise.
69381         * lib/stpncpy.h: Likewise.
69382         * lib/strcase.h: Likewise.
69383         * lib/strchrnul.h: Likewise.
69384         * lib/strdup.h: Likewise.
69385         * lib/strndup.h: Likewise.
69386         * lib/strnlen.h: Likewise.
69387         * lib/strpbrk.h: Likewise.
69388         * lib/strsep.h: Likewise.
69389         * lib/strstr.h: Likewise.
69390         * lib/strtok_r.h: Likewise.
69391         * lib/string_.h: New file.
69392         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69393         Rely on <string.h> instead.
69394         * lib/canon-host.c: Likewise.
69395         * lib/chdir-long.c: Likewise.
69396         * lib/concatpath.c: Likewise.
69397         * lib/exclude.c: Likewise.
69398         * lib/fchdir.c: Likewise.
69399         * lib/getaddrinfo.c: Likewise.
69400         * lib/getcwd.c: Likewise.
69401         * lib/getsubopt.c: Likewise.
69402         * lib/glob.c: Likewise.
69403         * lib/hard-locale.c: Likewise.
69404         * lib/iconvme.c: Likewise.
69405         * lib/javacomp.c: Likewise.
69406         * lib/mempcpy.c: Likewise.
69407         * lib/memrchr.c: Likewise.
69408         * lib/regex_internal.h: Likewise.
69409         * lib/stpncpy.c: Likewise.
69410         * lib/strcasecmp.c: Likewise.
69411         * lib/strchrnul.c: Likewise.
69412         * lib/strdup.c: Likewise.
69413         * lib/striconv.c: Likewise.
69414         * lib/striconveh.c: Likewise.
69415         * lib/striconveha.c: Likewise.
69416         * lib/strncasecmp.c: Likewise.
69417         * lib/strndup.c: Likewise.
69418         * lib/strnlen.c: Likewise.
69419         * lib/strsep.c: Likewise.
69420         * lib/strstr.c: Likewise.
69421         * lib/strtok_r.c: Likewise.
69422         * lib/userspec.c: Likewise.
69423         * lib/w32spawn.h: Likewise.
69424         * lib/xstrndup.c: Likewise.
69425         * lib/mountlist.c (strstr): Remove decl.
69426         * m4/string_h.m4: New file.
69427         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69428         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69430         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69431         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69432         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69433         Set REPLACE_STRCASECMP if necessary.
69434         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69435         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69436         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69437         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69438         HAVE_DECL_STRDUP if necessary.
69439         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69440         since gl_FUNC_STRNDUP does that now.
69441         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69442         Check for decl here...
69443         (gl_PREREQ_STRNLEN): ... not here.
69444         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69445         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69446         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69447         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69448         necessary.
69449         * modules/string: New file.
69450         * modules/memmem (Files): Remove special-purpose include file.
69451         (Depends-on): Add string.
69452         (Include): Include <string.h>, not the removed file.
69453         * modules/mempcpy: Likewise.
69454         * modules/memrchr: Likewise.
69455         * modules/stpcpy: Likewise.
69456         * modules/stpncpy: Likewise.
69457         * modules/strcase: Likewise.
69458         * modules/strchrnul: Likewise.
69459         * modules/strdup: Likewise.
69460         * modules/strndup: Likewise.
69461         * modules/strnlen: Likewise.
69462         * modules/strpbrk: Likewise.
69463         * modules/strsep: Likewise.
69464         * modules/strstr: Likewise.
69465         * modules/strtok_r: Likewise.
69466         * tests/test-dirname.c: Don't include "strdup.h", since
69467         <string.h> now suffices.
69468         * tests/test-memmem.c: Don't include "memmem.h", since
69469         <string.h> now suffices.
69470
69471 2007-01-25  Bruno Haible  <bruno@clisp.org>
69472
69473         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69474         *resultp is 0.
69475
69476         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69477         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69478         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69479         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69480
69481         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69482         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69483         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69484         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69485         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69486         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69487
69488 2007-01-24  Bruno Haible  <bruno@clisp.org>
69489
69490         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69492         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69493         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69494         gl_FUNC_FTS_CORE.
69495         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69496         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69497         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69498         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69499         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69500         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69501         gl_FUNC_FCHOWNAT.
69502         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69503         gl_FUNC_STRFTIME.
69504         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69505         Reported by Ralf Wildenhues.
69506
69507 2007-01-24  Bruno Haible  <bruno@clisp.org>
69508
69509         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69510         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69511         gl_GETADDRINFO.
69512         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69513         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69514         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69515
69516 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69519         Don't use 'exit'; just return from 'main'.
69520         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69521
69522         * lib/fnmatch_.h: Readjust white space and comments to match
69523         glibc, to avoid spurious diffs.
69524
69525 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69528         2004-12-01 change by Jakub Jelinek, since this code won't compile
69529         if !LIBC.  Problem reported by Bob Proulx.
69530
69531 2007-01-23  Bruno Haible  <bruno@clisp.org>
69532
69533         * lib/striconveh.c: Include c-strcaseeq.h.
69534         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69535         * modules/striconveh (Depends-on): Add c-strcaseeq.
69536
69537 2007-01-23  Bruno Haible  <bruno@clisp.org>
69538
69539         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69540
69541         * modules/c-strcaseeq: New file.
69542         * lib/c-strcaseeq.h: New file.
69543
69544         * modules/streq: New file.
69545         * lib/streq.h: New file.
69546
69547 2007-01-23  Bruno Haible  <bruno@clisp.org>
69548
69549         * modules/striconveha-tests: New file.
69550         * tests/test-striconveha.c: New file.
69551
69552         * lib/striconveha.h: Include <stdbool.h>.
69553         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69554         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69555         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69556         (mem_iconveha): New function.
69557         (str_iconveha_notranslit): Renamed from str_iconveha.
69558         (str_iconveha): New function.
69559         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69560         c-strcase.
69561
69562 2007-01-23  Bruno Haible  <bruno@clisp.org>
69563
69564         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69565         encodings without forgiving before trying any encoding with handler.
69566         (str_iconveha): Try all encodings without forgiving before trying any
69567         encoding with handler.
69568
69569 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         Import the following changes from libc.
69572
69573         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69574
69575         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69576
69577         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69578
69579         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69580         normal_bracket label.
69581
69582         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69583
69584         [BZ #361]
69585         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69586         to normal_bracket after fetching the next character.
69587
69588 2007-01-22  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69591         argument.
69592         * lib/striconveh.c (iconv_carefully_1): New function.
69593         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69594         argument.
69595         (str_cd_iconveh): Update.
69596         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69597         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69598         * tests/test-striconveh.c (MAGIC): New macro.
69599         (new_offsets): New function.
69600         (main): Test call with and without offsets.
69601
69602 2007-01-22  Bruno Haible  <bruno@clisp.org>
69603
69604         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69605         * modules/sys_select (Makefile.am): Likewise.
69606         * modules/sys_socket (Makefile.am): Likewise.
69607         * modules/sys_time (Makefile.am): Likewise.
69608
69609 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * modules/gettimeofday (License): Change from GPL to LGPL, since
69612         gettimeofday is a library function.
69613
69614 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69615
69616         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69617
69618 2007-01-21  Bruno Haible  <bruno@clisp.org>
69619
69620         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69621
69622 2007-01-21  Bruno Haible  <bruno@clisp.org>
69623
69624         * modules/striconveha: New file.
69625         * lib/striconveha.h: New file.
69626         * lib/striconveha.c: New file.
69627         * MODULES.html.sh (Internationalization functions): Add striconveha.
69628         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69629         string.
69630         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69631
69632 2007-01-21  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69635         * lib/striconveh.c (str_iconveh): Likewise.
69636
69637 2007-01-21  Bruno Haible  <bruno@clisp.org>
69638
69639         * lib/striconveh.h (mem_iconveh): New declaration.
69640         * lib/striconveh.c (mem_iconveh): New function.
69641         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69642
69643 2007-01-21  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69646
69647         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69648         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69649         original result buffer.
69650         (str_cd_iconveh): Update.
69651         * tests/test-striconveh.c (main): Update.
69652
69653         * lib/striconv.h (mem_cd_iconv): Change specification.
69654         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69655         result buffer.
69656         (str_cd_iconv): Update.
69657         * tests/test-striconv.c (main): Update.
69658
69659 2007-01-21  Bruno Haible  <bruno@clisp.org>
69660
69661         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69662
69663 2007-01-20  Jim Meyering  <jim@meyering.net>
69664
69665         * lib/userspec.c (parse_with_separator): If a user or group string
69666         starts with "+", skip the corresponding name-to-ID look-up, since
69667         such a look-up must fail: user and group names may not include "+".
69668
69669 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69672         since we now assume the sys_time module.
69673         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69674         check for sys/time.h; no longer needed.
69675         * modules/poll (Depends-on): Depend on sys_time.
69676
69677 2007-01-18  Bruno Haible  <bruno@clisp.org>
69678
69679         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69680         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69681
69682         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69683         gettimeofday.
69684
69685         * tests/test-gettimeofday.c: Include <time.h>.
69686         (dummy): Remove variable.
69687
69688         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69689         gl_HEADER_SYS_TIME_H.
69690         (gl_HEADER_SYS_TIME_H): New macro.
69691
69692         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69693         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69695         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69696         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69697         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69698         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69699         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69700         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69701         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69702         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69703
69704         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69705         last change; it caused a compilation error when cross-compiling to
69706         Cygwin.
69707
69708 2007-01-18  Jim Meyering  <jim@meyering.net>
69709
69710         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69711         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69712         than the race-prone "test -d sys || mkdir sys".
69713         (configure.ac): Use AC_PROG_MKDIR_P.
69714         * modules/sys_select: Likewise.
69715         * modules/sys_socket: Likewise.
69716         * modules/sys_time: Likewise.
69717
69718 2007-01-18  Eric Blake  <ebb9@byu.net>
69719
69720         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69721         replace gettimeofday.
69722         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69723         name, to avoid infinite recursion.
69724
69725 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69728         module sys_time.
69729         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69730         assume timespec.h defines struct timeval.
69731         * lib/settime.c: Likewise.
69732         * lib/utimens.c: Likewise.
69733         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69734         since we now assume the gettimeofday module.
69735         * lib/tempname.c (__gen_tempname): Likewise.
69736         * lib/gettimeofday.h: Remove.
69737         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69738         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69739         Include <time.h>, for 'time()'.
69740         (localtime_buffer_addr): Also use this workaround if
69741         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69742         to simplify the uses.  All uses changed.
69743         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69744         that #undef is inside {}, and 'const' follows type name consistently.
69745         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69746         (gettimeofday): Do not use the maximum possible value for
69747         tv->tv_usec, since that might break usages other than ls.c.
69748         Instead, we'll leave ls.c alone.  This undoes today's patch
69749         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69750         we've never observed the problem but might as well keep the
69751         canary.
69752         * lib/nanosleep.c: Include timespec.h first, for interface check.
69753         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69754         now assume the sys_time module.
69755         * lib/tempname.c: Likewise.
69756         * lib/timespec.h: Likewise.
69757         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69758         needed.
69759         * lib/strftime.c: Likewise.
69760         * lib/timespec.h: Likewise.
69761         * lib/posixtm.c: Include posixtm.h first, for interface check.
69762         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69763         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69764         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69765         * lib/sys_time_.h: New file.
69766         * lib/timespec.h (struct timespec): Use long int, not long.
69767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69768         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69769         Remove obsolescent call to AC_HEADER_TIME.
69770         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69772         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69773         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69774         Likewise.
69775         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69776         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69778         into the sys_time module.  Check for gettimeofday just once.
69779         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69780         for gettimeofday signature to just check the signature.  Merely
69781         compile it, since linking doesn't test signature.  Improve test for
69782         whether gettimeofday.o is actually needed.
69783         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69784         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69785         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69786         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69787         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69788         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69789         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69790         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69791         than worrying about sys/time.h.
69792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69793         Don't bother worrying about TIME_WITH_SYS_TIME.
69794         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69795         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69796         * m4/sys_time_h.m4: New file.
69797         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69798         Don't include sys/time.h.  Return from main rather than exiting.
69799         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69800         all uses changed.
69801         * modules/gethrxtime (Depends-on): Add sys_time.
69802         * modules/gettime (Depends-on): Likewise.
69803         * modules/gettimeofday (Depends-on): Likewise.
69804         * modules/nanosleep (Depends-on): Likewise.
69805         * modules/settime (Depends-on): Likewise.
69806         * modules/tempname (Depends-on): Likewise.
69807         * modules/utimens (Depends-on): Likewise.
69808         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69809         (Include): Change back to <sys/time.h>.
69810         (Maintainer): Add self.
69811         * modules/sys_time: New file.
69812         * modules/tempname (Depends-on): Add gettimeofday.
69813         * tests/test-gettimeofday.c: Include <sys/time.h>
69814         rather than gettimeofday.h.
69815
69816 2007-01-17  Bruno Haible  <bruno@clisp.org>
69817
69818         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69819         the license default to GPL.
69820         (func_create_testdir): Don't complain if a module is LGPL and its
69821         tests module depends on GPLed modules.
69822
69823 2007-01-17  Bruno Haible  <bruno@clisp.org>
69824
69825         * lib/gettimeofday.c (gettimeofday): Add code for the case
69826         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69827         maximum possible value for tv->tv_usec, rather than the minimum one.
69828
69829 2005-10-08  Martin Lambers  <marlam@marlam.de>
69830 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69831 2007-01-16  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69834         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69835         gl_FUNC_GETTIMEOFDAY.
69836         (Include): Add gettimeofday.h.
69837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69838         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69839         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69840         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69841         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69842         * lib/gettimeofday.h: New file.
69843         * lib/gettimeofday.c: Include <sys/timeb.h>.
69844         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69845         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69846         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69847         fall back on time().
69848
69849         * tests/test-gettimeofday.c: New file.
69850         * modules/gettimeofday-tests: New file.
69851
69852 2007-01-16  Eric Blake  <ebb9@byu.net>
69853
69854         * modules/fnmatch (Depends-on): Depend on wchar.
69855         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69856         * m4/fnmatch.m4: Likewise.
69857         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69858         * m4/mbchar.m4: Likewise.
69859         * modules/mbswidth (Depends-on): Depend on wchar.
69860         * lib/mbswidth.c: Assume <wchar.h>.
69861         * m4/mbswidth.m4: Likewise.
69862         * modules/quotearg (Depends-on): Depend on wchar.
69863         * lib/quotearg.c: Assume <wchar.h>.
69864         * m4/quotearg.m4: Likewise.
69865         * modules/regex (Depends-on): Depend on wchar.
69866         * lib/regex_internal.h: Assume <wchar.h>.
69867         * m4/regex.m4: Likewise.
69868         * modules/stdint (Depends-on): Depend on wchar.
69869         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69870         * m4/stdint.m4: Likewise.
69871         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69872         * modules/strftime (Depends-on): Depend on wchar.
69873         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69874         * modules/strtol (Depends-on): Depend on wchar.
69875         * lib/strtol.c: Assume <wchar.h>.
69876         * modules/wcwidth (Depends-on): Depend on wchar.
69877         * lib/wcwidth.h: Assume <wchar.h>.
69878         * m4/wcwidth.m4: Likewise.
69879
69880 2007-01-16  Bruno Haible  <bruno@clisp.org>
69881
69882         * modules/csharpexec-script: New, created from...
69883         * modules/csharpexec: ... this.
69884
69885 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69886
69887         * modules/javaexec-script: New, created from...
69888         * modules/javaexec: ... this.
69889
69890 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69891
69892         * modules/poll (Dependencies): Add sys_select.
69893
69894 2007-01-15  Jim Meyering  <jim@meyering.net>
69895
69896         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69897         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69898         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69899         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69900
69901 2007-01-15  Bruno Haible  <bruno@clisp.org>
69902
69903         * modules/striconveh: New file.
69904         * lib/striconveh.h: New file.
69905         * lib/striconveh.c: New file.
69906         * MODULES.html.sh (Internationalization functions): Add striconveh.
69907
69908         * modules/striconveh-tests: New file.
69909         * tests/test-striconveh.c: New file.
69910
69911 2007-01-15  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69914         not from GNU libiconv or GNU libc.
69915
69916 2007-01-15  Bruno Haible  <bruno@clisp.org>
69917
69918         * doc/gnulib-intro.texi (Copyright): Explain the different license
69919         terms for module descriptions, autoconf macros, tests, documentation.
69920
69921 2007-01-14  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/striconv-tests: New file.
69924         * tests/test-striconv.c: New file.
69925
69926 2007-01-14  Bruno Haible  <bruno@clisp.org>
69927
69928         * modules/iconv-tests: New file.
69929         * tests/test-iconv.c: New file.
69930
69931 2007-01-14  Bruno Haible  <bruno@clisp.org>
69932
69933         * gnulib-tool (func_get_license): For test modules, use the license of
69934         the main module.
69935
69936 2007-01-14  Bruno Haible  <bruno@clisp.org>
69937
69938         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69939         if iconv is found to exist.
69940
69941 2007-01-14  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/c-ctype-tests: New file.
69944         * tests/test-c-ctype.c: New file.
69945
69946 2007-01-14  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/binary-io-tests: New file.
69949         * tests/test-binary-io.sh: New file.
69950         * tests/test-binary-io.c: New file.
69951
69952 2007-01-14  Bruno Haible  <bruno@clisp.org>
69953
69954         * modules/array-oset-tests: New file.
69955         * tests/test-array_oset.c: New file.
69956
69957 2007-01-14  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/array-list-tests: New file.
69960         * tests/test-array_list.c: New file.
69961
69962 2007-01-14  Bruno Haible  <bruno@clisp.org>
69963
69964         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69965         and make.
69966         Reported by Simon Josefsson in
69967         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69968
69969 2007-01-14  Bruno Haible  <bruno@clisp.org>
69970
69971         * modules/allocsa-tests: New file.
69972         * tests/test-allocsa.c: New file.
69973
69974 2007-01-14  Bruno Haible  <bruno@clisp.org>
69975
69976         * modules/fchdir (Depends-on): Add absolute-header.
69977         * modules/unistd (Depends-on): Likewise.
69978
69979 2006-12-30  Bruno Haible  <bruno@clisp.org>
69980
69981         * modules/fchdir: New file.
69982         * modules/unistd (Files): Add lib/unistd_.h.
69983         (Makefile.am): Generate unistd.h from unistd_.h.
69984         * lib/fchdir.c: New file.
69985         * lib/dirent_.h: New file.
69986         * lib/unistd_.h: New file.
69987         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69988         * m4/fchdir.m4: New file.
69989         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69990         (gl_HEADER_UNISTD): Invoke it.
69991         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69992         function.
69993         * lib/backupfile.c (opendir, closedir): Undefine.
69994         * lib/chown.c (open, close): Undefine.
69995         * lib/clean-temp.c (open, close): Undefine.
69996         * lib/copy-file.c (open, close): Undefine.
69997         * lib/execute.c (open, close): Undefine.
69998         * lib/fsusage.c (open, close): Undefine.
69999         * lib/gc-gnulib.c (open, close): Undefine.
70000         * lib/getcwd.c (opendir, closedir): Undefine.
70001         * lib/glob.c (opendir, closedir): Undefine.
70002         * lib/javacomp.c (open, close): Undefine.
70003         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70004         * lib/openat-proc.c (open, close): Undefine.
70005         * lib/pagealign_alloc.c (open, close): Undefine.
70006         * lib/pipe.c (open, close): Undefine.
70007         * lib/progreloc.c (open, close): Undefine.
70008         * lib/savedir.c (opendir, closedir): Undefine.
70009         * lib/utime.c (open, close): Undefine.
70010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70011
70012 2007-01-10  Bruno Haible  <bruno@clisp.org>
70013
70014         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70015
70016 2007-01-12  Eric Blake  <ebb9@byu.net>
70017
70018         Provide a robust <wchar.h>.  Further simplifications are now
70019         possible in other modules, but not included here.
70020         * modules/wchar: New module.
70021         * m4/wchar.m4: New file.
70022         * lib/wchar_.h: Likewise.
70023         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70024         of the new module.
70025         * MODULES.html.sh (Extended multibyte and wide character utilities):
70026         New section.
70027
70028 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70031         to a reasonable default for memory allocation.
70032         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70033         file system that reports garbage st_size values for symlinks.
70034         Problem reported by Liyang Hu.
70035
70036 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70037
70038         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70039         Emacs .#* auto-save files).
70040
70041 2007-01-11  Bruno Haible  <bruno@clisp.org>
70042
70043         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70044         directory.
70045
70046 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         Use @...@ consistently in lib/wctype_.h.
70049         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70050         on it being set to 1 or 0.
70051         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70052         go back to AC_SUBSTing it.
70053         * modules/wctype (Makefile.am): Undo previous change.
70054
70055 2007-01-10  Eric Blake  <ebb9@byu.net>
70056
70057         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70058         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70059         * modules/wctype (Makefile.am): Likewise.
70060         Reported by Chris McGuire.
70061
70062 2007-01-10  Jim Meyering  <jim@meyering.net>
70063
70064         fts.c: a small readability/maintainability improvement
70065         * lib/fts.c (fts_read): Make this code slightly more readable and
70066         maintainable by hoisting the "sp->fts_cur = p" assignments to
70067         immediately follow the statements that set P.  Derived from
70068         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70069
70070 2007-01-10  Eric Blake  <ebb9@byu.net>
70071
70072         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70073         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70075         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70076         Reported by Chris McGuire.
70077
70078 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70079
70080         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70081         in sed script.
70082
70083 2007-01-09  Bruno Haible  <bruno@clisp.org>
70084
70085         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70086         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70087         variables.
70088         (func_module): Use them.
70089
70090 2007-01-09  Bruno Haible  <bruno@clisp.org>
70091
70092         * modules/unistr/base: New file.
70093         * lib/unistr.h: New file.
70094
70095         * modules/unistr/u8-to-u16: New file.
70096         * lib/unistr/u8-to-u16.c: New file.
70097
70098         * modules/unistr/u8-to-u32: New file.
70099         * lib/unistr/u8-to-u32.c: New file.
70100
70101         * modules/unistr/u16-to-u8: New file.
70102         * lib/unistr/u16-to-u8.c: New file.
70103
70104         * modules/unistr/u16-to-u32: New file.
70105         * lib/unistr/u16-to-u32.c: New file.
70106
70107         * modules/unistr/u32-to-u8: New file.
70108         * lib/unistr/u32-to-u8.c: New file.
70109
70110         * modules/unistr/u32-to-u16: New file.
70111         * lib/unistr/u32-to-u16.c: New file.
70112
70113         * modules/unistr/u8-check: New file.
70114         * modules/unistr/u16-check: New file.
70115         * modules/unistr/u32-check: New file.
70116         * lib/unistr/u8-check.c: New file.
70117         * lib/unistr/u16-check.c: New file.
70118         * lib/unistr/u32-check.c: New file.
70119
70120         * modules/unistr/u8-chr: New file.
70121         * modules/unistr/u16-chr: New file.
70122         * modules/unistr/u32-chr: New file.
70123         * lib/unistr/u8-chr.c: New file.
70124         * lib/unistr/u16-chr.c: New file.
70125         * lib/unistr/u32-chr.c: New file.
70126
70127         * modules/unistr/u8-cmp: New file.
70128         * modules/unistr/u16-cmp: New file.
70129         * modules/unistr/u32-cmp: New file.
70130         * lib/unistr/u8-cmp.c: New file.
70131         * lib/unistr/u16-cmp.c: New file.
70132         * lib/unistr/u32-cmp.c: New file.
70133
70134         * modules/unistr/u8-cpy: New file.
70135         * modules/unistr/u16-cpy: New file.
70136         * modules/unistr/u32-cpy: New file.
70137         * lib/unistr/u8-cpy.c: New file.
70138         * lib/unistr/u16-cpy.c: New file.
70139         * lib/unistr/u32-cpy.c: New file.
70140         * lib/unistr/u-cpy.h: New file.
70141
70142         * modules/unistr/u8-cpy-alloc: New file.
70143         * modules/unistr/u16-cpy-alloc: New file.
70144         * modules/unistr/u32-cpy-alloc: New file.
70145         * lib/unistr/u8-cpy-alloc.c: New file.
70146         * lib/unistr/u16-cpy-alloc.c: New file.
70147         * lib/unistr/u32-cpy-alloc.c: New file.
70148         * lib/unistr/u-cpy-alloc.h: New file.
70149
70150         * modules/unistr/u8-endswith: New file.
70151         * modules/unistr/u16-endswith: New file.
70152         * modules/unistr/u32-endswith: New file.
70153         * lib/unistr/u8-endswith.c: New file.
70154         * lib/unistr/u16-endswith.c: New file.
70155         * lib/unistr/u32-endswith.c: New file.
70156         * lib/unistr/u-endswith.h: New file.
70157
70158         * modules/unistr/u8-mblen: New file.
70159         * modules/unistr/u16-mblen: New file.
70160         * modules/unistr/u32-mblen: New file.
70161         * lib/unistr/u8-mblen.c: New file.
70162         * lib/unistr/u16-mblen.c: New file.
70163         * lib/unistr/u32-mblen.c: New file.
70164
70165         * modules/unistr/u8-mbtouc: New file.
70166         * modules/unistr/u16-mbtouc: New file.
70167         * modules/unistr/u32-mbtouc: New file.
70168         * lib/unistr/u8-mbtouc.c: New file.
70169         * lib/unistr/u16-mbtouc.c: New file.
70170         * lib/unistr/u32-mbtouc.c: New file.
70171
70172         * modules/unistr/u8-mbtouc-safe: New file.
70173         * modules/unistr/u16-mbtouc-safe: New file.
70174         * modules/unistr/u32-mbtouc-safe: New file.
70175         * lib/unistr/u8-mbtouc-safe.c: New file.
70176         * lib/unistr/u16-mbtouc-safe.c: New file.
70177         * lib/unistr/u32-mbtouc-safe.c: New file.
70178
70179         * modules/unistr/u8-move: New file.
70180         * modules/unistr/u16-move: New file.
70181         * modules/unistr/u32-move: New file.
70182         * lib/unistr/u8-move.c: New file.
70183         * lib/unistr/u16-move.c: New file.
70184         * lib/unistr/u32-move.c: New file.
70185         * lib/unistr/u-move.h: New file.
70186
70187         * modules/unistr/u8-next: New file.
70188         * modules/unistr/u16-next: New file.
70189         * modules/unistr/u32-next: New file.
70190         * lib/unistr/u8-next.c: New file.
70191         * lib/unistr/u16-next.c: New file.
70192         * lib/unistr/u32-next.c: New file.
70193
70194         * modules/unistr/u8-prev: New file.
70195         * modules/unistr/u16-prev: New file.
70196         * modules/unistr/u32-prev: New file.
70197         * lib/unistr/u8-prev.c: New file.
70198         * lib/unistr/u16-prev.c: New file.
70199         * lib/unistr/u32-prev.c: New file.
70200
70201         * modules/unistr/u8-set: New file.
70202         * modules/unistr/u16-set: New file.
70203         * modules/unistr/u32-set: New file.
70204         * lib/unistr/u8-set.c: New file.
70205         * lib/unistr/u16-set.c: New file.
70206         * lib/unistr/u32-set.c: New file.
70207         * lib/unistr/u-set.h: New file.
70208
70209         * modules/unistr/u8-startswith: New file.
70210         * modules/unistr/u16-startswith: New file.
70211         * modules/unistr/u32-startswith: New file.
70212         * lib/unistr/u8-startswith.c: New file.
70213         * lib/unistr/u16-startswith.c: New file.
70214         * lib/unistr/u32-startswith.c: New file.
70215         * lib/unistr/u-startswith.h: New file.
70216
70217         * modules/unistr/u8-stpcpy: New file.
70218         * modules/unistr/u16-stpcpy: New file.
70219         * modules/unistr/u32-stpcpy: New file.
70220         * lib/unistr/u8-stpcpy.c: New file.
70221         * lib/unistr/u16-stpcpy.c: New file.
70222         * lib/unistr/u32-stpcpy.c: New file.
70223         * lib/unistr/u-stpcpy.h: New file.
70224
70225         * modules/unistr/u8-stpncpy: New file.
70226         * modules/unistr/u16-stpncpy: New file.
70227         * modules/unistr/u32-stpncpy: New file.
70228         * lib/unistr/u8-stpncpy.c: New file.
70229         * lib/unistr/u16-stpncpy.c: New file.
70230         * lib/unistr/u32-stpncpy.c: New file.
70231         * lib/unistr/u-stpncpy.h: New file.
70232
70233         * modules/unistr/u8-strcat: New file.
70234         * modules/unistr/u16-strcat: New file.
70235         * modules/unistr/u32-strcat: New file.
70236         * lib/unistr/u8-strcat.c: New file.
70237         * lib/unistr/u16-strcat.c: New file.
70238         * lib/unistr/u32-strcat.c: New file.
70239         * lib/unistr/u-strcat.h: New file.
70240
70241         * modules/unistr/u8-strchr: New file.
70242         * modules/unistr/u16-strchr: New file.
70243         * modules/unistr/u32-strchr: New file.
70244         * lib/unistr/u8-strchr.c: New file.
70245         * lib/unistr/u16-strchr.c: New file.
70246         * lib/unistr/u32-strchr.c: New file.
70247
70248         * modules/unistr/u8-strcmp: New file.
70249         * modules/unistr/u16-strcmp: New file.
70250         * modules/unistr/u32-strcmp: New file.
70251         * lib/unistr/u8-strcmp.c: New file.
70252         * lib/unistr/u16-strcmp.c: New file.
70253         * lib/unistr/u32-strcmp.c: New file.
70254
70255         * modules/unistr/u8-strcpy: New file.
70256         * modules/unistr/u16-strcpy: New file.
70257         * modules/unistr/u32-strcpy: New file.
70258         * lib/unistr/u8-strcpy.c: New file.
70259         * lib/unistr/u16-strcpy.c: New file.
70260         * lib/unistr/u32-strcpy.c: New file.
70261         * lib/unistr/u-strcpy.h: New file.
70262
70263         * modules/unistr/u8-strcspn: New file.
70264         * modules/unistr/u16-strcspn: New file.
70265         * modules/unistr/u32-strcspn: New file.
70266         * lib/unistr/u8-strcspn.c: New file.
70267         * lib/unistr/u16-strcspn.c: New file.
70268         * lib/unistr/u32-strcspn.c: New file.
70269         * lib/unistr/u-strcspn.h: New file.
70270
70271         * modules/unistr/u8-strdup: New file.
70272         * modules/unistr/u16-strdup: New file.
70273         * modules/unistr/u32-strdup: New file.
70274         * lib/unistr/u8-strdup.c: New file.
70275         * lib/unistr/u16-strdup.c: New file.
70276         * lib/unistr/u32-strdup.c: New file.
70277         * lib/unistr/u-strdup.h: New file.
70278
70279         * modules/unistr/u8-strlen: New file.
70280         * modules/unistr/u16-strlen: New file.
70281         * modules/unistr/u32-strlen: New file.
70282         * lib/unistr/u8-strlen.c: New file.
70283         * lib/unistr/u16-strlen.c: New file.
70284         * lib/unistr/u32-strlen.c: New file.
70285         * lib/unistr/u-strlen.h: New file.
70286
70287         * modules/unistr/u8-strmblen: New file.
70288         * modules/unistr/u16-strmblen: New file.
70289         * modules/unistr/u32-strmblen: New file.
70290         * lib/unistr/u8-strmblen.c: New file.
70291         * lib/unistr/u16-strmblen.c: New file.
70292         * lib/unistr/u32-strmblen.c: New file.
70293
70294         * modules/unistr/u8-strmbtouc: New file.
70295         * modules/unistr/u16-strmbtouc: New file.
70296         * modules/unistr/u32-strmbtouc: New file.
70297         * lib/unistr/u8-strmbtouc.c: New file.
70298         * lib/unistr/u16-strmbtouc.c: New file.
70299         * lib/unistr/u32-strmbtouc.c: New file.
70300
70301         * modules/unistr/u8-strncat: New file.
70302         * modules/unistr/u16-strncat: New file.
70303         * modules/unistr/u32-strncat: New file.
70304         * lib/unistr/u8-strncat.c: New file.
70305         * lib/unistr/u16-strncat.c: New file.
70306         * lib/unistr/u32-strncat.c: New file.
70307         * lib/unistr/u-strncat.h: New file.
70308
70309         * modules/unistr/u8-strncmp: New file.
70310         * modules/unistr/u16-strncmp: New file.
70311         * modules/unistr/u32-strncmp: New file.
70312         * lib/unistr/u8-strncmp.c: New file.
70313         * lib/unistr/u16-strncmp.c: New file.
70314         * lib/unistr/u32-strncmp.c: New file.
70315
70316         * modules/unistr/u8-strncpy: New file.
70317         * modules/unistr/u16-strncpy: New file.
70318         * modules/unistr/u32-strncpy: New file.
70319         * lib/unistr/u8-strncpy.c: New file.
70320         * lib/unistr/u16-strncpy.c: New file.
70321         * lib/unistr/u32-strncpy.c: New file.
70322         * lib/unistr/u-strncpy.h: New file.
70323
70324         * modules/unistr/u8-strnlen: New file.
70325         * modules/unistr/u16-strnlen: New file.
70326         * modules/unistr/u32-strnlen: New file.
70327         * lib/unistr/u8-strnlen.c: New file.
70328         * lib/unistr/u16-strnlen.c: New file.
70329         * lib/unistr/u32-strnlen.c: New file.
70330         * lib/unistr/u-strnlen.h: New file.
70331
70332         * modules/unistr/u8-strpbrk: New file.
70333         * modules/unistr/u16-strpbrk: New file.
70334         * modules/unistr/u32-strpbrk: New file.
70335         * lib/unistr/u8-strpbrk.c: New file.
70336         * lib/unistr/u16-strpbrk.c: New file.
70337         * lib/unistr/u32-strpbrk.c: New file.
70338         * lib/unistr/u-strpbrk.h: New file.
70339
70340         * modules/unistr/u8-strrchr: New file.
70341         * modules/unistr/u16-strrchr: New file.
70342         * modules/unistr/u32-strrchr: New file.
70343         * lib/unistr/u8-strrchr.c: New file.
70344         * lib/unistr/u16-strrchr.c: New file.
70345         * lib/unistr/u32-strrchr.c: New file.
70346
70347         * modules/unistr/u8-strspn: New file.
70348         * modules/unistr/u16-strspn: New file.
70349         * modules/unistr/u32-strspn: New file.
70350         * lib/unistr/u8-strspn.c: New file.
70351         * lib/unistr/u16-strspn.c: New file.
70352         * lib/unistr/u32-strspn.c: New file.
70353         * lib/unistr/u-strspn.h: New file.
70354
70355         * modules/unistr/u8-strstr: New file.
70356         * modules/unistr/u16-strstr: New file.
70357         * modules/unistr/u32-strstr: New file.
70358         * lib/unistr/u8-strstr.c: New file.
70359         * lib/unistr/u16-strstr.c: New file.
70360         * lib/unistr/u32-strstr.c: New file.
70361         * lib/unistr/u-strstr.h: New file.
70362
70363         * modules/unistr/u8-strtok: New file.
70364         * modules/unistr/u16-strtok: New file.
70365         * modules/unistr/u32-strtok: New file.
70366         * lib/unistr/u8-strtok.c: New file.
70367         * lib/unistr/u16-strtok.c: New file.
70368         * lib/unistr/u32-strtok.c: New file.
70369         * lib/unistr/u-strtok.h: New file.
70370
70371         * modules/unistr/u8-uctomb: New file.
70372         * modules/unistr/u16-uctomb: New file.
70373         * modules/unistr/u32-uctomb: New file.
70374         * lib/unistr/u8-uctomb.c: New file.
70375         * lib/unistr/u16-uctomb.c: New file.
70376         * lib/unistr/u32-uctomb.c: New file.
70377
70378         * MODULES.html.sh (Unicode string functions): Add the new modules.
70379
70380 2007-01-08  Bruno Haible  <bruno@clisp.org>
70381
70382         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70383         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70384         subdirectories.
70385
70386 2007-01-08  Karl Berry  <karl@gnu.org>
70387
70388         * doc/error.texi: mention that main() fns must set program_name
70389         when progname is used.
70390
70391 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70392
70393         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70394         WCTYPE_H is empty, for the benefit of builds from non-distclean
70395         directories.  Problem reported by Eric Blake in
70396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70397
70398 2007-01-08  Bruno Haible  <bruno@clisp.org>
70399
70400         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70401         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70402         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70403         PROVIDE_CANONICALIZE_FILENAME_MODE.
70404         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70405
70406 2007-01-08  Bruno Haible  <bruno@clisp.org>
70407
70408         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70409         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70410         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70411         * lib/fts.c: Likewise.
70412         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70413
70414 2006-12-25  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/utf8-ucs4-safe: New file.
70417         * lib/utf8-ucs4-safe.h: New file.
70418         * lib/unistr/utf8-ucs4-safe.c: New file.
70419
70420         * modules/utf16-ucs4-safe: New file.
70421         * lib/utf16-ucs4-safe.h: New file.
70422         * lib/unistr/utf16-ucs4-safe.c: New file.
70423
70424         * MODULES.html.sh (Unicode string functions): Add the new modules.
70425
70426 2007-01-08  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70429         (Depends-on): Add unitypes.
70430         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70431         (u8_mbtouc_aux): Move out to separate file.
70432         (u8_mbtouc): Use ucs4_t, uint8_t types.
70433         * lib/unistr/utf8-ucs4.c: New file.
70434
70435         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70436         (Depends-on): Add unitypes.
70437         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70438         (u16_mbtouc_aux): Move out to separate file.
70439         (u16_mbtouc): Use ucs4_t, uint16_t types.
70440         * lib/unistr/utf16-ucs4.c: New file.
70441
70442         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70443         (Depends-on): Add unitypes.
70444         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70445         (u8_uctomb_aux): Move out to separate file.
70446         (u8_uctomb): Use ucs4_t, uint8_t types.
70447         * lib/unistr/ucs4-utf8.c: New file.
70448
70449         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70450         (Depends-on): Add unitypes.
70451         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70452         (u16_uctomb_aux): Move out to separate file.
70453         (u16_uctomb): Use ucs4_t, uint16_t types.
70454         * lib/unistr/ucs4-utf16.c: New file.
70455
70456 2006-12-25  Bruno Haible  <bruno@clisp.org>
70457
70458         * modules/unitypes: New file.
70459         * lib/unitypes.h: New file.
70460         * MODULES.html.sh (func_all_modules): New section "Unicode string
70461         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70462         this section. Add unitypes.
70463
70464 2007-01-08  Bruno Haible  <bruno@clisp.org>
70465
70466         Avoid variable names that conflict with those from libtool.
70467         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70468         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70469         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70470         library_names_spec to acl_library_names_spec, hardcode_* to
70471         acl_hardcode_*.
70472         Reported by Ralf Wildenhues.
70473
70474 2007-01-08  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70477         definition.
70478         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70479         definition.
70480         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70481         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70482         definition.
70483         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70484         definition.
70485         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70486         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70487         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70488         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70489         definition.
70490         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70491         definition.
70492         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70493         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70494         GC_USE_<algorithm>.
70495         * lib/gc-libgcrypt.c: Likewise.
70496         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70497         * modules/gc-arctwo (configure.ac): Likewise.
70498         * modules/gc-des (configure.ac): Likewise.
70499         * modules/gc-hmac-md5 (configure.ac): Likewise.
70500         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70501         * modules/gc-md2 (configure.ac): Likewise.
70502         * modules/gc-md4 (configure.ac): Likewise.
70503         * modules/gc-md5 (configure.ac): Likewise.
70504         * modules/gc-random (configure.ac): Likewise.
70505         * modules/gc-rijndael (configure.ac): Likewise.
70506         * modules/gc-sha1 (configure.ac): Likewise.
70507
70508 2007-01-08  Bruno Haible  <bruno@clisp.org>
70509
70510         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70511         macro definition.
70512         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70513         definition.
70514         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70515         definition.
70516         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70517         * modules/fcntl-safer (configure.ac): Likewise.
70518         * modules/fopen-safer (configure.ac): Likewise.
70519         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70520         GNULIB_FWRITEERROR macro definition.
70521
70522 2007-01-08  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/gnulib-common.m4: New file.
70525         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70526         (func_get_filelist): Add m4/gnulib-common.m4.
70527
70528 2007-01-08  Bruno Haible  <bruno@clisp.org>
70529
70530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70531         command.
70532
70533 2007-01-08  Jim Meyering  <jim@meyering.net>
70534
70535         Use a more robust test for a "can't happen" condition.
70536         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70537         narrowed the st_size value.  Presuming the "can't happen" condition
70538         is true, that narrowing could conceivably convert an invalid st_size
70539         value into a valid one.  Instead, use a change based on Matthew
70540         Woehlke's original patch.
70541
70542         Slight readability improvement: use an assert-like macro
70543         in place of literal "abort ()" uses.
70544         * lib/fts.c (fts_assert): Define.
70545         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70546         Use this macro instead of a bare 'abort'.
70547
70548 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70551         simply work around them.
70552         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70553         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70554         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70555         declaring.
70556         Don't bother to define as macros, since the standard doesn't require it.
70557         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70558         longer worry about IRIX 5.3.
70559         (HAVE_WCTYPE_CTMP_BUG): Remove.
70560
70561 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70564         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70565         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70566         Problems reported by Georg Schwarz for IRIX 5.3.
70567
70568         * gnulib-tool (autoconf_minversion): Take the maximum version number
70569         found, not the minimum.  Problem reported by James Youngman.
70570
70571 2007-01-03  Karl Berry  <karl@gnu.org>
70572
70573         * doc/error.texi: new file, explaining interaction with progname.
70574         * doc/gnulib.texi: include it.  Update copyright.
70575
70576 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70577
70578         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70579         AC_CANONICAL_HOST, to improve autobuild outputs.
70580
70581 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70582             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70583
70584         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70585         sockets, server sockets, and other file descriptors.  Count errors
70586         to compute the return value.  Reorder the code a bit to be easier
70587         to follow.  Don't set event bits that were not requested (except
70588         POLLERR and POLLHUP).
70589
70590 2007-01-01  Bruno Haible  <bruno@clisp.org>
70591
70592         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70593
70594 2007-01-03  Jim Meyering  <jim@meyering.net>
70595
70596         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70597
70598 2007-01-02  Bruno Haible  <bruno@clisp.org>
70599
70600         * modules/settime (Include): Require timespec.h.
70601         * modules/nanosleep (Include): Likewise.
70602
70603 2007-01-01  Bruno Haible  <bruno@clisp.org>
70604
70605         * gnulib-tool (func_emit_copyright_notice): Bump year.
70606         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70607
70608 2007-01-01  Bruno Haible  <bruno@clisp.org>
70609
70610         Improve support for OpenBSD.
70611         * build-aux/config.rpath (libname_spec): Export.
70612         (library_names_spec): New variable. Export.
70613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70614         library_names_spec from the config.rpath output. Locate shared library
70615         through the name pattern in library_names_spec.
70616
70617 2007-01-01  Eric Blake  <ebb9@byu.net>
70618
70619         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70620
70621 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70624         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70625         assume the C locale, and avoid an "eval" that could cause trouble.
70626         Problem with SORT reported by Bob Proulx.
70627
70628         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70629         Define.  Trivial patch from Henning Nielsen Lund, originally
70630         sent to bug-grep@gnu.org today.
70631
70632 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70635         struct stat.  Problem reported by Henning Nielsen Lund.
70636         * lib/acl.c: Include acl.h first, to check interface.  Don't
70637         bother to include sys/types.h and sys/stat.h again.
70638
70639 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         Import the following change from libc; problem reported by
70642         Sven Verdoolaege.
70643
70644         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70645
70646         [BZ #1373]
70647         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70648
70649 2006-12-28  Jim Meyering  <jim@meyering.net>
70650
70651         * build-aux/announce-gen: Do not assume that the package
70652         builds any of tar.gz, tar.bz2, and .xdelta files.
70653         Suggestion from Simon Josefsson.
70654
70655 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70656
70657         * modules/announce-gen: New file.
70658
70659 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70662         handles its gotchas now.
70663         * lib/mbswidth.c: Likewise.
70664         * lib/wcwidth.h: Likewise.
70665         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70666         and iswcntrl; the wctype module does this stuff now.
70667         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70669         * modules/mbchar (Depends-on): Add wctype.
70670         * modules/mbswidth (Depends-on): Likewise.
70671         * modules/wcwidth (Depends-on): Likewise.
70672
70673 2006-12-27  Eric Blake  <ebb9@byu.net>
70674
70675         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70676         module uses more than what <wctype.h> is required to provide.
70677
70678 2006-12-26  Eric Blake  <ebb9@byu.net>
70679
70680         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70681
70682 2006-12-26  Eric Blake  <ebb9@byu.net>
70683
70684         * modules/absolute-header: New module.
70685         * modules/fcntl (Depends-on): Depend on it.
70686         * modules/inttypes (Depends-on): Likewise.
70687         * modules/stdint (Depends-on): Likewise.
70688         * modules/sys_stat (Depends-on): Likewise.
70689         * modules/wctype (Depends-on): Likewise.
70690         * MODULES.html.sh (Support for building libraries and
70691         executables): Document it.
70692
70693 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * gnulib-tool (SED): Remove, undoing previous change.
70696         The problem was that it broke coreutils on Solaris, because
70697         "sed --posix" leaked into a makefile.
70698         (sed): New alias, if 'alias' and GNU sed.
70699
70700 2006-12-24  Jim Meyering  <jim@meyering.net>
70701
70702         Work around an fchownat bug in glibc-2.4:
70703         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70704         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70705         in spite of the -P option.
70706         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70707         New macros.
70708         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70709         * modules/openat (Files): Add lib/fchownat.c.
70710         * lib/openat.c (fchownat): Don't define here.  Move to...
70711         * lib/fchownat.c: ...this new file.
70712
70713 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         Fix bug reported by Bruno Haible in
70716         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70717         where quotearg.c didn't compile on Mac OS X 10.2 because it
70718         lacks <wchar.h> and wint_t.
70719         * lib/wctype_.h (__wctype_wint_t): New type.
70720         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70721         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70722         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70723         Arg is now of type __wctype_wint_t, not wint_t.
70724         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70725         substitute HAVE_WINT_T.
70726         * modules/wctype (Files): Add m4/wint_t.m4.
70727         (wctype.h): Substitute HAVE_WINT_T.
70728
70729 2006-12-23  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70732
70733 2006-12-23  Bruno Haible  <bruno@clisp.org>
70734
70735         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70736         S_ISLNK.
70737         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70738         mingw.
70739
70740 2006-12-22  Bruno Haible  <bruno@clisp.org>
70741
70742         * lib/copy-file.c: Include acl.h.
70743         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70744         Close the file descriptors only after being done with copy_acl.
70745         * modules/copy-file (Depends-on): Add acl.
70746
70747 2006-12-22  Bruno Haible  <bruno@clisp.org>
70748
70749         * gnulib-tool (SED): New variable.
70750         Use $SED instead of sed everywhere.
70751
70752 2006-12-22  Bruno Haible  <bruno@clisp.org>
70753
70754         * modules/no-c++: New file.
70755         * m4/no-c++.m4: New file.
70756         * MODULES.html.sh (Support for building libraries and executables):
70757         Add no-c++.
70758
70759 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70762         Include <limits.h>, and use its INT_MAX to rewrite the
70763         j loop so that it does not overflow 'int'.  Problem reported by
70764         Ralf Wildenhues in
70765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70766         Play it safe by shifting left by 1 rather than multiplying by 2,
70767         as GCC is less likely to optimize this away when the value
70768         is signed (when it assumes overflow leads to undefined behavior).
70769         Also, don't assume time_t uses two's complement.
70770
70771 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * MODULES.html.sh: New module wctype.
70774         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70775         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70776         <wctype.h>, since the new wctype module should fix this.
70777         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70778         the wctype module should arrange for it.
70779         * lib/regex_internal.h: Likewise.
70780         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70781         since the wctype module should handle this now.
70782         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70783         * modules/fnmatch (Depends-on): Add wctype.
70784         * modules/quotearg (Depends-on): Likewise.
70785         * modules/regex (Depends-on): Likewise.
70786
70787 2006-12-19  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70790         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70791
70792 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70793
70794         * modules/savewd (Depends-on): Fix dependency on fcntl.
70795
70796 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70799         conforms to C99, rather than relying on the user's environment
70800         setting of STDINT_H.
70801
70802 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70803         and Eric Blake  <ebb9@byu.net>
70804
70805         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70806         This is more consistent with the other defines here.
70807         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70808         Port to z/OS.  Problem reported by Paul Gilmartin.
70809         Change local vars to use gl_ prefix rather than ac_.
70810         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70811         with other defines.
70812         * modules/double-slash-root: New module.
70813         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70814         (Depends-on): Add double-slash-root.
70815         * MODULES.html.sh (File system functions): Mention new module.
70816
70817 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70820         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70821         This is for the benefit of gzip, which doesn't do i18n.
70822
70823 2006-12-12  Jim Meyering  <jim@meyering.net>
70824
70825         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70826         Reported by Andreas Schwab <schwab@suse.de>.
70827
70828 2006-12-12  Bruno Haible  <bruno@clisp.org>
70829
70830         Merge these changes.
70831         2006-09-05  Bruno Haible  <bruno@clisp.org>
70832         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70833         iconv_alloc succeeded.
70834         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70835         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70836         test for " && dest " at the end - dest is always != NULL there. Call
70837         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70838         with 2xNULL arguments, also to flush the state storage. Handle the
70839         IRIX iconv behaviour. Realloc the final result, to throw away unused
70840         memory.
70841
70842 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70845         and fchmodat unconditionally, since glibc 2.4 has them.
70846         Problem reported by Arkadiusz Miskiewicz.
70847
70848 2006-12-10  Bruno Haible  <bruno@clisp.org>
70849
70850         * gnulib-tool (func_import): Show the include files only for those
70851         modules that are copied and specified.
70852         Reported by Karl Berry.
70853
70854 2006-12-08  Jim Meyering  <jim@meyering.net>
70855
70856         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70857         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70858
70859         * build-aux/announce-gen: Add two new options, both optional:
70860         --bootstrap-tools=TOOL_LIST
70861               a comma-separated list of tools, e.g.,
70862               autoconf,automake,bison,gnulib
70863         --gnulib-snapshot-date=DATE
70864               if gnulib is in the bootstrap tool list,
70865               then report this as the snapshot date.
70866               If not specified, use the current date/time.
70867               If you specify a date here, be sure it's UTC.
70868
70869 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70870
70871         * tests/test-argp-2.sh: Fix test to match actual output.
70872         (func_compare): Fix sed script to be portable.
70873
70874 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70877         workaround for this case.  It is not autoconfigured now; offhand
70878         it's hard to see how to autoconfigure it.
70879
70880 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70883         a directory that is about to be chowned.  Such a directory's
70884         initial file permissions should permit the owner only and this
70885         should not be changed until after the chown, since the group and
70886         other bits would be incorrect if they granted permission before
70887         the chown.
70888
70889         Fix porting problem for iswctype reported by Georg Schwarz in:
70890         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70891         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70892         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70893         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70894         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70895
70896 2006-12-03  Jim Meyering  <jim@meyering.net>
70897
70898         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70899         p->fts_statp may not yet be defined.
70900         (fts_read): Instead, set it in the caller, once p->fts_statp is
70901         sure to be defined, and corresponds to a top-level directory.
70902         This bug made du -x fail.  Here's the coreutils test case:
70903         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70904         Reported by Mike Frysinger.
70905
70906 2006-12-01  Jim Meyering  <jim@meyering.net>
70907
70908         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70909         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70910         Reported by Simon Josefsson.
70911
70912 2006-11-30  Jim Meyering  <jim@meyering.net>
70913
70914         * m4/warning.m4: Use the all-permissive copyright notice
70915         recommended by RMS (rather than LGPL).
70916         * m4/vararrays.m4: Likewise.
70917         * m4/flexmember.m4: Likewise.
70918
70919 2006-11-29  Bruno Haible  <bruno@clisp.org>
70920
70921         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70922         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70923         using +=.
70924         Reported by Simon Josefsson <simon@josefsson.org>.
70925
70926 2006-11-28  James Youngman <jay@gnu.org>
70927
70928         * README: Advise users that they might find the bug-gnulib@gnu.org
70929         and autotools-announce@gnu.org mailing lists useful.
70930
70931 2006-11-28  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/ptrdiff_max.m4: Remove file.
70934
70935 2006-11-21  Bruno Haible  <bruno@clisp.org>
70936
70937         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70938         _AC_COMPUTE_INT.
70939         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70940         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70941         _AC_COMPUTE_INT.
70942         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70943         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70944         _AC_COMPUTE_INT.
70945         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70946
70947 2006-11-28  Jim Meyering  <jim@meyering.net>
70948
70949         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70950         warning from "gcc -Wshadow" about shadowing the builtin.
70951
70952 2006-11-27  Bruno Haible  <bruno@clisp.org>
70953
70954         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70955         _AC_COMPUTE_INT.
70956         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70957
70958 2006-11-27  Bruno Haible  <bruno@clisp.org>
70959             Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70962
70963 2006-11-26  Bruno Haible  <bruno@clisp.org>
70964
70965         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70966         noinst_LTLIBRARIES.
70967
70968 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70969             Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70972         if compiling with "gcc -ansi".
70973
70974 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         Fix some incompatibilities with gcc -ansi -pedantic.
70977         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70978         if compiling pedantically with GCC, unless it's C99 or later.
70979         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70980         it mishandles gcc -ansi -pedantic as well.
70981         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70982         if gcc -pedantic.
70983         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70984         initializers for struct if -pedantic, unless it's C99 or later.
70985
70986 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70987
70988         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70989         Don't close an fd more than once. Identical atimes indicate
70990         success, not failure.
70991
70992 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70993
70994         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70995
70996 2006-11-23  Jim Meyering  <jim@meyering.net>
70997
70998         * build-aux/announce-gen: New file.  From coreutils.
70999
71000 2006-11-22  Jim Meyering  <jim@meyering.net>
71001
71002         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71003         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71004         (fts_read): Use a temporary to narrow the overused st_size member
71005         before using it in a switch statement.  Reported by Matthew Woehlke.
71006
71007         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71008         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71009
71010 2006-11-20  Bruno Haible  <bruno@clisp.org>
71011
71012         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71013         changequote instead of pairs of brackets.
71014         Reported by Andreas Schwab <schwab@suse.de>.
71015
71016 2006-11-21  Jim Meyering  <jim@meyering.net>
71017
71018         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71019         so as to remain compatible with older compilers.
71020         Patch from Michael Deutschmann.
71021
71022 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * MODULES.html.sh (File system functions): Add openat.
71025
71026         * lib/openat.h (rpl_fstatat): New macro, if
71027         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71028         (fstatat): Define to rpl_fstatat under the same conditions,
71029         unless COMPILING_FSTATAT.
71030         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71031         seems to have the bug.
71032         * lib/fstatat.c: New file.
71033         * modules/openat (Files): Add it.
71034
71035 2006-11-20  Bruno Haible  <bruno@clisp.org>
71036
71037         * Makefile: New file.
71038
71039 2006-11-20  Jim Meyering  <jim@meyering.net>
71040
71041         The beginnings of syntax-related checks for gnulib.
71042         * lib/Makefile: New file.
71043         * lib/t-idcache: New script.  Ensure that the two halves of
71044         idcache.c stay in sync.
71045
71046         * lib/idcache.c: Adjust comments in user- and group- portions to
71047         be more accurate, and to be consistent with one another.
71048
71049 2006-11-20  Jim Meyering  <jim@meyering.net>
71050
71051         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71052         continue using the flexible array member (thus, this module performs
71053         half as many malloc calls), with the addition that...
71054         (getgroup, getuser): Consistently record a non-match via an empty
71055         "name" string, and map an empty string match to a NULL return value.
71056         * modules/idcache (Depends-on): Re-add flexmember.
71057
71058         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71059         (getuidbyname, getgroup, getgidbyname): Likewise.
71060
71061         Use cleaner syntax: NULL rather than 0.
71062         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71063
71064 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71067         It mishandled the case where the group was missing.
71068         Problem reported by Greg Schafer.
71069         * modules/idcache: Likewise.
71070
71071 2006-11-18  Jim Meyering  <jim@meyering.net>
71072
71073         * check-module (%exempt_header): Add exception for some
71074         conditionally-included headers.
71075
71076         * modules/i-ring (Depends-on): Add verify.
71077         (License): Change to LGPL.
71078
71079 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71082         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71083         and inttostr.h.  Use snprintf rather than uinttostr, so that
71084         LGPLed code doesn't depend on GPLed.
71085
71086 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * modules/inline (License): Change from GPL to LGPL.
71089
71090 2006-11-17  Jim Meyering  <jim@meyering.net>
71091
71092         * modules/d-type (License): Switch to LGPL.
71093
71094 2006-11-15  Bruno Haible  <bruno@clisp.org>
71095
71096         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71097
71098 2006-11-15  Eric Blake  <ebb9@byu.net>
71099
71100         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71101         the module dependency.
71102
71103 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71104             Bruno Haible  <bruno@clisp.org>
71105
71106         * gnulib-tool (func_create_testdir): Add license consistency check.
71107
71108 2006-11-15  Eric Blake  <ebb9@byu.net>
71109
71110         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71111         random "(cached)" in configure output.
71112
71113 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71114
71115         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71116         test for conforming inttypes.h is both announced and cached.
71117
71118         * MODULES.html.sh (seen_modules, seen_files): New variables.
71119         (func_module): Rewrite to use a few less gnulib-tool and sed
71120         invocations.  Avoid a couple of quadratic algorithms for ...
71121         (missed_modules, missed_files): ... these, with ...
71122         (func_append, func_tmpdir): ... these new functions, from
71123         gnulib-tool.  Analogously, install traps for cleanup.
71124
71125         * tests/test-gc.c (main): Remove unused variables.
71126         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71127
71128 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * modules/inttostr (License): Change to LGPL.
71131
71132 2006-11-14  Eric Blake  <ebb9@byu.net>
71133
71134         * modules/tempname (License): Change to LGPL.
71135
71136 2006-11-14  Eric Blake  <ebb9@byu.net>
71137
71138         * doc/functions.texi (Function Portability): *printf functions on
71139         Cygwin now understand all POSIX size specifiers.
71140
71141 2006-11-14  Bruno Haible  <bruno@clisp.org>
71142
71143         * modules/c-ctype (License): Change to LGPL.
71144
71145 2006-11-12  Bruno Haible  <bruno@clisp.org>
71146
71147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71148         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71149         for GNOME libraries, for which the include files are installed in
71150         subdirectories of $prefix/include.
71151
71152 2006-11-12  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/lib-link.m4: Require at least autoconf-2.54.
71155         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71156         name to underscores for the --with option.
71157
71158 2006-11-13  Bruno Haible  <bruno@clisp.org>
71159
71160         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71161         the tests directory.
71162         Reported by Ralf Wildenhues.
71163
71164 2006-11-13  Bruno Haible  <bruno@clisp.org>
71165
71166         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71167         (func_emit_initmacro_end): Undo the override here.
71168         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71169         Works around the famous automake error in coreutils.
71170
71171 2006-11-13  Eric Blake  <ebb9@byu.net>
71172
71173         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71174         element, not its node.
71175
71176 2006-11-12  Bruno Haible  <bruno@clisp.org>
71177
71178         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71179         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71180
71181 2006-11-12  Bruno Haible  <bruno@clisp.org>
71182
71183         * gnulib-tool: New option --local-symlink.
71184         (func_usage): Document it.
71185         (lsymbolic): New variable.
71186         (func_import, func_create_testdir): If --symlink was not specified,
71187         test whether --local-symlink was specified and the file comes from
71188         the local_gnulib_dir.
71189
71190 2006-11-12  Bruno Haible  <bruno@clisp.org>
71191
71192         * gnulib-tool (func_ln): New function.
71193         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71194
71195 2006-11-12  Bruno Haible  <bruno@clisp.org>
71196
71197         Finish support for source files in subdirectories.
71198         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71199         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71200         AUTOMAKE_OPTIONS.
71201         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71202
71203 2006-11-12  Bruno Haible  <bruno@clisp.org>
71204
71205         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71206         EXTRA_lib_SOURCES augmentation.
71207         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71208
71209 2006-11-12  Jim Meyering  <jim@meyering.net>
71210
71211         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71212         file descriptors.  This also averts a failure on systems with
71213         native openat support when a traversed directory lacks "x" access.
71214         * lib/fts_.h: Include "i-ring.h"
71215         (struct FTS) [fts_fd_ring]: New member.
71216         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71217         (FCHDIR): Add parentheses.
71218         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71219         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71220         When descending, rather than simply closing the previous
71221         fts_cwd_fd value, push that file descriptor onto the ring.
71222         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71223         (fts_open): Initialize the new fd_ring member.
71224         (fts_close): Clear the ring.
71225         (fts_safe_changedir): When possible, use our new fd_ring to skip
71226         the diropen and fstat and dev/ino comparison that would normally
71227         accompany a virtual `chdir ("..")'.
71228
71229         * modules/fts (Depends-on): Add i-ring.
71230         * modules/i-ring: New module.
71231         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71232         * m4/i-ring.m4: New file.
71233
71234 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71235
71236         * gnulib-tool (func_create_testdir): Fix replacement of
71237         `build-aux' in configure.ac.  Run autotools in gltests
71238         subdirectory.
71239         (func_create_testdir, func_create_megatestdir, test): There is
71240         no need for '--force' in most autotool invocations in a new
71241         tree.  Actually fail the whole test if any of the tools, or the
71242         configure or make stages fail.
71243
71244         Sync from Automake.
71245         * build-aux/gnupload: Revert last change.  Add pointer to upload
71246         instructions of the GNU Maintenance Instructions.
71247         Suggestion by Karl Berry.
71248
71249 2006-11-10  Jim Meyering  <jim@meyering.net>
71250
71251         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71252
71253 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71256         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71257         (bind_textdomain_codeset) [! ENABLE_NLS]:
71258         Evaluate all the arguments.  That way, callers get compatible behavior
71259         if the arguments have side effects.  Also, it avoids some GCC
71260         diagnostics in some cases; Joel E. Denny reported problems when Bison
71261         was configured with --enable-gcc-warnigs.
71262
71263 2006-11-10  Jim Meyering  <jim@meyering.net>
71264
71265         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71266         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71267         account.
71268
71269 2006-11-10  Jim Meyering  <jim@meyering.net>
71270
71271         * modules/inline: New file/module.
71272         * modules/xalloc (Files): Remove m4/inline.m4.
71273         (Depends-on): Add inline, instead.
71274         * modules/oset: Likewise.
71275         * modules/list: Likewise.
71276
71277 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71280         Problem reported by Matthew Woehlke.
71281
71282 2006-11-09  Bruno Haible  <bruno@clisp.org>
71283
71284         * lib/tempname.c (gen_tempname): Remove variant that invokes
71285         __gen_tempname.
71286         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71287         __gen_tempname.
71288
71289 2006-11-08  Bruno Haible  <bruno@clisp.org>
71290
71291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71292         to 'yes' instead of 'cross-compiling'.
71293
71294 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/quotearg.h (quotearg_free): New decl.
71297         * lib/quotearg.c (quotearg_free): New function.
71298         (slot0, nslots, slotvec0, slotvec):
71299         Now file-scope so that quotearg_free can get at them.
71300
71301 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71302
71303         Sync from Automake.
71304         * build-aux/gnupload: Add missing 'gnu' to example URL.
71305         Report by Karl Berry.
71306
71307 2006-11-08  Bruno Haible  <bruno@clisp.org>
71308
71309         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71310         Suggested by Paul Eggert.
71311
71312 2006-11-08  Jim Meyering  <jim@meyering.net>
71313
71314         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71315         It's already included if !_LIBC.
71316         (fts_safe_changedir): Add a comment.
71317
71318 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71321         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71322         Matthew Woehlke.
71323
71324         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71325         definitions up, to avoid colliding with change below.
71326         (static_inline) [HAVE_INLINE]: New macro.
71327         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71328         Provide extern decls when !HAVE_INLINE.  Do not define unless
71329         static_inline is defined, either by us or by xmalloc.c.  Use
71330         static_inline rather than static inline.
71331         (XCALLOC): Optimize sizeof(T) = 1 case.
71332         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71333
71334 2006-11-07  Bruno Haible  <bruno@clisp.org>
71335
71336         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71337         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71338         AC_C_INLINE.
71339         * modules/xalloc (Files): Add m4/inline.m4.
71340
71341 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71342
71343         * README: Fix typo.
71344         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71345         (Miscellanous Notes): ...from this.
71346
71347 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71350         Mention that offsetof should be used instead of sizeof.
71351         From Bruno Haible.
71352
71353 2006-11-07  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71356
71357 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71360         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71361         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71362         (gl_tree_add_before, gl_tree_add_after):
71363         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71364         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71365         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71366         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71367         (gl_linked_add_after, gl_linked_add_at): Likewise.
71368         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71369         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71370         (gl_tree_add_before, gl_tree_add_after): Likewise.
71371         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71372         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71373         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71374
71375 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71376
71377         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71378
71379 2006-11-06  Bruno Haible  <bruno@clisp.org>
71380
71381         * m4/inline.m4: New file.
71382         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71383         * modules/list (Files): Add m4/inline.m4.
71384         * modules/oset (Files): Likewise.
71385
71386 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * lib/idcache.c: Include <stddef.h>, for offsetof.
71389         (struct userid.name): Change from char * to a flexible array member.
71390         All uses changed.
71391         * modules/idcache (Depends-on): Add flexmember.
71392
71393         * MODULES.html.sh (Core language properties): New module flexmember.
71394         * modules/flexmember, m4/flexmember.m4: New files.
71395
71396         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71397         inline functions that are identical with the old xnmalloc_inline,
71398         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71399         that we can avoid some unnecessary integer multiplications and
71400         divisions in the common case where the element size is known at
71401         compile time.
71402         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71403         needed.
71404         (xnboundedmalloc): Remove.
71405         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71406         arguments, for consistency with rest of this header.
71407         (xcharalloc): Rewrite using XNMALLOC.
71408         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71409         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71410         versions have been moved to lib/xalloc.h and renamed to be the
71411         non-*_inline versions.
71412         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71413         and xnrealloc functions, since those functions are now inline and
71414         now call us.
71415         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71416         renaming described above.
71417         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71418         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71419         captures the dependency in AC_C_INLINE.
71420
71421         New module canonicalize-lgpl, proposed by Charles Wilson in
71422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71423         with a few small changes afterwards.
71424         * MODULES.html.sh (File system functions): New module
71425         canonicalize-lgpl.
71426         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71427         and canonicalize_file_name.
71428         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71429         * modules/canonicalize-lgpl: New files.
71430
71431 2006-11-05  Bruno Haible  <bruno@clisp.org>
71432
71433         * gnulib-tool (func_import, func_create_testdir): Create directories
71434         also for files in subdirectories of lib/.
71435
71436 2006-11-05  Bruno Haible  <bruno@clisp.org>
71437
71438         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71439         ANSI C compliant.
71440
71441 2006-11-03  Bruno Haible  <bruno@clisp.org>
71442
71443         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71444         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71445         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71446         (xnboundedmalloc): New inline function.
71447         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71448         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71449         xmalloc.
71450         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71451         xmalloc.
71452         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71453         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71454         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71455         xmalloc.
71456         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71457         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71458         xmalloc.
71459         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71460         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71461         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71462         xmalloc.
71463         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71464         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71465         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71466         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71467         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71468         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71469         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71470
71471 2006-11-03  Bruno Haible  <bruno@clisp.org>
71472
71473         * lib/c-ctype.h [C++]: Define functions without name mangling.
71474         * lib/fwriteerror.h [C++]: Likewise.
71475         * lib/gcd.h [C++]: Likewise.
71476         * lib/linebreak.h [C++]: Likewise.
71477
71478 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71481         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71482         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71483         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71484         Check for functions and headers just once.
71485         Check for declaration of canonicalize_file_name.
71486         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71487
71488 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71489
71490         * gnulib-tool (func_import): Fix typo in actioncmd.
71491
71492 2006-11-02  Bruno Haible  <bruno@clisp.org>
71493
71494         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71495         newline sequence in the Makefile.am snippet as a space, like "make"
71496         does.
71497         Reported by Roger Persson <perrog@gmail.com>.
71498
71499 2006-11-01  Bruno Haible  <bruno@clisp.org>
71500
71501         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71502         already declared in <string.h>.
71503         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71504
71505 2006-11-01  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71508         * lib/strcase.h: Include <string.h>.
71509         (strcasecmp): Define to rpl_strcasecmp here.
71510
71511 2006-11-01  Bruno Haible  <bruno@clisp.org>
71512
71513         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71514
71515 2006-11-01  Eric Blake  <ebb9@byu.net>
71516
71517         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71518
71519         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71520
71521 2006-10-29  Bruno Haible  <bruno@clisp.org>
71522
71523         Make it compile in C++ mode.
71524         * lib/full-write.c (full_rw): Add a cast.
71525
71526 2006-11-01  Bruno Haible  <bruno@clisp.org>
71527
71528         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71529         be POSIX compliant.
71530         Reported by Roger Persson <perrog@gmail.com>.
71531
71532 2006-11-01  Eric Blake  <ebb9@byu.net>
71533
71534         * lib/getopt_.h: Fix comments.
71535
71536 2006-10-31  Eric Blake  <ebb9@byu.net>
71537
71538         * modules/tmpdir (Depends-on): Add sys_stat.
71539         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71540         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71541         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71542         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71543         tempname.
71544
71545 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         Avoid some C++ diagnostics reported by Bruno Haible.
71548         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71549         xmalloc.
71550         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71551         (struct slotvec): Move to top level.
71552         (quotearg_n_options): Rewrite to avoid xmalloc.
71553         * lib/xalloc.h (xcharalloc): New function.
71554         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71555         [defined __cplusplus]: Add function template that provides result
71556         type propagation.  This part of the change is from Bruno Haible.
71557
71558 2006-10-29  Bruno Haible  <bruno@clisp.org>
71559
71560         Make it compile in C++ mode.
71561         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71562         * lib/strnlen1.c (strnlen1): Cast memchr result.
71563         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71564         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71565         (create_temp_dir): Rename local variable 'template'.
71566         (compile_csharp_using_sscli): Add cast.
71567         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71568         * lib/findprog.c (find_in_path): Likewise.
71569         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71570         * lib/wait-process.c (register_slave_subprocess): Likewise.
71571
71572 2006-10-22  Bruno Haible  <bruno@clisp.org>
71573
71574         * modules/tsearch: New file.
71575         * lib/tsearch.h: New file.
71576         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71577         * m4/tsearch.m4: New file.
71578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71579
71580 2006-10-29  Eric Blake  <ebb9@byu.net>
71581
71582         * lib/arcfour.c: Assume config.h.
71583         * lib/arctwo.c: Likewise.
71584         * lib/base64.c: Likewise.
71585         * lib/check-version.c: Likewise.
71586         * lib/crc.c: Likewise.
71587         * lib/des.c: Likewise.
71588         * lib/gc-gnulib.c: Likewise.
71589         * lib/gc-libgcrypt.c: Likewise.
71590         * lib/gc-pbkdf2-sha1.c: Likewise.
71591         * lib/getaddrinfo.c: Likewise.
71592         * lib/getdelim.c: Likewise.
71593         * lib/getline.c: Likewise.
71594         * lib/hmac-md5.c: Likewise.
71595         * lib/hmac-sha1.c: Likewise.
71596         * lib/iconvme.c: Likewise.
71597         * lib/md2.c: Likewise.
71598         * lib/md4.c: Likewise.
71599         * lib/memxor.c: Likewise.
71600         * lib/read-file.c: Likewise.
71601         * lib/readline.c: Likewise.
71602         * lib/rijndael-alg-fst.c: Likewise.
71603         * lib/rijndael-api-fst.c: Likewise.
71604         * lib/xgetdomainname.c: Likewise.
71605
71606 2006-10-28  Eric Blake  <ebb9@byu.net>
71607
71608         * lib/xstrndup.c: Assume config.h.
71609
71610 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71613         stat-macros.h is now for our own macros, whereas stat_h is for
71614         macros in the <sys/stat.h> name space.
71615         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71616         (STAT_MACROS_H): Remove.
71617         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71618         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71619         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71620         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71621         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71622         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71623         Move these macros to ...
71624         * lib/stat_.h: here.  Don't include stat-macros.h.
71625         * lib/canonicalize.c: Don't include stat-macros.h.
71626         * lib/chown.c: Likewise.
71627         * lib/euidaccess.c: Likewise.
71628         * lib/file-type.c: Likewise.
71629         * lib/filemode.c: Likewise.
71630         * lib/glob.c: Likewise.
71631         * lib/isapipe.c: Likewise.
71632         * lib/lchown.c: Likewise.
71633         * lib/lstat.c: Likewise.
71634         * lib/mkdir-p.c: Likewise.
71635         * lib/rmdir.c: Likewise.
71636         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71637         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71638         unless mkdir isn't declared, to speed up 'configure'.
71639         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71640         would define all the S_* symbols.
71641         * modules/canonicalize (Depends-on):
71642         Depend on sys_stat, not stat-macros.
71643         * modules/chown: Likewise.
71644         * modules/euidaccess: Likewise.
71645         * modules/filemode: Likewise.
71646         * modules/file-type: Likewise.
71647         * modules/glob: Likewise.
71648         * modules/isapipe: Likewise.
71649         * modules/lchown: Likewise.
71650         * modules/lstat: Likewise.
71651         * modules/mkancesdirs: Likewise.
71652         * modules/rmdir: Likewise.
71653         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71654         * modules/modechange: Likewise.
71655         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71656         (configure.ac): Remove gl_STAT_MACROS.
71657         * modules/sys_stat (Depends-on): Remove stat-macros.
71658
71659 2006-10-27  Bruno Haible  <bruno@clisp.org>
71660
71661         * m4/signed.m4: Remove file.
71662         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71663         invocation.
71664         * modules/vasnprintf (Files): Remove m4/signed.m4.
71665
71666 2006-10-27  Bruno Haible  <bruno@clisp.org>
71667
71668         Update to GNU gettext 0.16.
71669         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71670         m4/inttypes-h.m4, m4/signed.m4.
71671         * m4/gettext.m4: Update to GNU gettext 0.16.
71672         * m4/intl.m4: New file, from GNU gettext.
71673         * m4/intldir.m4: New file, from GNU gettext.
71674         * config/srclist.txt: Update
71675
71676 2006-10-27  Eric Blake  <ebb9@byu.net>
71677
71678         * MODULES.html.sh: Document tempname.
71679         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71680         dependencies.
71681         (Files): Move lib/tempname.c...
71682         * modules/tempname: ...to this new module.
71683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71684         (gl_PREREQ_TEMPNAME): Move...
71685         * m4/tempname.m4: ...to this new file.
71686         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71687         * modules/sys_stat (Depends-on): Add stat-macros.
71688         * lib/stat_.h (includes): Pick up stat macros.
71689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71690         if stat macros are broken.
71691         * lib/tempname.c (includes): No need to include "stat-macros.h".
71692         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71693         (direxists, __path_search) [!_LIBC]: Don't compile these in
71694         gnulib; the tmpdir module covers that.
71695         * lib/tempname.h: New file.
71696
71697 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * COPYING: Explain how gnulib-tool converts licence headers.
71700         Almost all wording by Eric Blake.
71701
71702 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * lib/mbchar.h (is_basic_table): Make read-only.
71705         * lib/mbchar.c (is_basic_table): Likewise.
71706         Reported by John Darrington.
71707
71708 2006-10-25  Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/progname.h (set_program_name): Undefine before defining.
71711
71712 2006-10-25  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71715         false for non-gcc C++ compilers.
71716         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71717
71718 2006-10-24  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71721         iconv implementations like Irix iconv.
71722
71723 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * modules/vararrays: New file.
71726         * m4/vararrays.m4: New file, taken from diffutils.
71727         * MODULES.html.sh: New module vararrays.
71728
71729 2006-10-24  Karl Berry  <karl@gnu.org>
71730
71731         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71732         Don't call GNU Unix.
71733
71734 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71735
71736         * users.txt: Add Libtool.
71737
71738         Sync from Libtool:
71739
71740         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71743         to gnulib's policy of including config.h unconditionally.
71744
71745 2006-10-24  Bruno Haible  <bruno@clisp.org>
71746
71747         * modules/wcwidth (Files): Add m4/wint_t.m4.
71748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71749         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71750
71751 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71754         to pacify GCC with some -W flags enabled.  Problem reported by
71755         Bruno Haible.
71756
71757 2006-10-24  Jim Meyering  <jim@meyering.net>
71758
71759         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71760         Reported by Karl Berry.
71761
71762 2006-10-23  Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71765
71766 2006-10-24  Bruno Haible  <bruno@clisp.org>
71767
71768         * lib/gl_list.h: Use C comment style, not C++ comment style.
71769
71770 2006-10-23  Eric Blake  <ebb9@byu.net>
71771
71772         * lib/getaddrinfo.c (includes): Add missing include.
71773
71774 2006-10-23  Bruno Haible  <bruno@clisp.org>
71775             Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         Ability to rename obstack_free.
71778         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71779         obstack_free.
71780         (obstack_free): Invoke the __obstack_free macro.
71781         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71782
71783 2006-10-23  Bruno Haible  <bruno@clisp.org>
71784             Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71787         __argc, __argv from the declaration. (They are defined as macros on
71788         mingw.)
71789
71790 2006-10-22  Bruno Haible  <bruno@clisp.org>
71791
71792         * doc/gnulib-intro.texi: New file.
71793         * doc/gnulib.texi: Include it.
71794
71795 2006-10-21  Bruno Haible  <bruno@clisp.org>
71796
71797         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71798         "Introduction", "Miscellanous Notes", "Particular Modules".
71799
71800 2006-10-21  Bruno Haible  <bruno@clisp.org>
71801
71802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71803         Change mostlyclean-local rule to avoid sh syntax error from bash
71804         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71805
71806 2006-10-23  Jim Meyering  <jim@meyering.net>
71807
71808         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71809         in place of snprintf.
71810
71811         * modules/inttostr (Files): Add lib/uinttostr.c.
71812         * lib/uinttostr.c (inttostr): New file/function.
71813         * lib/inttostr.h (uinttostr): Declare.
71814         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71815         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71816         Add uinttostr.
71817         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71818
71819 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * lib/canonicalize.c (ELOOP): Define if not already defined.
71822         Problem reported by Bruno Haible in
71823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71824
71825 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71828         Problem reported by Perry Smith and Ville Laurikari.
71829
71830         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71831         uses.
71832
71833 2006-10-19  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71836         for mingw.
71837
71838 2006-10-19  Bruno Haible  <bruno@clisp.org>
71839
71840         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71841         Needed for mingw.
71842
71843 2006-10-19  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71846
71847 2006-10-19  Bruno Haible  <bruno@clisp.org>
71848
71849         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71850         it.
71851
71852 2006-10-19  Bruno Haible  <bruno@clisp.org>
71853
71854         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71855         invocation.
71856
71857 2006-10-19  Bruno Haible  <bruno@clisp.org>
71858
71859         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71860         mountlist by default.
71861
71862 2006-10-16  Bruno Haible  <bruno@clisp.org>
71863
71864         * lib/c-strstr.c: Include c-strstr.h.
71865
71866 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71867
71868         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71869         in a slash.
71870
71871 2006-10-18  Bruno Haible  <bruno@clisp.org>
71872
71873         * lib/lock.h [C++]: Wrap definitions in extern "C".
71874
71875 2006-10-18  Bruno Haible  <bruno@clisp.org>
71876
71877         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71878         gl_LIBOBJS list.
71879
71880 2006-10-18  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71883
71884 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * lib/xstrtol.h: Include gettext.h.
71887         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71888         Problem reported by Eric Blake.
71889         * modules/xstrtol (Depends-on): Add gettext-h.
71890
71891 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71892
71893         * lib/strftime.c (advance): New macro.
71894         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71895         incomplete type, so you can't add 0 to it.  Problem and patch
71896         reported by Eelco Dolstra for dietlibc.
71897
71898 2006-10-18  Jim Meyering  <jim@meyering.net>
71899
71900         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71901         type for a local, and rename it: s/up/user_proc/.
71902
71903 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71904
71905         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71906         READ_UTMP_USER_PROCESS.
71907         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71908
71909 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71912         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71913
71914 2006-10-17  Eric Blake  <ebb9@byu.net>
71915
71916         * lib/sigprocmask.c (sigprocmask): Fix typo.
71917
71918         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71919
71920         * modules/clean-temp (Makefile.am): Don't add to make output...
71921         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71922         config.h.
71923
71924 2006-10-17  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71927         differently if DEFAULT_TEXT_DOMAIN is set.
71928
71929 2006-10-16  Bruno Haible  <bruno@clisp.org>
71930
71931         * lib/clean-temp.c: Include fwriteerror.h.
71932
71933 2006-10-16  Bruno Haible  <bruno@clisp.org>
71934
71935         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71936
71937 2006-10-16  Bruno Haible  <bruno@clisp.org>
71938
71939         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71940         * lib/sigprocmask.h: Include <sys/types.h>.
71941         (sigset_t): Use the system's definition if present.
71942
71943 2006-10-17  Eric Blake  <ebb9@byu.net>
71944
71945         * lib/xvasprintf.c (includes): Assume config.h.
71946         * lib/xasprintf.c (includes): Likewise.
71947
71948 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71951         at least as wide as intmax_t.
71952
71953 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71954
71955         (Imported from Automake.)
71956         * build-aux/gnupload: Update to version 1.1 of directive file.
71957
71958 2006-10-16  Eric Blake  <ebb9@byu.net>
71959
71960         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71961         match Automake 1.10a.
71962
71963 2006-10-14  Bruno Haible  <bruno@clisp.org>
71964
71965         * modules/sigprocmask: New file.
71966         * lib/sigprocmask.h: New file.
71967         * lib/sigprocmask.c: New file.
71968         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71969         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71970         request sigprocmask.o.
71971         (gl_PREREQ_SIGPROCMASK): New macro.
71972         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71973         (Depends-on): Add sigprocmask.
71974         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71975         gt_SIGNALBLOCKING. Test for 'raise' only once.
71976         * lib/fatal-signal.c: Include sigprocmask.h.
71977         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71978         unblock_fatal_signals): Define always.
71979         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71980         sigprocmask.
71981
71982 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         Sync from Automake.
71985         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71986         which incorrectly sets the mode of an existing destination
71987         directory.  In some cases the unpatched install-sh could do the
71988         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71989         system.  We hope this is rare in practice, but it's clearly worth
71990         fixing.  Problem reported by Alex Unleashed in
71991         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71992         Also, don't bother to check for -m bugs unless we're using -m;
71993         suggested by Stepan Kasal.
71994
71995 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71996
71997         Sync from Automake.
71998         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71999         `-c' flag, so they appear at the same position as in %FASTDEP%
72000         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72001         which ignores unknown options only after the first non-option.
72002         Bug report against M4 by Nelson H. F. Beebe.
72003
72004 2006-10-13  Jim Meyering  <jim@meyering.net>
72005
72006         Fix a bug in yesterday's change.
72007         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72008         p->fts_statp->st_dev would be used uninitialized.
72009         Ensures that we always call fts_stat on the very first entry.
72010         Miklos Szeredi reported that find -xdev stopped working.
72011
72012 2006-10-12  Bruno Haible  <bruno@clisp.org>
72013
72014         * gnulib-tool (func_get_automake_snippet): Append an automatically
72015         computed EXTRA_DIST augmentation.
72016         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72017         * modules/alloca-opt (Makefile.am): Likewise.
72018         * modules/allocsa (Makefile.am): Likewise.
72019         * modules/arcfour (Makefile.am): Likewise.
72020         * modules/arctwo (Makefile.am): Likewise.
72021         * modules/argmatch (Makefile.am): Likewise.
72022         * modules/argz (Makefile.am): Likewise.
72023         * modules/atexit (Makefile.am): Likewise.
72024         * modules/backupfile (Makefile.am): Likewise.
72025         * modules/byteswap (Makefile.am): Likewise.
72026         * modules/c-strtod (Makefile.am): Likewise.
72027         * modules/c-strtold (Makefile.am): Likewise.
72028         * modules/calloc (Makefile.am): Likewise.
72029         * modules/canon-host (Makefile.am): Likewise.
72030         * modules/canonicalize (Makefile.am): Likewise.
72031         * modules/chdir-long (Makefile.am): Likewise.
72032         * modules/chdir-safer (Makefile.am): Likewise.
72033         * modules/check-version (Makefile.am): Likewise.
72034         * modules/chown (Makefile.am): Likewise.
72035         * modules/cloexec (Makefile.am): Likewise.
72036         * modules/close-stream (Makefile.am): Likewise.
72037         * modules/closeout (Makefile.am): Likewise.
72038         * modules/crc (Makefile.am): Likewise.
72039         * modules/csharpexec (Makefile.am): Likewise.
72040         * modules/cycle-check (Makefile.am): Likewise.
72041         * modules/des (Makefile.am): Likewise.
72042         * modules/dev-ino (Makefile.am): Likewise.
72043         * modules/dirfd (Makefile.am): Likewise.
72044         * modules/dirname (Makefile.am): Likewise.
72045         * modules/dup2 (Makefile.am): Likewise.
72046         * modules/eealloc (Makefile.am): Likewise.
72047         * modules/error (Makefile.am): Likewise.
72048         * modules/euidaccess (Makefile.am): Likewise.
72049         * modules/exclude (Makefile.am): Likewise.
72050         * modules/exitfail (Makefile.am): Likewise.
72051         * modules/fcntl-safer (Makefile.am): Likewise.
72052         * modules/fcntl (Makefile.am): Likewise.
72053         * modules/file-type (Makefile.am): Likewise.
72054         * modules/fileblocks (Makefile.am): Likewise.
72055         * modules/filemode (Makefile.am): Likewise.
72056         * modules/filenamecat (Makefile.am): Likewise.
72057         * modules/fnmatch (Makefile.am): Likewise.
72058         * modules/fopen-safer (Makefile.am): Likewise.
72059         * modules/fpending (Makefile.am): Likewise.
72060         * modules/fprintftime (Makefile.am): Likewise.
72061         * modules/free (Makefile.am): Likewise.
72062         * modules/fsusage (Makefile.am): Likewise.
72063         * modules/ftruncate (Makefile.am): Likewise.
72064         * modules/fts (Makefile.am): Likewise.
72065         * modules/gc-arcfour (Makefile.am): Likewise.
72066         * modules/gc-des (Makefile.am): Likewise.
72067         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72068         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72069         * modules/gc-md4 (Makefile.am): Likewise.
72070         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72071         * modules/gc-sha1 (Makefile.am): Likewise.
72072         * modules/gc (Makefile.am): Likewise.
72073         * modules/getaddrinfo (Makefile.am): Likewise.
72074         * modules/getcwd (Makefile.am): Likewise.
72075         * modules/getdelim (Makefile.am): Likewise.
72076         * modules/getdomainname (Makefile.am): Likewise.
72077         * modules/getgroups (Makefile.am): Likewise.
72078         * modules/gethostname (Makefile.am): Likewise.
72079         * modules/gethrxtime (Makefile.am): Likewise.
72080         * modules/getline (Makefile.am): Likewise.
72081         * modules/getloadavg (Makefile.am): Likewise.
72082         * modules/getlogin_r (Makefile.am): Likewise.
72083         * modules/getndelim2 (Makefile.am): Likewise.
72084         * modules/getopt (Makefile.am): Likewise.
72085         * modules/getpagesize (Makefile.am): Likewise.
72086         * modules/getpass-gnu (Makefile.am): Likewise.
72087         * modules/getpass (Makefile.am): Likewise.
72088         * modules/getsubopt (Makefile.am): Likewise.
72089         * modules/gettime (Makefile.am): Likewise.
72090         * modules/gettimeofday (Makefile.am): Likewise.
72091         * modules/getugroups (Makefile.am): Likewise.
72092         * modules/getusershell (Makefile.am): Likewise.
72093         * modules/glob (Makefile.am): Likewise.
72094         * modules/group-member (Makefile.am): Likewise.
72095         * modules/hard-locale (Makefile.am): Likewise.
72096         * modules/hash (Makefile.am): Likewise.
72097         * modules/hmac-md5 (Makefile.am): Likewise.
72098         * modules/hmac-sha1 (Makefile.am): Likewise.
72099         * modules/human (Makefile.am): Likewise.
72100         * modules/idcache (Makefile.am): Likewise.
72101         * modules/imaxabs (Makefile.am): Likewise.
72102         * modules/imaxdiv (Makefile.am): Likewise.
72103         * modules/inet_ntop (Makefile.am): Likewise.
72104         * modules/inet_pton (Makefile.am): Likewise.
72105         * modules/intprops (Makefile.am): Likewise.
72106         * modules/inttostr (Makefile.am): Likewise.
72107         * modules/inttypes (Makefile.am): Likewise.
72108         * modules/isapipe (Makefile.am): Likewise.
72109         * modules/javaversion (Makefile.am): Likewise.
72110         * modules/lchmod (Makefile.am): Likewise.
72111         * modules/lchown (Makefile.am): Likewise.
72112         * modules/localcharset (Makefile.am): Likewise.
72113         * modules/long-options (Makefile.am): Likewise.
72114         * modules/lstat (Makefile.am): Likewise.
72115         * modules/malloc (Makefile.am): Likewise.
72116         * modules/mathl (Makefile.am): Likewise.
72117         * modules/mbchar (Makefile.am): Likewise.
72118         * modules/md2 (Makefile.am): Likewise.
72119         * modules/md4 (Makefile.am): Likewise.
72120         * modules/md5 (Makefile.am): Likewise.
72121         * modules/memcasecmp (Makefile.am): Likewise.
72122         * modules/memchr (Makefile.am): Likewise.
72123         * modules/memcmp (Makefile.am): Likewise.
72124         * modules/memcoll (Makefile.am): Likewise.
72125         * modules/memcpy (Makefile.am): Likewise.
72126         * modules/memmem (Makefile.am): Likewise.
72127         * modules/memmove (Makefile.am): Likewise.
72128         * modules/mempcpy (Makefile.am): Likewise.
72129         * modules/memrchr (Makefile.am): Likewise.
72130         * modules/memset (Makefile.am): Likewise.
72131         * modules/memxor (Makefile.am): Likewise.
72132         * modules/mkancesdirs (Makefile.am): Likewise.
72133         * modules/mkdir-p (Makefile.am): Likewise.
72134         * modules/mkdir (Makefile.am): Likewise.
72135         * modules/mkdtemp (Makefile.am): Likewise.
72136         * modules/mkstemp (Makefile.am): Likewise.
72137         * modules/mktime (Makefile.am): Likewise.
72138         * modules/modechange (Makefile.am): Likewise.
72139         * modules/mountlist (Makefile.am): Likewise.
72140         * modules/nanosleep (Makefile.am): Likewise.
72141         * modules/obstack (Makefile.am): Likewise.
72142         * modules/openat (Makefile.am): Likewise.
72143         * modules/pagealign_alloc (Makefile.am): Likewise.
72144         * modules/pathmax (Makefile.am): Likewise.
72145         * modules/physmem (Makefile.am): Likewise.
72146         * modules/poll (Makefile.am): Likewise.
72147         * modules/posixtm (Makefile.am): Likewise.
72148         * modules/posixver (Makefile.am): Likewise.
72149         * modules/putenv (Makefile.am): Likewise.
72150         * modules/quote (Makefile.am): Likewise.
72151         * modules/quotearg (Makefile.am): Likewise.
72152         * modules/raise (Makefile.am): Likewise.
72153         * modules/read-file (Makefile.am): Likewise.
72154         * modules/readline (Makefile.am): Likewise.
72155         * modules/readlink (Makefile.am): Likewise.
72156         * modules/readtokens (Makefile.am): Likewise.
72157         * modules/readutmp (Makefile.am): Likewise.
72158         * modules/realloc (Makefile.am): Likewise.
72159         * modules/regex (Makefile.am): Likewise.
72160         * modules/rename-dest-slash (Makefile.am): Likewise.
72161         * modules/rename (Makefile.am): Likewise.
72162         * modules/rijndael (Makefile.am): Likewise.
72163         * modules/rmdir (Makefile.am): Likewise.
72164         * modules/rpmatch (Makefile.am): Likewise.
72165         * modules/safe-read (Makefile.am): Likewise.
72166         * modules/safe-write (Makefile.am): Likewise.
72167         * modules/same-inode (Makefile.am): Likewise.
72168         * modules/same (Makefile.am): Likewise.
72169         * modules/save-cwd (Makefile.am): Likewise.
72170         * modules/savedir (Makefile.am): Likewise.
72171         * modules/setenv (Makefile.am): Likewise.
72172         * modules/settime (Makefile.am): Likewise.
72173         * modules/sha1 (Makefile.am): Likewise.
72174         * modules/sig2str (Makefile.am): Likewise.
72175         * modules/snprintf (Makefile.am): Likewise.
72176         * modules/stat-macros (Makefile.am): Likewise.
72177         * modules/stat-time (Makefile.am): Likewise.
72178         * modules/stdbool (Makefile.am): Likewise.
72179         * modules/stdint (Makefile.am): Likewise.
72180         * modules/stdlib-safer (Makefile.am): Likewise.
72181         * modules/stpcpy (Makefile.am): Likewise.
72182         * modules/stpncpy (Makefile.am): Likewise.
72183         * modules/strcase (Makefile.am): Likewise.
72184         * modules/strcasestr (Makefile.am): Likewise.
72185         * modules/strchrnul (Makefile.am): Likewise.
72186         * modules/strcspn (Makefile.am): Likewise.
72187         * modules/strdup (Makefile.am): Likewise.
72188         * modules/strerror (Makefile.am): Likewise.
72189         * modules/strftime (Makefile.am): Likewise.
72190         * modules/strndup (Makefile.am): Likewise.
72191         * modules/strnlen (Makefile.am): Likewise.
72192         * modules/strpbrk (Makefile.am): Likewise.
72193         * modules/strsep (Makefile.am): Likewise.
72194         * modules/strstr (Makefile.am): Likewise.
72195         * modules/strtod (Makefile.am): Likewise.
72196         * modules/strtoimax (Makefile.am): Likewise.
72197         * modules/strtok_r (Makefile.am): Likewise.
72198         * modules/strtol (Makefile.am): Likewise.
72199         * modules/strtoll (Makefile.am): Likewise.
72200         * modules/strtoul (Makefile.am): Likewise.
72201         * modules/strtoull (Makefile.am): Likewise.
72202         * modules/strtoumax (Makefile.am): Likewise.
72203         * modules/strverscmp (Makefile.am): Likewise.
72204         * modules/sys_socket (Makefile.am): Likewise.
72205         * modules/sys_stat (Makefile.am): Likewise.
72206         * modules/sysexits (Makefile.am): Likewise.
72207         * modules/time_r (Makefile.am): Likewise.
72208         * modules/timegm (Makefile.am): Likewise.
72209         * modules/timespec (Makefile.am): Likewise.
72210         * modules/tmpfile-safer (Makefile.am): Likewise.
72211         * modules/trim (Makefile.am): Likewise.
72212         * modules/unistd-safer (Makefile.am): Likewise.
72213         * modules/unlinkdir (Makefile.am): Likewise.
72214         * modules/unlocked-io (Makefile.am): Likewise.
72215         * modules/userspec (Makefile.am): Likewise.
72216         * modules/utime (Makefile.am): Likewise.
72217         * modules/utimecmp (Makefile.am): Likewise.
72218         * modules/utimens (Makefile.am): Likewise.
72219         * modules/vasnprintf (Makefile.am): Likewise.
72220         * modules/vasprintf (Makefile.am): Likewise.
72221         * modules/vsnprintf (Makefile.am): Likewise.
72222         * modules/xalloc (Makefile.am): Likewise.
72223         * modules/xgetcwd (Makefile.am): Likewise.
72224         * modules/xnanosleep (Makefile.am): Likewise.
72225         * modules/xreadlink (Makefile.am): Likewise.
72226         * modules/xstrtod (Makefile.am): Likewise.
72227         * modules/xstrtol (Makefile.am): Likewise.
72228         * modules/xstrtold (Makefile.am): Likewise.
72229         * modules/yesno (Makefile.am): Likewise.
72230         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72231
72232 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * modules/error (Makefile.am): Distribute files through
72235         EXTRA_DIST, not lib_SOURCES.
72236
72237 2006-10-12  Eric Blake  <ebb9@byu.net>
72238
72239         * modules/error (Makefile.am): Distribute files in /lib.
72240         * modules/obstack (Makefile.am): Likewise.
72241
72242 2006-10-12  Bruno Haible  <bruno@clisp.org>
72243
72244         * modules/acl (Makefile.am): Distribute all files in lib/ through
72245         EXTRA_DIST.
72246         * modules/arcfour (Makefile.am): Likewise.
72247         * modules/arctwo (Makefile.am): Likewise.
72248         * modules/argmatch (Makefile.am): Likewise.
72249         * modules/argz (Makefile.am): Likewise.
72250         * modules/atexit (Makefile.am): Likewise.
72251         * modules/backupfile (Makefile.am): Likewise.
72252         * modules/c-strtod (Makefile.am): Likewise.
72253         * modules/c-strtold (Makefile.am): Likewise.
72254         * modules/calloc (Makefile.am): Likewise.
72255         * modules/canon-host (Makefile.am): Likewise.
72256         * modules/canonicalize (Makefile.am): Likewise.
72257         * modules/chdir-long (Makefile.am): Likewise.
72258         * modules/chdir-safer (Makefile.am): Likewise.
72259         * modules/check-version (Makefile.am): Likewise.
72260         * modules/chown (Makefile.am): Likewise.
72261         * modules/cloexec (Makefile.am): Likewise.
72262         * modules/close-stream (Makefile.am): Likewise.
72263         * modules/closeout (Makefile.am): Likewise.
72264         * modules/crc (Makefile.am): Likewise.
72265         * modules/cycle-check (Makefile.am): Likewise.
72266         * modules/des (Makefile.am): Likewise.
72267         * modules/dirfd (Makefile.am): Likewise.
72268         * modules/dirname (Makefile.am): Likewise.
72269         * modules/dup2 (Makefile.am): Likewise.
72270         * modules/euidaccess (Makefile.am): Likewise.
72271         * modules/exclude (Makefile.am): Likewise.
72272         * modules/exitfail (Makefile.am): Likewise.
72273         * modules/fcntl-safer (Makefile.am): Likewise.
72274         * modules/file-type (Makefile.am): Likewise.
72275         * modules/fileblocks (Makefile.am): Likewise.
72276         * modules/filemode (Makefile.am): Likewise.
72277         * modules/filenamecat (Makefile.am): Likewise.
72278         * modules/fnmatch (Makefile.am): Likewise.
72279         * modules/fopen-safer (Makefile.am): Likewise.
72280         * modules/fpending (Makefile.am): Likewise.
72281         * modules/fprintftime (Makefile.am): Likewise.
72282         * modules/free (Makefile.am): Likewise.
72283         * modules/fsusage (Makefile.am): Likewise.
72284         * modules/ftruncate (Makefile.am): Likewise.
72285         * modules/fts (Makefile.am): Likewise.
72286         * modules/gc (Makefile.am): Likewise.
72287         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72288         * modules/getaddrinfo (Makefile.am): Likewise.
72289         * modules/getcwd (Makefile.am): Likewise.
72290         * modules/getdelim (Makefile.am): Likewise.
72291         * modules/getdomainname (Makefile.am): Likewise.
72292         * modules/getgroups (Makefile.am): Likewise.
72293         * modules/gethostname (Makefile.am): Likewise.
72294         * modules/gethrxtime (Makefile.am): Likewise.
72295         * modules/getline (Makefile.am): Likewise.
72296         * modules/getloadavg (Makefile.am): Likewise.
72297         * modules/getlogin_r (Makefile.am): Likewise.
72298         * modules/getopt (Makefile.am): Likewise.
72299         * modules/getpass (Makefile.am): Likewise.
72300         * modules/getpass-gnu (Makefile.am): Likewise.
72301         * modules/getsubopt (Makefile.am): Likewise.
72302         * modules/gettime (Makefile.am): Likewise.
72303         * modules/gettimeofday (Makefile.am): Likewise.
72304         * modules/getugroups (Makefile.am): Likewise.
72305         * modules/getusershell (Makefile.am): Likewise.
72306         * modules/glob (Makefile.am): Likewise.
72307         * modules/group-member (Makefile.am): Likewise.
72308         * modules/hard-locale (Makefile.am): Likewise.
72309         * modules/hash (Makefile.am): Likewise.
72310         * modules/hmac-md5 (Makefile.am): Likewise.
72311         * modules/hmac-sha1 (Makefile.am): Likewise.
72312         * modules/human (Makefile.am): Likewise.
72313         * modules/idcache (Makefile.am): Likewise.
72314         * modules/imaxabs (Makefile.am): Likewise.
72315         * modules/imaxdiv (Makefile.am): Likewise.
72316         * modules/inet_ntop (Makefile.am): Likewise.
72317         * modules/inet_pton (Makefile.am): Likewise.
72318         * modules/inttostr (Makefile.am): Likewise.
72319         * modules/isapipe (Makefile.am): Likewise.
72320         * modules/lchown (Makefile.am): Likewise.
72321         * modules/long-options (Makefile.am): Likewise.
72322         * modules/lstat (Makefile.am): Likewise.
72323         * modules/malloc (Makefile.am): Likewise.
72324         * modules/mathl (Makefile.am): Likewise.
72325         * modules/mbchar (Makefile.am): Likewise.
72326         * modules/md2 (Makefile.am): Likewise.
72327         * modules/md4 (Makefile.am): Likewise.
72328         * modules/md5 (Makefile.am): Likewise.
72329         * modules/memcasecmp (Makefile.am): Likewise.
72330         * modules/memchr (Makefile.am): Likewise.
72331         * modules/memcmp (Makefile.am): Likewise.
72332         * modules/memcoll (Makefile.am): Likewise.
72333         * modules/memcpy (Makefile.am): Likewise.
72334         * modules/memmem (Makefile.am): Likewise.
72335         * modules/memmove (Makefile.am): Likewise.
72336         * modules/mempcpy (Makefile.am): Likewise.
72337         * modules/memrchr (Makefile.am): Likewise.
72338         * modules/memset (Makefile.am): Likewise.
72339         * modules/memxor (Makefile.am): Likewise.
72340         * modules/mkancesdirs (Makefile.am): Likewise.
72341         * modules/mkdir (Makefile.am): Likewise.
72342         * modules/mkdir-p (Makefile.am): Likewise.
72343         * modules/mkdtemp (Makefile.am): Likewise.
72344         * modules/mkstemp (Makefile.am): Likewise.
72345         * modules/mktime (Makefile.am): Likewise.
72346         * modules/modechange (Makefile.am): Likewise.
72347         * modules/mountlist (Makefile.am): Likewise.
72348         * modules/nanosleep (Makefile.am): Likewise.
72349         * modules/openat (Makefile.am): Likewise.
72350         * modules/pagealign_alloc (Makefile.am): Likewise.
72351         * modules/physmem (Makefile.am): Likewise.
72352         * modules/poll (Makefile.am): Likewise.
72353         * modules/posixtm (Makefile.am): Likewise.
72354         * modules/posixver (Makefile.am): Likewise.
72355         * modules/putenv (Makefile.am): Likewise.
72356         * modules/quote (Makefile.am): Likewise.
72357         * modules/quotearg (Makefile.am): Likewise.
72358         * modules/raise (Makefile.am): Likewise.
72359         * modules/read-file (Makefile.am): Likewise.
72360         * modules/readline (Makefile.am): Likewise.
72361         * modules/readlink (Makefile.am): Likewise.
72362         * modules/readtokens (Makefile.am): Likewise.
72363         * modules/readutmp (Makefile.am): Likewise.
72364         * modules/realloc (Makefile.am): Likewise.
72365         * modules/regex (Makefile.am): Likewise.
72366         * modules/rename (Makefile.am): Likewise.
72367         * modules/rename-dest-slash (Makefile.am): Likewise.
72368         * modules/rijndael (Makefile.am): Likewise.
72369         * modules/rmdir (Makefile.am): Likewise.
72370         * modules/rpmatch (Makefile.am): Likewise.
72371         * modules/safe-read (Makefile.am): Likewise.
72372         * modules/safe-write (Makefile.am): Likewise.
72373         * modules/same (Makefile.am): Likewise.
72374         * modules/save-cwd (Makefile.am): Likewise.
72375         * modules/savedir (Makefile.am): Likewise.
72376         * modules/setenv (Makefile.am): Likewise.
72377         * modules/settime (Makefile.am): Likewise.
72378         * modules/sha1 (Makefile.am): Likewise.
72379         * modules/sig2str (Makefile.am): Likewise.
72380         * modules/snprintf (Makefile.am): Likewise.
72381         * modules/stdlib-safer (Makefile.am): Likewise.
72382         * modules/stpcpy (Makefile.am): Likewise.
72383         * modules/stpncpy (Makefile.am): Likewise.
72384         * modules/strcase (Makefile.am): Likewise.
72385         * modules/strcasestr (Makefile.am): Likewise.
72386         * modules/strchrnul (Makefile.am): Likewise.
72387         * modules/strcspn (Makefile.am): Likewise.
72388         * modules/strdup (Makefile.am): Likewise.
72389         * modules/strerror (Makefile.am): Likewise.
72390         * modules/strftime (Makefile.am): Likewise.
72391         * modules/strndup (Makefile.am): Likewise.
72392         * modules/strnlen (Makefile.am): Likewise.
72393         * modules/strpbrk (Makefile.am): Likewise.
72394         * modules/strsep (Makefile.am): Likewise.
72395         * modules/strstr (Makefile.am): Likewise.
72396         * modules/strtod (Makefile.am): Likewise.
72397         * modules/strtoimax (Makefile.am): Likewise.
72398         * modules/strtok_r (Makefile.am): Likewise.
72399         * modules/strtol (Makefile.am): Likewise.
72400         * modules/strtoll (Makefile.am): Likewise.
72401         * modules/strtoul (Makefile.am): Likewise.
72402         * modules/strtoull (Makefile.am): Likewise.
72403         * modules/strtoumax (Makefile.am): Likewise.
72404         * modules/strverscmp (Makefile.am): Likewise.
72405         * modules/time_r (Makefile.am): Likewise.
72406         * modules/timegm (Makefile.am): Likewise.
72407         * modules/tmpfile-safer (Makefile.am): Likewise.
72408         * modules/unistd-safer (Makefile.am): Likewise.
72409         * modules/unlinkdir (Makefile.am): Likewise.
72410         * modules/userspec (Makefile.am): Likewise.
72411         * modules/utime (Makefile.am): Likewise.
72412         * modules/utimecmp (Makefile.am): Likewise.
72413         * modules/utimens (Makefile.am): Likewise.
72414         * modules/vasnprintf (Makefile.am): Likewise.
72415         * modules/vasprintf (Makefile.am): Likewise.
72416         * modules/vsnprintf (Makefile.am): Likewise.
72417         * modules/xalloc (Makefile.am): Likewise.
72418         * modules/xgetcwd (Makefile.am): Likewise.
72419         * modules/xnanosleep (Makefile.am): Likewise.
72420         * modules/xreadlink (Makefile.am): Likewise.
72421         * modules/xstrtod (Makefile.am): Likewise.
72422         * modules/xstrtol (Makefile.am): Likewise.
72423         * modules/xstrtold (Makefile.am): Likewise.
72424         * modules/yesno (Makefile.am): Likewise.
72425
72426 2006-10-12  Jim Meyering  <jim@meyering.net>
72427
72428         * m4/getloadavg.m4: Revert the change below.
72429
72430         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72431         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72432         fail with a symlink, which is what coreutils' ./bootstrap now
72433         creates by default.
72434
72435 2006-10-12  Bruno Haible  <bruno@clisp.org>
72436
72437         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72438         mingw.
72439         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72440         MSVC and mingw explicitly.
72441
72442 2006-10-11  Simon Josefsson  <jas@extundo.com>
72443             Bruno Haible  <bruno@clisp.org>
72444
72445         Add support for multiple gnulib-tool invocations in the scope of a
72446         single configure.ac file.
72447         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72448         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72449         with the same contents as the _LIBADD variable.
72450         (func_emit_initmacro_start, func_emit_initmacro_end,
72451         func_emit_initmacro_done): New functions.
72452         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72453         gl_LIBOBJS and gl_LTLIBOBJS.
72454
72455 2006-10-11  Bruno Haible  <bruno@clisp.org>
72456
72457         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72458         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72459         autoreconf. Instead, invoke autopoint explicitly but move back the
72460         *.m4 files from gnulib.
72461
72462 2006-10-11  Bruno Haible  <bruno@clisp.org>
72463
72464         * gnulib-tool (func_usage): Make module names after --create-testdir
72465         optional.
72466         (func_create_testdir): If no module was specified, use nearly all
72467         modules.
72468
72469 2006-10-12  Jim Meyering  <jim@meyering.net>
72470
72471         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72472         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72473         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72474         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72475         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72476         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72477         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72478         (fts_set_stat_required): New function.
72479         (fts_open): Defer the calls to fts_stat, if possible or requested.
72480         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72481         into fts_stat itself.
72482         (fts_read): Perform any required (deferred) fts_stat call.
72483         (fts_build): Likewise, for the directory we're about to open and read.
72484         In the readdir loop, carefully decide whether each entry will require
72485         an eventual call to fts_stat, using dirent.d_type info if available.
72486         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72487         a command line argument into this function.  Update all callers.
72488         Map a return value of FTS_DOT to FTS_D for a command line argument.
72489         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72490         Thanks to Miklos Szeredi for his tenacity and for the initial
72491         bug report about "find" failing on a FUSE-based file system.
72492
72493         * lib/fts.c (fts_open): Use consistent indentation.
72494
72495 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72498         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72499         reported by Jim Meyering.  All uses of cache variables renamed
72500         to match Autoconf's.
72501         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72502         the other one.
72503
72504         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72505         Fix misspelling in diagnostic.
72506
72507 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72510         defined.  Problem reported by Matthew Woehlke.
72511
72512         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72513         Add support for Tandem NonStop R series.
72514         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72515         Use new macro.
72516
72517         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72518         (has_trailing_slash): Omit size arg; all callers changed.
72519         Omit 'inline', since it doesn't help performance and we'd
72520         need to configure it.
72521         Don't count //, ///, etc. as having a trailing slash.
72522         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72523         (rpl_rename_dest_slash): On failure, use rename's errno rather
72524         than (in some cases) an incorrect or junk errno.
72525         Simplify code by removing need to compute length; this does
72526         cause it to make two passes instead of one over the file name,
72527         but it's worth it.
72528
72529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72530         change, since Autoconf's version may no longer be appropriate now
72531         that we are using CVS Autoconf's version.  Add support for Tandem.
72532
72533 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72534             Bruno Haible  <bruno@clisp.org>
72535
72536         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72537         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72538         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72539         gl_AC_TYPE_LONG_LONG.
72540
72541         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72542         instead of HAVE_LONG_LONG.
72543         * lib/printf-args.c (printf_fetchargs): Likewise.
72544         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72545         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72546         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72547         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72548         gl_AC_TYPE_LONG_LONG.
72549
72550 2006-10-11  Bruno Haible  <bruno@clisp.org>
72551
72552         * m4/longlong.m4: Add comments.
72553         * m4/ulonglong.m4: Likewise.
72554
72555 2006-10-10  Bruno Haible  <bruno@clisp.org>
72556
72557         Make it possible to #define stpcpy, strdup to aliases.
72558         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72559         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72560
72561 2006-10-10  Bruno Haible  <bruno@clisp.org>
72562
72563         Make it possible to #define gcd to an alias.
72564         * lib/gcd.c: Include config.h.
72565
72566 2006-10-10  Bruno Haible  <bruno@clisp.org>
72567
72568         Make it possible to #define c_isascii to an alias.
72569         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72570         defined. Undefine the macros before defining them, to avoid gcc
72571         warnings.
72572         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72573         define NO_C_CTYPE_MACROS early.
72574
72575 2006-10-10  Bruno Haible  <bruno@clisp.org>
72576
72577         Make it possible to #define set_program_name to an alias.
72578         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72579         ENABLE_RELOCATABLE early.
72580
72581 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72582
72583         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72584         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72585         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72586         More generally, don't assume that 64-bit signed int is available
72587         if unsigned int is, and vice versa.
72588         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72589         unsigned symbols, not on their signed counterparts.
72590         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72591         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72592         (UINT64_C, UINTMAX_C):
72593         Likewise.
72594         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72595         unsigned counterparts.
72596         (Have_long_long, Unsigned): New macros.
72597         (Int): Renamed from INT.
72598         (strtoimax): Use the new macros.
72599         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72600         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72601         * modules/inttypes (inttypes.h): Substitute
72602         HAVE_UNSIGNED_LONG_LONG_INT.
72603         * modules/stdint (stdint.h): Likewise.
72604         (Files): Add m4/ulonglong.m4.
72605
72606 2006-10-10  Bruno Haible  <bruno@clisp.org>
72607
72608         Fix a gcc -Wshadow warning.
72609         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72610         to 'bucket'.
72611         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72612         gl_linked_indexof_from_to): Likewise.
72613         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72614         Likewise.
72615         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72616         Likewise.
72617         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72618         Reported by Eric Blake.
72619
72620 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72623         for NetBSD.  Problem reported by Bruno Haible.
72624
72625 2006-10-09  Jim Meyering  <jim@meyering.net>
72626
72627         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72628         Patch from Bruno Haible.
72629
72630 2006-10-09  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72633         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72634         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72635
72636 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         Don't include <config.h> twice; this doesn't work in some cases,
72639         e.g., when config.h has "#define intmax_t long long int" and
72640         we include <config.h>, <inttypes.h>, <config.h> in that order.
72641         Problem reported by Matthew Woehlke in:
72642         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72643         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72644         * lib/fts-cycle.c: Don't include config.h.
72645         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72646         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72647         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72648         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72649         inttypes.h.
72650         * lib/xstrtoumax.c: Likewise.
72651         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72652         __strtol and the like, so that this module is more like its siblings.
72653         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72654         Remove; no longer needed now that we assume gnulib inttypes.h.
72655
72656 2006-10-08  Bruno Haible  <bruno@clisp.org>
72657
72658         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72659         option.
72660
72661 2006-10-07  Jim Meyering  <jim@meyering.net>
72662
72663         * modules/inttypes (inttypes.h): Revert what seems to have been
72664         an inadvertent part of today's change: use "|", not "/" in the
72665         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72666
72667 2006-10-07  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/sublist: New file.
72670
72671 2006-10-07  Bruno Haible  <bruno@clisp.org>
72672
72673         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72674         * modules/argz (argz.h): Likewise.
72675         * modules/arpa_inet (arpa/inet.h): Likewise.
72676         * modules/byteswap (byteswap.h): Likewise.
72677         * modules/configmake (configmake.h): Likewise.
72678         * modules/fcntl (fcntl.h): Likewise.
72679         * modules/fnmatch (fnmatch.h): Likewise.
72680         * modules/getopt (getopt.h): Likewise.
72681         * modules/glob (glob.h): Likewise.
72682         * modules/inttypes (inttypes.h): Likewise.
72683         * modules/netinet_in (netinet/in.h): Likewise.
72684         * modules/poll (poll.h): Likewise.
72685         * modules/stdbool (stdbool.h): Likewise.
72686         * modules/stdint (stdint.h): Likewise.
72687         * modules/sys_select (sys/select.h): Likewise.
72688         * modules/sys_socket (sys/socket.h): Likewise.
72689         * modules/sys_stat (sys/stat.h): Likewise.
72690         * modules/sysexits (sysexits.h): Likewise.
72691         * modules/unistd (unistd.h): Likewise.
72692         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72693         Add a "DO NOT EDIT" comment to the generated file.
72694         (func_import): Likewise for gnulib-comp.m4.
72695
72696 2006-10-07  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/gl_sublist.h: New file.
72699         * lib/gl_sublist.c: New file.
72700
72701 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72704         name (relative to the original working directory) and the file
72705         name component (relative to the temporary working directory).  All
72706         callers changed.
72707         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72708         * lib/mkdir-p.c (make_dir_parents): Likewise.
72709         * lib/mkdir-p.h (make_dir_parents): Likewise.
72710
72711 2006-10-06  Eric Blake  <ebb9@byu.net>
72712
72713         Define several macros for use by the clean-temp module.
72714         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72715         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72716         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72717
72718         * lib/clean-temp.h (close_stream_temp): New declaration.
72719         * lib/clean-temp.c (includes): Pull in headers according to what
72720         other modules are in use.
72721         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72722
72723 2006-10-06  Bruno Haible  <bruno@clisp.org>
72724
72725         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72726         instead of fopen, fwriteerror.
72727
72728 2006-10-06  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72731         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72732         int.
72733         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72734         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72735         Return an error indicator.
72736         Suggested by Eric Blake.
72737
72738 2006-10-06  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72741         Reported by Eric Blake.
72742
72743 2006-10-06  Bruno Haible  <bruno@clisp.org>
72744
72745         * modules/closeout (Description): Mention stderr too.
72746
72747 2006-10-06  Bruno Haible  <bruno@clisp.org>
72748         and Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/closeout.c (close_stdout): Also close stderr.
72751         * lib/closeout.h: Update comment.
72752
72753 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72756         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72757         * lib/dirchownmod.c: Include lchown.h.
72758         * lib/lchown.c: Don't include files that lchown.h now includes.
72759         Don't declare chown, since lchown.h now does that.
72760         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72761         (lchown): Define to rpl_chown if lchown is declared but
72762         does not exist.  Declare using a prototype if lchown is not
72763         declared.  Add a copyright notice.
72764         * lib/mkstemp.h: Include <unistd.h>.
72765         * lib/openat.c: Include lchown.h.
72766
72767         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72768         we now test for that separately.
72769         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72770         rather than O_NOFOLLOW, when testing whether it's possible to
72771         avoid a race condition reliably.
72772         * lib/savewd.c (savewd_chdir): Likewise.
72773
72774         Remove macros that are no longer needed now that stdint.h is
72775         reliable.
72776         * lib/fsusage.c (UINTMAX_MAX): Remove.
72777         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72778         * lib/utimecmp.c (SIZE_MAX): Remove.
72779
72780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72781
72782         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72783         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72784         O_NOATIME works.
72785
72786 2006-10-05  Bruno Haible  <bruno@clisp.org>
72787
72788         * lib/gl_list.h (gl_sortedlist_search_from_to,
72789         gl_sortedlist_indexof_from_to): New declarations.
72790         (gl_list_implementation): New fields sortedlist_search_from_to,
72791         sortedlist_indexof_from_to.
72792         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72793         inline functions.
72794         * lib/gl_list.c (gl_sortedlist_search_from_to,
72795         gl_sortedlist_indexof_from_to): New functions.
72796         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72797         function.
72798         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72799         (gl_array_sortedlist_search_from_to): New function.
72800         (gl_array_list_implementation): Update.
72801         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72802         function.
72803         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72804         (gl_carray_sortedlist_search_from_to): New function.
72805         (gl_carray_list_implementation): Update.
72806         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72807         gl_linked_sortedlist_indexof_from_to): New functions.
72808         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72809         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72810         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72811         gl_tree_sortedlist_indexof_from_to): New functions.
72812         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72813         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72814         Update.
72815         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72816         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72817         Update.
72818
72819 2006-10-05  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72822         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72823         (struct gl_list_implementation): Add fields search_from_to,
72824         indexof_from_to. Remove fields search, indexof.
72825         (gl_list_search): Use the search_from_to method.
72826         (gl_list_search_from, gl_list_search_from_to): New functions.
72827         (gl_list_indexof): Use the indexof_from_to method.
72828         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72829         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72830         (gl_list_search_from, gl_list_search_from_to): New functions.
72831         (gl_list_indexof): Use the indexof_from_to method.
72832         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72833         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72834         gl_array_indexof. Add start_index, end_index arguments.
72835         (gl_array_search_from_to): Renamed from gl_array_search. Add
72836         start_index, end_index arguments.
72837         (gl_array_remove, gl_array_list_implementation): Update.
72838         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72839         gl_carray_indexof. Add start_index, end_index arguments.
72840         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72841         start_index, end_index arguments.
72842         (gl_carray_remove, gl_carray_list_implementation): Update.
72843         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72844         gl_linked_search. Add start_index, end_index arguments.
72845         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72846         start_index, end_index arguments.
72847         (gl_linked_remove): Update.
72848         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72849         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72850         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72851         field to 'size_t'.
72852         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72853         gl_tree_search. Add start_index, end_index arguments.
72854         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72855         start_index, end_index arguments.
72856         (gl_tree_remove): Update.
72857         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72858         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72859         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72860         function.
72861         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72862         gl_tree_search. Add start_index, end_index arguments.
72863         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72864         start_index, end_index arguments.
72865         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72866         Update.
72867         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72868
72869 2006-10-05  Bruno Haible  <bruno@clisp.org>
72870
72871         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72872
72873         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72874         fwriteerror_temp): New declarations.
72875         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72876         (descriptors): New variable.
72877         (cleanup): First, close the descriptors.
72878         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72879         fclose_temp, fwriteerror_temp): New functions.
72880
72881 2006-10-04  Jim Meyering  <jim@meyering.net>
72882
72883         * lib/fts.c (fts_open): Tiny comment change.
72884
72885 2006-10-04  Bruno Haible  <bruno@clisp.org>
72886
72887         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72888         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72889         gl_LOCK_BODY.
72890         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72891         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72892         gl_LOCK_EARLY_BODY.
72893         (gl_LOCK): Require gl_LOCK_BODY.
72894
72895 2006-10-04  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72898         (gl_oset_search_atleast): New declaration.
72899         (struct gl_oset_implementation): Add field 'search_atleast'.
72900         (gl_oset_search_atleast): New inline function.
72901         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72902         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72903         (gl_array_oset_implementation): Update.
72904         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72905         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72906         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72907
72908 2006-10-04  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72911
72912 2006-10-03  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72915         from gl_avltreehash_list_implementation.
72916
72917 2006-10-03  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/gl_oset.c (gl_oset_add): Fix return type.
72920
72921 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72922
72923         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72924
72925 2006-10-02  Eric Blake  <ebb9@byu.net>
72926
72927         * modules/strnlen (Depends-on): Add extensions.
72928
72929 2006-10-02  Eric Blake  <ebb9@byu.net>
72930
72931         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72932         definition in 2.60+.
72933
72934 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72935
72936         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72937         checks.
72938
72939 2006-10-02  Bruno Haible  <bruno@clisp.org>
72940
72941         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72942         to the AUTOMAKE_OPTIONS.
72943         Reported by Jim Meyering.
72944
72945 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         Work around bug in Solaris 10 /proc file system:
72948         /proc/self/fd/NNN/.. isn't the parent directory of
72949         the directory whose file descriptor is NNN.  This needs to
72950         be worked around at run time, not compile time, since a
72951         program might be built on Solaris 8, where things work, and
72952         run on Solaris 10.
72953         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72954         to use the following interface instead:
72955         (OPENAT_BUFFER_SIZE): New macro.
72956         (openat_proc_name): New function.
72957         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72958         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72959         Likewise.
72960         * lib/openat-proc.c: New file.
72961         * modules/openat (Files): Add lib/openat-proc.c.
72962         (Depends-on): Add same-inode, stdbool.
72963         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72964
72965 2006-09-29  Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72968         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72969         argument. Set stdout_closed before testing for ferror, not after.
72970         (fwriteerror, fwriteerror_no_ebadf): New functions.
72971
72972 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72973
72974         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72975
72976 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72977
72978         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72979         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72980
72981 2006-09-28  Jim Meyering  <jim@meyering.net>
72982
72983         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72984         Include <unistd.h>.
72985
72986 2006-09-28  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72989         * modules/linkedhash-list (Depends-on): Likewise.
72990         * modules/rbtreehash-list (Depends-on): Likewise.
72991
72992 2006-09-28  Bruno Haible  <bruno@clisp.org>
72993
72994         * lib/strndup.h: Simplify the redefinition of strndup.
72995         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72997
72998 2006-09-28  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73001         * lib/gl_linkedhash_list.c: Likewise.
73002         * lib/gl_rbtreehash_list.c: Likewise.
73003
73004 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73007         getaddrinfo.
73008
73009         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73010         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73011         it causes <stdio_ext.h> to cause a compile-time error.
73012         Problem reported by Nelson H. F. Beebe.
73013         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73014         of HAVE_DECL___PENDING.
73015
73016         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73017         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73018         declaration.
73019
73020 2006-09-27  Jim Meyering  <jim@meyering.net>
73021
73022         This file could end up with a definition for a function
73023         named __strndup, rather than rpl_strndup on a system with
73024         incomplete weak_alias support.
73025         * lib/strndup.c (strndup): Rename from __strndup.
73026         Remove #defines that used to map __strndup to strndup.
73027         Don't use K&R prototypes.
73028         Remove LIBC-related code, since this file is not sync'd with glibc.
73029         * lib/strndup.h: Revamp, accordingly.
73030         * m4/strndup.m4: Modernize.
73031
73032 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         * modules/savewd (Depends-on): Add 'raise'.
73035         * lib/savewd.c: Include <signal.h>, for 'raise'.
73036
73037 2006-09-26  Jim Meyering  <jim@meyering.net>
73038
73039         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73040         when we detect Darwin 8.7.0's acl_get_file bug.
73041         Rearrange to perform the new (below) run-test while $LIBS
73042         contains any acl-related library.  Set USE_ACL at the end.
73043         (gl_ACL_GET_FILE): New function.
73044
73045 2006-09-26  Eric Blake  <ebb9@byu.net>
73046
73047         * lib/verror.c: Include <config.h> unconditionally.
73048
73049 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * modules/clock-time (Maintainer): Add self.
73052         * modules/getlogin_r (Depends-on): Add extensions.
73053
73054 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73055
73056         * modules/clock-time: New module.
73057         * modules/nanosleep (Depends-on): Add clock-time.
73058         * modules/gethrxtime (Depends-on): Likewise.
73059         * modules/gettime (Depends-on): Likewise.
73060         * modules/settime (Depends-on): Likewise.
73061
73062         * modules/fts-lgpl: Depend on openat.
73063         * modules/mkancesdirs: Depend on savewd.
73064         * modules/mkdir-p: Likewise.
73065
73066 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73067
73068         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73069
73070         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73071         `gl_have_arbitrary_file_name_length_limit' to
73072         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73073         actually works between configure runs.
73074
73075 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73076             Bruno Haible  <bruno@clisp.org>
73077
73078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73079
73080 2006-09-25  Jim Meyering  <jim@meyering.net>
73081
73082         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73083         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73084
73085 2006-09-25  Eric Blake  <ebb9@byu.net>
73086
73087         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73088         exec's in 2006-09-18 patch when shuffling fds.
73089
73090 2006-09-25  Bruno Haible  <bruno@clisp.org>
73091
73092         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73093         Reported by Jim Meyering.
73094
73095 2006-09-24  Jim Meyering  <jim@meyering.net>
73096
73097         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73098         compare a pointer against a literal "0".  That caused failures with
73099         at least HP-UX's hpcc.
73100
73101 2006-09-22  Simon Josefsson  <jas@extundo.com>
73102
73103         * modules/gc-sha1:
73104         * modules/gc-md4:
73105         * modules/gc-hmac-sha1:
73106         * modules/gc-hmac-md5:
73107         * modules/gc-des:
73108         * modules/gc-arcfour: Distribute more files.
73109
73110 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73111
73112         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73113         (gl_linked_iterator_from_to): Initialize struct completely.
73114         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73115         (gl_tree_iterator_from_to): Likewise
73116         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73117         * lib/gl_array_list.c [lint] (gl_array_iterator)
73118         (gl_array_iterator_from_to): Likewise.
73119         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73120         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73121         (gl_carray_iterator_from_to): Likewise.
73122
73123         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73124         * lib/md4.c (md4_process_block): Remove unused variable.
73125         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73126         parentheses for clarity.
73127
73128 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73129
73130         * modules/bison-i18n (Depends-on): Add gettext.
73131
73132 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73133
73134         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73135         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73136         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73137         also add missing comma that caused broken test.
73138         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73139         stdlib.h, for `abort'.
73140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73141         variables.
73142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73143         include unistd.h if present, for `rmdir'.
73144         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73145         variables.
73146         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73147         in the process include standard headers for prototypes.
73148         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73149         gets declared on GNU/Linux.
73150         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73151         unistd.h, for `rmdir'.
73152         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73153
73154         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73155         always true.
73156         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73157
73158         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73159
73160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73161
73162         * gnulib-tool (func_version): Create output all at once.  This
73163         may help avoid triggering unnecessary SIGPIPEs, and at any
73164         rate it doesn't hurt.
73165
73166 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73167             Bruno Haible  <bruno@clisp.org>
73168
73169         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73170         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73171         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73172
73173         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73174         (gl_FUNC_VASPRINTF): Invoke it.
73175
73176 2006-09-22  Bruno Haible  <bruno@clisp.org>
73177
73178         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73179         getloadavg.c as first argument.
73180
73181 2006-09-22  Bruno Haible  <bruno@clisp.org>
73182
73183         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73184         at the beginning of the gl_INIT macro.
73185         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73186         gl_GETLOADAVG.
73187
73188 2006-09-22  Bruno Haible  <bruno@clisp.org>
73189
73190         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73191         module.
73192         Suggested by Ralf Wildenhues.
73193
73194 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         Import this patch from libc:
73197
73198         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73199
73200         * lib/regex_internal.c (re_string_reconstruct): Handle
73201         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73202         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73203         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73204         re_string_context_at.
73205
73206         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73207         now requires it.
73208         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73209         gl_REGEX now does it for us.
73210         (gl_REGEX): Add test taken from
73211         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73212
73213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73214         Check that large offsets work.  Modernize Autoconf usages.
73215         Prefer "yes" to mean a good thing rather than a bad.
73216         Don't put "#define mkstemp" in config.h, as this might interfere
73217         with standard system headers that "#define mkstemp mkstemp64".
73218
73219         * modules/mkstemp (Depends-on): Add extensions, so that
73220         mkstemp is visible on some platforms.
73221         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73222         (Include): Change to "mkstemp.h" from <stdlib.h>.
73223         (Files): Add mkstemp.h.
73224
73225         * lib/mkstemp.h: New file, since some standard headers
73226         #define mkstemp.
73227         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73228         Include "mkstemp.h".
73229         Make the _LIBC code resemble glibc original more,
73230         e.g., use K&R style.
73231         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73232         (mkstemp): Remove, since mkstemp.h does this for us.
73233         * lib/stdlib--.h: Include mkstemp.h.
73234
73235         Import this patch from libc:
73236
73237         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73238
73239         * lib/tempname.c (__gen_tempname): Change attempts_min
73240         into a macro.  Use preprocessor to decide how to initialize
73241         attempts [Coverity CID 67].
73242
73243 2006-09-20  Bruno Haible  <bruno@clisp.org>
73244
73245         * lib/mkdtemp.c: Import from libc.
73246         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73247                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73248                 attempts_min into a macro.  Use preprocessor to decide how to
73249                 initialize attempts [Coverity CID 67].
73250         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73251                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73252                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73253
73254 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73255
73256         * gnulib-tool (func_exit): New function, to allow to pass the
73257         exit status portably through the trap.  Use everywhere.
73258         (--help, --version): Signal a write error.
73259         (trap): catch SIGPIPE, for write errors.
73260         Exit at the end of the trap, with the correct exit status.
73261
73262 2006-09-19  Karl Berry  <karl@gnu.org>
73263
73264         * doc/gnulib.texi: note about the license texinfo files.
73265
73266 2006-09-19  Eric Blake  <ebb9@byu.net>
73267
73268         * gnulib-tool: Avoid space-tab.
73269
73270 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73273         that prevented coreutils 6.1 from building.  Problem reported
73274         by Petter Reinholdtsen.
73275
73276 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * gnulib-tool (avoidlist): Fix typo that broke options like
73279         --avoid=lock that are used by coreutils bootstrap.
73280
73281 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73282
73283         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73284         more systematically.
73285
73286 2006-09-18  Jim Meyering  <jim@meyering.net>
73287
73288         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73289
73290 2006-09-18  Bruno Haible  <bruno@clisp.org>
73291
73292         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73293
73294 2006-09-18  Bruno Haible  <bruno@clisp.org>
73295
73296         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73297         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73298         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73299         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73300         * m4/gettext.m4: Require autoconf >= 2.52.
73301         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73302         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73303         of gl_cv_header_inttypes_h.
73304
73305 2006-09-18  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/javaversion.c: Include configmake.h.
73308
73309 2006-09-18  Bruno Haible  <bruno@clisp.org>
73310
73311         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73312         avoid that the while loops be executed in a subshell.
73313
73314 2006-09-18  Bruno Haible  <bruno@clisp.org>
73315
73316         * MODULES.html.sh (func_module): Break long lines.
73317         Suggested by Bruce Korb <bkorb@gnu.org>.
73318
73319 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73320
73321         Speed up by a factor of 1.12.
73322         * gnulib-tool (nl): New variable.
73323         (func_import): Rewrite include directive extraction to only read each
73324         directive once.
73325
73326 2006-09-17  Bruno Haible  <bruno@clisp.org>
73327
73328         * modules/javaversion (Makefile.am): Remove DEFS setting.
73329         (Depends-on): Add configmake, for PKGDATADIR definition.
73330
73331 2006-09-17  Bruno Haible  <bruno@clisp.org>
73332
73333         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73334
73335 2006-09-17  Bruno Haible  <bruno@clisp.org>
73336
73337         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73338         (func_modules_transitive_closure, func_modules_add_dummy,
73339         func_modules_to_filelist, func_import, func_create_testdir,
73340         func_create_megatestdir, ...): Use it wherever possible.
73341         Suggested by Ralf Wildenhues.
73342
73343 2006-09-16  Karl Berry  <karl@gnu.org>
73344
73345         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73346         to avoid sectioning errors.
73347         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73348         [ifinfo]: blank line after @center-ed titles.
73349         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73350         Spell FSF address consistently with others.
73351         (These changes approved by rms.)
73352
73353 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73354
73355         Speed up by a factor of 1.61.
73356         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73357         already checked module names again.
73358
73359 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73360
73361         Speed up by a factor of 1.13.
73362         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73363         for new_files, and the input to func_add_or_update.
73364
73365 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73366
73367         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73368         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73369
73370 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         * modules/mkancesdirs (Depends-on): Add fcntl.
73373         * modules/savewd: New file.
73374         * MODULES.html.sh (File system functions): Add savewd.
73375
73376         * modules/configmake (Makefile.am): Add support for the
73377         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73378
73379 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * m4/savewd.m4: New file.
73382
73383 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73386         (dirchownmod): New arg FD.  All callers changed.
73387         Use FD rather than opening the directory ourself, as opening is
73388         now the caller's responsibility.
73389         * lib/dirchownmod.h: Likewise.
73390         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73391         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73392         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73393         (test_dir): Remove.
73394         (mkancesdirs): Return length of prefix of FILE that has already
73395         been made, or -2 if there is a child doing the work.  Redo
73396         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73397         ".", and treat ".." specially since it might stray back into
73398         already-created areas.  Use a subprocess if necessary.  New arg
73399         WD; all users changed.  MAKE_DIR function should now return 1
73400         if it creates a directory that is not readable.  Return -2 if
73401         a child process is spun off.
73402         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73403         Adjust signature to match code.
73404         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73405         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73406         all users changed.
73407         * lib/savewd.c, lib/savewd.h: New files.
73408
73409 2006-09-15  Jim Meyering  <jim@meyering.net>
73410
73411         * modules/rename-dest-slash: New module.
73412         * MODULES.html.sh (posix_compat): Add it here.
73413
73414         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73415
73416 2006-09-15  Jim Meyering  <jim@meyering.net>
73417
73418         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73419         file.
73420
73421         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73422
73423 2006-09-15  Jim Meyering  <jim@meyering.net>
73424
73425         * lib/rename-dest-slash.c (has_trailing_slash): Use
73426         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73427         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73428         test before testing whether SRC is a directory.
73429         Suggestions from Bruno Haible.
73430
73431         Avoid a warning about an unused variable.
73432         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73433         into the #ifdef block where it's used.
73434
73435         * lib/rename-dest-slash.c: New file.
73436
73437 2006-09-14  Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/allocsa.c: Include <config.h> unconditionally.
73440         * lib/asnprintf.c: Likewise.
73441         * lib/asprintf.c: Likewise.
73442         * lib/c-strcasecmp.c: Likewise.
73443         * lib/c-strcasestr.c: Likewise.
73444         * lib/c-strncasecmp.c: Likewise.
73445         * lib/c-strstr.c: Likewise.
73446         * lib/classpath.c: Likewise.
73447         * lib/clean-temp.c: Likewise.
73448         * lib/concatpath.c: Likewise.
73449         * lib/copy-file.c: Likewise.
73450         * lib/csharpcomp.c: Likewise.
73451         * lib/csharpexec.c: Likewise.
73452         * lib/execute.c: Likewise.
73453         * lib/fatal-signal.c: Likewise.
73454         * lib/findprog.c: Likewise.
73455         * lib/fwriteerror.c: Likewise.
73456         * lib/gl_array_list.c: Likewise.
73457         * lib/gl_array_oset.c: Likewise.
73458         * lib/gl_avltree_list.c: Likewise.
73459         * lib/gl_avltree_oset.c: Likewise.
73460         * lib/gl_avltreehash_list.c: Likewise.
73461         * lib/gl_carray_list.c: Likewise.
73462         * lib/gl_linked_list.c: Likewise.
73463         * lib/gl_linkedhash_list.c: Likewise.
73464         * lib/gl_list.c: Likewise.
73465         * lib/gl_oset.c: Likewise.
73466         * lib/gl_rbtree_list.c: Likewise.
73467         * lib/gl_rbtree_oset.c: Likewise.
73468         * lib/gl_rbtreehash_list.c: Likewise.
73469         * lib/imaxabs.c: Likewise.
73470         * lib/imaxdiv.c: Likewise.
73471         * lib/javacomp.c: Likewise.
73472         * lib/javaexec.c: Likewise.
73473         * lib/javaversion.c: Likewise.
73474         * lib/linebreak.c: Likewise.
73475         * lib/localcharset.c: Likewise.
73476         * lib/lock.c: Likewise.
73477         * lib/mbchar.c: Likewise.
73478         * lib/mbswidth.c: Likewise.
73479         * lib/mkdtemp.c: Likewise.
73480         * lib/pipe.c: Likewise.
73481         * lib/printf-args.c: Likewise.
73482         * lib/printf-parse.c: Likewise.
73483         * lib/progname.c: Likewise.
73484         * lib/progreloc.c: Likewise.
73485         * lib/readlink.c: Likewise.
73486         * lib/sh-quote.c: Likewise.
73487         * lib/stpcpy.c: Likewise.
73488         * lib/stpncpy.c: Likewise.
73489         * lib/strcasecmp.c: Likewise.
73490         * lib/strcasestr.c: Likewise.
73491         * lib/strcspn.c: Likewise.
73492         * lib/striconv.c: Likewise.
73493         * lib/strncasecmp.c: Likewise.
73494         * lib/strnlen1.c: Likewise.
73495         * lib/strstr.c: Likewise.
73496         * lib/strtok_r.c: Likewise.
73497         * lib/tls.c: Likewise.
73498         * lib/tmpdir.c: Likewise.
73499         * lib/unicodeio.c: Likewise.
73500         * lib/unsetenv.c: Likewise.
73501         * lib/vasnprintf.c: Likewise.
73502         * lib/vasprintf.c: Likewise.
73503         * lib/wait-process.c: Likewise.
73504         * lib/xallocsa.c: Likewise.
73505         * lib/xsetenv.c: Likewise.
73506         * lib/xstriconv.c: Likewise.
73507
73508 2006-09-13  Simon Josefsson  <jas@extundo.com>
73509
73510         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73511         that internally, suggested by Ralf Wildenhues
73512         <Ralf.Wildenhues@gmx.de>.
73513
73514 2006-09-13  Simon Josefsson  <jas@extundo.com>
73515
73516         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73517         @LIBOBJS@.
73518         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73519
73520 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73523         longer worry about uses that don't define HAVE_CONFIG_H.
73524         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73525         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73526         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73527         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73528         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73529         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73530         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73531         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73532         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73533         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73534         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73535         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73536         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73537         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73538         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73539         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73540         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73541         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73542         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73543         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73544         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73545         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73546         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73547         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73548         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73549         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73550         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73551         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73552         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73553         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73554         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73555         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73556         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73557         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73558         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73559         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73560         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73561         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73562         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73563         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73564         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73565         Likewise.
73566
73567 2006-09-13  Eric Blake  <ebb9@byu.net>
73568
73569         * lib/getopt.c: Fix typo in last commit.
73570
73571 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73572
73573         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73574         dgettext.
73575
73576 2006-09-12  Jim Meyering  <jim@meyering.net>
73577
73578         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73579         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73580         Reported by Nelson H. F. Beebe.
73581
73582 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73583
73584         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73585         program_invocation_name and program_invocation_short_name are
73586         initialized.
73587         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73588         and program_invocation_short_name to argp.h, so they are visible
73589         to user programs.
73590         * lib/argp.h: Likewise
73591
73592 2006-09-10  Bruno Haible  <bruno@clisp.org>
73593
73594         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73595         m4/inttypes_h.m4, m4/uintmax_t.m4.
73596
73597 2006-09-10  Bruno Haible  <bruno@clisp.org>
73598
73599         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73600         gl_AC_TYPE_UINTMAX_T.
73601
73602 2006-09-10  Bruno Haible  <bruno@clisp.org>
73603
73604         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73605
73606 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73607
73608         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73609         convention.  Text proposed by Bruno Haible.
73610         (struct argp_option): Document the use of N_() wrappers.
73611
73612         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73613         '\v', and translate the two parts separately, instead of feeding
73614         the whole string to gettext.  This allows to exclude
73615         '\v' from the strings visible to the translator by writing doc
73616         strings as N_("..") "\v" N_("..").
73617
73618 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * config/srclist.txt: Undo latest change; the bug was fixed.
73621
73622 2006-09-09  Bruno Haible  <bruno@clisp.org>
73623
73624         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73625         assignments if building a library without libtool.
73626         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73627         in func_emit_lib_Makefile_am.
73628         (func_import): When building a static library libfoo.a, arrange to
73629         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73630         (func_create_testdir): Likewise.
73631         * modules/gc (configure.ac, Makefile.am): If building statically,
73632         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73633         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73634         * modules/striconv (configure.ac, Makefile.am): Likewise.
73635         Based on a suggestion by Ralf Wildenhues.
73636
73637 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73640         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73641         Also:
73642
73643         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73644         Add year_2050_test to catch glibc bug 2821
73645         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73646
73647         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73648         Prefer #ifdef to #if.
73649
73650         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73651         Return from 'main' instead of calling 'exit'.
73652
73653 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73654
73655         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73656         returned the maximum time_t value rather than (time_t) -1.
73657         Problem originally reported by William Bardwell
73658         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73659
73660         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73661         Moved to here ...
73662         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73663         ... from here.
73664
73665 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73668         2821 is fixed.
73669
73670 2006-09-08  Jim Meyering  <jim@meyering.net>
73671
73672         Don't make generated files read-only.  That would bother too many
73673         people.  However, do retain the ability to work when targets are
73674         read-only: remove the destination and temporary files before writing
73675         them (when generated via sed or echo), or by using the -f option for
73676         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73677         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73678         * modules/byteswap, modules/configmake, modules/fcntl:
73679         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73680         * modules/localcharset, modules/netinet_in, modules/poll:
73681         * modules/stdbool, modules/stdint, modules/sys_select:
73682         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73683
73684 2006-09-08  Jim Meyering  <jim@meyering.net>
73685
73686         Avoid new build failure on FreeBSD 6.0.
73687         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73688         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73689         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73690
73691 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73692
73693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73694
73695 2006-09-07  Jim Meyering  <jim@meyering.net>
73696
73697         Fix global typo in last change: use chmod u-w, not chmod u-x.
73698         Spotted by Paul Eggert and Bruce Korb.
73699         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73700         * modules/byteswap, modules/configmake, modules/fcntl:
73701         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73702         * modules/localcharset, modules/netinet_in, modules/poll:
73703         * modules/stdbool, modules/stdint, modules/sys_select:
73704         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73705
73706 2006-09-06  Jim Meyering  <jim@meyering.net>
73707
73708         Make generated files be read-only.
73709         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73710         Ensure that each generated file is now read-only.
73711         * modules/argz: Likewise.
73712         * modules/arpa_inet: Likewise.
73713         * modules/byteswap: Likewise.
73714         * modules/configmake: Likewise.
73715         * modules/fcntl: Likewise.
73716         * modules/fnmatch: Likewise.
73717         * modules/getopt: Likewise.
73718         * modules/glob: Likewise.
73719         * modules/inttypes: Likewise.
73720         * modules/netinet_in: Likewise.
73721         * modules/poll: Likewise.
73722         * modules/stdbool: Likewise.
73723         * modules/stdint: Likewise.
73724         * modules/sys_select: Likewise.
73725         * modules/sys_socket: Likewise.
73726         * modules/sys_stat: Likewise.
73727         * modules/sysexits: Likewise.
73728         * modules/localcharset: Same as above, but continue using temporary
73729         file named "t-$@" (why different?) rather than the "$@-t" used
73730         everywhere else.
73731
73732         * modules/sysexits (Makefile.am): Replace literal occurrences
73733         of "sysexit.h" more readable, and more consistent, "$@".
73734
73735 2006-09-06  Bruno Haible  <bruno@clisp.org>
73736
73737         * modules/striconv: New file.
73738         * modules/xstriconv: New file.
73739         * MODULES.html.sh (Internationalization functions): Add striconv,
73740         xstriconv.
73741
73742 2006-09-06  Bruno Haible  <bruno@clisp.org>
73743
73744         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73745         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73746         not using libtool correctly.
73747
73748 2006-09-06  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/striconv.h: New file.
73751         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73752         iconvstring.c.
73753         * lib/xstriconv.h: New file.
73754         * lib/xstriconv.c: New file.
73755
73756 2006-09-06  Bruno Haible  <bruno@clisp.org>
73757
73758         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73759         lib_..._LDFLAGS.
73760
73761 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73762
73763         * lib/argz_.h: Sync from Libtool.
73764
73765         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73766                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73767
73768         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73769
73770 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73771
73772         * modules/trim: New file.
73773
73774 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73775
73776         * lib/trim.h: New file.
73777         * lib/trim.c: New file.
73778
73779 2006-09-05  Bruno Haible  <bruno@clisp.org>
73780
73781         * MODULES.html.sh (String handling): Add trim.
73782
73783 2006-09-04  Karl Berry  <karl@gnu.org>
73784
73785         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73786         until next release.
73787
73788 2006-09-03  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73791         correctly.
73792
73793 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73796         not gl_GETLOADAVG.  Omit unneeded semicolons.
73797         Problems reported by Ralf Wildenhues in
73798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73799         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73800         at the end, which is the usual gnulib style.
73801
73802         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73803         of doing all the work ourselves.
73804         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73805         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73806
73807 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73808
73809         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73810         Problem reported by Ralf Wildenhues in
73811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73812
73813         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73814         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73815
73816 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73819         yesterday's patch by changing test -n to test -z.
73820
73821 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73824         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73825         the former is now obsolescent.
73826
73827         * modules/chdir-long (Depends-on): Add fcntl.
73828
73829 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73832         obsolescent, and programs should use gnulib instead.
73833         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73834         but with prefixes changed.
73835
73836 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73839         or stdbool.h, because they might not exist while configuring.
73840
73841         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73842         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73843         does that for us.
73844         (O_DIRECTORY): Remove.
73845
73846 2006-08-31  Eric Blake  <ebb9@byu.net>
73847
73848         * gnulib-tool: Don't let emacs change spaces to TAB.
73849
73850 2006-08-31  Bruno Haible  <bruno@clisp.org>
73851
73852         * gnulib-tool: When calling func_import more than once, do it in a
73853         subshell.
73854         Reported by Eric Blake <ebb9@byu.net>.
73855
73856 2006-08-31  Bruno Haible  <bruno@clisp.org>
73857
73858         * gnulib-tool (nl): Remove variable.
73859         (sed_transform_lib_file): Use more robust test for config-h module.
73860         (func_import): Fix typo in 2006-08-25 patch.
73861
73862 2006-08-31  Bruno Haible  <bruno@clisp.org>
73863
73864         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73865         specified, augment Makefile.am variables instead of assigning them.
73866
73867 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         Work around a bug in both the Linux and SunOS 64-bit kernels:
73870         nanosleep mishandles sleeps for longer than 2**31 seconds.
73871         Problem reported by Frank v Waveren in
73872         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73874         Check for nanosleep bug.
73875         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73876
73877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         Work around a bug in both the Linux and SunOS 64-bit kernels:
73880         nanosleep mishandles sleeps for longer than 2**31 seconds.
73881         Problem reported by Frank v Waveren in
73882         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73883         * lib/nanosleep.c (BILLION): New constant.
73884         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73885         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73886         implementation.
73887
73888 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * modules/nanosleep (Depends-on): Add gettime.
73891
73892 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73893         and Simon Josefsson  <jas@extundo.com>
73894         and Oskar Liljeblad  <oskar@osk.mine.nu>
73895
73896         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73897         * gnulib-tool (func_import): New license type 'unmodifiable license
73898         text'.
73899         * modules/fdl: Use it.  Longer description.
73900         * module/gpl, module/lgpl: New files.
73901
73902 2006-08-30  Jim Meyering  <jim@meyering.net>
73903
73904         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73905         shadowing the parameter.
73906
73907 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73908
73909         Sync from Libtool:
73910
73911         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73912
73913         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73914         sharing with gnulib.  Report by Eric Blake.
73915
73916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         * modules/isapipe: New file.
73919         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73920
73921 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * modules/configmake (Makefile.am): Add a comment, and omit
73924         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73925         by Bruno Haible.
73926
73927 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * m4/isapipe.m4: New file.
73930
73931 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         * lib/isapipe.c, lib/isapipe.h: New files.
73934
73935 2006-08-29  Jim Meyering  <jim@meyering.net>
73936
73937         * modules/configmake (Makefile.am): Make configmake.h depend on
73938         Makefile.  Otherwise, a stale configmake.h could hang around.
73939
73940 2006-08-29  Eric Blake  <ebb9@byu.net>
73941
73942         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73943         resolution of upstream bug 3044.
73944
73945 2006-08-29  Bruno Haible  <bruno@clisp.org>
73946
73947         * modules/localcharset (Depends-on): Add configmake.
73948         (Makefile.am): Remove setting of LIBDIR through DEFS.
73949
73950 2006-08-29  Bruno Haible  <bruno@clisp.org>
73951
73952         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73953         defined.
73954
73955 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * modules/fcntl: New file.
73958         * modules/chdir-safer (Depends-on): Add fcntl.
73959         * modules/fts: Likewise.
73960         * modules/mkdir-p: Likewise.
73961
73962         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73963         This undoes the most recent change, since we're now addressing the
73964         problem in a different way.
73965
73966         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73967         into output, since the output might be called Makefile.am even
73968         if $makefile_name is something different.
73969         (func_import): Use $makefile_am rather than
73970         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73971         empty.
73972
73973         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73974
73975 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73978         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73979         recent change to stdint.m4, since we're now addressing the problem in a
73980         different way.
73981
73982 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         * m4/fcntl_h.m4: New file.
73985
73986 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * lib/fcntl_.h: New file.
73989         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73990         the fcntl module.
73991         * lib/dirchownmod.c: Likewise.
73992         * lib/fts.c: Likewise.
73993
73994         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73995         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73996         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73997         just before including <inttypes.h>, to avoid circular inclusion.
73998
73999 2006-08-28  Jim Meyering  <jim@meyering.net>
74000
74001         * doc/visibility.texi: Actually read and correct the grammar of the
74002         sentence affected by yesterday's change.
74003
74004 2006-08-28  Eric Blake  <ebb9@byu.net>
74005
74006         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74007         needs wrapper.
74008
74009 2006-08-28  Eric Blake  <ebb9@byu.net>
74010
74011         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74012
74013 2006-08-28  Eric Blake  <ebb9@byu.net>
74014
74015         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74016
74017 2006-08-28  Bruno Haible  <bruno@clisp.org>
74018
74019         * modules/c-strstr: New file, from GNU gettext.
74020         * MODULES.html.sh (String handling): Add c-strstr.
74021
74022 2006-08-28  Bruno Haible  <bruno@clisp.org>
74023
74024         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74025         macros.
74026         Reported by Eric Blake.
74027
74028 2006-08-28  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74031         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74032         * lib/vasprintf.c: Include errno.h, limits.h.
74033         (EOVERFLOW): New fallback definition.
74034         (vasprintf): Test here whether the string length is > INT_MAX.
74035         * lib/vsnprintf.c: Include errno.h, limits.h.
74036         (EOVERFLOW): New fallback definition.
74037         (vsnprintf): Fix bug when generated string was too long for the buffer.
74038         Test here whether the string length is > INT_MAX.
74039
74040 2006-08-28  Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/inttypes_.h (SCNX*): Remove definitions.
74043         Reported by Eric Blake.
74044
74045 2006-08-28  Bruno Haible  <bruno@clisp.org>
74046
74047         * lib/c-strstr.h: New file, from GNU gettext.
74048         * lib/c-strstr.c: New file, from GNU gettext.
74049
74050 2006-08-28  Bruno Haible  <bruno@clisp.org>
74051
74052         * gnulib-tool: Reorder some statements.
74053
74054 2006-08-28  Bruno Haible  <bruno@clisp.org>
74055
74056         * gnulib-tool: New option --makefile-name.
74057         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74058         $makefile_name.
74059         (func_import): Write $makefile_name to the cache file, and read it from
74060         there unless explicitly specified. Use $makefile_name as file name
74061         instead of Makefile.am. Adjust the recommendations accordingly.
74062
74063 2006-08-28  Bruno Haible  <bruno@clisp.org>
74064
74065         * gnulib-tool (func_verify_module): Check against misapplying patch.
74066
74067 2006-08-28  Bruno Haible  <bruno@clisp.org>
74068
74069         * gnulib-tool (func_relativize, func_relconcat): New functions.
74070         Give an error if --local-dir is given with --update.
74071         Remove trailing slashes from $local_gnulib_dir.
74072         (func_import): Store the relativized $local_gnulib_dir in
74073         gnulib-cache.m4, and read it from there if not specified explicitly.
74074
74075 2006-08-28  Bruno Haible  <bruno@clisp.org>
74076
74077         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74078         is the current directory. Respect also $local_gnulib_dir.
74079
74080 2006-08-28  Bruno Haible  <bruno@clisp.org>
74081             Simon Josefsson  <jas@extundo.com>
74082
74083         BeOS portability.
74084         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74085
74086 2006-08-27  Jim Meyering  <jim@meyering.net>
74087
74088         * doc/visibility.texi: Remove duplicate word: "pointer".
74089
74090 2006-08-26  Bruno Haible  <bruno@clisp.org>
74091
74092         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74093         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74094         (Makefile.am): Create inttypes.h from inttypes_.h.
74095         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74096
74097         * modules/imaxabs: New file.
74098
74099         * modules/imaxdiv: New file.
74100
74101 2006-08-26  Bruno Haible  <bruno@clisp.org>
74102
74103         * m4/inttypes.m4: New file.
74104         * m4/_inttypes_h.m4: Remove file.
74105         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74106         PRI_MACROS_BROKEN.
74107         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74108
74109         * m4/imaxabs.m4: New file.
74110
74111         * m4/imaxdiv.m4: New file.
74112
74113 2006-08-26  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/inttypes_.h: New file.
74116         * lib/inttypes.h: Remove file.
74117         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74118
74119         * lib/imaxabs.c: New file.
74120
74121         * lib/imaxdiv.c: New file.
74122
74123 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         New config-h module, so that "make" output needn't be cluttered
74126         by -DHAVE_CONFIG_H.
74127         * MODULES.html.sh (Support for building libraries and executables):
74128         Add config-h.
74129         * modules/config-h: New file.
74130         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74131         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74132         the config-h module is used.
74133
74134         New configmake module, so that "make" output needn't be cluttered
74135         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74136         * MODULES.html.sh (Support for building libraries and executables):
74137         Add configmake.
74138         * modules/configmake: New file.
74139
74140 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74141
74142         * m4/config-h.m4: New file.
74143
74144 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * config/srclist.txt: Add elisp-comp.
74147
74148 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         * MODULES.html.sh (Support for building libraries and executables):
74151         Add elisp-comp.
74152         * build-aux/elisp-comp: New file.
74153         * modules/elisp-comp: New file.
74154
74155 2006-08-24  Bruno Haible  <bruno@clisp.org>
74156
74157         * gnulib-tool (func_create_testdir): Use non-default values of
74158         sourcebase and m4base.
74159
74160 2006-08-24  Bruno Haible  <bruno@clisp.org>
74161
74162         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74163         HTML structure.
74164
74165 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * modules/openat (Depends-on): Add lchown.
74168
74169 2006-08-23  Bruno Haible  <bruno@clisp.org>
74170
74171         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74172         of gl_LOCK_EARLY instead of gl_LOCK.
74173
74174 2006-08-23  Bruno Haible  <bruno@clisp.org>
74175
74176         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74177         on OSF/1 to no.
74178         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74179
74180 2006-08-23  Bruno Haible  <bruno@clisp.org>
74181
74182         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74183         as unusable.
74184
74185         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74186         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74187         (gl_LOCK): New macro.
74188
74189 2006-08-22  Simon Josefsson  <jas@extundo.com>
74190
74191         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74192         to md5 module.
74193
74194 2006-08-22  Simon Josefsson  <jas@extundo.com>
74195
74196         * MODULES.html.sh: Add "Support for maintaining and release
74197         projects".
74198
74199         * build-aux/gnupload: New file, from coreutils.
74200
74201 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         Avoid the need for AC_LIBSOURCES in m4 macros.
74204         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74205         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74206         * modules/check-version (EXTRA_DIST): Add check-version.h.
74207         * modules/crc (EXTRA_DIST): Add crc.h.
74208         * modules/des (EXTRA_DIST): Add des.h.
74209         * modules/gc (EXTRA_DIST): Add gc.h.
74210         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74211         * modules/getline (EXTRA_DIST): Add getline.h.
74212         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74213         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74214         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74215         * modules/md2 (EXTRA_DIST): Add md2.h.
74216         * modules/md4 (EXTRA_DIST): Add md4.h.
74217         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74218         * modules/read-file (EXTRA_DIST): Add read-file.h.
74219         * modules/readline (EXTRA_DIST): Add readline.h.
74220         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74221         rijndael-api-fst.h.
74222
74223 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * m4/rijndael.m4 (gl_ARCFOUR):
74226         * m4/arctwo.m4 (gl_ARCTWO):
74227         * m4/check-version.m4 (gl_CHECK_VERSION):
74228         * m4/crc.m4 (gl_CRC):
74229         * m4/des.m4 (gl_DES):
74230         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74231         * m4/gc.m4 (gl_GC):
74232         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74233         * m4/getline.m4 (gl_FUNC_GETLINE):
74234         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74235         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74236         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74237         * m4/md2.m4 (gl_MD2):
74238         * m4/md4.m4 (gl_MD4):
74239         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74240         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74241         * m4/readline.m4 (gl_FUNC_READLINE):
74242         * m4/rijndael.m4 (gl_RIJNDAEL):
74243         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74244         to get the necessary .h files and whatnot.
74245
74246 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74249         gnulib rather than the other way around.
74250         * config/srclistvars.sh (COREUTILS): Remove.
74251
74252 2006-08-22  Jim Meyering  <jim@meyering.net>
74253
74254         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74255
74256         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74257
74258 2006-08-22  Eric Blake  <ebb9@byu.net>
74259
74260         * modules/regexprops-generic: New file.
74261         * MODULES.html.sh (Support for building documentation): List it.
74262
74263 2006-08-22  Eric Blake  <ebb9@byu.net>
74264
74265         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74266         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74267         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74268         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74269
74270 2006-08-22  Bruno Haible  <bruno@clisp.org>
74271
74272         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74273         and lib_LTLIBRARIES like the other lib_* variables.
74274
74275 2006-08-22  Bruno Haible  <bruno@clisp.org>
74276
74277         * build-aux/x-to-1.in: New file, from GNU gettext.
74278
74279 2006-08-22  Bruno Haible  <bruno@clisp.org>
74280
74281         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74282         <utmpx.h> exists.
74283
74284 2006-08-22  Bruno Haible  <bruno@clisp.org>
74285
74286         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74287         <utmpx.h> exists.
74288
74289 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         BeOS portability.
74292         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74293         exist.
74294         Problem reported by Bruno Haible.
74295
74296 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         Avoid the need for AC_LIBSOURCES in m4 macros.
74299         * modules/acl (EXTRA_DIST): Add acl.h.
74300         * modules/argmatch (Files): Add m4/argmatch.m4.
74301         (configure.ac): Add gl_ARGMATCH.
74302         (EXTRA_DIST): Renamed from lib_SOURCES, for
74303         consistency with the other modules.  Remove argmatch.c.
74304         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74305         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74306         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74307         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74308         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74309         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74310         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74311         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74312         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74313         * modules/closeout (EXTRA_DIST): Add closeout.h.
74314         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74315         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74316         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74317         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74318         dirname.h; remove basename.c and stripslash.c.
74319         * modules/exclude (EXTRA_DIST): Add exclude.h.
74320         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74321         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74322         * modules/file-type (EXTRA_DIST): Add file-type.h.
74323         * modules/filemode (EXTRA_DIST): Add filemode.h.
74324         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74325         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74326         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74327         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74328         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74329         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74330         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74331         * modules/getdate (EXTRA_DIST): Add getdate.c.
74332         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74333         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74334         * modules/getpass (EXTRA_DIST): Add getpass.h.
74335         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74336         * modules/group-member (EXTRA_DIST): Add group-member.h.
74337         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74338         * modules/hash (EXTRA_DIST): Add hash.h.
74339         * modules/human (EXTRA_DIST): Add human.h.
74340         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74341         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74342         * modules/lchown (EXTRA_DIST): Add lchown.h.
74343         * modules/long-options (EXTRA_DIST): Add long-options.h.
74344         * modules/lstat (EXTRA_DIST): Add lstat.h.
74345         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74346         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74347         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74348         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74349         * modules/memxor (EXTRA_DIST): Add memxor.h.
74350         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74351         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74352         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74353         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74354         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74355         * modules/physmem (EXTRA_DIST): Add physmem.h.
74356         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74357         * modules/posixver (EXTRA_DIST): Add posixver.h.
74358         * modules/quote (EXTRA_DIST): Add quote.h.
74359         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74360         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74361         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74362         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74363         regex_internal.h regexec.c.
74364         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74365         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74366         * modules/same (EXTRA_DIST): Add same.h.
74367         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74368         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74369         * modules/savedir (EXTRA_DIST): Add savedir.h.
74370         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74371         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74372         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74373         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74374         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74375         * modules/strdup (EXTRA_DIST): Add strdup.h.
74376         * modules/strftime (EXTRA_DIST): Add strftime.h.
74377         * modules/strndup (EXTRA_DIST): Add strndup.h.
74378         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74379         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74380         * modules/time_r (EXTRA_DIST): Add time_r.h.
74381         * modules/timespec (EXTRA_DIST): Add timespec.h.
74382         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74383         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74384         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74385         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74386         * modules/userspec (EXTRA_DIST): Add userspec.h.
74387         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74388         * modules/utimens (EXTRA_DIST): Add utimens.h.
74389         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74390         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74391         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74392         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74393         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74394         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74395         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74396         * modules/yesno (EXTRA_DIST): Add yesno.h.
74397
74398 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74401
74402         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74403         * m4/dev-ino.m4, same-inode.m4: Remove.
74404
74405         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74406         * m4/acl.m4 (AC_FUNC_ACL):
74407         * m4/backupfile.m4 (gl_BACKUPFILE):
74408         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74409         * m4/canon-host.m4 (gl_CANON_HOST):
74410         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74412         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74413         * m4/cloexec.m4 (gl_CLOEXEC):
74414         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74415         * m4/closeout.m4 (gl_CLOSEOUT):
74416         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74417         * m4/dirname.m4 (gl_DIRNAME):
74418         * m4/exclude.m4 (gl_EXCLUDE):
74419         * m4/exitfail.m4 (gl_EXITFAIL):
74420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74421         * m4/file-type.m4 (gl_FILE_TYPE):
74422         * m4/filemode.m4 (gl_FILEMODE):
74423         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74424         * m4/fpending.m4 (gl_FUNC_FPENDING):
74425         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74426         * m4/fts.m4 (gl_FUNC_FTS):
74427         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74428         * m4/getdate.m4 (gl_GETDATE):
74429         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74430         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74431         * m4/getpass.m4 (gl_FUNC_GETPASS):
74432         * m4/gettime.m4 (gl_GETTIME):
74433         * m4/getugroups.m4 (gl_GETUGROUPS):
74434         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74435         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74436         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74437         * m4/hash.m4 (gl_HASH):
74438         * m4/idcache.m4 (gl_IDCACHE):
74439         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74440         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74441         * m4/long-options.m4 (gl_LONG_OPTIONS):
74442         * m4/lstat.m4 (gl_FUNC_LSTAT):
74443         * m4/md5.m4 (gl_MD5):
74444         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74445         * m4/memcoll.m4 (gl_MEMCOLL):
74446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74447         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74448         * m4/memxor.m4 (gl_MEMXOR):
74449         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74450         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74451         * m4/modechange.m4 (gl_MODECHANGE):
74452         * m4/mountlist.m4 (gl_MOUNTLIST):
74453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74454         * m4/openat.m4 (gl_FUNC_OPENAT):
74455         * m4/pathmax.m4 (gl_PATHMAX):
74456         * m4/physmem.m4 (gl_PHYSMEM):
74457         * m4/posixtm.m4 (gl_POSIXTM):
74458         * m4/posixver.m4 (gl_POSIXVER):
74459         * m4/quote.m4 (gl_QUOTE):
74460         * m4/quotearg.m4 (gl_QUOTEARG):
74461         * m4/readtokens.m4 (gl_READTOKENS):
74462         * m4/readutmp.m4 (gl_READUTMP):
74463         * m4/regex.m4 (gl_REGEX):
74464         * m4/safe-read.m4 (gl_SAFE_READ):
74465         * m4/safe-write.m4 (gl_SAFE_WRITE):
74466         * m4/same.m4 (gl_SAME):
74467         * m4/save-cwd.m4 (gl_SAVE_CWD):
74468         * m4/savedir.m4 (gl_SAVEDIR):
74469         * m4/settime.m4 (gl_SETTIME):
74470         * m4/sha1.m4 (gl_SHA1):
74471         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74472         * m4/stat-macros.m4 (gl_STAT_MACROS):
74473         * m4/stat-time.m4 (gl_STAT_TIME):
74474         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74475         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74476         * m4/strdup.m4 (gl_FUNC_STRDUP):
74477         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74478         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74479         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74480         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74481         * m4/time_r.m4 (gl_TIME_R):
74482         * m4/timespec.m4 (gl_TIMESPEC):
74483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74484         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74485         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74486         * m4/userspec.m4 (gl_USERSPEC):
74487         * m4/utimecmp.m4 (gl_UTIMECMP):
74488         * m4/utimens.m4 (gl_UTIMENS):
74489         * m4/xalloc.m4 (gl_XALLOC):
74490         * m4/xgetcwd.m4 (gl_XGETCWD):
74491         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74492         * m4/xreadlink.m4 (gl_XREADLINK):
74493         * m4/xstrtod.m4 (gl_XSTRTOD):
74494         * m4/yesno.m4 (gl_YESNO):
74495         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74496         to get the necessary .h files and whatnot.
74497
74498 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74499             Bruno Haible  <bruno@clisp.org>
74500
74501         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74502         /bin/sh understanding of '!' conditional negation.
74503
74504 2006-08-21  Jim Meyering  <jim@meyering.net>
74505
74506         * modules/openat (Depends-on): Really alphabetize.
74507
74508         * modules/acl (Depends-on): Add error and quote.
74509
74510         * check-module (find_included_lib_files): Add at-func.c to the
74511         ok-to-include-more-than-once white list.
74512
74513         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74514
74515 2006-08-21  Bruno Haible  <bruno@clisp.org>
74516
74517         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74518         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74519         Reported by Martin Lambers <marlam@marlam.de>.
74520
74521 2006-08-21  Bruno Haible  <bruno@clisp.org>
74522
74523         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74524         specify an installation location, don't emit a noinst_LIBRARIES or
74525         noinst_LTLIBRARIES assignment.
74526
74527 2006-08-21  Bruno Haible  <bruno@clisp.org>
74528
74529         BeOS portability.
74530         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74531         BeOS has mbrtowc() but no <wctype.h>.
74532
74533 2006-08-21  Bruno Haible  <bruno@clisp.org>
74534
74535         BeOS portability.
74536         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74537         exist.
74538
74539 2006-08-21  Bruno Haible  <bruno@clisp.org>
74540
74541         BeOS portability.
74542         * lib/mbchar.h: Include <wctype.h> only if it exists.
74543
74544 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         Remove files that are no longer needed by their respective modules.
74547         * m4/obstack.m4: Remove.
74548         * m4/strerror_r.m4: Remove.
74549         * m4/uint32_t.m4: Remove.
74550         * m4/uintptr_t.m4: Remove.
74551         * m4/ullong_max.m4: Remove.
74552         * m4/xstrtoimax.m4: Remove.
74553         * m4/xstrtoumax.m4: Remove.
74554
74555         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74556         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74557         dependencies now capture this.
74558
74559         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74560         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74561         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74562         * m4/human.m4 (gl_HUMAN): Likewise.
74563         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74564         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74565
74566         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74567
74568         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74569         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74570         stdint.
74571         * m4/human.m4 (gl_HUMAN): Likewise.
74572         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74573         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74574         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74575         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74576         * m4/xstrtol (gl_XSTRTOL): Likewise.
74577
74578         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74579         AC_TYPE_LONG_LONG_INT.
74580         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74581         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74582         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74583         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74584
74585         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74586         on stdbool.
74587
74588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74589         (gl_PREREQ_XSTRTOUL): Remove.
74590
74591         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74592
74593         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74594         mode.
74595
74596 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         Add and change modules to make it easier for coreutils to use
74599         gnulib-tool.
74600         * modules/backupfile (Files): Remove m4/d-ino.m4.
74601         (Depends-on): Add d-ino.
74602         * modules/cycle-check (Depends-on): Add stdint.
74603         (lib_SOURCES): Add cycle-check.h.
74604         * modules/d-ino: New module.
74605         * modules/d-type: New module.
74606         * modules/error (Files): Remove m4/strerror_r.m4.
74607         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74608         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74609         m4/inttypes_h.m4, m4/uintmax_t.m4.
74610         (Depends-on): Add stdint.
74611         (lib_SOURCES): Add fsusage.h.
74612         * modules/getcwd (Files): Remove d-ino.m4.
74613         (Depends-on): Add d-ino.
74614         * modules/getndelim2 (Depends-on): Add stdint.
74615         * modules/glob (Files): Remove m4/d-type.m4.
74616         (Depends-on): Add d-type.
74617         * modules/host-os: New module.
74618         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74619         m4/inttypes_h.m4, m4/uintmax_t.m4.
74620         * Depends-on: Add stdint.
74621         (lib_SOURCES): Add human.h.
74622         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74623         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74624         m4/uintmax_t.m4, m4/ulonglong.m4.
74625         (Depends-on): Add stdint.
74626         (EXTRA_DIST): Add inttostr.h.
74627         * modules/lchmod: New module.
74628         * modules/link-follow: New module.
74629         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74630         (Depends-on): Add lchmod.
74631         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74632         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74633         (Depends-on): Add stdint.
74634         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74635         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74636         (Depends-on): Add stdint.
74637         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74638         * modules/perl: New module.
74639         * modules/regex (Depends-on): Add stdint.
74640         * modules/rmdir-errno: New module.
74641         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74642         m4/intmax_t.m4.
74643         (Depends-on): Add stdint.
74644         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74645         m4/uintmax_t.m4.
74646         (Depends-on): Add stdint.
74647         * modules/unlink-busy: New module.
74648         * modules/utimecmp (Depends-on): Add stdint.
74649         * modules/uptime: New module.
74650         * modules/winsz-ioctl: New module.
74651         * modules/winsz-termios: New module.
74652         * modules/xnanosleep (Depends-on): Add nanosleep.
74653         * modules/ullong_max: Remove.
74654         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74655         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74656         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74657         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74658         (Depends-on): Add inttypes.
74659         (lib_SOURCES): Add xstrtol.h.
74660         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74661         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74662         * MODULES.html.sh: Move 'assert' into the assert section.
74663         Move 'dummy' into the linking section.
74664         Remove ullong_max.
74665         Add section for compatibility checks for POSIX:2001 functions,
74666         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74667         winsz-ioctl, and winsz-termios into it.
74668         Add lchmod.
74669         Add top-level Misc section and put host-os, perl, and uptime
74670         into it.
74671
74672 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74675         now assume the stdint module.  Do not include inttypes.h.
74676         * lib/fsusage.h: Likewise.
74677         * lib/getndelim2.c: Likewise.
74678         * lib/human.h: Likewise.
74679         * lib/inttostr.h: Likewise.
74680         * lib/obstack.c: Likewise.
74681         * lib/regex_internal.h: Likewise.
74682         * lib/tempname.c: Likewise.
74683         * lib/utimecmp.c: Likewise.
74684         * lib/xstrtol.h: Likewise.
74685
74686         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74687
74688         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74689         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74690         * lib/xtime.h: Likewise.
74691
74692 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * modules/openat (Files): Add lib/fchmodat.c.
74695         Fixes problem reported by Jay Youngman.
74696
74697 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74700         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74701
74702 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74703             Bruno Haible  <bruno@clisp.org>
74704
74705         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74706         and is a script that invokes bison. Tighten the code. Add comments.
74707
74708 2006-08-18  Jim Meyering  <jim@meyering.net>
74709
74710         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74711         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74712         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74713         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74714
74715 2006-08-18  Bruno Haible  <bruno@clisp.org>
74716
74717         * modules/bison-i18n: New file.
74718         * MODULES.html.sh (Internationalization functions): Add it.
74719
74720 2006-08-18  Bruno Haible  <bruno@clisp.org>
74721
74722         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74723         sys/statvfs.h. When getmntinfo was found, check its declaration and
74724         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74725
74726 2006-08-18  Bruno Haible  <bruno@clisp.org>
74727
74728         * m4/bison-i18n.m4: New file, from bison.
74729
74730 2006-08-18  Bruno Haible  <bruno@clisp.org>
74731
74732         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74733         (ME_DUMMY): Treat "kernfs" as a dummy.
74734         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74735
74736 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         Update from coreutils.
74739
74740         2006-08-15  Jim Meyering  <jim@meyering.net>
74741
74742         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74743
74744         2006-01-17  Jim Meyering  <jim@meyering.net>
74745
74746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74747
74748         2006-01-11  Jim Meyering  <jim@meyering.net>
74749
74750         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74751         Check for the lchmod function.
74752
74753 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         Update from coreutils.
74756
74757         * lib/__fpending.h: Add copyright notice.
74758         * lib/fprintftime.h: Likewise.
74759         * lib/savedir.c: Use (C) in copyright notice.
74760         * lib/savedir.h: Likewise.
74761
74762         2006-08-15  Jim Meyering  <jim@meyering.net>
74763
74764         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74765         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74766         in support of the EXPECTED_ERRNO macro.
74767         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74768         definitions.  Instead, define the appropriate symbols and include
74769         "at-func.c".
74770         * lib/mkdirat.c (mkdirat): Likewise.
74771         * lib/fchmodat.c (fchmodat): Likewise.
74772         (ENOSYS): Remove definition.
74773         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74774         it.  Don't include "unistd--.h" -- it wasn't ever used.
74775
74776         2006-01-17  Jim Meyering  <jim@meyering.net>
74777
74778         Rewrite fts.c not to change the current working directory,
74779         by using openat, fstatat, fdopendir, etc..
74780
74781         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74782         (HAVE_OPENAT_SUPPORT): Define.
74783         [_LIBC] (fchdir): Don't undef or define; no longer used.
74784         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74785         Now, this `function' always succeeds, and consumes its file descriptor
74786         parameter -- so callers must not close such FDs.  Update callers.
74787         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74788         (diropen): Add parameter, SP.  Adjust all callers.
74789         Implement using diropen_fd, rather than open.
74790         (fts_open): Initialize new member, fts_cwd_fd.
74791         Remove fts_rft-setting code.
74792         (fts_close): Close fts_cwd_fd, if necessary.
74793         (__opendir2): Define in terms of opendir or opendirat,
74794         depending on whether the FST_NOCHDIR flag is set.
74795         (fts_build): Since fts_safe_changedir consumes its FD, and since
74796         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74797         and close the dup'd file descriptor upon failure.
74798         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74799         (fts_safe_changedir): Tweak semantics to reflect that this function
74800         now calls cwd_advance_fd and hence consumes its FD argument.
74801         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74802         [struct FTS] (fts_rft): Remove now-unused member.
74803         [struct FTS] (fts_cycle.state): Improve comment.
74804
74805         * lib/openat.c (openat_needs_fchdir): New function.
74806         * lib/openat.h (openat_needs_fchdir): Declare it.
74807
74808 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74811         Problem and fix reported by Pádraig Brady in
74812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74813
74814 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74817
74818 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * lib/memcoll.c (memcoll): Optimize for the common case where the
74821         arguments are bytewise equal.
74822
74823 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * doc/regexprops-generic.texi: Add a copyright notice.
74826
74827 2006-08-15  Bruno Haible  <bruno@clisp.org>
74828
74829         * modules/tmpdir (License): Change to LGPL.
74830
74831 2006-08-15  Bruno Haible  <bruno@clisp.org>
74832
74833         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74834         module.
74835
74836 2006-08-14  Simon Josefsson  <jas@extundo.com>
74837
74838         * config/srclist.txt: Add gnupload.
74839
74840 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         Change copyright notice from LGPL 2 to GPL 2, since that's the
74843         standard form used in the gnulib repository.
74844         * tests/test-lock.c: Likewise.
74845         * tests/test-stdint.c: Likewise.
74846         * tests/test-tls.c: Likewise.
74847
74848         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74849         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74850         Add copyright notice.
74851
74852         * check-module: Add copyright notice.  Output a copyright
74853         notice if "--version" is specified.
74854         * modules/COPYING: New file.
74855         * tests/test-getaddrinfo.c: Add copyright notice.
74856         * tests/test-verify.c: Likewise.
74857
74858 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         Change copyright notice from LGPL 2 to GPL 2, since that's the
74861         standard form used in the gnulib repository.
74862         * lib/lock.c: LGPL -> GPL.
74863         * lib/lock.h: Likewise.
74864         * lib/strnlen1.c: Likewise.
74865         * lib/strnlen1.h: Likewise.
74866         * lib/tls.c: Likewise.
74867         * lib/tls.h: Likewise.
74868         * lib/tmpdir.c: Likewise.
74869
74870         * lib/TODO: Remove; this belongs only in coreutils.
74871
74872 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         Add copyright notices to long-enough files that lack them, since
74875         otherwise the files aren't clearly free.  Use the same notice that
74876         getdate.texi already uses.
74877         * doc/alloca-opt.texi: Add copyright notice.
74878         * doc/alloca.texi: Likewise.
74879         * doc/ctime.texi: Likewise.
74880         * doc/functions.texi: Likewise.
74881         * doc/gcd.texi: Likewise.
74882         * doc/gnulib-tool.texi: Likewise.
74883         * doc/inet_ntoa.texi: Likewise.
74884         * doc/visibility.texi: Likewise.
74885
74886         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74887         * doc/quote.texi: Add copyright notice.
74888
74889         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74890         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74891         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74892         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74893         is now obsolete, and give a pointer to the Sun list.
74894         Add copyright notice.
74895
74896 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * config/srclistvars.sh: Add copyright notice.
74899
74900 2006-08-14  Eric Blake  <ebb9@byu.net>
74901
74902         Import the following change from libc:
74903
74904         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74905
74906         Upstream bug 2997.
74907         * lib/misc/error.c: Add space between program name and message if file
74908         name is missing.
74909
74910 2006-08-12  Karl Berry  <karl@gnu.org>
74911
74912         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74913         remove, these originate in gnulib now.
74914
74915 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74916
74917         * doc/Makefile (standards.info standards.html standards.dvi):
74918         Also depend on make-stds.texi.
74919
74920 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74923         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74924
74925         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74926         in wchar_t.  Problem reported by Eric Blake.
74927
74928         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74929         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74930         Also, help the compiler to keep LEN in a register.
74931
74932 2006-08-11  Eric Blake  <ebb9@byu.net>
74933
74934         * users.txt: Sort.  Add tar.
74935
74936 2006-08-11  Bruno Haible  <bruno@clisp.org>
74937
74938         * users.txt: New file.
74939
74940 2006-08-11  Bruno Haible  <bruno@clisp.org>
74941
74942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74943         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74944
74945 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * modules/snprintf (Depends-on): Remove minmax.
74948         (Maintainer): Add self and Bruno.
74949
74950 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74953         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74954         (EOVERFLOW): Define if the system does not.
74955         Do not include "minmax.h"; it wasn't used.
74956         (snprintf): Don't assume size_t promotes to an unsigned type.
74957         Fix bug when generated string was too long for the buffer: the
74958         buffer's contents are supposed to be the initial prefix of the
74959         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74960         exceeds INT_MAX; do the check ourselves.
74961
74962         Import the following changes from libc:
74963
74964         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74965
74966         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74967         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74968         set wc to the byte which couldn't be converted.
74969         (re_string_reconstruct): Don't clear valid_raw_len before calling
74970         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74971         tip_context using re_string_context_at.
74972
74973         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74974
74975         * lib/posix/regex.h: g++ still cannot handled [restrict].
74976
74977         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74978
74979         * lib/posix/regex.h: Remove special handling for VMS.
74980
74981 2006-08-10  Jim Meyering  <jim@meyering.net>
74982
74983         * modules/same-inode: New module.
74984         * modules/dev-ino: New module.
74985         * modules/cycle-check: Depend on these modules, rather than simply
74986         including their .h files.
74987         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74988         required via m4/cycle-check.m4.
74989         * modules/same: Depend on new same-inode module, rather than
74990         including same-inode.h.
74991         * modules/chdir-safer: New file.
74992
74993         * modules/chown (Depends-on): Add stat-macros.
74994
74995 2006-08-10  Jim Meyering  <jim@meyering.net>
74996
74997         * m4/cycle-check.m4: New file.
74998         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74999         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75000
75001 2006-08-10  Eric Blake  <ebb9@byu.net>
75002
75003         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75004         in from original proposal.
75005
75006 2006-08-10  Eric Blake  <ebb9@byu.net>
75007         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75008
75009         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75010         namespace.
75011
75012 2006-08-10  Bruno Haible  <bruno@clisp.org>
75013
75014         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75015         as well.
75016
75017 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         Sync from coreutils.
75020
75021         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75022
75023         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75024         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75025
75026 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * modules/restrict: Remove; no longer needed now that we assume
75029         Autoconf 2.59 or later.
75030         * MODULES.html.sh: Remove 'restrict'.
75031         * modules/argp (Depends-on): Remove 'restrict'.
75032         * modules/base64 (Depends-on): Likewise.
75033         * modules/gc (Depends-on): Likewise.
75034         * modules/getaddrinfo (Depends-on): Likewise.
75035         * modules/glob (Depends-on): Likewise.
75036         * modules/inet_ntop (Depends-on): Likewise.
75037         * modules/inet_pton (Depends-on): Likewise.
75038         * modules/memxor (Depends-on): Likewise.
75039         * modules/regex (Depends-on): Likewise.
75040         * modules/strtok_r (Depends-on): Likewise.
75041         * modules/time_r (Depends-on): Likewise.
75042
75043 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75044
75045         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75046         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75047         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75048         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75049         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75050         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75051         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75052         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75053
75054         Merge from coreutils.
75055         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75056         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75057         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75058         * m4/time_r.m4 (gl_TIME_R): Likewise.
75059
75060 2006-08-09  Karl Berry  <karl@gnu.org>
75061
75062         * config/srclist.txt: no more gettext-tools, per Bruno.
75063
75064 2006-08-08  Eric Blake  <ebb9@byu.net>
75065
75066         * modules/verror: New module.
75067         * MODULES.html.sh: Document it.
75068
75069 2006-08-08  Eric Blake  <ebb9@byu.net>
75070
75071         * lib/verror.h, lib/verror.c: New files.
75072
75073 2006-08-08  Eric Blake  <ebb9@byu.net>
75074
75075         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75076         verror_at_line output complies with GNU Coding Standards even when
75077         file is NULL.
75078
75079 2006-08-07  Bruno Haible  <bruno@clisp.org>
75080
75081         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75082         versions of AIX.
75083         Reported by Ralf Wildenhues.
75084
75085 2006-08-07  Bruno Haible  <bruno@clisp.org>
75086
75087         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75088         in an AC_DEFUN. Needed so that the autoconf snippets can use
75089         AC_REQUIRE.
75090
75091 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75092
75093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75094         Initialize pkgdata_DATA.
75095         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75096         overriding it.
75097
75098 2006-08-06  Eric Blake  <ebb9@byu.net>
75099
75100         * lib/error.h: Fold in some upstream changes from glibc.
75101         * lib/error.c: Likewise.
75102
75103 2006-08-04  Bruno Haible  <bruno@clisp.org>
75104
75105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75106         Make the mostlyclean-local rule depend on mostlyclean-generic.
75107         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75108
75109 2006-07-31  Bruno Haible  <bruno@clisp.org>
75110
75111         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75112         <stdlib.h>, <string.h>.
75113
75114 2006-07-30  Bruno Haible  <bruno@clisp.org>
75115
75116         * modules/readlink (License): Change to LGPL.
75117
75118 2006-07-30  Bruno Haible  <bruno@clisp.org>
75119
75120         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75121         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75122         set PKGDATADIR to point to it.
75123
75124 2006-07-30  Bruno Haible  <bruno@clisp.org>
75125
75126         * modules/csharpexec (configure.ac): Comment out macro invocation.
75127         * modules/javaexec (configure.ac): Likewise.
75128         * modules/javacomp-script (configure.ac): Likewise.
75129
75130         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75131
75132 2006-07-30  Bruno Haible  <bruno@clisp.org>
75133
75134         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75135         linked-list.
75136
75137 2006-07-30  Bruno Haible  <bruno@clisp.org>
75138
75139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75140
75141 2006-07-30  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75144         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75145         get removed.
75146
75147 2006-07-29  Bruno Haible  <bruno@clisp.org>
75148
75149         Make it possible for gnulib-tool to work with locally modified or
75150         augmented gnulib repositories.
75151         * gnulib-tool (func_usage): Document --local-dir option.
75152         (local_gnulib_dir): New variable.
75153         Handle --local-dir option.
75154         (func_lookup_file): New function.
75155         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75156         (func_get_description, func_get_filelist, func_get_description,
75157         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75158         func_get_automake_snippet, func_get_include_directive,
75159         func_get_license, func_get_maintainer): Use func_lookup_file.
75160         (func_import, func_create_testdir): Use func_lookup_file.
75161
75162 2006-07-29  Bruno Haible  <bruno@clisp.org>
75163
75164         * modules/setenv (Depends-on): Add unistd.
75165
75166 2006-07-29  Bruno Haible  <bruno@clisp.org>
75167
75168         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75169
75170 2006-07-29  Bruno Haible  <bruno@clisp.org>
75171
75172         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75173
75174 2006-07-29  Bruno Haible  <bruno@clisp.org>
75175
75176         * gnulib-tool (import, update): If there is no Makefile.am, look at
75177         aclocal.m4, instead of bailing out.
75178
75179 2006-07-29  Bruno Haible  <bruno@clisp.org>
75180
75181         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75182         Categorize the options by when they are useful.
75183
75184 2006-07-29  Bruno Haible  <bruno@clisp.org>
75185
75186         * gnulib-tool (func_usage): Document option --no-libtool.
75187         Handle option --no-libtool.
75188         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75189         for changed semantics of $libtool variable.
75190         (func_import): Likewise. If libtool is not used, show this through
75191         an option --no-libtool.
75192         (func_create_testdir): Update.
75193
75194 2006-07-29  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool (func_import): Extend error message about missing
75197         --doc-base.
75198
75199 2006-07-29  Bruno Haible  <bruno@clisp.org>
75200
75201         * gnulib-tool (func_import): Don't create the $docbase directory if
75202         there is no file to store there.
75203
75204 2006-07-29  Bruno Haible  <bruno@clisp.org>
75205
75206         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75207         relevant, look for configure.ac there, not in the current directory.
75208         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75209
75210 2006-07-29  Bruno Haible  <bruno@clisp.org>
75211
75212         * gnulib-tool (SORT): New variable.
75213         (func_usage): Undocument --assume-autoconf option.
75214         Remove --assume-autoconf option handling.
75215         (autoconf_minversion): Determine from the contents of configure.ac.
75216         (func_import): Remove autoconf_minversion handling.
75217         Suggested by Eric Blake.
75218
75219 2006-07-29  Bruno Haible  <bruno@clisp.org>
75220
75221         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75222
75223 2006-07-29  Bruno Haible  <bruno@clisp.org>
75224
75225         * config/srclist.txt (*setenv.[ch]): Remove rules.
75226
75227 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75228
75229         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75230
75231 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75232
75233         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75234         arpa/inet.h.
75235
75236 2006-07-28  Simon Josefsson  <jas@extundo.com>
75237
75238         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75239         * modules/inet_pton (Depends-on): Likewise.
75240
75241 2006-07-28  Simon Josefsson  <jas@extundo.com>
75242
75243         * m4/netinet_in_h.m4: New file.
75244
75245 2006-07-28  Simon Josefsson  <jas@extundo.com>
75246
75247         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75248         #include's.
75249
75250 2006-07-28  Simon Josefsson  <jas@extundo.com>
75251
75252         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75253         #include's.
75254
75255 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75258         setgid on directories only if they set these bits.
75259         * lib/modechange.h: Remove obsolete comment about masks.
75260
75261 2006-07-28  Eric Blake  <ebb9@byu.net>
75262
75263         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75264         macro expansion.
75265
75266 2006-07-28  Bruno Haible  <bruno@clisp.org>
75267
75268         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75269
75270 2006-07-28  Bruno Haible  <bruno@clisp.org>
75271
75272         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75273
75274 2006-07-28  Bruno Haible  <bruno@clisp.org>
75275
75276         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75277         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75278         Define fallbacks.
75279         Avoids link error on FreeBSD 4.x.
75280         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75281
75282         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75283         encoding.
75284         * lib/mbswidth.c (iswcntrl): Likewise.
75285
75286 2006-07-27  Bruno Haible  <bruno@clisp.org>
75287
75288         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75289         test.
75290
75291 2006-07-27  Bruno Haible  <bruno@clisp.org>
75292
75293         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75294         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75295         defined.
75296
75297 2006-07-26  Eric Blake  <ebb9@byu.net>
75298
75299         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75300
75301 2006-07-26  Eric Blake  <ebb9@byu.net>
75302
75303         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75304         like mingw that lack mkstemp.
75305         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75306         avoid compilation warning on mingw.
75307
75308 2006-07-26  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75311         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75312         INT_FAST*_MIN, INTPTR_MIN.
75313
75314 2006-07-25  Bruno Haible  <bruno@clisp.org>
75315
75316         * modules/version-etc (Depends-on): Add stdarg.
75317
75318 2006-07-25  Bruno Haible  <bruno@clisp.org>
75319
75320         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75321         complex commands.
75322
75323 2006-07-25  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75326         defined in <stdarg.h> or config.h.
75327
75328 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75331         (gl_STDIO_SAFER): Remove.
75332
75333 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * MODULES.html.sh (File stream based Input/Output):
75336         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75337         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75338         * modules/fopen-safer, modules/tmpfile-safer: New files.
75339         * modules/stdio-safer: Remove.
75340
75341 2006-07-24  Bruno Haible  <bruno@clisp.org>
75342
75343         * modules/tmpdir: New file.
75344         * MODULES.html.sh (File system functions): Add it.
75345
75346 2006-07-24  Bruno Haible  <bruno@clisp.org>
75347
75348         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75349         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75350
75351 2006-07-24  Bruno Haible  <bruno@clisp.org>
75352
75353         * modules/clean-temp: New file.
75354
75355 2006-07-24  Bruno Haible  <bruno@clisp.org>
75356
75357         * m4/tmpdir.m4: New file, from GNU gettext.
75358
75359 2006-07-24  Bruno Haible  <bruno@clisp.org>
75360
75361         * lib/tmpdir.h: New file, from GNU gettext.
75362         * lib/tmpdir.c: New file, from GNU gettext.
75363
75364 2006-07-24  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/clean-temp.h: New file, from GNU gettext.
75367         * lib/clean-temp.c: New file, from GNU gettext.
75368
75369 2006-07-23  Eric Blake  <ebb9@byu.net>
75370
75371         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75372         (Depends-on): Add binary-io.
75373
75374 2006-07-23  Eric Blake  <ebb9@byu.net>
75375
75376         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75377
75378 2006-07-23  Eric Blake  <ebb9@byu.net>
75379
75380         * lib/tmpfile-safer.c: New file.
75381         * lib/stdio-safer.h (fopen_safer): Add prototype.
75382         * lib/stdio--.h (tmpfile): Make safer.
75383
75384 2006-07-23  Bruno Haible  <bruno@clisp.org>
75385
75386         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75387         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75388         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75389         gl_linked_remove_at): Use it.
75390
75391 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75392         and Simon Josefsson <jas@extundo.com>
75393
75394         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75395
75396         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75397
75398 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * modules/close-stream: New file.
75401         * modules/closeout (Description): Make it clear that it exits
75402         with a diagnostic on error.
75403         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75404         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75405
75406 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75407
75408         * m4/close-stream.m4: New file.
75409
75410 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75411
75412         * lib/close-stream.c, lib/close-stream.h: New files.
75413
75414 2006-07-22  Bruno Haible  <bruno@clisp.org>
75415
75416         Merge from GNU gettext 0.15.
75417
75418         2006-05-01  Bruno Haible  <bruno@clisp.org>
75419
75420                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75421
75422         2006-07-22  Bruno Haible  <bruno@clisp.org>
75423
75424                 * modules/javaversion: New file.
75425                 * MODULES.html.sh (Java): Add javaversion.
75426
75427         2006-03-12  Bruno Haible  <bruno@clisp.org>
75428
75429                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75430
75431         2005-12-04  Bruno Haible  <bruno@clisp.org>
75432
75433                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75434                 (untested).
75435
75436         2006-06-21  Bruno Haible  <bruno@clisp.org>
75437
75438                 Avoid warnings from recent versions of mcs.
75439                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75440                 -o, -L, -r any more. Use options documented since mcs-1.0
75441                 instead. Similarly for -g.
75442
75443         2005-12-04  Bruno Haible  <bruno@clisp.org>
75444
75445                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75446                 .resources, not .resource.
75447
75448         2005-07-09  Bruno Haible  <bruno@clisp.org>
75449
75450                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75451                 add a .dll suffix.
75452                 Reported by Mark Junker <mjscod@gmx.de>.
75453
75454         2006-07-22  Bruno Haible  <bruno@clisp.org>
75455
75456                 * modules/gettext: Upgrade to gettext-0.15.
75457                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75458                 m4/visibility.m4.
75459                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75460
75461 2006-07-22  Bruno Haible  <bruno@clisp.org>
75462
75463         Merge from GNU gettext 0.15.
75464
75465         2006-03-25  Bruno Haible  <bruno@clisp.org>
75466
75467                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75468
75469         2006-07-21  Bruno Haible  <bruno@clisp.org>
75470
75471                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75472                 "1.1".
75473
75474         2006-05-09  Bruno Haible  <bruno@clisp.org>
75475
75476                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75477                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75478                 for the conftestver execution.
75479
75480         2006-05-01  Bruno Haible  <bruno@clisp.org>
75481
75482                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75483                 optional target-version argument. Verify that the compiler
75484                 groks source of the specified source-version, or add -source
75485                 option as necessary. Verify that the compiler produces
75486                 bytecode in the specified target-version, or add -target and
75487                 -source options as necessary. Make the result of the test
75488                 available as variable CONF_JAVAC. Also log error output in
75489                 config.log.
75490
75491         2006-03-11  Bruno Haible  <bruno@clisp.org>
75492
75493                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75494
75495         2006-05-09  Bruno Haible  <bruno@clisp.org>
75496
75497                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75498                 CLASSPATH_SEPARATOR to a semicolon.
75499
75500         2006-03-12  Bruno Haible  <bruno@clisp.org>
75501
75502                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75503                 available as variable CONF_JAVA, for subsequent autoconf
75504                 tests. Also log error output in config.log.
75505
75506         2006-07-19  Bruno Haible  <bruno@clisp.org>
75507
75508                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75509                 that getline works on glibc2 systems. Needed to avoid trouble
75510                 in relocatable.c.
75511                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75512
75513         2005-12-04  Bruno Haible  <bruno@clisp.org>
75514
75515                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75516                 launcher (untested).
75517
75518         2005-12-04  Bruno Haible  <bruno@clisp.org>
75519
75520                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75521
75522         2006-07-22  Bruno Haible  <bruno@clisp.org>
75523
75524                 * gettext.m4: Update from GNU gettext-0.15.
75525                 * nls.m4: Likewise.
75526                 * po.m4: Likewise.
75527                 * inttypes-pri.m4: Likewise.
75528                 * inttypes-h.m4: Renamed from inttypes.m4.
75529                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75530
75531 2006-07-22  Bruno Haible  <bruno@clisp.org>
75532
75533         Merge from GNU gettext 0.15.
75534
75535         2005-07-05  Bruno Haible  <bruno@clisp.org>
75536
75537                 * printf-args.c (printf_fetchargs): Work around broken
75538                 definition of wint_t on mingw.
75539
75540         2005-02-12  Bruno Haible  <bruno@clisp.org>
75541
75542                 * xallocsa.h: Add extern "C" for C++.
75543
75544         2006-05-17  Bruno Haible  <bruno@clisp.org>
75545
75546                 Cygwin portability.
75547                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75548
75549         2006-04-30  Bruno Haible  <bruno@clisp.org>
75550
75551                 * progreloc.c: Include <mach-o/dyld.h> if available.
75552                 (find_executable): Use _NSGetExecutablePath when possible.
75553
75554         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75555
75556                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75557                 function.
75558
75559         2005-12-29  Bruno Haible  <bruno@clisp.org>
75560
75561                 * progreloc.c (set_program_name_and_installdir): Fix
75562                 compilation error.
75563
75564         2005-12-04  Bruno Haible  <bruno@clisp.org>
75565
75566                 Cygwin portability.
75567                 * progreloc.c: Include <windows.h> also on Cygwin.
75568                 (find_executable): Add support for Cygwin.
75569                 (set_program_name_and_installdir): Handle also platforms with
75570                 nonempty EXEEXT.
75571
75572         2006-07-11  Bruno Haible  <bruno@clisp.org>
75573
75574                 * javacomp.c: Fix a comment.
75575                 Reported by Jim Meyering.
75576
75577         2006-04-30  Bruno Haible  <bruno@clisp.org>
75578
75579                 * javacomp.h (compile_java_class): Add source_version,
75580                 target_version arguments.
75581                 * javacomp.c: Rewritten to choose only a compiler that
75582                 respects the specified source_version and target_version.
75583
75584         2006-06-27  Bruno Haible  <bruno@clisp.org>
75585
75586                 Assume correct S_ISDIR macro.
75587                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75588
75589         2006-07-22  Bruno Haible  <bruno@clisp.org>
75590
75591                 * javaversion.h: New file, from GNU gettext.
75592                 * javaversion.c: New file, from GNU gettext.
75593                 * javaversion.java: New file, from GNU gettext.
75594                 * javaversion.class: New file, from GNU gettext.
75595
75596         2006-05-17  Bruno Haible  <bruno@clisp.org>
75597
75598                 Cygwin portability.
75599                 * javaexec.c (execute_java_class): Test for jview program
75600                 also on Cygwin.
75601
75602         2006-04-09  Bruno Haible  <bruno@clisp.org>
75603
75604                 * fatal-signal.c: Don't include string.h.
75605                 (at_fatal_signal): Use a copying loop instead of memcpy.
75606
75607         2005-12-04  Bruno Haible  <bruno@clisp.org>
75608
75609                 * csharpexec.c: Add support for 'clix' launcher (untested).
75610                 (execute_csharp_using_sscli): New function.
75611                 (execute_csharp_program): Call it.
75612
75613         2006-06-21  Bruno Haible  <bruno@clisp.org>
75614
75615                 Avoid warnings from recent versions of mcs.
75616                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75617                 -o, -L, -r any more. Use options documented since mcs-1.0
75618                 instead. Similarly for -g.
75619
75620         2005-07-09  Bruno Haible  <bruno@clisp.org>
75621
75622                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75623                 add a .dll suffix.
75624                 Reported by Mark Junker <mjscod@gmx.de>.
75625
75626         2006-06-17  Bruno Haible  <bruno@clisp.org>
75627
75628                 * config.charset: Update for NetBSD 3.0.
75629
75630         2006-05-17  Bruno Haible  <bruno@clisp.org>
75631
75632                 Cygwin portability.
75633                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75634
75635         2006-05-16  Bruno Haible  <bruno@clisp.org>
75636
75637                 * localcharset.c [CYGWIN]: Include <windows.h>.
75638                 (get_charset_aliases): For Cygwin, return the same CPxxx
75639                 aliases list as under WIN32.
75640                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75641                 the environment variables. Fall back to GetACP().
75642
75643         2006-04-05  Bruno Haible  <bruno@clisp.org>
75644
75645                 * config.charset: Update Juan Manuel Guerrero's address.
75646
75647         2005-02-12  Bruno Haible  <bruno@clisp.org>
75648
75649                 * allocsa.h: Add extern "C" for C++.
75650
75651         2005-02-10  Bruno Haible  <bruno@clisp.org>
75652
75653                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75654                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75655
75656         2006-07-22  Bruno Haible  <bruno@clisp.org>
75657
75658                 * gettext.h: Update to GNU gettext-0.15.
75659
75660 2006-07-22  Bruno Haible  <bruno@clisp.org>
75661
75662         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75663         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75664         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75665
75666 2006-07-21  Eric Blake  <ebb9@byu.net>
75667
75668         * modules/stdlib-safer: New file.
75669         * MODULES.html.sh (File stream based Input/Output): Add
75670         stdlib-safer.
75671
75672 2006-07-21  Eric Blake  <ebb9@byu.net>
75673
75674         * lib/stdlib-safer.h: New file from coreutils, required by
75675         stdlib--.h.
75676
75677 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75680
75681 2006-07-20  Bruno Haible  <bruno@clisp.org>
75682
75683         * gnulib-tool: Recognize new option --assume-autoconf.
75684         (autoconf_minversion): New variable.
75685         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75686
75687 2006-07-20  Bruno Haible  <bruno@clisp.org>
75688
75689         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75690
75691 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75692
75693         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75694         Reindent and repaginate.
75695
75696 2006-07-19  Derek Price  <derek@ximbiot.com>
75697
75698         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75699         Correct grammar.
75700
75701 2006-07-17  Bruno Haible  <bruno@clisp.org>
75702
75703         * modules/list: New file.
75704         * modules/array-list: New file.
75705         * modules/carray-list, modules/carray-list-tests: New files.
75706         * modules/linked-list, modules/linked-list-tests: New files.
75707         * modules/avltree-list, modules/avltree-list-tests: New files.
75708         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75709         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75710         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75711         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75712         * modules/oset: New file.
75713         * modules/array-oset: New file.
75714         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75715         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75716         * tests/test-carray_list.c: New file.
75717         * tests/test-linked_list.c: New file.
75718         * tests/test-avltree_list.c: New file.
75719         * tests/test-rbtree_list.c: New file.
75720         * tests/test-linkedhash_list.c: New file.
75721         * tests/test-avltreehash_list.c: New file.
75722         * tests/test-rbtreehash_list.c: New file.
75723         * tests/test-avltree_oset.c: New file.
75724         * tests/test-rbtree_oset.c: New file.
75725         * MODULES.html.sh (Container data structures): New section.
75726
75727 2006-07-17  Bruno Haible  <bruno@clisp.org>
75728
75729         * m4/gl_list.m4: New file.
75730
75731 2006-07-17  Bruno Haible  <bruno@clisp.org>
75732
75733         * lib/gl_list.h: New file.
75734         * lib/gl_list.c: New file.
75735         * lib/gl_array_list.h: New file.
75736         * lib/gl_array_list.c: New file.
75737         * lib/gl_carray_list.h: New file.
75738         * lib/gl_carray_list.c: New file.
75739         * lib/gl_linked_list.h: New file.
75740         * lib/gl_linked_list.c: New file.
75741         * lib/gl_anylinked_list1.h: New file.
75742         * lib/gl_anylinked_list2.h: New file.
75743         * lib/gl_avltree_list.h: New file.
75744         * lib/gl_avltree_list.c: New file.
75745         * lib/gl_anyavltree_list1.h: New file.
75746         * lib/gl_anyavltree_list2.h: New file.
75747         * lib/gl_rbtree_list.h: New file.
75748         * lib/gl_rbtree_list.c: New file.
75749         * lib/gl_anyrbtree_list1.h: New file.
75750         * lib/gl_anyrbtree_list2.h: New file.
75751         * lib/gl_anytree_list1.h: New file.
75752         * lib/gl_anytree_list2.h: New file.
75753         * lib/gl_linkedhash_list.h: New file.
75754         * lib/gl_linkedhash_list.c: New file.
75755         * lib/gl_anyhash_list1.h: New file.
75756         * lib/gl_anyhash_list2.h: New file.
75757         * lib/gl_avltreehash_list.h: New file.
75758         * lib/gl_avltreehash_list.c: New file.
75759         * lib/gl_rbtreehash_list.h: New file.
75760         * lib/gl_rbtreehash_list.c: New file.
75761         * lib/gl_anytreehash_list1.h: New file.
75762         * lib/gl_anytreehash_list2.h: New file.
75763
75764         * lib/gl_oset.h: New file.
75765         * lib/gl_oset.c: New file.
75766         * lib/gl_array_oset.h: New file.
75767         * lib/gl_array_oset.c: New file.
75768         * lib/gl_avltree_oset.h: New file.
75769         * lib/gl_avltree_oset.c: New file.
75770         * lib/gl_rbtree_oset.h: New file.
75771         * lib/gl_rbtree_oset.c: New file.
75772         * lib/gl_anytree_oset.h: New file.
75773
75774 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * m4/mkancesdirs.m4: New file.
75777         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75778         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75779         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75780         it.
75781
75782 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75785         * lib/mkancesdirs.h: New files.
75786         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75787         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75788         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75789         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75790         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75791         callers changed.  Revamp internals significantly, by not
75792         attempting to create directories that are temporarily more
75793         permissive than the final results.  Do not attempt to use
75794         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75795         This removes some race conditions, fixes some bugs, and simplifies
75796         things.  Use new dirchownmod function to do owner and mode changes.
75797         * lib/mkdir-p.h: Likewise.
75798         * lib/modechange.c (octal_to_mode): New function.
75799         (struct mode_change): New member mentioned.
75800         (make_node_op_equals): New arg mentioned.  All callers changed.
75801         (mode_compile): Keep track of which mode bits the user has explicitly
75802         mentioned.
75803         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75804         New arg PMODE_BITS, to keep track of which mode bits the user
75805         mentioned; it treats S_ISUID and S_ISGID speciall.
75806         All callers changed.
75807         * lib/modechange.h: Likewise.
75808
75809 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         * MODULES.html.sh: Add mkancestors.
75812         * modules/mkancesdirs: New module.
75813         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75814         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75815         The chdir-safer and afs files are now orphans; I'll remove them
75816         unless someone speaks up.
75817         Add lib/dirchownmod.c, lib/dirchownmod.h.
75818         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75819         Add lchown, mkancesdirs.
75820         (Maintainer): Add self.
75821
75822 2006-07-15  Karl Berry  <karl@gnu.org>
75823
75824         * gnulib-tool: help message wording/arrangement.
75825
75826 2006-07-14  Simon Josefsson  <jas@extundo.com>
75827
75828         * doc/gnulib.texi (Libtool and Windows): New section.
75829
75830 2006-07-12  Simon Josefsson  <jas@extundo.com>
75831
75832         * modules/gendocs (License): Fix license, approved by Karl.
75833
75834 2006-07-12  Eric Blake  <ebb9@byu.net>
75835
75836         * MODULES.html.sh: Add gendocs.
75837
75838 2006-07-11  Eric Blake  <ebb9@byu.net>
75839
75840         * modules/fdl: New module, to install doc/fdl.texi.
75841         * MODULES.html.sh: Add new section for documentation modules.
75842         * gnulib-tool: Avoid space-tab.
75843         (--doc-base): New option, to manage files from doc.
75844
75845 2006-07-11  Eric Blake  <ebb9@byu.net>
75846
75847         * m4/absolute-header.m4: Fix comments to match recent change.
75848
75849 2006-07-11  Eric Blake  <ebb9@byu.net>
75850
75851         * gnulib-tool: List --doc-base before --tests-base.
75852
75853 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75854
75855         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75856
75857 2006-07-11  Bruno Haible  <bruno@clisp.org>
75858
75859         * README: Mention where to put documentation.
75860
75861 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75862
75863         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75864
75865 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75868         to stdint.m4.
75869
75870 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75873         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75874         "no/such/file/stdint.h" when there is no such file, so that
75875         the resulting C code can be parsed by dodgy compilers.
75876         Problems reported by Bob Proulx.
75877
75878 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75879
75880         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75881         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75882         macros into the GNU _D_EXACT_NAMLEN.
75883         * lib/savedir.c:  Likewise.
75884         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75885
75886 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75887         and Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75890         * m4/savedir.m4:
75891         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75892         macros into the GNU _D_EXACT_NAMLEN.
75893
75894 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75897         around the absolute name, to work around a problem with the HP-UX
75898         11.23 native C compiler, reported by Bob Proulx.
75899
75900 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * doc/maintain.texi, make-stds.texi: Sync from
75903         <http://savannah.gnu.org/projects/gnustandards>.
75904
75905 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75908
75909 2006-07-09  Jim Meyering  <jim@meyering.net>
75910
75911         * m4/glob.m4: Remove a doubled word in a comment.
75912
75913 2006-07-09  Jim Meyering  <jim@meyering.net>
75914
75915         * lib/argp-pv.c: Remove a doubled word in a comment.
75916         * lib/check-version.c (check_version): Likewise.
75917         * lib/javacomp.c (compile_java_class): Likewise.
75918
75919 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75922         for the benefit of people using Autoconf 2.60.  If you want to
75923         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75924         (or m4/onceonly.m4, if pre-2.57) manually.
75925
75926 2006-07-08  Jim Meyering  <jim@meyering.net>
75927
75928         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75929         comment.
75930         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75931         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75932         comment.
75933
75934 2006-07-08  Jim Meyering  <jim@meyering.net>
75935
75936         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75937
75938 2006-07-07  Simon Josefsson  <jas@extundo.com>
75939
75940         * tests/test-crc.c: Change expected crc value, the test vector
75941         were probably computed using the old broken crc.c?
75942
75943 2006-07-06  Simon Josefsson  <jas@extundo.com>
75944
75945         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75946         now the canonical place for the M4 file).
75947
75948         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75949         from the sys_socket dependency now.
75950
75951         * modules/inet_pton (Files): Ditto.
75952
75953         * modules/inet_ntop (Files): Ditto.
75954
75955 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75956
75957         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75958         not gl_PREREQ_GETUSERSHELL.
75959
75960 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75961
75962         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75963         with only one argument, for Autoconf 2.60.
75964         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75965         expand to nothing, so add a shell command to avoid syntax error.
75966         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75967
75968 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75969
75970         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75971
75972 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75975         no longer needed.  Check for isblank decl.
75976         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75977         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75978         of existence.
75979
75980 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * lib/getloadavg.c: Use __VMS, not VMS.
75983         * lib/getopt.c: Likewise.
75984         * lib/getpagesize.h: Likewise.
75985         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75986         and probably does not work.
75987
75988 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * lib/.cppi-disable: Add wcwidth.
75991         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75992         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75993         (ISGRAPH): Remove.  All uses changed to isgraph.
75994         (FOLD) [!defined _LIBC]: Remove special case.
75995         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75996         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75997         HAVE_ISBLANK.
75998         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75999         case.
76000
76001 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76002
76003         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76004         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76005         brackets.  Other minor changes to suppress some compiler
76006         warnings.
76007
76008 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76009         and Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76012         of invoking obsolescent AC_HEADER_DIRENT macro.
76013         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76014         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76015         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76016         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76017         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76018         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76019         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76020         * m4/readdir.m4: Remove; no longer needed.
76021
76022 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76023         and Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76026         Don't worry about this obsolete case any more.
76027         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76028         directories.
76029         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76030         worry about this obsolete case any more.
76031         * lib/fts.c: Likewise.
76032         * lib/getcwd.c: Likewise.
76033         * lib/glob.h: Likewise.
76034         * lib/savedir.c: Likewise.
76035
76036 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76039         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76040         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76041         needed.
76042         All uses removed.
76043         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76044         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76045         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76046         needed.
76047         * m4/getdate.m4 (gl_GETDATE): Likewise.
76048         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76049         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76050         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76051         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76052         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76053         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76054         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76055         needed.
76056
76057 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         * lib/memcasecmp.c: Include <limits.h>.
76060         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76061         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76062         Don't assume isdigit succeeds only on '0' through '9'.
76063
76064 2006-07-05  Eric Blake  <ebb9@byu.net>
76065
76066         * modules/getaddrinfo (Depends-on): Add snprintf.
76067
76068 2006-07-05  Eric Blake  <ebb9@byu.net>
76069
76070         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76071         to avoid 'header present but could not be compiled' on cygwin.
76072
76073 2006-07-05  Eric Blake  <ebb9@byu.net>
76074
76075         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76076         missing from netdb.h.
76077         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76078
76079 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76080
76081         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76082         no longer needed.
76083         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76084         * m4/getdate.m4 (gl_GETDATE): Likewise.
76085         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76086         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76087         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76088         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76090
76091 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76092
76093         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76094         All uses of is_space replaced by isspace.
76095         * lib/exit.h: Don't talk about STDC_HEADERS.
76096         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76097         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76098         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76099         replaced by isprint etc.
76100         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76101         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76102         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76103         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76104         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76105         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76106
76107 2006-07-05  Bruno Haible  <bruno@clisp.org>
76108
76109         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76110         the function exists, before testing against AIX.
76111         Reported by Martin Lambers <marlam@marlam.de>.
76112
76113 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76116         From Mark D. Baushke.
76117
76118 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76121         to the absolute name, not just one, to bypass Sun C 5.8's
76122         "warning: #include of /usr/include/... may be non-portable".
76123
76124 2006-07-04  Eric Blake  <ebb9@byu.net>
76125
76126         * modules/dirname-tests: New test module.
76127         * tests/test-dirname.c: New file, replacing dirname.c
76128         TEST_DIRNAME section that was recently deleted.
76129
76130 2006-07-04  Bruno Haible  <bruno@clisp.org>
76131
76132         Assume ANSI C header files and <ctype.h> functions.
76133         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76134         (mbsnwidth): Use isprint, iscntrl instead.
76135
76136 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         Merge from coreutils.
76139         * MODULES.html.sh: Add xstrtold.
76140         * modules/xstrtold: New file.
76141         * modules/cycle-check (Files): Add lib/same-inode.h.
76142         * modules/dirname (Files): Add m4/double-slash-root.m4.
76143         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76144         * modules/mkdir-p (Files): Add lib/same-inode.h.
76145         * modules/same (Files): Add lib/same-inode.h.
76146
76147 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76150         This is to keep the terminology clean; POSIX talks about
76151         "absolute pathnames", not "full pathnames", but the GNU
76152         Coding Standards say to use "path" for something else;
76153         so use "absolute" to keep both sides happy.
76154         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76155         Set gl_absolute_header, not gl_full_header_path.
76156         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76157         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76158         All uses changed.
76159
76160         Merge from coreutils.
76161
76162         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76163
76164         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76165         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76166         want to require the building of c-strtod.o.
76167         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76168         needs -lm directly.
76169         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76170
76171         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76172
76173         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76174         --as-needed option if available.  Problem reported by Albert Chin in
76175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76176         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76177         cc merely issues a bunch of annoying warnings for --as-needed
76178         (this problem was reported by Bob Proulx).  Also, try linking with
76179         -lm to detect a bug in binutils 2.16 (this problem was reported
76180         by Ralf Wildenhues).
76181
76182         2006-06-18  Jim Meyering  <jim@meyering.net>
76183
76184         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76185         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76186         macro.
76187         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76188         also check for glibc-2.4's abort-inducing bug.
76189
76190         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76191         Low-probability clean-up should be to use rmdir to get rid of
76192         the just-created directory, not unlink.
76193
76194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76195         configure fail, and request a bug report to inform us about it.
76196         Add a comment that, barring reports to the contrary, in 2007 we'll
76197         assume ftruncate is universally available.
76198
76199         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76202
76203         2006-03-12  Jim Meyering  <jim@meyering.net>
76204
76205         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76206         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76207         * m4/same.m4 (gl_SAME): Likewise.
76208         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76209
76210         2006-03-11  Eric Blake  <ebb9@byu.net>
76211
76212         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76213         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76214         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76215         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76216
76217 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76220         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76221         reported by Mark D. Baushke, one in
76222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76223
76224         Merge from coreutils.
76225
76226         * lib/.cppi-disable: Add stdint_.h.
76227         * lib/.cvsignore: Add stdint.h.
76228
76229         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76232         both double and long double versions.
76233         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76234         * lib/xstrtold.c: New file.
76235         * lib/xstrtod.h (xstrtold): New decl.
76236
76237         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * lib/filemode.c (setst): Remove.
76240         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76241         (arguably) clearer, and the generated code is a bit smaller on my
76242         Debian GNU/Linux stable x86 host.
76243
76244         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76245
76246         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76247         Assume that filemode.h includes sys/types.h and sys/stat.h.
76248         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76249         (ftypelet): Reorder to put common cases first, for efficiency.
76250         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76251         to do 'M'.
76252         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76253         of 10, for compatibility with FreeBSD.  All callers changed.
76254         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76255         types that can't be deduced solely from st_mode.  First arg is now a
76256         const pointer.
76257         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76258         (strmode): Renamed from mode_string.
76259         (filemodestring): New decl.
76260         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76261         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76262         needed.
76263         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76264
76265         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76268         fsusage.h now does that.  Include fsusage.h first, to test interface.
76269         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76270         at most one method (the old code could have generated decls that
76271         didn't conform to C89, not that this was ever exercised).
76272         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76273
76274         2006-03-19  Jim Meyering  <jim@meyering.net>
76275
76276         Work even in a chroot where d_ino values for entries in "/"
76277         don't match the stat.st_ino values for the same names.
76278         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76279         number, iterate through all entries again, using lstat instead.
76280         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76281         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76282
76283         * lib/getcwd.c (__getcwd): Clarify a comment.
76284         Use memcpy in place of a call to strcpy.
76285
76286         2006-03-12  Jim Meyering  <jim@meyering.net>
76287
76288         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76289         matches that of the current directory (which we're about to chdir ".."
76290         out of), then save the dev-ino of the parent, instead.
76291
76292         * lib/same-inode.h (SAME_INODE): New file/macro.
76293         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76294         Include "same-inode.h", instead.
76295         * lib/same.c: Likewise.
76296         * lib/cycle-check.h: Include "same-inode.h".
76297         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76298         * lib/cycle-check.c (SAME_INODE): Remove definition.
76299         * lib/root-dev-ino.h: Include "same-inode.h".
76300
76301         2006-03-11  Eric Blake  <ebb9@byu.net>
76302
76303         * lib/same.c (same_name): s/base_name/last_component/
76304         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76305         * lib/filenamecat.c (file_name_concat): Likewise.
76306
76307         2006-03-11  Eric Blake  <ebb9@byu.net>,
76308                     Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76311         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76312         drive prefix.
76313         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76314         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76315         (last_component): New method.
76316         * lib/dirname.c (dir_len): Determine when drive letters need a
76317         subsequent slash.  Preserve // when it is special.
76318         (dir_name): Don't append dot when drive letter is absolute.
76319         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76320         * lib/basename.c (base_name): New semantics - malloc the result.
76321         Preserve // when it is special.  Preserve relative files that look
76322         like drive letters.
76323         (base_len): Preserve // when it is special.
76324         (last_component): New method, similar to old base_name semantics.
76325         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76326         base_name.  Strip redundant slashes from ///.
76327
76328 2006-07-03  Jim Meyering  <jim@meyering.net>
76329
76330         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76331         macro is used before the first cycle_check call.
76332
76333 2006-07-03  Eric Blake  <ebb9@byu.net>
76334
76335         * modules/dirname (Depends-on): Add xstrndup.
76336
76337 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76340         test cases, so that config.log is a bit easier to follow.
76341
76342 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76345         both are 64 bits, since this seems to be the tradition, and this
76346         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76347         we ever run into a host that prefers long long to long in this
76348         case, we'll need another configure-time test.  Problem reported by
76349         Jim Meyering.
76350
76351 2006-07-02  Eric Blake  <ebb9@byu.net>
76352
76353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76354
76355 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * modules/inttypes (Depends-on): No longer depends on stdint.
76358         * modules/stdint (Description): Say more about assumptions.
76359         Say that the fast types might differ.  Say macros are used.
76360         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76361         (Makefile.am): Revise list of substituted symbols to match
76362         new stdint.m4.
76363         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76364         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76365         * tests/test-stdint.c (verify_same_types)
76366         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76367         the code conforms to C99/C89.
76368         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76369         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76370
76371 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76374         but fix a bug, by requiring at least 64 bits.
76375         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76376         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76377         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76378         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76379
76380         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76381         changes.  Make 2.59 a prerequisite.  Check and substitute for
76382         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76383         inttypes.h.  Do not use special include files; just use the
76384         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76385         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76386         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76387         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76388         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76389         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76390         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76391         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76392         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76393         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76394         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76395         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76396         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76397         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76398         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76399         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76400         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76401         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76402         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76403         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76404         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76405         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76406         not check for things that C99 does not require, e.g., int8_t.  If
76407         a test isn't needed unless <stdint.h> isn't working, and is
76408         unlikely to be needed for any other reason, then don't do it
76409         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76410         size_t, since we assume C89 freestanding at least.  Do not check
76411         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76412         the right thing even if the types are not defined.  Instead use:
76413         (gl_STDINT_TYPE_PROPERTIES): New macro.
76414         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76415         testing whether <sys/types.h> clashes, as Autoconf does this for
76416         us now.  All uses removed.
76417         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76418         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76419         (gl_CHECK_TYPE_SAME):
76420         Remove; no longer needed.
76421         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76422         exists, since we'll return 0 anyway in that case.
76423         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76424
76425 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76428         possible collision with system files.
76429         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76430         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76431         WCHAR_MIN and WCHAR_MAX in this case.
76432         (<stddef.h>): Do not include; no longer needed.
76433         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76434         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76435         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76436         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76437         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76438         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76439         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76440         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76441         !defined(__c99))]: Include in this case too, since it's harmless
76442         now.
76443         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76444         dangerous to do so.
76445         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76446         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76447         (_STDINT_MIN, _STDINT_MAX): New macros.
76448         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76449         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76450         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76451         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76452         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76453         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76454         macros, not typedefs; this simplifies things quite a bit.
76455         Use long int for all types narrower than int64_t.
76456         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76457         Define in terms of long long int or int64_t or long int,
76458         not int64_t or int32_t.  This saves some compile-time testing.
76459         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76460         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76461         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76462         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76463         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76464         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76465         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76466         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76467         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76468         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76469         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76470         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76471         undef any previous version and define our own version, for
76472         simplicity and consistency with the new macros for types.
76473         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76474         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76475         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76476         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76477         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76478         @WINT_T_SUFFIX@ to keep things simple here.
76479         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76480         Simplify by assuming typical 8/16/32/64 host, since we're
76481         already doing that elsewhere anyway.
76482         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76483         and assume long long int is 64 bits if available.  This
76484         speeds up 'configure'.
76485
76486 2006-07-01  Eric Blake  <ebb9@byu.net>
76487
76488         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76489         Reported by Andreas Buening.
76490
76491 2006-07-01  Eric Blake  <ebb9@byu.net>
76492
76493         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76494
76495 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76496
76497         * lib/getaddrinfo.c: fixed typo
76498
76499 2006-06-29  Jim Meyering  <jim@meyering.net>
76500
76501         * modules/strftime (Maintainer): Add my name, since with the
76502         FPRINTFTIME changes strftime.c has forked from glibc.
76503
76504 2006-06-29  Eric Blake  <ebb9@byu.net>
76505
76506         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76507
76508 2006-06-29  Eric Blake  <ebb9@byu.net>
76509
76510         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76511
76512 2006-06-29  Eric Blake  <ebb9@byu.net>
76513
76514         * lib/stat_.h: New file.
76515
76516 2006-06-29  Eric Blake  <ebb9@byu.net>
76517
76518         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76519         unused static function.
76520
76521 2006-06-29  Eric Blake  <ebb9@byu.net>
76522
76523         * doc/functions.texi (Function Portability): Document missing lstat
76524         on mingw.
76525
76526 2006-06-29  Eric Blake  <ebb9@byu.net>
76527
76528         * MODULES.html.sh: Add sys_stat.
76529         * modules/sys_stat: New module.
76530         * modules/mkstemp (Depends-on): Add sys_stat.
76531
76532 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76533
76534         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76535
76536 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76537
76538         * m4/c-bs-a.m4: Removed.
76539
76540 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76541
76542         * lib/strftime.c: Assume strftime() exists.
76543
76544 2006-06-29  Derek Price  <derek@ximbiot.com>
76545
76546         * modules/c-bs-a: Removed - \a is C89.
76547         * MODULES.html.sh: Remove c-bs-a.
76548
76549 2006-06-29  Bruno Haible  <bruno@clisp.org>
76550
76551         * modules/wcwidth (License): Change to LGPL.
76552
76553 2006-06-28  Simon Josefsson  <jas@extundo.com>
76554
76555         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76556         on _WIN32.
76557
76558         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76559         getnameinfo.
76560
76561 2006-06-28  Simon Josefsson  <jas@extundo.com>
76562
76563         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76564
76565 2006-06-28  Simon Josefsson  <jas@extundo.com>
76566
76567         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76568         functions there.  It will succeed on Windows XP, but on Windows
76569         2000 and (presumably) earlier, it will fail, and use the internal
76570         re-implementation.
76571         (use_win32_p): New function.
76572         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76573         Support AI_NUMERICSERV to disable getservbyname.
76574         (getnameinfo): New function, only supports
76575         NI_NUMERICHOST|NI_NUMERICSERV for now.
76576
76577         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76578         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76579         getnameinfo.
76580
76581 2006-06-28  Eric Blake  <ebb9@byu.net>
76582
76583         * modules/wcwidth: New file.
76584         * modules/mbchar (Depends-on): Add wcwidth.
76585         * modules/mbswidth (Depends-on): Add wcwidth.
76586         * MODULES.html.sh: Add wcwidth.
76587
76588 2006-06-28  Eric Blake  <ebb9@byu.net>
76589
76590         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76592
76593 2006-06-28  Eric Blake  <ebb9@byu.net>
76594
76595         * lib/xvasprintf.h: Fix comments.
76596
76597 2006-06-28  Eric Blake  <ebb9@byu.net>
76598
76599         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76600         * lib/mbswidth.c (wcwidth): Move from here...
76601         * lib/wcwidth.h: ...to this new file.
76602
76603 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76604
76605         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76606
76607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76608         it's obsolete.
76609         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76610
76611 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76612
76613         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76614         Autoconf 2.60 says this stuff was obsolete.
76615
76616 2006-06-28  Bruno Haible  <bruno@clisp.org>
76617
76618         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76619
76620 2006-06-28  Bruno Haible  <bruno@clisp.org>
76621
76622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76623         gt_TYPE_WCHAR_T.
76624
76625 2006-06-28  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76628         declaration for wcwidth.
76629         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76630
76631 2006-06-28  Bruno Haible  <bruno@clisp.org>
76632
76633         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76634         (mkdir): Define using _mkdir.
76635
76636 2006-06-28  Bruno Haible  <bruno@clisp.org>
76637
76638         * lib/getaddrinfo.h: Fix POSIX URL.
76639         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76640         _WIN32.
76641         (use_win32_p): Make static.
76642         (getaddrinfo): Reject service name if it is empty or does not consist
76643         solely of decimal digits, or if its value is > 65535.
76644         (getnameinfo): Remove useless casts.
76645
76646 2006-06-27  Simon Josefsson  <jas@extundo.com>
76647
76648         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76649         Eggert and Martin Lambers.
76650
76651 2006-06-27  Simon Josefsson  <jas@extundo.com>
76652
76653         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76654         Eggert and Martin Lambers.
76655
76656 2006-06-27  Bruno Haible  <bruno@clisp.org>
76657
76658         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76659         result to 0, not to empty.
76660         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76661
76662 2006-06-27  Bruno Haible  <bruno@clisp.org>
76663
76664         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76665
76666 2006-06-26  Simon Josefsson  <jas@extundo.com>
76667
76668         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76669         present.
76670
76671 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76672
76673         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76674         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76676
76677 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76678
76679         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76680
76681 2006-06-26  Bruno Haible  <bruno@clisp.org>
76682
76683         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76684
76685 2006-06-26  Bruno Haible  <bruno@clisp.org>
76686
76687         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76688
76689 2006-06-26  Bruno Haible  <bruno@clisp.org>
76690
76691         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76692         SGI C compiler in pre-C99 mode.
76693         Suggested by Mark D. Baushke and Larry Jones.
76694
76695 2006-06-26  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76698         WCHAR_MAX.
76699         Reported by Mark D. Baushke and Larry Jones.
76700
76701 2006-06-26  Bruno Haible  <bruno@clisp.org>
76702
76703         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76704         in pre-C99 mode.
76705         Suggested by Mark D. Baushke and Larry Jones.
76706
76707 2006-06-23  Simon Josefsson  <jas@extundo.com>
76708             Bruno Haible  <bruno@clisp.org>
76709
76710         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76711         Emit mostlyclean-local rule.
76712         (func_emit_tests_Makefile_am): Likewise.
76713         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76714
76715 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76716
76717         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76718
76719 2006-06-23  Bruno Haible  <bruno@clisp.org>
76720
76721         * tests/test-stdint.c: Update to match ISO C 99 Technical
76722         Corrigendum 1.
76723
76724 2006-06-23  Bruno Haible  <bruno@clisp.org>
76725
76726         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76727
76728 2006-06-23  Bruno Haible  <bruno@clisp.org>
76729
76730         * lib/stdint_.h: Treat IRIX like OpenBSD.
76731
76732 2006-06-23  Bruno Haible  <bruno@clisp.org>
76733
76734         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76735         ISO C 99 Technical Corrigendum 1.
76736
76737 2006-06-22  Simon Josefsson  <jas@extundo.com>
76738
76739         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76740         MinGW.
76741
76742 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76745         needed.  Some compiler complained about some of them.  Problem reported
76746         by Larry Jones in
76747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76748
76749 2006-06-21  Simon Josefsson  <jas@extundo.com>
76750
76751         * tests/test-getaddrinfo.c: New file.
76752
76753         * modules/getaddrinfo-tests: New file.
76754
76755         * MODULES.html.sh: Add inet_pton.
76756
76757         * modules/inet_pton: New file.
76758
76759 2006-06-21  Simon Josefsson  <jas@extundo.com>
76760
76761         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76762         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76763         of using the (limited) gnulib implementation on Windows XP.
76764
76765         * m4/inet_pton.m4: New file.
76766
76767 2006-06-21  Simon Josefsson  <jas@extundo.com>
76768
76769         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76770         variable.
76771
76772         * lib/socket_.h: Don't define WINVER.
76773
76774         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76775         slightly modified to work in gnulib.
76776
76777 2006-06-21  Simon Josefsson  <jas@extundo.com>
76778
76779         * doc/gnulib.texi (Windows sockets): Add.
76780
76781 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * lib/read-file.c (fread_file): Start with buffer allocation of
76784         0 bytes rather than 1 byte; this simplifies the code.
76785         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76786         code to free buffer and save/restore errno.
76787         (internal_read_file): Remove unused local.
76788
76789 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76792         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76793         Problem reported by Denis Excoffier in
76794         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76795
76796 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76797
76798         * modules/sys_socket, modules/socklen: Include sys/types since
76799         FreeBSD 4.x's sys/socket.h needs it.
76800
76801 2006-06-19  Simon Josefsson  <jas@extundo.com>
76802
76803         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76804
76805 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76808
76809 2006-06-19  Bruno Haible  <bruno@clisp.org>
76810
76811         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76812         and FULL_PATH_INTTYPES_H in angle brackets.
76813         Reported by Mark D. Baushke <mdb@gnu.org>.
76814
76815 2006-06-17  Eric Blake  <ebb9@byu.net>
76816
76817         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76818         errno.
76819
76820 2006-06-17  Bruno Haible  <bruno@clisp.org>
76821
76822         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76823         <sys/inttypes.h>.
76824
76825 2006-06-17  Bruno Haible  <bruno@clisp.org>
76826
76827         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76828         whether errno is declared. Assume <errno.h> declares errno.
76829
76830 2006-06-17  Bruno Haible  <bruno@clisp.org>
76831
76832         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76833
76834 2006-06-17  Bruno Haible  <bruno@clisp.org>
76835
76836         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76837         problem on Solaris 2.5.1.
76838
76839 2006-06-16  Eric Blake  <ebb9@byu.net>
76840
76841         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76842         * lib/unicodeio.c [!defined errno]: Likewise.
76843         * lib/strtol.c [!defined errno]: Likewise.
76844         * lib/strtod.c [!defined errno]: Likewise.
76845
76846 2006-06-15  Eric Blake  <ebb9@byu.net>
76847
76848         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76849
76850 2006-06-15  Eric Blake  <ebb9@byu.net>
76851
76852         * config/srclist.txt (ssize_t.m4): Lose sync.
76853
76854 2006-06-15  Bruno Haible  <bruno@clisp.org>
76855
76856         * modules/stdint (Files): Include m4/full-header-path.m4,
76857         m4/size_max.m4, m4/wchar_t.m4.
76858         (Makefile.am): Many more substitutions.
76859         * modules/stdint-tests: New file.
76860         * tests/test-stdint.c: New file.
76861
76862 2006-06-15  Bruno Haible  <bruno@clisp.org>
76863
76864         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76865         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76866         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76867         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76868         gl_CHECK_TYPE_SAME): New macros.
76869
76870 2006-06-15  Bruno Haible  <bruno@clisp.org>
76871
76872         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76873
76874 2006-06-15  Bruno Haible  <bruno@clisp.org>
76875
76876         * lib/stdint_.h: Rewritten to be fully auto-configured.
76877         Fixes bug on HP-UX/IA64.
76878
76879 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/getdate.y (__attribute__): Don't define if already defined.
76882         Problem reported by Larry Jones.
76883         * lib/utimens.c (__attribute__): Likewise.
76884
76885 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76888         reported by Andreas Schwab.
76889
76890 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76891             Bruno Haible  <bruno@clisp.org>
76892
76893         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76894         check for the declaration of strnlen and a run test that exposes the
76895         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76896         rpl_strndup.
76897
76898 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76899             Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76902
76903 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76904
76905         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76906         compile test, for Tru64 4.0D.
76907
76908 2006-05-28  Karl Berry  <karl@gnu.org>
76909
76910         * config/srclist.txt (printf-args.c): lose sync.
76911
76912 2006-05-26  Martin Lambers  <marlam@marlam.de>
76913
76914         * lib/getpass.c: Updates the test for the native W32 API, and adds
76915         missing includes, thus fixing compilation warnings.
76916
76917 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76918
76919         * lib/exclude.c (exclude_fnmatch): New function.
76920         (excluded_file_name): Call exclude_fnmatch.
76921         * lib/exclude.h (excluded_file_name): New prototype
76922
76923 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * lib/tempname.c (small_open, large_open): New macros.
76926         (__open, __open64) [!_LIBC]: Remove.
76927         (__gen_tempname): Use small_open and large_open instead of __open
76928         and __open64.  This fixes a portability bug on HP-UX 11.11i
76929         reported by Simon Wing-Tang in
76930         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76931
76932 2006-05-24  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76935         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76936         Reported by Thorsten Maerz <torte@netztorte.de> via
76937         Aaron Stone <aaron@serendipity.cx>.
76938
76939 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76942         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76943         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76944         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76945         not really conditional on the cache.
76946         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76947
76948 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76951         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76952         (my_usleep): Don't mishandle maximum value.
76953
76954 2006-05-19  Jim Meyering  <jim@meyering.net>
76955
76956         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76957
76958 2006-05-17  Bruno Haible  <bruno@clisp.org>
76959
76960         Cygwin portability.
76961         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76962
76963 2006-05-17  Bruno Haible  <bruno@clisp.org>
76964
76965         * lib/stdint_.h: Fix recognition of Cygwin.
76966
76967 2006-05-15  Bruno Haible  <bruno@clisp.org>
76968
76969         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76970         on libtool patch by Ralf Wildenhues.
76971
76972 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76973
76974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76975         test for C99 conformance; (bool) 0.5 is an integer constant
76976         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76977         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76978
76979 2006-05-11  Simon Josefsson  <jas@extundo.com>
76980
76981         * m4/xvasprintf.m4: Fix obvious typo.
76982
76983 2006-05-11  Jim Meyering  <jim@meyering.net>
76984
76985         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76986         James Lemley.
76987
76988 2006-05-10  Simon Josefsson  <jas@extundo.com>
76989
76990         * lib/md4.c: Typo fix, update copyright years.
76991         (K1, K2): Don't use L because it turn computations into 64-bit on
76992         64-bit platforms.
76993
76994 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76997         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76998         unwanted sign propagation, e.g., on hosts with 64-bit int.
76999         There still are some problems with reeelly weird theoretical hosts
77000         (e.g., 33-bit int) but it's not worth worrying about now.
77001         * lib/sha1.c (rol): Likewise.
77002         (K1, K2, K3, K4): Remove unnecessary L suffix.
77003
77004 2006-05-10  Bruno Haible  <bruno@clisp.org>
77005
77006         * lib/des.c: Cast to avoid warnings.
77007
77008 2006-05-09  Bruno Haible  <bruno@clisp.org>
77009
77010         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77011         (Depends-on): Depend also on xsize, stdarg.
77012         (configure.ac): Add gl_XVASPRINTF.
77013
77014 2006-05-09  Bruno Haible  <bruno@clisp.org>
77015
77016         * m4/xvasprintf.m4: New file.
77017
77018 2006-05-09  Bruno Haible  <bruno@clisp.org>
77019
77020         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77021         (EOVERFLOW): Define fallback value.
77022         (xstrcat): New function.
77023         (xvasprintf): Recognize the special case of a string concatenation.
77024
77025 2006-05-08  Eric Blake  <ebb9@byu.net>
77026
77027         * gnulib-tool (func_version): Base copyright year on CVS date.
77028         (func_emit_copyright_notice): New function.
77029         (func_emit_lib_Makefile_am): Use it.
77030         (func_emit_tests_Makefile_am): Likewise.
77031         (func_import): Likewise.
77032
77033 2006-05-08  Bruno Haible  <bruno@clisp.org>
77034
77035         * modules/stdarg: New file.
77036         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77037
77038 2006-05-08  Bruno Haible  <bruno@clisp.org>
77039
77040         * m4/stdarg.m4: New file, from GNU gettext.
77041
77042 2006-05-08  Bruno Haible  <bruno@clisp.org>
77043
77044         * config/srclist.txt (build-aux/config.rpath): different from latest
77045         release.
77046
77047 2006-05-08  Bruno Haible  <bruno@clisp.org>
77048
77049         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77050
77051 2006-05-05  Jim Meyering  <jim@meyering.net>
77052
77053         * m4/warning.m4: New file, derived from bison's file by the same name.
77054
77055 2006-05-03  Bruno Haible  <bruno@clisp.org>
77056
77057         * lib/stdint_.h: Shorter URL.
77058         * lib/inttypes.h: Likewise.
77059
77060 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77063
77064 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * lib/verify.h: Document the internals better.  Most of this change
77067         was written by Bruno Haible.
77068
77069 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77070
77071         * doc/verify.texi: New file, partly based on a proposal by
77072         Bruno Haible.
77073
77074 2006-05-02  Bruno Haible  <bruno@clisp.org>
77075
77076         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77077         test from here...
77078         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77079
77080 2006-04-29  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77083         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77084
77085 2006-04-29  Bruno Haible  <bruno@clisp.org>
77086
77087         * gnulib-tool: Make --update option actually work.
77088
77089 2006-04-29  Bruno Haible  <bruno@clisp.org>
77090
77091         * doc/gcd.texi: New file.
77092         * doc/gnulib.texi: Include it.
77093
77094 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/getdate.y (get_date): When adding relative date, start with the
77097         initial time, not with the result of the first mktime call.
77098
77099 2006-04-25  Bruno Haible  <bruno@clisp.org>
77100
77101         * gnulib-tool (func_import): Output the include directives in three
77102         blocks, sorted separately.
77103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77104
77105 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77108         to define main with arguments, for C++.  Reported by Eric Blake.
77109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77110         Prefer 'int main ()' to 'int main (void)', for C++.
77111         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77113         for 'main', for C99 and C++.
77114
77115 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77118         Don't assume that exit status -1 is valid.
77119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77120         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77121         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77122         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77123         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77124         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77125         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77126         functions can be used without declaring them, or that you can
77127         exit with status -1.
77128         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77129
77130 2006-04-24  Karl Berry  <karl@gnu.org>
77131
77132         * config/srclist.txt (longdouble.m4): sync lost.
77133
77134 2006-04-24  Eric Blake  <ebb9@byu.net>
77135
77136         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77137
77138 2006-04-24  Bruno Haible  <bruno@clisp.org>
77139
77140         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77141         poll() implementation in AIX.
77142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77143
77144 2006-04-24  Bruno Haible  <bruno@clisp.org>
77145
77146         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77147         assigned exactly once.
77148
77149 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77150             Bruno Haible  <bruno@clisp.org>
77151
77152         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77153         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77154         for AM_CPPFLAGS.
77155
77156 2006-04-23  Bruno Haible  <bruno@clisp.org>
77157
77158         * modules/copy-file: Depend on unistd.
77159         * modules/execute: Likewise.
77160         * modules/fatal-signal: Likewise.
77161         * modules/findprog: Likewise.
77162         * modules/mkdtemp : Likewise.
77163         * modules/pipe: Likewise.
77164         * modules/wait-process: Likewise.
77165
77166 2006-04-23  Bruno Haible  <bruno@clisp.org>
77167
77168         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77169         condition was already detected.
77170         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77171
77172 2006-04-23  Bruno Haible  <bruno@clisp.org>
77173
77174         * lib/copy-file.c: Include <unistd.h> unconditionally.
77175         * lib/execute.c: Likewise.
77176         * lib/fatal-signal.c: Likewise.
77177         * lib/findprog.c: Likewise.
77178         * lib/mkdtemp.c: Likewise.
77179         * lib/pipe.h: Likewise.
77180         * lib/pipe.c: Likewise.
77181         * lib/wait-process.h: Likewise.
77182
77183 2006-04-23  Bruno Haible  <bruno@clisp.org>
77184
77185         * gnulib-tool (func_usage): Fix --import description. Document
77186         --update.
77187         (func_import): Create temporary file in a temporary directory, if
77188         --dry-run is specified. Silence errors from 'grep' when there are no
77189         m4 files in $m4dir.
77190         (func_create_testdir): Silence errors from 'grep' when there are no
77191         m4 files in $m4dir.
77192         Reported by Karl Berry <karl@freefriends.org>.
77193
77194 2006-04-20  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77197         one argument, so that the code will be portable to Autoconf 2.60.
77198         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77199         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77200         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77201
77202 2006-04-19  Derek Price  <derek@ximbiot.com>
77203             Eric Blake  <ebb9@byu.net>
77204
77205         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77206         rather than "/full/path.h".  Update comment to match.  Shorten &
77207         generalize m4_translit call via AS_TR_CPP.
77208
77209 2006-04-19  Derek Price  <derek@ximbiot.com>
77210             Eric Blake  <ebb9@byu.net>
77211
77212         * lib/inttypes.h: Correct grammar in comment.
77213
77214 2006-04-18  Derek Price  <derek@ximbiot.com>
77215             Paul Eggert  <eggert@cs.ucla.edu>
77216
77217         * modules/inttypes: New file.
77218         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77219
77220 2006-04-18  Derek Price  <derek@ximbiot.com>
77221             Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77224         New files.
77225
77226 2006-04-18  Derek Price  <derek@ximbiot.com>
77227             Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * lib/inttypes.h: New file.
77230         * lib/strtoimax.c: Assume <inttypes.h>.
77231
77232 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77235         isn't mounted.  Problem reported by Kir Kolyshkin.
77236
77237 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77240         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77241         Derek R. Price.
77242         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77243         implementation.
77244
77245 2006-04-12  Eric Blake  <ebb9@byu.net>
77246
77247         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77248         is now done automatically by the corresponding Autoconf macro.
77249
77250 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77253         time_r.h.
77254
77255 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         Merge regex changes from libc, removing some of our
77258         POSIX-conformance changes that were rejected and redoing them in a
77259         less-intrusive way.
77260
77261         * lib/regcomp.c (re_compile_internal, init_dfa):
77262         Length arg is now size_t, not Idx.  All uses changed.
77263         (peek_token): Forward decl now says internal_function.
77264         (__re_error_msgid, __re_error_msgid_idx):
77265         Now static rather than extern with attribute_hidden.
77266         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77267         For some reason libc prefers K&R style defns for external functions.
77268         (regerror) [!defined _LIBC]: Likewise.
77269         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77270         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77271         (build_range_exp, build_collating_symbol):
77272         Use K&R-style defn.
77273         (re_compile_fastmap): Use '\0' to memset, not 0.
77274         (utf8_sb_map): Make the calculations more obvious.
77275         (init_dfa, parse_bracket_exp, build_charclass_op):
77276         Call calloc and cast result, as glibc does.
77277         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77278         (build_range_exp, build_collating_symbol):
77279         Now internal functions.
77280
77281         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77282
77283         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77284         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77285         Don't depend on VMS; depend on __VMS instead, for POSIX
77286         namespace cleanness.
77287         (regoff_t): Define to ssize_t, not long int.
77288
77289         Remove the REG_ macros named below.  Instead, make the old names
77290         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77291         __USE_GNU_REGEX.
77292         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77293         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77294         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77295         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77296         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77297         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77298         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77299         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77300         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77301         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77302         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77303         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77304         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77305         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77306         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77307         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77308         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77309         (REG_NREGS):
77310         Remove.  All uses replaced by the old RE_* names.
77311         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77312         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77313         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77314         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77315         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77316         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77317         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77318         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77319         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77320         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77321         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77322         Don't bother having these macros be independent of each others'
77323         values, since they no longer exist in the POSIX name space.
77324
77325         Rename the following member names back to their old names,
77326         unless !__USE_GNU_REGEX.  All uses changed back.
77327         (buffer): Renamed from re_buffer.
77328         (allocated): Renamed from re_allocated.
77329         (used): Renamed from re_used.
77330         (syntax): Renamed from re_syntax.
77331         (fastmap): Renamed from re_fastmap.
77332         (translate): Renamed from re_translate.
77333         (can_be_null): Renamed from re_can_be_null.
77334         (regs_allocated): Renamed from re_regs_allocated.
77335         (fastmap_accurate): Renamed from re_fastmap_accurate.
77336         (no_sub): Renamed from re_no_sub.
77337         (not_bol): Renamed from re_not_bol.
77338         (not_eol): Renamed from re_not_eol.
77339         (newline_anchor): Renamed from re_newline_anchor.
77340         (num_regs): Renamed from rm_num_regs.
77341         (start): Renamed from rm_start.
77342         (end): Renamed from rm_end.
77343
77344         (free_state): Move up a bit.
77345
77346         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77347         #define to be empty.
77348         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77349         when that is what is intended.
77350         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77351         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77352         (MAX): New macro.
77353         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77354         All uses changed back to re_malloc, etc.  It's now the caller's
77355         responsibility to check for overflow; all callers changed.
77356         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77357         (re_x2nrealloc): Remove.
77358         (free_state): Remove decl.
77359
77360         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77361         (re_set_registers, re_exec):
77362         Use K&R-style defn.
77363
77364         2006-01-31  Roland McGrath  <roland@redhat.com>
77365
77366         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77367         Reported by Mike Frysinger <vapier@gentoo.org>.
77368
77369         2006-01-15  Andreas Jaeger  <aj@suse.de>
77370
77371         [BZ #1950]
77372         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77373         build_wcs_upper_buffer change.
77374         (build_wcs_upper_buffer): Change return type.
77375
77376         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77377
77378         * lib/regex_internal.h: Include <stdint.h> if available.
77379
77380         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77381
77382         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77383
77384         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77385
77386         * lib/regcomp.c: Adjust for changed secondary hash function.
77387
77388         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77389
77390         * lib/regex.h: Pretty printing.
77391         Clean up namespace a bit.
77392
77393         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77394
77395         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77396         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77397
77398         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77399                     Ulrich Drepper  <drepper@redhat.com>
77400
77401         [BZ #1302]
77402         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77403         changed.
77404         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77405
77406         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77407
77408         [BZ #281]
77409         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77410         * lib/regcomp.c: Remove unnecessary uses of
77411         unsigned RE_TRANSLATE_TYPE.
77412         * lib/regex_internal.h: Likewise.
77413         * lib/regex_internal.c: Likewise.
77414         * lib/regexec.c: Likewise.
77415         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77416
77417         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77418
77419         * lib/regexec.c (find_recover_state): Remove unnecessary
77420         initialization.
77421         (transit_state_bkref): Make DFA a const pointer.
77422         (get_subexp): Likewise.
77423         (check_arrival): Likewise.
77424         (update_cur_sifted_state): Likewise.
77425         (re_search_internal): Likewise.
77426         (prune_impossible_nodes): Likewise.
77427         (acquire_init_state_context): Likewise.
77428         (proceed_next_node): Likewise.
77429         (set_regs): Likewise.
77430         (free_fail_stack_return): Likewise.
77431         (check_arrival_expand_ecl): Mark DFA parameter as const.
77432         (check_arrival_expand_ecl_sub): Likewise.
77433         (check_subexp_limits): Likewise.
77434         (sub_epsilon_src_nodes):  Likewise.
77435         (add_epsilon_src_nodes):  Likewise.
77436         (merge_state_array): Likewise.
77437         (update_regs): Likewise.
77438         (build_trtable): Likewise.
77439         (sift_states_backward): Mark MCTX parameter as const.
77440         (build_sifted_states): Likewise.
77441         (update_cur_sifted_state): Likewise.
77442         (sift_states_mkref): Likewise.
77443         (check_arrival_expand_ecl): Mark eclosure as const.
77444         (check_dst_limits_calc_pos_1): Likewise.
77445         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77446         pointer.
77447
77448         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77449
77450         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77451         (transit_state_sb): Likewise.
77452         (transit_state_mb): Likewise.
77453         (sift_states_iter_mb): Likewise.
77454         (check_arrival_add_next_nodes): Likewise.
77455         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77456         [_LIBC] (re_search_2_stub): Use mempcpy.
77457
77458         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77459         mbrtowc for very simple UTF-8 case.
77460
77461         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77462         a pointer-to-const.
77463         (re_acquire_state_context): Likewise.
77464         * lib/regex_internal.h: Adjust prototypes.
77465
77466         * lib/regex.c: Prevent using C++ compilers.
77467
77468         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77469         (re_acquire_state_context): Likewise.
77470
77471 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         * modules/regex (Depends-on): Add ssize_t.
77474
77475 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77478         translation table.
77479
77480 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77481
77482         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77483
77484 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77485             Bruno Haible  <bruno@clisp.org>
77486
77487         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77488         <sys/types.h> and <inttypes.h>.
77489
77490 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77491
77492         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77493         `__error_t_defined', so argp.h will not typedef the former.
77494
77495 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77498         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77499         glibc names.  Even if glibc is changed to conform to POSIX, the
77500         traditional names will be available anyway, since regex depends on
77501         the extensions module.  Also, fix a longstanding typo in the
77502         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77503         reported by Emanuele Giaquinta.  Also, change sense of cached
77504         variable, so that the message makes sense.
77505
77506 2006-03-24  Simon Josefsson  <jas@extundo.com>
77507
77508         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77509         including some doc fixes.
77510         (base64_encode_alloc): Fix +1 bug on allocation failures.
77511
77512 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77513
77514         * lib/base64.c (base64_encode): Do not read past end of array with
77515         unsanitized input on systems with CHAR_BIT > 8.
77516
77517 2006-03-24  Eric Blake  <ebb9@byu.net>
77518
77519         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77520
77521 2006-03-22  Karl Berry  <karl@gnu.org>
77522
77523         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77524         * config/srclistvars.sh (COREUTILS): new var.
77525
77526 2006-03-17  Jim Meyering  <jim@meyering.net>
77527
77528         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77529         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77530
77531 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77534         no longer needs it.  Instead, check that regoff_t is as least
77535         as wide as ptrdiff_t.
77536
77537         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77538         so that our regex.h stays compatible with the installed regex.
77539         This is helpful for installers who configure --without-included-regex.
77540         Problem reported by Emanuele Giaquinta.
77541
77542 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77543
77544         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77545         Typedef to long int, not to off_, as POSIX will likely change
77546         in that direction.
77547
77548 2006-03-15  Eric Blake  <ebb9@byu.net>
77549
77550         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77551
77552 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77553
77554         * lib/argp-help.c (validate_uparams): Fix typo
77555         * lib/argp-parse.c (argp_default_options): Consistently begin help
77556         messages with a lowercase letter.
77557
77558 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77561         overrun buffers and shouldn't be used (much as gets shouldn't be
77562         used).
77563         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77564
77565 2006-03-08  Simon Josefsson  <jas@extundo.com>
77566
77567         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77568         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77569
77570 2006-03-08  Simon Josefsson  <jas@extundo.com>
77571
77572         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77573         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77574
77575 2006-03-08  Simon Josefsson  <jas@extundo.com>
77576
77577         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77578         signal that configure disabled the device.
77579
77580 2006-03-08  Simon Josefsson  <jas@extundo.com>
77581
77582         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77583         languages.
77584
77585 2006-03-07  Simon Josefsson  <jas@extundo.com>
77586
77587         * modules/getopt (Depends-on): Add unistd.
77588
77589         * modules/unistd: New file.
77590
77591 2006-03-07  Simon Josefsson  <jas@extundo.com>
77592
77593         * modules/gc-random: New file.
77594
77595 2006-03-07  Simon Josefsson  <jas@extundo.com>
77596
77597         * m4/unistd_h.m4: New file.
77598
77599 2006-03-07  Simon Josefsson  <jas@extundo.com>
77600
77601         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77602         test to be side-effect free by storing the result in the cache
77603         variable gl_cv_lib_readline, and moving the assignment of
77604         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77605         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77606
77607 2006-03-07  Simon Josefsson  <jas@extundo.com>
77608
77609         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77610         error on missing devices (the functions will return an error).
77611
77612         * m4/gc.m4: Move random stuff to gc-random.m4
77613
77614 2006-03-07  Simon Josefsson  <jas@extundo.com>
77615
77616         * lib/unistd_.h: New file.
77617
77618 2006-03-07  Simon Josefsson  <jas@extundo.com>
77619
77620         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77621
77622 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77625         Problem reported by Juan Manuel Guerrero.
77626
77627 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77628
77629         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77630         the unistd module.
77631         * lib/getlogin_r.c: Likewise.
77632         * lib/getlogin_r.h: Likewise.
77633         * lib/glob.c: Likewise.
77634         * lib/pagealign_alloc.c: Likewise.
77635         * lib/unistd_.h: Remove; no longer needed.
77636
77637 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77640         Add unistd.
77641         * modules/c-stack (Depends-on): Add unistd.
77642         * modules/getlogin_r: Likewise.
77643         * modules/glob: Likewise.
77644         * modules/pagealign_alloc: Likewise.
77645         * modules/unistd (Files): Remove lib/unistd_.h.
77646         (EXTRA_DIST): Remove.
77647         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77648         need unistd_.h.
77649         (MOSTLYCLEANFILES): Remove unistd.h-t.
77650
77651 2006-03-03  Simon Josefsson  <jas@extundo.com>
77652
77653         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77654
77655 2006-03-03  Simon Josefsson  <jas@extundo.com>
77656
77657         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77658         libidn and bison.
77659
77660 2006-03-03  Simon Josefsson  <jas@extundo.com>
77661
77662         * build-aux/maint.mk: Add indent target.
77663
77664 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77665
77666         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77667         our replacement poll.h in any case, to avoid a differing
77668         declaration from a system header.  Seen on AIX.
77669
77670 2006-03-01  Simon Josefsson  <jas@extundo.com>
77671
77672         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77673         <kasal@ucw.cz>.
77674
77675 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * modules/gettime (Depends-on): Add extensions module.
77678         * modules/nanosleep (Depends-on): Likewise.
77679         * modules/settime (Depends-on): Likewise.
77680
77681 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77684         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77685         pedantically.
77686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77687         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77688
77689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77690         not "==".  Reported by Ralf Wildenhues.
77691
77692 2006-03-01  Karl Berry  <karl@gnu.org>
77693
77694         * doc/Copyright/request-*: new files, synced from gnuorg.
77695
77696 2006-03-01  Karl Berry  <karl@gnu.org>
77697
77698         * config/srclist.txt (Copyright/*): new entries.
77699
77700 2006-02-28  Simon Josefsson  <jas@extundo.com>
77701
77702         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77703
77704 2006-02-27  Simon Josefsson  <jas@extundo.com>
77705
77706         * lib/base64.h: Indent #define's.  From Jim Meyering
77707         <jim@meyering.net>.
77708
77709 2006-02-27  Jim Meyering  <jim@meyering.net>
77710
77711         Revert the change of 2006-02-24, so these files can continue
77712         to be sync'd from gettext.
77713         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77714         of `config.h'.
77715
77716 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * modules/intprops: New file.
77719         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77720         Add intprops.
77721         * modules/getloadavg (Files): Remove lib/intprops.h.
77722         (Depends-on): Add intprops.
77723         * modules/human: Likewise.
77724         * modules/inttostr: Likewise.
77725         * modules/openat: Likewise.
77726         * modules/sig2str: Likewise.
77727         * modules/userspec: Likewise.
77728         * modules/utimecmp: Likewise.
77729         * modules/xnanosleep: Likewise.
77730         * modules/xstrtol: Likewise.
77731
77732 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77733
77734         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77735         * modules/lock-tests (TESTS): Use $(EXEEXT).
77736         * modules/tls-tests: Likewise.
77737         * modules/argp-tests: Likewise.
77738         (check_PROGRAMS): New var, replacing...
77739         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77740
77741 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77742
77743         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77744         `config.h'.
77745
77746 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77749
77750 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77751
77752         Sync from coreutils.
77753         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77754         gl_CHDIR_SAFER.
77755
77756 2006-02-22  Jim Meyering  <jim@meyering.net>
77757
77758         Sync from coreutils.
77759         * m4/chdir-safer.m4: New file.
77760
77761 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77764         AT_FDCWD exceeds INT_MAX.
77765         * lib/openat.h (AT_FDCWD): Likewise.
77766
77767 2006-02-17  Eric Blake  <address@hidden>
77768
77769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77770
77771 2006-02-16  Simon Josefsson  <jas@extundo.com>
77772
77773         * modules/getaddrinfo (Depends-on): Add sys_socket.
77774
77775 2006-02-15  Simon Josefsson  <jas@extundo.com>
77776
77777         * build-aux/maint.mk: Add dsyntax-check rule.
77778
77779 2006-02-15  Eric Blake  <ebb9@byu.net>
77780
77781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77782         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77783         'present but cannot compile' warnings on cygwin.
77784         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77785         use ws2tcpip.h if sys/socket.h works.
77786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77787         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77788
77789 2006-02-14  Simon Josefsson  <jas@extundo.com>
77790
77791         * modules/maintainer-makefile (Files): Rename.
77792
77793         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77794         and (the local) Makefile.cfg to maint-cfg.mk.
77795
77796         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77797         to the latter.
77798
77799         * modules/maintainer-makefile: New module.
77800
77801         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77802         severaly stripped to make it possible to build it up from scratch
77803         with reliable tests.
77804
77805         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77806         fixes to permit overriding the default actions when configure and
77807         makefile are not available.
77808
77809 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         Sync from coreutils.
77812         * modules/lstat (Depends-on): Don't depend on xalloc.
77813         (License): Change from GPL to LGPL, since this is now simply a
77814         replacement for a libc function.
77815
77816 2006-02-14  Jim Meyering  <jim@meyering.net>
77817
77818         Sync from coreutils.
77819
77820         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77821         failure on deficient systems, and simplify gnulib lgpl dependencies.
77822         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77823         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77824
77825         * lib/xalloc-die.c: Remove unused definition of N_.
77826
77827 2006-02-14  Jim Meyering  <jim@meyering.net>
77828
77829         Sync from coreutils.
77830         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77831         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77832         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77833         double-quote uses of that variable, to accommodate the rare case in
77834         which getmntent is available in none of the libraries checked.  This
77835         happens at least on FreeBSD 5.0.
77836
77837 2006-02-13  Simon Josefsson  <jas@extundo.com>
77838
77839         * gnulib-tool (Usage): Fix --import, from
77840         karl@freefriends.org (Karl Berry).
77841
77842 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77843
77844         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77845
77846 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77847
77848         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77849         "autoupdate" on 2005-12-12.
77850
77851 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * modules/closeout (Depends-on): Remove atexit.
77854
77855 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77858         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77859
77860 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77863         __EXTENSIONS__ if this causes compilation to fail.  Problem
77864         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77865         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77866
77867 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77870         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77871         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77872         All uses changed.
77873
77874 2006-01-26  Simon Josefsson  <jas@extundo.com>
77875
77876         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77877         prototype is visible on mingw32.
77878
77879         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77880         for mingw32.
77881
77882         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77883         mingw32).
77884
77885 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77888         attempt to open for write; this always fails, at least on POSIX
77889         hosts.  This reinstates the 2006-01-09 change, which was
77890         inadvertently removed.
77891
77892 2006-01-26  Bruno Haible  <bruno@clisp.org>
77893
77894         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77895         Reported by Paul Eggert.
77896
77897 2006-01-26  Bruno Haible  <bruno@clisp.org>
77898             Paul Eggert  <eggert@cs.ucla.edu>
77899
77900         * lib/stdbool_.h (_Bool)
77901         [(! (defined __cplusplus || defined __BEOS__)
77902           && !defined __GNUC__
77903           && !(defined __HP_cc || defined __xlc__
77904                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77905                || defined __sgi))]:
77906         #define to signed char in these cases too; this simplifies
77907         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77908         etc., separately) and makes it more conservative.
77909
77910 2006-01-25  Simon Josefsson  <jas@extundo.com>
77911
77912         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77913         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77914         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77915
77916 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77917
77918         * lib/argp-namefrob.h: Bugfix. Remove stray #
77919
77920 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77923         so that we test the test.
77924         Check for yet another HP-UX cc bug involving *bool |= bool.
77925
77926 2006-01-25  Karl Berry  <karl@gnu.org>
77927
77928         * config/srclist.txt (vasnprintf.c): sync lost.
77929
77930 2006-01-25  Jim Meyering  <jim@meyering.net>
77931
77932         Sync from the stable (b5) branch of coreutils:
77933
77934         * lib/fts.c (fts_children): Don't let close() clobber errno from
77935         failed fchdir().
77936
77937         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77938         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77939         a dangling symlink.  That can also happen at least for ELOOP.
77940         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77941         FYI, this bug predates the inclusion of fts.c in coreutils.
77942
77943         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77944         in their own block, so pre-c99 compilers don't object.
77945
77946         Avoid the double-free (first in fts_read, second in fts_close) that
77947         would occur when an `active' directory is made inaccessible (e.g.,
77948         via chmod a-x) during a traversal.
77949         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77950         before returning.  Reproduce this failure by
77951         mkdir -p a/b; cd a; chmod a-x . b
77952         Reported by Stavros Passas.
77953
77954 2006-01-25  Jim Meyering  <jim@meyering.net>
77955
77956         * lib/fileblocks.c: Remove more useless parentheses.
77957         * lib/readutmp.h: Likewise.
77958
77959 2006-01-25  Bruno Haible  <bruno@clisp.org>
77960
77961         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77962         warnings.
77963         Reported by Paul Eggert.
77964
77965 2006-01-25  Bruno Haible  <bruno@clisp.org>
77966
77967         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77968         rid of a trap command. For Solaris sh.
77969         Reported by Mark D. Baushke <mdb@gnu.org>.
77970
77971 2006-01-24  Simon Josefsson  <jas@extundo.com>
77972
77973         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77974         Bruno.
77975
77976 2006-01-24  Karl Berry  <karl@gnu.org>
77977
77978         * config/srclist.txt (argp-namefrob.h): sync lost.
77979
77980 2006-01-24  Jim Meyering  <jim@meyering.net>
77981
77982         * modules/openat (Files): Add lib/intprops.h.
77983         From Mark D. Baushke.
77984
77985 2006-01-24  Jim Meyering  <jim@meyering.net>
77986
77987         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77988         Reported by Mark D. Baushke.
77989
77990 2006-01-24  Jim Meyering  <jim@meyering.net>
77991
77992         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77993
77994 2006-01-24  Bruno Haible  <bruno@clisp.org>
77995
77996         * modules/strnlen (Maintainer): Change from glibc to all.
77997
77998 2006-01-24  Bruno Haible  <bruno@clisp.org>
77999
78000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78001         Patch by Paul Eggert.
78002
78003 2006-01-24  Bruno Haible  <bruno@clisp.org>
78004
78005         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78006         already has it.
78007         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78008         2005-11-26.
78009
78010         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78011         'signed char' to avoid problems with the built-in _Bool type.
78012         Reported by Paul Eggert on 2005-11-26.
78013
78014 2006-01-24  Bruno Haible  <bruno@clisp.org>
78015
78016         * gnulib-tool (func_import): Avoid constructing complicated sed
78017         expressions inside backquote.
78018         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78019
78020 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78021
78022         These changes imported from libc.
78023         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78024         test and two separate function calls.
78025         * lib/strndup.c (__strndup): Add libc_hidden_def.
78026
78027 2006-01-23  Simon Josefsson  <jas@extundo.com>
78028
78029         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78030         Remove the test_*_SOURCES variable: automake infers it by default.
78031         * modules/tls-tests: Likewise.
78032
78033 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         Work around porting bugs reported by Dieter in
78036         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78037         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78038         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78039         Include "getopt.h" first, to check interface.
78040         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78041         !HAVE_DECL_GETENV.
78042         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78043         (__strndup): Revert to K&R-style function dfns, the glibc style.
78044         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78045         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78046         Include strnlen.h first, to get prototype properly.
78047         (strnlen): Renamed from __strnlen.
78048         Remove weak alias.
78049
78050 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78053
78054 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * config/srclist.txt: Adjust to reflect glibc reorganization.
78057         This affects only comments.
78058
78059 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78060
78061          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78062          Reported by Bruce Korb <bkorb@gnu.org>.
78063
78064 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78067         to pacify gcc -Wswitch-default.
78068
78069 2006-01-22  Bruno Haible  <bruno@clisp.org>
78070
78071         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78072         temporary buffer for sprintf, take into account the precision also
78073         for 'd', 'i', 'u', 'o', 'x', 'X'.
78074
78075 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78076
78077         * modules/argp-tests: New module
78078         * tests/test-argp.c: New file
78079         * tests/test-argp-2.sh: New file
78080
78081 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78082
78083         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78084         (__argp_base_name): Removed
78085         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78086         typo.
78087         (__argp_base_name): Provide macro definition or extern declaration
78088         depending on the configuration
78089
78090 2006-01-20  Simon Josefsson  <jas@extundo.com>
78091
78092         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78093
78094 2006-01-20  Simon Josefsson  <jas@extundo.com>
78095
78096         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78097
78098 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78101         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78102         Suggested by Bruno Haible.
78103
78104 2006-01-20  Karl Berry  <karl@gnu.org>
78105
78106         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78107         until changes propagate, I guess.
78108
78109 2006-01-19  Simon Josefsson  <jas@extundo.com>
78110
78111         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78112
78113 2006-01-19  Simon Josefsson  <jas@extundo.com>
78114
78115         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78116
78117 2006-01-19  Simon Josefsson  <jas@extundo.com>
78118
78119         * gnulib-tool: Set check_PROGRAMS.
78120
78121         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78122         modules/des-tests, modules/gc-arcfour-tests,
78123         modules/gc-arctwo-tests, modules/gc-des-tests,
78124         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78125         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78126         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78127         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78128         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78129         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78130         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78131         test_*_SOURCES.
78132
78133 2006-01-18  Simon Josefsson  <jas@extundo.com>
78134
78135         * modules/socklen (Depends-on): Depend on sys_socket.
78136
78137 2006-01-18  Simon Josefsson  <jas@extundo.com>
78138
78139         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78140         modules/des-tests, modules/gc-arcfour-tests,
78141         modules/gc-arctwo-tests, modules/gc-des-tests,
78142         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78143         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78144         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78145         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78146         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78147         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78148         $(EXEEXT) to automake TESTS variable, for mingw32.
78149
78150 2006-01-17  Simon Josefsson  <jas@extundo.com>
78151
78152         * modules/socklen (Include): Need sys/socket.h.
78153
78154 2006-01-17  Bruno Haible  <bruno@clisp.org>
78155
78156         * modules/ssize_t (Include): Add <sys/types.h>.
78157
78158 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78161         it's not portable and it doesn't work with cross-compiles.
78162         Problem reported by Bruno Haible.  Fix missing-$ typo in
78163         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78164         -zignore from being used with Sun's C compiler.
78165
78166 2006-01-12  Simon Josefsson  <jas@extundo.com>
78167
78168         * lib/base64.c: Fix warning, reported by Bruno Haible
78169         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78170
78171 2006-01-12  Bruno Haible  <bruno@clisp.org>
78172
78173         * modules/ldd: New file.
78174         * build-aux/ldd.sh.in: New file.
78175         * MODULES.html.sh (Support for building libraries and executables): Add
78176         ldd.
78177
78178 2006-01-12  Bruno Haible  <bruno@clisp.org>
78179
78180         * m4/ldd.m4: New file.
78181
78182 2006-01-12  Bruno Haible  <bruno@clisp.org>
78183
78184         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78185         endless loop while replacing $auxdir with build-aux.
78186
78187 2006-01-11  Simon Josefsson  <jas@extundo.com>
78188
78189         * lib/stdint_.h (SIZE_MAX): Add missing (.
78190
78191 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         Sync from coreutils.
78194         * lib/md5.c: Fix commentary typos.
78195         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78196         * lib/md5.h (__attribute__): Remove; unused.
78197         * lib/sha1.c: Fix commentary to match md5 better.
78198         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78199         so that we don't need to worry about alignment.  All uses changed.
78200         This merges the 2005-10-28 md5 change into sha1.
78201
78202 2006-01-11  Jim Meyering  <jim@meyering.net>
78203
78204         Sync from coreutils.
78205         * lib/md5.c (OP): Fix spacing.
78206
78207 2006-01-11  Bruno Haible  <bruno@clisp.org>
78208
78209         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78210         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78211         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78212
78213 2006-01-11  Bruno Haible  <bruno@clisp.org>
78214
78215         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78216         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78217         the "early" section as well.
78218
78219 2006-01-11  Bruno Haible  <bruno@clisp.org>
78220
78221         Avoid "ar: no archive members specified" error on MacOS X.
78222         * gnulib-tool (func_modules_add_dummy): New function.
78223         (func_import, func_create_testdir): Invoke it.
78224
78225 2006-01-11  Bruno Haible  <bruno@clisp.org>
78226
78227         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78228         with $auxdir in AC_CONFIG_FILES statements.
78229
78230 2006-01-11  Bruno Haible  <bruno@clisp.org>
78231
78232         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78233         Initialize also noinst_HEADERS to empty.
78234
78235 2006-01-11  Bruno Haible  <bruno@clisp.org>
78236
78237         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78238         variables.
78239         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78240         autoreconf.
78241
78242 2006-01-11  Bruno Haible  <bruno@clisp.org>
78243
78244         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78245         overridable by the user.
78246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78247
78248 2006-01-10  Simon Josefsson  <jas@extundo.com>
78249
78250         * modules/sys_socket: New file.
78251
78252 2006-01-10  Simon Josefsson  <jas@extundo.com>
78253
78254         * m4/sys_socket_h.m4: New file.
78255
78256 2006-01-10  Simon Josefsson  <jas@extundo.com>
78257
78258         * lib/socket_.h: New file.
78259
78260 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * modules/readutmp (Maintainer): Add myself.
78263
78264 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78267         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78268         People who are still concerned with buggy memcmp implementations
78269         can invoke gl_FUNC_MEMCMP themselves.
78270
78271 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * lib/regex_internal.h (BITSET_WORD_BITS):
78274         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78275         preprocessor mishandles large unsigned values as if they were signed.
78276         Problem reported by Claudio Fontana in
78277         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78278
78279 2006-01-10  Jim Meyering  <jim@meyering.net>
78280
78281         Avoid the double-free (first in fts_read, second in fts_close) that
78282         would occur when an `active' directory is made inaccessible (e.g.,
78283         via chmod a-x) during a traversal.
78284         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78285         before returning.  Reproduce this failure by
78286         mkdir -p a/b; cd a; chmod a-x . b
78287         Reported by Stavros Passas.
78288
78289         Sync from coreutils.
78290         * lib/sha1.c: Tweak grammar in a comment.
78291
78292 2006-01-10  Jim Meyering  <jim@meyering.net>
78293
78294         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78295         Patch by Joerg Sonnenberger.
78296
78297 2006-01-10  Bruno Haible  <bruno@clisp.org>
78298
78299         * modules/readutmp: Depend on module free.
78300         * modules/strtok_r: Depend on module restrict.
78301
78302 2006-01-10  Bruno Haible  <bruno@clisp.org>
78303
78304         * modules/gettext (configure.ac): Add an invocation of
78305         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78306
78307 2006-01-10  Bruno Haible  <bruno@clisp.org>
78308
78309         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78310         Reported by Werner Lemberg <wl@gnu.org>.
78311
78312 2006-01-10  Bruno Haible  <bruno@clisp.org>
78313
78314         * lib/localcharset.c: Update from GNU gettext.
78315
78316 2006-01-10  Bruno Haible  <bruno@clisp.org>
78317
78318         * lib/argp.h (__const): Remove macro. Use const instead.
78319         * lib/argp-fmtstream.h (__const): Likewise.
78320         * lib/glob_.h (__const): Remove macro.
78321         * lib/glob-libc.h: Use const instead of __const.
78322
78323 2006-01-10  Bruno Haible  <bruno@clisp.org>
78324
78325         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78326         variable.
78327         Needed to avoid an automake error regarding the 'gettext' module.
78328
78329 2006-01-09  Simon Josefsson  <jas@extundo.com>
78330
78331         * modules/inet_ntop (Depends-on): Add restrict.
78332
78333 2006-01-09  Simon Josefsson  <jas@extundo.com>
78334
78335         * modules/gc-rijndael-tests (License): Put under LGPL.
78336
78337         * modules/gc-des-tests (License): Likewise.
78338
78339         * modules/gc-arcfour-tests (License): Likewise.
78340
78341         * modules/gc-arctwo-tests (License): Likewise.
78342
78343         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78344
78345         * modules/gc-hmac-sha1-tests (Files): Likewise.
78346
78347         * modules/gc-hmac-md5-tests (License): Likewise.
78348
78349         * modules/gc-sha1-tests (License): Likewise.
78350
78351         * modules/gc-md5-tests (License): Likewise.
78352
78353         * modules/gc-md4-tests (License): Likewise.
78354
78355         * modules/gc-md2-tests (License): Likewise.
78356
78357         * modules/gc-tests (License): Likewise.
78358
78359         * modules/des-tests (License): Likewise.
78360
78361         * modules/md4-tests (License): Likewise.
78362
78363         * modules/md2-tests (License): Likewise.
78364
78365 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78366
78367         Sync from coreutils:
78368
78369         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78370         * modules/lib-ignore: New file.
78371         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78372         chdir-safer.m4, lchmod.m4.
78373         * modules/openat: Add mkdirat.c, openat-priv.h.
78374
78375 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         Sync from coreutils.
78378         * m4/lib-ignore.m4: New file.
78379         * m4/lchmod.m4: New file.
78380
78381 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         Sync from coreutils.
78384         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78385         for write access: POSIX says that must fail.
78386         * lib/fts.c (diropen): Likewise.
78387         * lib/save-cwd.c (save_cwd): Likewise.
78388         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78389         well, for minor improvements on hosts that lack O_DIRECTORY.
78390         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78391         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78392         Fall back on chown if open failed with EACCES.
78393
78394         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78395         Report an error at compile-time if only a 1-second nominal clock
78396         resolution is found.
78397
78398         * lib/lchmod.h: New file.
78399         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78400         (make_dir_parents): Use lchown rather than chown, and
78401         lchmod rather than chmod.
78402
78403         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78404         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78405         "proc" reported by n0dalus.
78406
78407         * lib/mountlist.c: Include <limits.h>.
78408         (dev_from_mount_options)
78409         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78410         New function.  It no longer assumes "dev=" has the System V meaning
78411         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78412         (read_file_system_list)
78413         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78414         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78415         dev= in that case.
78416
78417         * lib/posixtm.h (PDS_PRE_2000): New macro.
78418         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78419         allow_century.  All usages changed.  Reject dates outside the range
78420         1969-1999 if PDS_PRE_2000 is used.
78421
78422 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         Sync from coreutils.
78425         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78426         (Time of day items): Mention the possibility of leap seconds.
78427         Problem reported by Dr. David Alan Gilbert.
78428
78429 2006-01-09  Jim Meyering  <jim@meyering.net>
78430
78431         Sync from coreutils.
78432
78433         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78434
78435         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78436
78437         * lib/modechange.c (mode_compile): Reject an invalid mode string
78438         that starts with an octal digit.  From Andreas Gruenbacher.
78439
78440         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78441         and dup to open_safer and dup_safer, respectively.
78442         (openat_permissive): Fix typo in comment.
78443
78444         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78445         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78446         (_): Remove; no longer needed.
78447         (openat): Renamed from rpl_openat; no need for rpl_openat
78448         since openat.h renames openat for us.
78449         Replace most of the body with a call to openat_permissive,
78450         to avoid duplicate code.
78451         Port to (probably hypothetical) environments were mode_t is
78452         wider than int.
78453         (openat_permissive): Require mode arg, so that we can check
78454         types better.  Put it just after flags.  Change cwd failure
78455         indicator from pointer-to-bool to pointer-to-errno-value.
78456         All callers changed.
78457         Invoke openat_save_fail and/or openat_restore_fail if
78458         cwd_errno is null, so that openat can call us.
78459         (openat_permissive, fdopendir, fstatat, unlinkat):
78460         Simplify errno handling to avoid some duplicate code,
78461         as it's OK to set errno on success.
78462         * lib/openat.h: Revamp code so that function macros depend on
78463         __OPENAT_PREFIX only, not also on AT_FDCWD.
78464         (openat_ro): Remove.  Caller changed to use openat_permissive.
78465         (openat_permissive): Now a macro, if not a function.
78466         (openat_restore_fail, openat_save_fail): Now always functions,
78467         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78468
78469         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78470         and openat.c.
78471         * lib/mkdirat.c: Include openat-priv.h.
78472         Remove definitions of macros defined therein.
78473         * lib/openat.c: Likewise.
78474
78475         * lib/mkdirat.c (mkdirat): New file and function.
78476         * lib/openat.h (mkdirat): Declare.
78477
78478         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78479
78480         * lib/openat.h (openat_permissive): Declare.
78481         (openat_ro): Define.
78482
78483         * lib/openat.c (EXPECTED_ERRNO): New macro.
78484         (openat_permissive): New function -- used in remove.c rewrite.
78485         (all functions): Set errno just before returning, only if there
78486         was an actual failure.
78487         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78488
78489         Emulate openat-family functions using Linux's procfs, if possible.
78490         Idea and some code based on Ulrich Drepper's glibc changes.
78491
78492         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78493         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78494         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78495         before falling back on save_cwd and restore_cwd.
78496         (fdopendir, fstatat, unlinkat): Likewise.
78497
78498         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78499         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78500
78501         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78502         as second argument to va_arg.  Otherwise, some versions of gcc
78503         warn that `if this code is reached, the program will abort'.
78504
78505 2006-01-09  Jim Meyering  <jim@meyering.net>
78506
78507         Sync from coreutils.
78508         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78509         Require openat-priv.h.
78510
78511 2006-01-09  Bruno Haible  <bruno@clisp.org>
78512
78513         * modules/strnlen (Include): Use strnlen.h.
78514
78515 2006-01-09  Bruno Haible  <bruno@clisp.org>
78516
78517         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78518
78519 2006-01-09  Bruno Haible  <bruno@clisp.org>
78520
78521         * lib/sysexit_.h (EX_OK): New macro.
78522         Suggested by Martin Lambers <marlam@marlam.de>.
78523
78524 2006-01-09  Bruno Haible  <bruno@clisp.org>
78525
78526         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78527         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78528
78529 2006-01-09  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78532         numbers.
78533
78534 2006-01-09  Bruno Haible  <bruno@clisp.org>
78535
78536         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78537         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78538         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78539         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78540
78541 2006-01-09  Bruno Haible  <bruno@clisp.org>
78542
78543         * build-aux/javacomp.sh.in: New file, moved from lib/.
78544         * modules/javacomp-script (Files): Update.
78545         (configure.ac): Add AC_CONFIG_FILES invocation.
78546         (EXTRA_DIST): Remove variable.
78547
78548         * build-aux/javaexec.sh.in: New file, moved from lib/.
78549         * modules/javaexec (Files): Update.
78550         (configure.ac): Add AC_CONFIG_FILES invocation.
78551         (EXTRA_DIST): Remove javaexec.sh.in.
78552
78553         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78554         * modules/csharpcomp-script (Files): Update.
78555         (configure.ac): Add AC_CONFIG_FILES invocation.
78556         (EXTRA_DIST): Remove variable.
78557
78558         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78559         * modules/csharpexec (Files): Update.
78560         (configure.ac): Add AC_CONFIG_FILES invocation.
78561         (EXTRA_DIST): Remove csharpexec.sh.in.
78562
78563 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78564
78565         Sync from coreutils.
78566
78567         Add POSIX ACL support
78568         * lib/acl.h (copy_acl, set_acl): Add declarations.
78569         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78570         systems other than Linux.
78571         (chmod_or_fchmod): New function: use fchmod when possible,
78572         and chmod otherwise.
78573         (file_has_acl): Add a POSIX ACL implementation, with a
78574         Linux-specific subcase.
78575         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78576         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78577         acls are unsupported.
78578         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78579         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78580         are unsupported.
78581
78582 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78583
78584         Sync from coreutils.
78585         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78586
78587 2006-01-07  Bruno Haible  <bruno@clisp.org>
78588
78589         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78590         gl_EARLY.
78591
78592 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78595         Problem reported for Mingw by Mark Junker.
78596
78597 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         * README: Gnulib normally doesn't generate a tarball.
78600
78601 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78604         long int, not int, for nanosecond counts, so that people who are
78605         used to POSIX struct timespec won't be surprised.  Reported by Jim
78606         Meyering.
78607
78608 2005-12-28  Bruno Haible  <bruno@clisp.org>
78609
78610         * build-aux/config.rpath: Update from GNU gettext.
78611
78612 2005-12-16  Jim Meyering  <jim@meyering.net>
78613
78614         * modules/fprintftime: New module.
78615         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78616
78617 2005-12-16  Jim Meyering  <jim@meyering.net>
78618
78619         * m4/fprintftime.m4: New file.
78620
78621 2005-12-16  Jim Meyering  <jim@meyering.net>
78622
78623         * lib/fprintftime.c, lib/fprintftime.h: New files.
78624
78625 2005-12-15  Simon Josefsson  <jas@extundo.com>
78626
78627         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78628         new m4/socklen.m4.
78629
78630 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78631
78632         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78633         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78634
78635 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78636
78637         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78638         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78639         struct uparams is valid. Fall back to the default values if it is
78640         not.
78641
78642 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78643
78644         * modules/argp (Files): Add argp-pin.c
78645         (Depends-on): dirname
78646         (lib_SOURCES): Add argp-pin.c
78647
78648 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78649
78650         * m4/argp.m4:  Check if program_invocation_name and
78651         program_invocation_short_name are declared and define appropriate
78652         macros if they are not.
78653
78654 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78655
78656         * lib/argp-help.c (__argp_base_name): New function
78657         (__argp_short_program_name): Rewrite using __argp_base_name
78658         * lib/argp-namefrob.h: Define program_invocation_name and
78659         program_invocation_short_name if requested
78660         (__argp_base_name): Add prototype
78661         * lib/argp-parse.c (argp_def): Use gettext wrappers
78662         (argp_default_parser): Use __argp_base_name
78663         * lib/argp-pin.c: New file. Defines program_invocation_name and
78664         program_invocation_short_name on systems that lack them.
78665
78666 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78669         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78670         porting problem reported by Georg Schwarz in
78671         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78672
78673 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78676         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78677         porting problem reported by Georg Schwarz in
78678         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78679
78680 2005-12-05  Bruno Haible  <bruno@clisp.org>
78681
78682         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78683         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78684         Reported by Mark Junker <mjscod@gmx.de>.
78685
78686 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78689         Use implementation from Albert Chin, with some
78690         comments/corrections by Stepan Kasal and myself.
78691
78692 2005-12-02  Bruno Haible  <bruno@clisp.org>
78693
78694         * gnulib-tool (func_import): Accept GPLed build tool modules when
78695         --lgpl is given.
78696         * modules/csharpcomp-script: New file.
78697         * modules/csharpcomp: Depend on it.
78698         * modules/javacomp-script: New file.
78699         * modules/javacomp: Depend on it.
78700         Suggested by Simon Josefsson.
78701
78702 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78703
78704         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78705         statement, to work around an HP-UX 10.20 compiler bug reported by
78706         Peter O'Gorman.
78707
78708 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * modules/savedir (Depends-on): Add openat.
78711
78712 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78715         (uintmax_t) [defined uintmax_t]: Do not declare.
78716         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78717         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78718         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78719         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78720         sake of portability to weird hosts that C allows (though we don't
78721         know of any practical examples).
78722
78723         * lib/savedir.h (fdsavedir): New decl.
78724         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78725         contains most of the former guts of savedir.
78726         (savedir): Use savedirstream.
78727         Include "openat.h".
78728
78729 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78730
78731         * modules/obstack (Files): Add m4/ulonglong.m4.
78732         Problem reported by Davide Angelocola.
78733
78734 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78735
78736         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78737         coreutils no longer futzes with rounding modes.
78738
78739 2005-11-14  Jim Meyering  <jim@meyering.net>
78740
78741         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78742         replacement of mkstemp.
78743
78744 2005-11-10  Simon Josefsson  <jas@extundo.com>
78745
78746         * lib/readline.c: Remove EOL.
78747
78748 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * modules/gethrxtime (Depends-on): Add gettime.
78751
78752 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78755         or gettimeofday; no longer needed.
78756
78757 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78760         time business.
78761         (gethrxtime) [! (HAVE_NANOUPTIME
78762         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78763         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78764         our own approximation.
78765
78766 2005-11-08  Eric Blake  <ebb9@byu.net>
78767
78768         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78769
78770 2005-11-08  Eric Blake  <ebb9@byu.net>
78771
78772         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78773
78774 2005-11-04  Bruno Haible  <bruno@clisp.org>
78775
78776         * gnulib-tool: Implement --update mode.
78777
78778 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78779
78780         Fix porting problem reported by Theodoros V. Kalamatianos.
78781         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78782         Don't assume that futimes failing means we must fail.
78783
78784 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78785
78786         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78787         variables to suggest the intended function of the PATH_MAX check.
78788
78789 2005-10-30  Kean Johnston  <jkj@sco.com>
78790
78791         Trivial changes to support SCO systems.
78792         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78793         as PATH_MAX.
78794         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78795         where __ptr is null when no I/O is pending.
78796
78797 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78800         leave errno alone.  Problem reported by Dmitry V. Levin.
78801
78802 2005-10-28  Simon Josefsson  <jas@extundo.com>
78803
78804         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78805         Test more.
78806
78807         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78808
78809         * modules/md2, modules/md2-tests: New files.
78810
78811 2005-10-28  Simon Josefsson  <jas@extundo.com>
78812
78813         * m4/inet_ntop.m4: More tests.
78814
78815         * m4/gc-md2.m4, md2.m4: New file.
78816
78817 2005-10-28  Simon Josefsson  <jas@extundo.com>
78818
78819         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78820         "restrict" keywords, as per POSIX.  Protect the function
78821         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78822         Don't use K&R prototypes.  Check the sprintf return values.
78823         Re-define EAFNOSUPPORT if not present.  Indent.
78824
78825         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78826         suggested by Bruno Haible <bruno@clisp.org>.
78827
78828         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78829
78830         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78831
78832         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78833         libgcrypt).
78834
78835         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78836
78837         * lib/md2.h, lib/md2.c: New files.
78838
78839 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78842         errno alone.  Problem reported by Frederic Jolliton.
78843
78844 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * modules/verify (License): Change from GPL to LGPL.  This is a
78847         tiny module and there are apparently near-equivalents that are
78848         under the BSD license.
78849
78850 2005-10-24  Simon Josefsson  <jas@extundo.com>
78851
78852         * modules/sha1: Relicense to LGPL.
78853
78854 2005-10-24  Simon Josefsson  <jas@extundo.com>
78855
78856         * lib/md4.h: Shrink buffer size, now that we changed the type.
78857
78858 2005-10-23  Simon Josefsson  <jas@extundo.com>
78859
78860         * gnulib-tool (func_import): Fix --tests-base.
78861
78862 2005-10-22  Simon Josefsson  <jas@extundo.com>
78863
78864         * modules/arcfour (Depends-on): Need stdint.
78865
78866 2005-10-22  Simon Josefsson  <jas@extundo.com>
78867
78868         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78869         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78870
78871 2005-10-22  Simon Josefsson  <jas@extundo.com>
78872
78873         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78874         suggested by Bruno Haible <bruno@clisp.org>.
78875
78876 2005-10-22  Simon Josefsson  <jas@extundo.com>
78877
78878         * lib/crc.h: Include stddef.h, for size_t.
78879
78880 2005-10-22  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78883         arcfour_context struct (simplify test vector testing in GNU
78884         Shishi).
78885
78886 2005-10-21  Simon Josefsson  <jas@extundo.com>
78887
78888         * modules/des, modules/des-tests: New files.
78889
78890         * modules/gc-des, modules/gc-des-tests: New files.
78891
78892         * tests/test-des.c, tests/test-gc-des.c: New file.
78893
78894 2005-10-21  Simon Josefsson  <jas@extundo.com>
78895
78896         * modules/arctwo, modules/arctwo-tests: New files.
78897
78898         * tests/test-arctwo.c: New file.
78899
78900         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78901
78902         * tests/test-gc-arctwo.c: New file.
78903
78904 2005-10-21  Simon Josefsson  <jas@extundo.com>
78905
78906         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78907         Bruno Haible <bruno@clisp.org>.
78908
78909         * m4/gc-des.m4: New file.
78910
78911 2005-10-21  Simon Josefsson  <jas@extundo.com>
78912
78913         * m4/arctwo.m4: New file.
78914
78915         * m4/gc-arctwo.m4: New file.
78916
78917 2005-10-21  Simon Josefsson  <jas@extundo.com>
78918
78919         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78920         block.
78921
78922 2005-10-21  Simon Josefsson  <jas@extundo.com>
78923
78924         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78925         <bruno@clisp.org>.
78926
78927         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78928
78929         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78930         Bruno Haible <bruno@clisp.org>.
78931
78932         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78933         <bruno@clisp.org>.
78934
78935 2005-10-21  Simon Josefsson  <jas@extundo.com>
78936
78937         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78938
78939 2005-10-21  Simon Josefsson  <jas@extundo.com>
78940
78941         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78942
78943 2005-10-21  Simon Josefsson  <jas@extundo.com>
78944
78945         * lib/des.h, lib/des.c: New files.
78946
78947         * lib/gc-gnulib.c: Support DES.c
78948
78949 2005-10-21  Simon Josefsson  <jas@extundo.com>
78950
78951         * lib/arctwo.h, lib/arctwo.c: New files.
78952
78953         * lib/gc-gnulib.c: Support ARCTWO.
78954
78955 2005-10-21  Simon Josefsson  <jas@extundo.com>
78956
78957         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78958         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78959
78960 2005-10-21  Simon Josefsson  <jas@extundo.com>
78961
78962         * gnulib-tool (func_import, func_create_testdir): Define automake
78963         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78964         Makefile.am snippet),
78965         suggested by Bruno Haible <bruno@clisp.org>.
78966
78967         * modules/gc (Makefile.am): Use it.
78968
78969 2005-10-21  Bruno Haible  <bruno@clisp.org>
78970
78971         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78972         patch.
78973
78974 2005-10-19  Simon Josefsson  <jas@extundo.com>
78975
78976         * tests/test-gc-rijndael.c: New file.
78977
78978         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78979
78980 2005-10-19  Simon Josefsson  <jas@extundo.com>
78981
78982         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78983         interface too.
78984
78985 2005-10-19  Simon Josefsson  <jas@extundo.com>
78986
78987         * tests/test-gc-arcfour.c: New file.
78988
78989         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78990
78991 2005-10-19  Simon Josefsson  <jas@extundo.com>
78992
78993         * modules/gc-md4, modules/gc-md4-tests: New file.
78994
78995         * tests/test-gc-md4.c: New file.
78996
78997 2005-10-19  Simon Josefsson  <jas@extundo.com>
78998
78999         * m4/gc-md4.m4: New file.
79000
79001 2005-10-19  Simon Josefsson  <jas@extundo.com>
79002
79003         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79004         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79005         <kasal@ucw.cz>.
79006
79007 2005-10-19  Simon Josefsson  <jas@extundo.com>
79008
79009         * m4/gc-arcfour.m4: New file.
79010
79011         * m4/gc-rijndael.m4: New file.
79012
79013 2005-10-19  Simon Josefsson  <jas@extundo.com>
79014
79015         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79016
79017 2005-10-19  Simon Josefsson  <jas@extundo.com>
79018
79019         * lib/gc-gnulib.c: Support ARCFOUR.
79020
79021 2005-10-19  Simon Josefsson  <jas@extundo.com>
79022
79023         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79024         support.
79025
79026         * lib/gc.h: Add ECB enum type.
79027
79028         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79029
79030 2005-10-18  Simon Josefsson  <jas@extundo.com>
79031
79032         * tests/test-md5.c: New file.
79033
79034         * modules/md5-tests: New file.
79035
79036 2005-10-18  Simon Josefsson  <jas@extundo.com>
79037
79038         * tests/test-md4.c: New file.
79039
79040         * modules/md4, modules/md4-tests: New files.
79041
79042 2005-10-18  Simon Josefsson  <jas@extundo.com>
79043
79044         * m4/md4.m4: New file.
79045
79046 2005-10-18  Simon Josefsson  <jas@extundo.com>
79047
79048         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79049
79050 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79051
79052         * gnulib-tool (func_create_testdir): Omit the second check whether
79053         BUILT_SOURCES in nonempty.
79054
79055 2005-10-17  Simon Josefsson  <jas@extundo.com>
79056
79057         * tests/test-rijndael.c: New file.
79058
79059 2005-10-17  Simon Josefsson  <jas@extundo.com>
79060
79061         * modules/sha1: Depend on stdint instead of md5.
79062
79063         * modules/md5: Depend on stdint, remove uint32_t.
79064
79065 2005-10-17  Simon Josefsson  <jas@extundo.com>
79066
79067         * modules/gc-sha1-tests: New file.
79068
79069         * tests/test-gc-sha1.c: New file.
79070
79071 2005-10-17  Simon Josefsson  <jas@extundo.com>
79072
79073         * m4/md5.m4: Remove call to uint32_t.m4.
79074
79075 2005-10-17  Simon Josefsson  <jas@extundo.com>
79076
79077         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79078
79079         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79080         md5.h.
79081
79082         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79083
79084         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79085
79086 2005-10-17  Simon Josefsson  <jas@extundo.com>
79087
79088         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79089
79090 2005-10-17  Simon Josefsson  <jas@extundo.com>
79091
79092         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79093
79094 2005-10-17  Simon Josefsson  <jas@extundo.com>
79095
79096         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79097
79098         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79099
79100 2005-10-17  Bruno Haible  <bruno@clisp.org>
79101
79102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79103         that it can also be used in a test.
79104
79105 2005-10-16  Bruno Haible  <bruno@clisp.org>
79106
79107         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79108         TESTS_ENVIRONMENT, so that individual tests can augment it.
79109
79110         * gnulib-tool (func_create_testdir): Use an intermediate target for
79111         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79112         macros, like $(ALLOCA_H), which cannot be passed through the command
79113         line.
79114
79115 2005-10-15  Simon Josefsson  <jas@extundo.com>
79116
79117         * modules/rijndael-tests: New file.
79118
79119         * modules/rijndael: New file.
79120
79121 2005-10-15  Simon Josefsson  <jas@extundo.com>
79122
79123         * m4/rijndael.m4: New file.
79124
79125 2005-10-15  Simon Josefsson  <jas@extundo.com>
79126
79127         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79128
79129         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79130
79131 2005-10-14  Simon Josefsson  <jas@extundo.com>
79132
79133         * tests/test-arcfour.c: New file.
79134
79135         * modules/arcfour, modules/arcfour-tests: New files.
79136
79137 2005-10-14  Simon Josefsson  <jas@extundo.com>
79138
79139         * m4/arcfour.m4: New file.
79140
79141 2005-10-14  Simon Josefsson  <jas@extundo.com>
79142
79143         * lib/arcfour.h, lib/arcfour.c: New files.
79144
79145 2005-10-14  Roland McGrath  <roland@redhat.com>
79146
79147         Import from libc.  [BZ #1331]
79148         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79149         macro argument.
79150         Reported by Matej Vela <vela@debian.org>.
79151
79152 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79155         include <wchar.h>; no longer needed.
79156
79157 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79160
79161 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79162         and  Ulrich Drepper  <drepper@redhat.com>
79163
79164         Import from libc.
79165         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79166         instead of inline stream orientation test and two separate
79167         function calls.  Pay no attention to USE_IN_LIBIO.
79168
79169 2005-10-13  Simon Josefsson  <jas@extundo.com>
79170
79171         * modules/gc-hmac-md5-tests: New file.
79172
79173         * tests/test-gc-hmac-sha1.c: New file.
79174
79175         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79176
79177         * modules/gc-hmac-md5-tests: New file.
79178
79179         * tests/test-gc-md5.c: New file.
79180
79181         * modules/gc-md5-tests: New file.
79182
79183 2005-10-13  Simon Josefsson  <jas@extundo.com>
79184
79185         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79186         Move memory allocation outside of loop.
79187
79188 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79191         intermediate directory is in a read-only file system.  Problem
79192         reported by Eric Blake.
79193
79194 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79195
79196         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79197
79198 2005-10-12  Simon Josefsson  <jas@extundo.com>
79199
79200         * tests/test-hmac-sha1.c: New file.
79201
79202         * modules/hmac-sha1-tests: New file.
79203
79204         * modules/hmac-sha1: New file.
79205
79206 2005-10-12  Simon Josefsson  <jas@extundo.com>
79207
79208         * modules/gc-sha1: New file.
79209
79210 2005-10-12  Simon Josefsson  <jas@extundo.com>
79211
79212         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79213
79214         * tests/test-gc-pbkdf2-sha1.c: New file.
79215
79216 2005-10-12  Simon Josefsson  <jas@extundo.com>
79217
79218         * modules/gc-md5, modules/gc-hmac-md5: New files.
79219
79220         * modules/gc (Files): Remove md5, memxor and hmac files.
79221
79222 2005-10-12  Simon Josefsson  <jas@extundo.com>
79223
79224         * m4/gc-pbkdf2-sha1.m4: New file.
79225
79226         * m4/gc-hmac-sha1.m4: New file.
79227
79228         * m4/gc-sha1: New file.
79229
79230         * m4/hmac-sha1.m4: New file.
79231
79232 2005-10-12  Simon Josefsson  <jas@extundo.com>
79233
79234         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79235
79236         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79237
79238 2005-10-12  Simon Josefsson  <jas@extundo.com>
79239
79240         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79241         suggested by Bruno Haible <bruno@clisp.org>.
79242
79243 2005-10-12  Simon Josefsson  <jas@extundo.com>
79244
79245         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79246
79247 2005-10-12  Simon Josefsson  <jas@extundo.com>
79248
79249         * lib/gc-pbkdf2-sha1.c: New file.
79250
79251         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79252
79253 2005-10-12  Simon Josefsson  <jas@extundo.com>
79254
79255         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79256
79257         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79258
79259 2005-10-12  Simon Josefsson  <jas@extundo.com>
79260
79261         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79262         GC_USE_HMAC_MD5, respectively.
79263
79264         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79265         (gc_md5): Fix typo.
79266
79267         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79268
79269         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79270
79271         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79272
79273 2005-10-12  Bruno Haible  <bruno@clisp.org>
79274
79275         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79276         Reported by Stepan Kasal <kasal@ucw.cz>.
79277
79278 2005-10-11  Simon Josefsson  <jas@extundo.com>
79279
79280         * tests/test-crc.c: New file.
79281
79282         * modules/crc, modules/crc-tests: New files.
79283
79284 2005-10-11  Simon Josefsson  <jas@extundo.com>
79285
79286         * m4/crc.m4: New file.
79287
79288 2005-10-11  Simon Josefsson  <jas@extundo.com>
79289
79290         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79291
79292         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79293
79294         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79295
79296 2005-10-11  Simon Josefsson  <jas@extundo.com>
79297
79298         * lib/crc.h, lib/crc.c: New files.
79299
79300         * lib/gc.h (gc_hash_buffer): Add doc.
79301
79302 2005-10-11  Bruno Haible  <bruno@clisp.org>
79303
79304         * modules/c-strcasestr: New file.
79305         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79306
79307 2005-10-11  Bruno Haible  <bruno@clisp.org>
79308
79309         * modules/c-strcase: New file.
79310         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79311
79312 2005-10-11  Bruno Haible  <bruno@clisp.org>
79313
79314         * lib/strcasecmp.c: Include limits.h.
79315         (strcasecmp): Avoid integer overflow on exotic platforms.
79316         * lib/strncasecmp.c: Include limits.h.
79317         (strncasecmp): Avoid integer overflow on exotic platforms.
79318         Reported by Paul Eggert.
79319
79320 2005-10-11  Bruno Haible  <bruno@clisp.org>
79321
79322         * lib/c-strcasestr.h: New file, from GNU gettext.
79323         * lib/c-strcasestr.c: New file, from GNU gettext.
79324
79325 2005-10-11  Bruno Haible  <bruno@clisp.org>
79326
79327         * lib/c-strcase.h: New file, from GNU gettext.
79328         * lib/c-strcasecmp.c: New file, from GNU gettext.
79329         * lib/c-strncasecmp.c: New file, from GNU gettext.
79330
79331 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * modules/mempcpy (License): GPL -> LGPL.
79334         * modules/strchrnul (License): Likewise.
79335         * modules/sysexits (License): Likewise.
79336
79337 2005-10-08  Simon Josefsson  <jas@extundo.com>
79338
79339         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79340
79341 2005-10-07  Simon Josefsson  <jas@extundo.com>
79342
79343         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79344
79345 2005-10-06  Simon Josefsson  <jas@extundo.com>
79346
79347         * tests/test-hmac-md5.c: New file.
79348
79349         * modules/hmac-md5-tests: New file.
79350
79351         * modules/hmac-md5: New file.
79352
79353 2005-10-06  Simon Josefsson  <jas@extundo.com>
79354
79355         * m4/hmac-md5.m4: New file.
79356
79357         * m4/memxor.m4: Require gl_C_RESTRICT.
79358
79359 2005-10-06  Simon Josefsson  <jas@extundo.com>
79360
79361         * lib/memxor.c (memxor): Avoid casts and warnings.
79362
79363 2005-10-06  Simon Josefsson  <jas@extundo.com>
79364
79365         * lib/hmac-md5.c: New file.
79366
79367         * lib/hmac.h: New file.
79368
79369 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79372         promotes to int, not unsigned int, to catch the AIX 5.3
79373         compiler bug.
79374
79375 2005-10-05  Simon Josefsson  <jas@extundo.com>
79376
79377         * modules/memxor: New file.
79378
79379         * modules/iconv (Files): Move config.rpath to havelib, it is used
79380         there.
79381
79382         * modules/havelib (Files): Add config.rpath.
79383
79384 2005-10-05  Simon Josefsson  <jas@extundo.com>
79385
79386         * m4/memxor.m4: New file.
79387
79388 2005-10-05  Simon Josefsson  <jas@extundo.com>
79389
79390         * lib/memxor.c (memxor): Fix compiler error.
79391
79392         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79393         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79394
79395         * lib/memxor.h, lib/memxor.c: New files.
79396
79397         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79398         we assume all systems have it, suggested by Jim Meyering
79399         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79400         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79401         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79402         same reasons.
79403
79404 2005-10-05  Simon Josefsson  <jas@extundo.com>
79405
79406         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79407
79408 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79411         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79412         needed, since the source code now assumes these .h files.
79413
79414 2005-10-05  Derek Price  <derek@ximbiot.com>
79415
79416         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79417
79418 2005-10-05  Bruno Haible  <bruno@clisp.org>
79419
79420         * modules/stdint (License): Change to LGPL.
79421
79422 2005-10-04  Simon Josefsson  <jas@extundo.com>
79423
79424         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79425         D. Baushke" <mdb@gnu.org>.
79426
79427 2005-10-04  Bruno Haible  <bruno@clisp.org>
79428
79429         * lib/verify.h (verify_true): Provide alternative definition for C++.
79430
79431 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79434         (SSIZE_MAX): New macro, if not already defined.
79435         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79436         than 2 GiB.
79437
79438 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         Sync from coreutils.
79441         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79442         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79443         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79444         ULLONG_MAX doesn't work with 2.7.2.1.
79445
79446 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79447
79448         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79449         From Ben Pfaff.
79450
79451         * modules/exclude (Depends-on): Depend on verify.
79452         * modules/strtoimax (Depends-on): Likewise.
79453         * modules/utimecmp (Depends-on): Likewise.
79454
79455 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79456
79457         * lib/exclude.c: Include verify.h.
79458         (verify): Remove.  All callers changed to use verify.h's version.
79459         * lib/strtoimax.c: Likewise.
79460         * lib/utimecmp.c: Likewis.e
79461
79462         Sync from coreutils.
79463         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79464         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79465         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79466         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79467         bother returning ENOSYS if settimeofday or stime fails; just let
79468         them return whatever errno they want to return.
79469         * lib/utimens.c: Include unistd.h, for dup2.
79470         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79471         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79472
79473 2005-10-02  Jim Meyering  <jim@meyering.net>
79474
79475         Sync from coreutils.
79476         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79477         from glibc-2.2.5 that fails for read-only files.
79478
79479 2005-10-02  Jim Meyering  <jim@meyering.net>
79480
79481         Sync from coreutils.
79482         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79483         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79484         `#if HAVE_CONFIG_H'.
79485         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79486         Remove AT_FDCWD test.
79487         Do not consume the fd unless successful.
79488         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79489         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79490         block, so that we don't even try to compile it if settimeofday is
79491         available.  This works around a compilation failure on OSF1 V5.1,
79492         due to stime requiring a `long int*' while tv_sec is `int'.
79493
79494 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79495
79496         Sync from coreutils.
79497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79498         against `yes', rather than just testing for nonempty.
79499
79500 2005-10-01  Simon Josefsson  <jas@extundo.com>
79501
79502         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79503         and Darwin.
79504
79505         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79506         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79507         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79508         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79509         Check if struct addrinfo is declared.
79510
79511 2005-10-01  Simon Josefsson  <jas@extundo.com>
79512
79513         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79514         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79515         AI_* and EAI_* definitions.  Protect function declarations.
79516
79517 2005-10-01  Jim Meyering  <jim@meyering.net>
79518
79519         Sync from coreutils.
79520
79521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79522         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79523         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79524         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79525         in the inet and nsl libraries.  Required on Solaris 5.7.
79526
79527 2005-10-01  Jim Meyering  <jim@meyering.net>
79528
79529         Sync from coreutils.
79530         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79531         in the inet and nsl libraries.  Required on Solaris 5.7.
79532
79533 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79534
79535         * lib/getdelim.c (getdelim): Remove unused variables.
79536
79537 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79540         so that the code works even with ancient cpp.  Portability problem
79541         with GCC 2.7.2.1 reported by Thomas M.Ott.
79542
79543 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * modules/regex (Depends-on): Add strcase.
79546
79547         * modules/gethostname (Licence): Change from GPL to LGPL, since
79548         gethostname.c is a trivial implementation of a standard library
79549         function.
79550         * modules/poll (License): Change from GPL to LGPL, since it's
79551         derived from LGPL code.
79552
79553 2005-09-27  Jim Meyering  <jim@meyering.net>
79554
79555         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79556         HAVE_CONFIG_H.
79557
79558         * lib/intprops.h (signed_type_or_expr__): Define.
79559         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79560         for unsigned types.
79561
79562 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/verify.h (verify_expr): Remove, replacing with:
79565         (verify_true): New macro that returns true instead of void.
79566         (verify_type__): Remove.
79567         (verify): Use verify_true rather than verify_type__.
79568
79569 2005-09-26  Bruno Haible  <bruno@clisp.org>
79570
79571         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79572         is necessary.
79573         (lib_SOURCES): Remove mbchar.c.
79574         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79575         (Files): Add m4/mbrtowc.m4.
79576         * modules/mbiter: Likewise.
79577         * modules/mbuiter: Likewise.
79578
79579 2005-09-26  Bruno Haible  <bruno@clisp.org>
79580
79581         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79582         compile mbchar.c if they are not both present.
79583         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79584         * m4/mbiter.m4 (gl_MBITER): Likewise.
79585         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79586         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79587         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79588
79589 2005-09-25  Jim Meyering  <jim@meyering.net>
79590
79591         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79592         also uses socklen_t.
79593
79594 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * lib/utimens.c (ENOSYS): Define if not already defined.
79597         (futimens): Support having a null PATH if the file descriptor
79598         is nonnegative.
79599
79600         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79601         Remove.
79602         (__attribute): Define to empty unless GCC 3.1 or later.
79603         This works around a core dump on OpenBSD 3.4, which has GCC
79604         2.95.3, which dumps core when given __attribute__(()).  It also
79605         simplifies other tests, since we really don't want to bother with
79606         worrying about which ancient version of GCC supported what.
79607         Original problem reported by Yoann Vandoorselaere, with part of
79608         the fix suggested by Derek Price.
79609
79610 2005-09-24  Jim Meyering  <jim@meyering.net>
79611
79612         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79613         so we can once again use a positive bitfield width of 1 -- now we
79614         don't have to explain why we were using a bitfield width of 2.
79615
79616 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79619         and similarly for the other external symbols.  Problem reported
79620         by James Gallager.
79621
79622         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79623         bug reported by Jim Meyering.
79624
79625         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79626         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79627         not needed, since socklen is a prerequisite module.
79628
79629 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79632         Problem reported by Eric Blake.
79633         (getaddrinfo): Initialize se so that it's not garbage.
79634         Redo internal storage allocation so that it doesn't make unportable
79635         assumptions about alignment.
79636         Fix a memory leak.
79637
79638         * lib/utimens.c (futimens): Use futimesat if available.
79639         Prefer it to futimes since it doesn't have the futimes bug.
79640
79641         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79642         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79643         Instead, declare a function that returns a pointer to an array,
79644         and use verify_type__ to declare the size of the array.
79645         Problem and germ of a solution reported by Bruno Haible.
79646         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79647         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79648
79649 2005-09-23  Jim Meyering  <jim@meyering.net>
79650
79651         Sync from coreutils.
79652         Correct build failure (socklen_t not defined) on at least
79653         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79655
79656 2005-09-23  Jim Meyering  <jim@meyering.net>
79657
79658         * modules/getaddrinfo (Depends-on): Add socklen.
79659
79660 2005-09-23  Bruno Haible  <bruno@clisp.org>
79661
79662         * tests/test-verify.c: New file.
79663
79664 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79665
79666         Sync from coreutils.
79667
79668         * modules/argmatch (Depends-on): Add verify.
79669         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79670         unistd-safer.
79671         * modules/save-cwd (Depends-on): Likewise.
79672
79673         * modules/openat (Files): Add lib/openat-die.c.
79674         (Depends-on): Remove error, exitfail.
79675         Add dirname.
79676
79677         * modules/verify: New file.
79678         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79679         with "verify" module.
79680
79681 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         Sync from coreutils.
79684
79685         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79686         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79687         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79688         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79689         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79690         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79691         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79692         Don't bother checking for string.h, stdlib.h, unistd.h.
79693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79694         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79695         module's job.
79696         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79697         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79698
79699         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79700         (gl_GETDATE): Use it.
79701
79702         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79703
79704 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         Sync from coreutils.
79707
79708         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79709         stat-time.h.
79710         * lib/argmatch.h: Include verify.h
79711         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79712         (ARGMATCH_ASSERT): Remove; unused.
79713         * lib/canonicalize.c: Assume STDC_HEADERS.
79714         * lib/exclude.c: Include "strcase.h".
79715         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79716         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79717         and stdio-safer.h.
79718         (getusershell): Call fopen, not fopen_safer.
79719         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79720         Do not include unistd-safer.h.
79721         (save_cwd): Don't call fd_safer; no longer needed
79722         now that we include fcntl--.h.
79723
79724         * lib/getdate.y (relative_time): New type.
79725         (RELATIVE_TIME_0): New constant.
79726         (parser_control): Use relative_time instead of doing it ourselves.
79727         (%union): Add new relative_time rel member.
79728         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79729         Now typeless.
79730         (relunit, relunit_snumber): Now of type rel.
79731         (zone, rel, relunit, get_date): Adjust to above changes.
79732
79733         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79734         Do not include unistd-safer.h.
79735         (getloadavg): Don't call fd_safer; no longer needed
79736         now that we include fcntl--.h.
79737
79738         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79739         (make_dir_parents): Treat ENOSYS like EEXIST.
79740
79741         Improve quality of diagnostics on restore_cwd failure.
79742         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79743         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79744         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79745         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79746         each time through the loop.  Do not diagnose restore_cwd failure;
79747         that is the caller's job (and perhaps the caller does not care).
79748
79749         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79750         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79751         If the file already exists but is not a directory, don't bother
79752         to try to make its parents.
79753         Close potential file descriptor leak if we can't chdir("/") (!).
79754         Don't always return true if chdir($PWD) fails; return true only
79755         if the requested action was done successfully (except for the
79756         chdir($PWD)).
79757         Don't log final directory unless we actually made it.
79758         Refactor to avoid duplicate code to fix up permissions.
79759         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79760
79761         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79762         to make it a bit faster and (I hope) clearer.
79763         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79764         Fix bug in formats like %2N.
79765
79766         * lib/verify.h: New file.
79767
79768 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         Sync from coreutils.
79771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79772
79773 2005-09-22  Jim Meyering  <jim@meyering.net>
79774
79775         Sync from coreutils.
79776
79777         * m4/lstat.m4 (gl_FUNC_LSTAT):
79778         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79779         Remove obsolete comment.
79780         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79781         * m4/xstrtod.m4: Likewise.
79782
79783         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79784
79785 2005-09-22  Jim Meyering  <jim@meyering.net>
79786
79787         Sync from coreutils.
79788
79789         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79790
79791         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79792         the .tm_year member, since otherwise gcc-4.0 would now warn about
79793         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79794
79795         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79796         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79797
79798         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79799         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79800         when run in a time zone for which daylight savings time is in effect
79801         for the starting date.
79802
79803         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79804         stop us from restricting permissions of just-created absolute-named
79805         directories.
79806         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79807         to restore initial working directory.
79808         * lib/mkdir-p.c (make_dir_parents): New parameter:
79809         different_working_dir, to tell caller if/when we change the working
79810         directory and are unable to return to the initial one.
79811         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79812         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79813         `return false'.  This fixes a bug introduced on 2004-07-30.
79814
79815         * lib/openat.c (fdopendir): Be sure to close the supplied
79816         file descriptor before returning.  This makes our replacement
79817         implementation a little closer to Solaris's, where fdopendir
79818         ties the file descriptor to the returned DIR* pointer.
79819         * lib/openat.c (unlinkat): New function.
79820         * lib/openat.h (unlinkat): Add prototype.
79821         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79822         (openat_restore_fail): Rename from openat_restore_die.
79823         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79824
79825         Provide an alternative to exiting immediately upon save_cwd or
79826         restore_cwd failure.  Now, an application can arrange e.g.,
79827         to perform a longjump in that case.
79828         * lib/openat.c: Include dirname.h.
79829         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79830         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79831         and openat_restore_die rather than calling error directly.
79832         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79833
79834         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79835         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79836         define.
79837
79838         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79839         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79840                             int utc, int nanoseconds);
79841         Background:
79842         date should not have to allocate a megabyte of virtual memory to
79843         handle a format argument like +%1048575T.  When implemented with
79844         strftime, it must allocate such a buffer, use strftime to fill it
79845         in, print it, then free it.
79846         With fprintftime, it simply prints everything and exits.
79847         With no need for memory allocation, that's one fewer way to fail.
79848         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79849         optional field width, not before, so we accept %9:z, not %:9z.
79850         (my_strftime): Be sure to use L_('x') for literals.
79851
79852         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79853         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79854         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79855         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79856         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79857         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79858         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79859         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79860         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79861         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79862         * lib/xgethostname.c, lib/xreadlink.c:
79863         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79864
79865         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79866         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79867         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79868         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79869         and don't include <sys/file.h>).
79870
79871 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79872
79873         Sync from coreutils.
79874
79875         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79876         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79877         [!LDAV_DONE]: Avoid unused variable warning.
79878
79879 2005-09-21  Bruno Haible  <bruno@clisp.org>
79880
79881         * lib/unicodeio.h (unicode_to_mb): New declaration.
79882
79883 2005-09-20  Derek Price  <derek@ximbiot.com>
79884
79885         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79886         getaddrinfo.h.
79887
79888 2005-09-20  Bruno Haible  <bruno@clisp.org>
79889
79890         * gnulib-tool: Remove trailing slashes from the values specified for
79891         --source-base, --m4-base, --tests-base, --aux-dir.
79892         Suggested by Simon Josefsson <jas@extundo.com>.
79893
79894 2005-09-20  Bruno Haible  <bruno@clisp.org>
79895
79896         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79897         func_modules_to_filelist, func_import, func_create_testdir): Make all
79898         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79899         change when gnulib-tool is invoked in a different locale.
79900
79901 2005-09-19  Simon Josefsson  <jas@extundo.com>
79902
79903         * m4/socklen.m4: Fix typo.
79904
79905 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79906
79907         Use a consistent style for including <config.h>.
79908         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79909         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79910         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79911         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79912         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79913         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79914         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79915         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79916         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79917         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79918         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79919         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79920         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79921         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79922         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79923         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79924         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79925         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79926         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79927         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79928         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79929         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79930         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79931         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79932         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79933         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79934         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79935         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79936         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79937         lib/xstrtoumax.c, lib/yesno.c:
79938         Standardize inclusion of config.h.
79939         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79940         lib/inttostr.h:  Removed inclusion of config.h from header files.
79941         * lib/inttostr.c:  Adjusted in-tree users.
79942         * lib/timespec.h: Remove superfluous warning to include config.h.
79943         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79944         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79945         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79946         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79947         config.h with HAVE_CONFIG_H.
79948
79949 2005-09-19  Jim Meyering  <jim@meyering.net>
79950
79951         * modules/pathmax (License): Change to LGPL.
79952
79953 2005-09-19  Derek Price  <derek@ximbiot.com>
79954
79955         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79956
79957 2005-09-19  Bruno Haible  <bruno@clisp.org>
79958
79959         * gnulib-tool (import): Provide default for --tests-base.
79960
79961 2005-09-19  Bruno Haible  <bruno@clisp.org>
79962
79963         * doc/quote.texi: New file, extracted from gnulib.texi.
79964         * doc/ctime.texi: New file, extracted from gnulib.texi.
79965         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79966         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79967         * doc/gnulib.texi: Include them.
79968
79969 2005-09-18  Bruno Haible  <bruno@clisp.org>
79970
79971         Portability fix.
79972         * gnulib-tool (func_readlink): New function.
79973         (func_ln_if_changed): Use it.
79974
79975 2005-09-18  Bruno Haible  <bruno@clisp.org>
79976
79977         * gnulib-tool: Support --with-tests also with --import.
79978         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79979         (func_import): Use variables $testsbase and $inctests. Emit a
79980         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79981         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79982         SUBDIRS += $testsdir.
79983         (func_create_testdir): Update.
79984
79985 2005-09-18  Bruno Haible  <bruno@clisp.org>
79986
79987         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79988         instead of $dry_run.
79989         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79990         (func_ln_if_changed): Don't handle dry-run here.
79991         (func_import): In dry-run mode, detect more precisely which actions
79992         would be performed, and don't use "...ing" verbs.
79993
79994 2005-09-18  Bruno Haible  <bruno@clisp.org>
79995
79996         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79997         (func_import): Use join on two temporary files instead of three nested
79998         loops, in order to determine which files are new or old.
79999
80000 2005-09-18  Bruno Haible  <bruno@clisp.org>
80001
80002         * gnulib-tool (func_import): Comment out code that spits out the
80003         new files with --dry-run.
80004
80005 2005-09-18  Bruno Haible  <bruno@clisp.org>
80006
80007         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80008
80009 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80010
80011         * lib/stat-time.h: New file.
80012         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80013         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80014         in a different way.
80015         (timespec_cmp): New function.
80016         * lib/utimecmp.c: Include stat-time.h.
80017         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80018         members exist, not on the obsolescent ST_MTIM_NSEC.
80019         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80020
80021 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80024
80025 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80026
80027         * MODULES.html.sh (File system functions): Add stat-time.
80028         * modules/stat-time: New file.
80029         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80030         is now done in a different way, by the stat-time module.
80031         * modules/utimecmp (Depends-on): Add stat-time.
80032
80033 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * m4/st_mtim.m4: Remove.  Superseded by...
80036         * m4/stat-time.m4: New file.
80037         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80038         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80039
80040 2005-09-15  Derek Price  <derek@ximbiot.com>
80041
80042         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80043
80044 2005-09-15  Derek Price  <derek@ximbiot.com>
80045
80046         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80047         * lib/regex_internal.c: Ditto, using this...
80048         (__GNUC_PREREQ): ...new macro.
80049         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80050         using...
80051         (__GNUC_PREREQ): ...this new macro.
80052
80053         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80054
80055 2005-09-15  Derek Price  <derek@ximbiot.com>
80056             Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80059         changes, consolidating in...
80060         * lib/regex_internal.h: ...this file.
80061
80062 2005-09-13  Jim Meyering  <jim@meyering.net>
80063
80064         * lib/canon-host.c: Filter through gnu indent and reword comments
80065         slightly.
80066         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80067
80068 2005-09-13  Derek Price  <derek@ximbiot.com>
80069
80070         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80071         failure.
80072         Reported by Jim Meyering  <jim@meyering.net>.
80073
80074 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80075
80076         * lib/base64.c: Typo.
80077         (base64_encode): Put b64str in initialized data section.
80078
80079 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         Merge glibc and coreutils changes into gnulib, plus a few
80082         extra fixes.
80083         * lib/md5.c: Use #error rather than a string.
80084         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80085         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80086         (__attribute__): Define to empty for non recent-GCC.
80087         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80088         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80089         Renamed from their non-__ counterparts, with new macros replacing
80090         them if not _LIBC.  Add __THROW attribute.
80091         (rol): Remove.
80092         (struct md5_ctx): Align buffer if using GCC.
80093         * lib/sha1.h (struct sha1_ctx): Likewise.
80094         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80095         The old name was backwards.
80096         (NOTSWAP): Remove; not used.
80097         (rol): New macro, moved here from md5.h.
80098         (sha1_process_block): Remove a FIXME that doesn't make sense.
80099
80100 2005-09-12  Derek Price  <derek@ximbiot.com>
80101
80102         Return usable errors from canon-host.
80103         * lib/canon-host.h: New file.
80104         * lib/canon-host.c (canon_host): Wrap...
80105         (canon_host_r): ...this new function, which now relies exclusively on
80106         getaddrinfo.
80107         (ch_strerror): New function.
80108         (last_cherror): New global.
80109         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80110         interface.
80111         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80112         void *.
80113         (freeaddrinfo): Free ai->ai_canonname when set.
80114
80115 2005-09-12  Derek Price  <derek@ximbiot.com>
80116
80117         Make canon-host require getaddrinfo.
80118         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80119         AC_LIBSOURCE canon-host.h.  Call...
80120         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80121         gl_GETADDRINFO.
80122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80123
80124 2005-09-12  Derek Price  <derek@ximbiot.com>
80125
80126         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80127         LGPL.
80128         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80129
80130 2005-09-12  Derek Price  <derek@ximbiot.com>
80131
80132         * lib/gai_strerror.c: Include config.h when available.  Include
80133         getaddrinfo.h before other headers to test interface.
80134         Reported by Larry Jones <lawrence.jones@ugs.com>.
80135
80136 2005-09-12  Derek Price  <derek@ximbiot.com>
80137             Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         * modules/glob (Files): Add glob-libc.h.
80140
80141 2005-09-12  Derek Price  <derek@ximbiot.com>
80142             Paul Eggert  <eggert@cs.ucla.edu>
80143
80144         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80145         glob_.h, glob-libc.h.
80146         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80147
80148 2005-09-12  Derek Price  <derek@ximbiot.com>
80149             Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80152         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80153         protecting things that should be done only in gnulib contexts.
80154         * lib/glob_.h: New file, containing only the glob things needed for
80155         gnulib.
80156         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80157         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80158         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80159         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80160         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80161         and to respect the namespace rules better.
80162
80163 2005-09-08  Simon Josefsson  <jas@extundo.com>
80164
80165         * modules/socklen: New file.
80166
80167 2005-09-08  Simon Josefsson  <jas@extundo.com>
80168
80169         * m4/socklen.m4: New file.
80170
80171 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80172
80173         * modules/utimens (Files): Add m4/utimbuf.m4, since
80174         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80175         Reported by Sergey Poznyakoff.
80176
80177 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80180         definitions, since that's the preferred style in glibc.
80181         Fix a minor spacing issue, and update copyright notice to match
80182         glibc's.
80183
80184 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80187
80188 2005-09-06  Simon Josefsson  <jas@extundo.com>
80189
80190         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80191         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80192
80193 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80196         warning.
80197
80198 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * config/srclist.txt: Add glibc bug 1302.
80201
80202 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         Change bitset word type from unsigned int to unsigned long int,
80205         as this has better performance on typical 64-bit hosts.
80206         Port bitset code to hosts with unusual word sizes.
80207         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80208         (build_collating_symbol):
80209         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80210         argument is a bitset.  This is merely a style issue, but it makes
80211         it clearer that an entire array is expected.
80212         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80213         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80214         Port to the case where bitset_word is not the same as unsigned int.
80215         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80216         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80217         Likewise.
80218         * lib/regexec.c (check_dst_limits_calc_pos_1,
80219         check_subexp_matching_top):
80220         (build_trtable, group_nodes_into_DFAstates):
80221         Likewise.
80222         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80223         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80224         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80225         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80226         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80227         * lib/regcomp.c (optimize_subexps, lower_subexp):
80228         Work even if bitset_word has holes in its bitwise representation.
80229         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80230         * lib/regexec.c (check_dst_limits_calc_pos_1,
80231         check_subexp_matching_top):
80232         Likewise.
80233         * lib/regex_internal.c (re_string_reconstruct):
80234         Don't assume UCHAR_MAX == 255.
80235         * lib/regex_internal.h (bitset_set_all): Likewise.
80236         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80237         All uses changed.
80238         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80239         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80240         All uses changed.
80241         (BITSET_WORD_MAX): New macro.
80242         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80243         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80244         (bitset_empty, bitset_copy):
80245         Prefer sizeof (bitset) to multiplying it out ourselves.
80246         (bitset_not_merge): Remove; unused.
80247         (bitset_contain): Return bool, not unsigned int with one bit on.
80248         All callers changed.
80249         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80250         alignment than re_node_set; do this by defining a new internal
80251         type struct dests_alloc and using it to allocate memory.
80252
80253 2005-09-05  Bruno Haible  <bruno@clisp.org>
80254
80255         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80256         links.
80257
80258 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80259
80260         * modules/size_max (Makefile.am): Add size_max.h
80261
80262 2005-09-04  Derek Price  <derek@ximbiot.com>
80263
80264         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80265
80266 2005-09-03  Simon Josefsson  <jas@extundo.com>
80267
80268         * gnulib-tool: Fix typo.
80269
80270 2005-09-03  Simon Josefsson  <jas@extundo.com>
80271
80272         * config/srclist.txt: Add glibc bug 1293.
80273
80274 2005-09-03  Derek Price  <derek@ximbiot.com>
80275
80276         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80277         From Larry Jones <lawrence.jones@ugs.com>.
80278
80279 2005-09-02  Simon Josefsson  <jas@extundo.com>
80280
80281         * modules/socklen: New file.
80282
80283 2005-09-02  Simon Josefsson  <jas@extundo.com>
80284
80285         * modules/havelib: New module.
80286
80287         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80288         Use havelib.
80289
80290 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         Check for arithmetic overflow when calculating sizes, to prevent
80293         some buffer-overflow issues.  These patches are conservative, in the
80294         sense that when I couldn't determine whether an overflow was possible,
80295         I inserted a run-time check.
80296         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80297         macros.
80298         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80299         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80300         (re_xnrealloc, re_x2nrealloc): New inline functions.
80301         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80302         parse_bracket_exp):
80303         (build_equiv_class, build_charclass): Check for arithmetic overflow
80304         in size expression calculations.
80305         * lib/regex_internal.c (re_string_realloc_buffers):
80306         (build_wcs_upper_buffer, re_node_set_add_intersect):
80307         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80308         (re_dfa_add_node, register_state): Likewise.
80309         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80310         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80311         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80312         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80313
80314 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80317         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80318
80319 2005-09-02  Bruno Haible  <bruno@clisp.org>
80320
80321         Support for lib vs. lib64 distinction on biarch platforms.
80322         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80323         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80325
80326 2005-09-02  Bruno Haible  <bruno@clisp.org>
80327
80328         * gnulib-tool (import): In the other first-use case, provide defaults
80329         as well.
80330
80331 2005-09-02  Bruno Haible  <bruno@clisp.org>
80332
80333         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80334         patches not yet found in the latest gettext release.
80335
80336 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80339         to avoid a collision with bits/local_lim.h in glibc.
80340         All uses changed.  Problem reported by Dmitry V. Levin in
80341         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80342
80343         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80344         bugs in int versus size_t comparisons.
80345         (re_string_context_at): Fix bug where the code assumed that
80346         Idx is signed.
80347
80348         Use bool where appropriate.
80349         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80350         All callers changed.
80351         (calc_eclosure_iter): Likewise, for ROOT arg.
80352         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80353         (build_charclass_op): Likewise, for NON_MATCH arg.
80354         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80355         (re_string_construct_common): Likewise, for ICASE arg.
80356         * lib/regexec.c (re_search_2_stub, re_search_stub):
80357         Likewise, for RET_LEN arg.
80358         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80359         (set_regs): Likewise, for FL_BACKTRACK arg.
80360         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80361         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80362         (calc_eclosure_iter, parse_bracket_exp):
80363         Use bool for internal variables that are booleans.
80364         * lib/regexec.c (re_search_internal, check_matching,
80365         proceed_next_node):
80366         (set_regs, build_sifted_states, sift_states_bkref):
80367         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80368         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80369         (find_collation_sequence_value):
80370         Likewise.
80371         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80372         (re_node_set_compare):
80373         Return bool, not int. All callers changed.
80374         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80375         (build_trtable, check_node_accept): Likewise.
80376         * lib/regex_internal.h: Include stdbool.h.
80377
80378         Fix bugs uncovered when converting to bool.
80379         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80380         failure instead of charging ahead blindly.
80381         * lib/regex_internal.c (register_state): Likewise.
80382         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80383         for freeing internal storage.
80384         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80385         bitset pieces used as boolean, to avoid undefined behavior
80386         on hosts that do int overflow checking.
80387
80388 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * config/srclist.txt: Add glibc bugs 1285-1287.
80391
80392 2005-09-01  Jim Meyering  <jim@meyering.net>
80393
80394         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80395         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80396         Require gl_STAT_MACROS, too.
80397
80398 2005-09-01  Bruno Haible  <bruno@clisp.org>
80399
80400         * gnulib-tool (import): In the first-use case, provide defaults.
80401
80402 2005-09-01  Bruno Haible  <bruno@clisp.org>
80403
80404         * gnulib-tool (func_import): Remove the .tmp files.
80405
80406 2005-09-01  Bruno Haible  <bruno@clisp.org>
80407
80408         * gnulib-tool (func_import): Fix handling of symbolic links.
80409
80410 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80411
80412         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80413         old glibc regex code mishandles strings longer than 2**31 bytes.
80414         This patch fixes this when the regex code is used in gnulib
80415         (i.e., outside glibc).
80416
80417         This patch should not affect the use of the regex code inside
80418         glibc.  No doubt this problem also needs to be handled for glibc
80419         as well, but the result will be an incompatible change to the
80420         glibc ABI, and the old ABI will have to be supported too.  That
80421         can be the the subject for another patch.
80422
80423         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80424         governing whether the rest of this patch is active.  By default,
80425         the macro is disabled and the patch has no effect.
80426         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80427         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80428         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80429         (re_match_2, re_set_registers): Use the new types.
80430         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80431         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80432         New macros.
80433         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80434         (re_string_context_at, bin_tree_t, re_dfastate_t):
80435         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80436         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80437         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80438         (re_string_char_size_at, re_string_wchar_at):
80439         (re_string_elem_size_at):
80440         Use the new types and macros to port to 64-bit hosts.
80441         Use unsigned types for internal values, so that the code
80442         mostly works even for arrays larger than SSIZE_MAX.
80443         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80444         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80445         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80446         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80447         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80448         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80449         (calc_inveclosure, parse_dup_op, build_range_exp):
80450         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80451         (fetch_number, create_token_tree, mark_opt_subexp):
80452         Likewise.
80453         * lib/regex_internal.c (re_string_construct_common,
80454         create_ci_newstate):
80455         (create_cd_newstate, re_string_allocate, re_string_construct):
80456         (re_string_realloc_buffers, build_wcs_upper_buffer):
80457         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80458         (re_string_reconstruct, re_string_peek_byte_case):
80459         (re_string_fetch_byte_case, re_string_context_at):
80460         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80461         (re_node_set_init_copy, re_node_set_add_intersect):
80462         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80463         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80464         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80465         (re_acquire_state, re_acquire_state_context, register_state):
80466         Likewise.
80467         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80468         search_cur_bkref_entry):
80469         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80470         (re_search_internal, re_search_2_stub, re_search_stub)
80471         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80472         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80473         (update_cur_sifted_state, check_dst_limits):
80474         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80475         (check_subexp_limits, sift_states_bkref, merge_state_array):
80476         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80477         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80478         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80479         (expand_bkref_cache, check_node_accept_bytes):
80480         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80481         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80482         (acquire_init_state_context, check_halt_node_context):
80483         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80484         (sift_states_backward, clean_state_log_if_needed):
80485         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80486         (find_recover_state, transit_state_sb, transit_state_mb):
80487         (transit_state_bkref, build_trtable, match_ctx_clean):
80488         Likewise.
80489         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80490         to work around an assumption that REG_MISSING is negative.
80491
80492         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80493         (seek_collating_symbol_entry) [defined _LIBC]:
80494         (lookup_collation_sequence_value) [defined _LIBC]:
80495         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80496         Use prototypes rather than old-style function definitions.
80497         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80498         (transit_state_sb) [0]:
80499         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80500
80501         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80502         rm_eo.
80503
80504         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80505         (optimize_subexps, lower_subexp):
80506         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80507         since the signed shift might overflow.  Use 1u<<31 instead.
80508         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80509         Likewise.
80510         * lib/regexec.c (check_dst_limits_calc_pos_1,
80511         check_subexp_matching_top): Likewise.
80512
80513         * lib/regcomp.c (optimize_subexps, lower_subexp):
80514         Use CHAR_BIT rather than 8, for clarity.
80515         * lib/regexec.c (check_dst_limits_calc_pos_1):
80516         (check_subexp_matching_top): Likewise.
80517         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80518         have to worry about portability issues when shifting it left.
80519         Remove no-longer-needed test for table_size > 0.
80520         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80521         in a word, as the resulting behavior is undefined.
80522         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80523         in one case, a <= should have been an <, and in another case the
80524         whole test was missing.
80525         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80526         the standard name CHAR_BIT.
80527         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80528         this is not true on one's complement and signed-magnitude hosts.
80529
80530         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80531         next_last_offset.
80532         (struct re_dfa_t): Remove unused member states_alloc.
80533         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80534
80535 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80538         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80539         and large-file glibc and in 32-bit large-file Solaris.
80540
80541 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80544         lengths fit in regoff_t; this isn't true if regoff_t is the same
80545         width as size_t.
80546         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80547         (= START + RANGE) instead of RANGE.  This avoids overflow
80548         problems when regoff_t is the same width as size_t.
80549         All callers changed.
80550         (re_search_2_stub): Check for overflow when adding the
80551         sizes of the two strings.
80552         (re_search_stub): Check for overflow when adding START
80553         to RANGE; if it occurs, substitute the extreme value.
80554
80555 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80556
80557         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80558
80559 2005-08-31  Jim Meyering  <jim@meyering.net>
80560
80561         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80562         a pointer-to-const.
80563         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80564         (register_state): Likewise.
80565         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80566         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80567         (group_nodes_into_DFAstates): Likewise.
80568
80569 2005-08-31  Jim Meyering  <jim@meyering.net>
80570
80571         * check-module: Add a FIXME comment.
80572
80573 2005-08-31  Eric Blake  <ebb9@byu.net>
80574
80575         * modules/unistd-safer (Files): Add unistd--.h.
80576         * modules/stdio-safer (Files): Add stdio--.h.
80577
80578 2005-08-31  Derek Price  <derek@ximbiot.com>
80579
80580         * lib/getdelim.c (getdelim): Return EOF on EOF.
80581         Reported by Larry Jones <lawrence.jones@ugs.com>.
80582
80583 2005-08-31  Bruno Haible  <bruno@clisp.org>
80584
80585         Avoid unnecessary diffs in the generated lib/Makefile.am.
80586         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80587         the generated files.
80588         (func_import): Don't set cmd.
80589
80590 2005-08-31  Bruno Haible  <bruno@clisp.org>
80591
80592         * lib/strstr.c: Include <stddef.h>, for NULL.
80593         * lib/strcasestr.c: Likewise.
80594         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80595
80596 2005-08-31  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool: New option --macro-prefix.
80599         (func_import): Use macro_prefix.
80600         (import): Handle option --macro-prefix.
80601
80602 2005-08-31  Bruno Haible  <bruno@clisp.org>
80603
80604         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80605         Also use new variables cached_lgpl, cached_libtool.
80606
80607 2005-08-31  Bruno Haible  <bruno@clisp.org>
80608
80609         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80610         always instantiating them.
80611
80612 2005-08-31  Bruno Haible  <bruno@clisp.org>
80613
80614         * gnulib-tool (func_import): Read the previous cached settings
80615         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80616         earlier added by gnulib but are now dropped. Warn when a gnulib file
80617         overwrites a non-gnulib file.
80618
80619 2005-08-31  Bruno Haible  <bruno@clisp.org>
80620
80621         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80622         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80623         projects that don't keep autogenerated files in CVS. Put into
80624         actioncmd only the specified modules, not the transitive closure.
80625
80626 2005-08-31  Bruno Haible  <bruno@clisp.org>
80627
80628         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80629         Create directories that shall be filled.
80630         (import): Don't look for gl_* macros in configure.ac. Recurse across
80631         all directories containing a gnulib-cache.m4 files, if meaningful.
80632
80633 2005-08-31  Bruno Haible  <bruno@clisp.org>
80634
80635         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80636         (import): Set seen_libtool when we see gl_LIBTOOL.
80637
80638 2005-08-31  Bruno Haible  <bruno@clisp.org>
80639
80640         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80641         declaration macro definitions from generated gnulib.m4.
80642
80643 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80644
80645         * lib/iconvme.h: Add prototype for iconv_alloc.
80646
80647 2005-08-29  Simon Josefsson  <jas@extundo.com>
80648
80649         * lib/iconvme.c: Fix errno.
80650
80651 2005-08-29  Bruno Haible  <bruno@clisp.org>
80652
80653         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80654         that it works when the directory contains spaces.
80655
80656 2005-08-29  Bruno Haible  <bruno@clisp.org>
80657
80658         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80659
80660 2005-08-29  Bruno Haible  <bruno@clisp.org>
80661
80662         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80663         Emit more advice.
80664
80665 2005-08-29  Bruno Haible  <bruno@clisp.org>
80666         and Stepan Kasal  <kasal@ucw.cz>
80667
80668         * check-module: If more parameters are given, check each of them
80669         separately; add more exceptions, as noted by Jim Meyering.
80670         (check_module): New procedure.
80671         (%exempt_header): Now contains all exceptions.
80672
80673 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80674
80675         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80676
80677 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80678
80679         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80680
80681 2005-08-28  Bruno Haible  <bruno@clisp.org>
80682
80683         * m4/gnulib-tool.m4: New file.
80684
80685 2005-08-27  Jim Meyering  <jim@meyering.net>
80686
80687         * modules/unistd-safer (Files): Add pipe-safer.c.
80688         * modules/fcntl-safer (Files): Add creat-safer.c.
80689
80690 2005-08-27  Jim Meyering  <jim@meyering.net>
80691
80692         * m4/stdlib-safer.m4: New file.  From coreutils.
80693         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80694         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80695         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80696         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80697         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80698
80699 2005-08-27  Jim Meyering  <jim@meyering.net>
80700
80701         * lib/fopen-safer.c: Merge minor changes from coreutils.
80702         * lib/dup-safer.c: Likewise.
80703         * lib/fd-safer.c: Likewise.
80704
80705         Merge from coreutils.
80706         * lib/stdio--.h: New file.
80707         * lib/stdlib--.h: New file.
80708         * lib/mkstemp-safer.c: New file.
80709
80710         GNU tar needs these.
80711         * lib/pipe-safer.c: New file.
80712         * lib/creat-safer.c: New file.
80713         * lib/fcntl--.h (creat): Define to creat_safer.
80714         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80715         * lib/unistd--.h (pipe): Define to pipe_safer.
80716         * lib/unistd-safer.h: Declare pipe_safer.
80717
80718 2005-08-26  Simon Josefsson  <jas@extundo.com>
80719
80720         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80721         Haible <bruno@clisp.org>.
80722
80723 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * lib/regex_internal.h: Remove all references to
80726         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80727         or better.
80728         (bitset_not, bitset_merge, bitset_not_merge):
80729         (bitset_mask, re_string_allocate, re_string_construct):
80730         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80731         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80732         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80733         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80734         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80735         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80736         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80737         (re_acquire_state_context):
80738         Remove unnecessary forward decls.
80739         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80740         Put __attribute at function definition,
80741         now that the function decl has been removed.
80742         * lib/regex_internal.c (re_string_peek_byte_case):
80743         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80744         Likewise.
80745
80746 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80747
80748         * m4/regex.m4: Add AC_PREREQ(2.50).
80749         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80750
80751 2005-08-25  Simon Josefsson  <jas@extundo.com>
80752
80753         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80754         __fsetlocking.
80755
80756 2005-08-25  Simon Josefsson  <jas@extundo.com>
80757
80758         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80759         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80760         GLIBC specific code.
80761
80762 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80763
80764         Make regex safe for g++.  This fixes one real bug (an "err"
80765         that should have been "*err").  g++ problem reported by
80766         Sam Steingold.
80767         * lib/regex_internal.h (re_calloc): New macro, consistent with
80768         re_malloc etc.  All callers of calloc changed to use re_calloc.
80769         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80770         not int.  All callers changed.
80771         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80772         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80773         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80774         (find_recover_state): Change "err" to "*err"; this fixes what
80775         appears to be a real bug.
80776         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80777         versus int.
80778
80779 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * modules/regex (Depends-on): Add malloc, since the code
80782         assumes that !malloc(0) means failure.
80783
80784 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80787
80788         alloca modernization/simplification for regex.
80789         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80790         needs to be at the start of the file, and can be moved into
80791         regex_internal.h and simplified.
80792         * lib/regex_internal.h: Include <alloca.h>.
80793         (__libc_use_alloca) [!defined _LIBC]: New macro.
80794         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80795         now works outside glibc.
80796
80797 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80798
80799         * config/srclist.txt: Add glibc bugs 1241, 1245.
80800
80801 2005-08-25  Jim Meyering  <jim@meyering.net>
80802
80803         * lib/open-safer.c: Include <config.h>.
80804         Otherwise, we'd lose LARGEFILE support in any file using
80805         e.g. "fcntl--.h"
80806
80807 2005-08-25  Bruno Haible  <bruno@clisp.org>
80808
80809         * m4/minmax.m4: Require autoconf 2.52.
80810         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80811         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80812         alternatives of translit over the alphabet.
80813         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80814
80815 2005-08-24  Simon Josefsson  <jas@extundo.com>
80816
80817         * tests/test-getpass.c: New file.
80818
80819 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80822         for GNU regex features.
80823
80824 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80827         * lib/regex.h (regerror): Likewise.
80828
80829         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80830         requires this.  (The code never needed it.)
80831
80832         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80833         All uses of recently-renamed identifiers changed to use the new,
80834         POSIX-compliant names.  The code will build and run just fine
80835         without these changes, but it's better to eat our own dog food
80836         and use the standard-conforming names.
80837
80838         * lib/regex.h: Fix a multitude of POSIX name space violations.
80839         These changes have an effect only for programs that define
80840         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80841         do not change anything for programs compiled in the normal way.
80842         Also, there is no effect on the ABI.
80843
80844         (_REGEX_SOURCE): New macro.
80845         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80846         defined and _GNU_SOURCE is not; this fixes a name space violation.
80847
80848         Rename the following macros to obey POSIX requirements.
80849         The old names are still visible as macros if _REGEX_SOURCE is defined.
80850         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80851         RE_BACKSLASH_ESCAPE_IN_LISTS.
80852         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80853         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80854         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80855         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80856         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80857         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80858         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80859         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80860         (REG_INTERVALS): renamed from RE_INTERVALS.
80861         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80862         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80863         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80864         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80865         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80866         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80867         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80868         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80869         RE_UNMATCHED_RIGHT_PAREN_ORD.
80870         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80871         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80872         (REG_DEBUG): renamed from RE_DEBUG.
80873         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80874         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80875         unusual, since we can't clash with the POSIX REG_ICASE.
80876         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80877         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80878         (REG_NO_SUB): renamed from RE_NO_SUB.
80879         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80880         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80881         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80882         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80883         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80884         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80885         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80886         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80887         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80888         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80889         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80890         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80891         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80892         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80893         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80894         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80895         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80896         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80897         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80898         (REG_FIXED): Renamed from REGS_FIXED.
80899         (REG_NREGS): Renamed from RE_NREGS.
80900
80901         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80902         of other REG_* macros, since POSIX says the user is allowed to
80903         #undef these macros selectively.
80904
80905         (reg_errcode_t): Update comment stating what other tables need
80906         to be consistent.
80907
80908         Rename the following enum values to obey POSIX requirements.
80909         The old names are still visible as macros.
80910         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80911         is not defined, since GNU is supposed to be a superset of POSIX as
80912         much as possible, and since we want reg_errcode_t to be a signed
80913         type for implementation consistency.
80914         (_REG_NOERROR): Renamed from REG_NOERROR.
80915         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80916         (_REG_BADPAT): Renamed from REG_BADPAT.
80917         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80918         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80919         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80920         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80921         (_REG_EBRACK): Renamed from REG_EBRACK.
80922         (_REG_EPAREN): Renamed from REG_EPAREN.
80923         (_REG_EBRACE): Renamed from REG_EBRACE.
80924         (_REG_BADBR): Renamed from REG_BADBR.
80925         (_REG_ERANGE): Renamed from REG_ERANGE.
80926         (_REG_ESPACE): Renamed from REG_ESPACE.
80927         (_REG_BADRPT): Renamed from REG_BADRPT.
80928         (_REG_EEND): Renamed from REG_EEND.
80929         (_REG_ESIZE): Renamed from REG_ESIZE.
80930         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80931         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80932         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80933         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80934         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80935
80936         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80937         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80938         changed.  But support the old name if the new one is not defined
80939         and if _REGEX_SOURCE.
80940
80941         Change the following member names in struct re_pattern_buffer.
80942         The old names are still supported if !_REGEX_SOURCE.
80943         The new names are always supported, regardless of _REGEX_SOURCE.
80944         (re_buffer): Renamed from buffer.
80945         (re_allocated): Renamed from allocated.
80946         (re_used): Renamed from used.
80947         (re_syntax): Renamed from syntax.
80948         (re_fastmap): Renamed from fastmap.
80949         (re_translate): Renamed from translate.
80950         (re_can_be_null): Renamed from can_be_null.
80951         (re_regs_allocated): Renamed from regs_allocated.
80952         (re_fastmap_accurate): Renamed from fastmap_accurate.
80953         (re_no_sub): Renamed from no_sub.
80954         (re_not_bol): Renamed from not_bol.
80955         (re_not_eol): Renamed from not_eol.
80956         (re_newline_anchor): Renamed from newline_anchor.
80957
80958         Change the following member names in struct re_registers.
80959         The old names are still supported if !_REGEX_SOURCE.
80960         The new names are always supported, regardless of _REGEX_SOURCE.
80961         (rm_num_regs): Renamed from num_regs.
80962         (rm_start): Renamed from start.
80963         (rm_end): Renamed from end.
80964
80965         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80966         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80967         Prepend __ to parameter names.
80968
80969         Undo yesterday's changes.
80970
80971 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80974         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80975         lib/regex.c.
80976
80977 2005-08-24  Jim Meyering  <jim@meyering.net>
80978
80979         Sync from coreutils.
80980         * m4/fcntl-safer.m4: New file.
80981
80982         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80983         and object files for this module.
80984
80985 2005-08-24  Jim Meyering  <jim@meyering.net>
80986
80987         Sync from coreutils.
80988         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80989
80990 2005-08-24  Jim Meyering  <jim@meyering.net>
80991
80992         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80993         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80994
80995 2005-08-24  Jim Meyering  <jim@meyering.net>
80996
80997         * modules/fcntl-safer: New module.
80998         * modules/fts (Depends-on): Add fcntl-safer.
80999         * MODULES.html.sh (File descriptor based Input/Output):
81000         Add fcntl-safer.
81001
81002 2005-08-24  Bruno Haible  <bruno@clisp.org>
81003
81004         Support for unit test modules.
81005         * modules/README: Mention tests modules.
81006         * modules/TEMPLATE-TESTS: New file.
81007         * gnulib-tool: New options --extract-tests-module, --with-tests and
81008         --tests-base (unused for the moment).
81009         (testsbase, inctests): New variables.
81010         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81011         (func_verify_module): Exclude TEMPLATE-TESTS.
81012         (func_verify_nontests_module, func_verify_tests_module): New functions.
81013         (func_get_dependencies): Add implicit dependency for tests modules.
81014         (func_get_tests_module): New function.
81015         (func_modules_transitive_closure): When --with-tests was specified,
81016         include the unit tests as well, unless explicitly avoided.
81017         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81018         (func_emit_tests_Makefile_am): New function.
81019         (func_create_testdir): When --with-tests was specified, emit a
81020         tests/ directory.
81021         * MODULES.html.sh (Future developments): Update.
81022
81023 2005-08-24  Bruno Haible  <bruno@clisp.org>
81024
81025         * modules/tls-tests: New file.
81026         * tests/test-tls.c: New file, from GNU gettext.
81027
81028 2005-08-24  Bruno Haible  <bruno@clisp.org>
81029
81030         * modules/lock-tests: New file.
81031         * tests/test-lock.c: New file, from GNU gettext.
81032
81033 2005-08-24  Bruno Haible  <bruno@clisp.org>
81034
81035         * lib/lock.h: Add multiple inclusion guard.
81036         * lib/tls.h: Add multiple inclusion guard.
81037
81038 2005-08-24  Bruno Haible  <bruno@clisp.org>
81039
81040         * gnulib-tool: Add support for the --aux-dir option to
81041         --create-testdir, --create-megatestdir, --test, --megatest.
81042         (func_create_testdir, func_create_megatestdir): Optionally emit a
81043         AC_CONFIG_AUX_DIR directive.
81044         (create-testdir, create-megatestdir, test, megatest): Provide a
81045         default value for $auxdir.
81046
81047 2005-08-24  Bruno Haible  <bruno@clisp.org>
81048
81049         * gnulib-tool (import): Use compound statement instead of subshell
81050         where possible.
81051
81052 2005-08-24  Bruno Haible  <bruno@clisp.org>
81053
81054         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81055
81056 2005-08-24  Bruno Haible  <bruno@clisp.org>
81057
81058         * gnulib-tool (func_version): Update.
81059
81060 2005-08-24  Bruno Haible  <bruno@clisp.org>
81061
81062         * gnulib-tool (func_import, func_create_testdir,
81063         func_create_megatestdir): Quote all autoconf macro arguments.
81064
81065 2005-08-24  Bruno Haible  <bruno@clisp.org>
81066
81067         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81068         option --force, because --force causes the aclocal.m4 of each
81069         subdirectory to be newer than the corresponding config.h.in.
81070
81071 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81074         All contents moved to gl_REGEX.
81075         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81076         assume that it does.
81077
81078 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * lib/regex.h (REG_NOSYS)
81081         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81082         Define, since POSIX requires it as of 2001.
81083         (_REG_ENOSYS)
81084         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81085         New private symbol, used to keep the enum signed in all cases.
81086         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81087         Youngman in
81088         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81089
81090         * lib/regex_internal.c (re_string_skip_chars, register_state):
81091         (calc_state_hash):
81092         Remove forward decls; no longer needed now that we use prototypes.
81093         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81094         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81095         (clean_state_log_if_needed): Likewise.
81096
81097 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         * config/srclist.txt: Add glibc bugs 1231-1233.
81100
81101 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         Fix problems reported by Sam Steingold in
81104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81105         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81106         assumed that reg_errcode_t is a signed type, which is not
81107         necessarily true if _XOPEN_SOURCE is not defined.
81108         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81109         since some compilers warn about it otherwise.
81110
81111 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81112
81113         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81114         (init_word_char, create_initial_state, duplicate_node_closure):
81115         (fetch_token, peek_token_bracket, build_range_exp):
81116         (build_collating_symbol): Remove forward decls; no longer needed
81117         now that we use prototypes.
81118
81119         * lib/regcomp.c:
81120         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81121         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81122         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81123         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81124         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81125         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81126         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81127         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81128         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81129         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81130         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81131         (build_charclass, build_charclass_op, fetch_number, create_tree):
81132         (create_token_tree, mark_opt_subexp, duplicate_tree):
81133         Use prototypes rather than old-style definitions.
81134
81135         * lib/regex_internal.c:
81136         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81137         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81138         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81139         (re_string_reconstruct, re_string_peek_byte_case):
81140         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81141         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81142         (re_node_set_init_copy, re_node_set_add_intersect):
81143         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81144         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81145         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81146         (re_acquire_state, re_acquire_state_context, register_state):
81147         (create_ci_newstate, create_cd_newstate, free_state):
81148         Likewise.
81149         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81150         re_search_2):
81151         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81152         (re_search_internal, prune_impossible_nodes):
81153         (acquire_init_state_context, check_matching, static):
81154         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81155         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81156         (update_regs, sift_states_backward, build_sifted_states):
81157         (clean_state_log_if_needed, merge_state_array):
81158         (update_cur_sifted_state, add_epsilon_src_nodes):
81159         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81160         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81161         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81162         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81163         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81164         (check_arrival, check_arrival_add_next_nodes):
81165         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81166         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81167         (check_node_accept_bytes, check_node_accept, extend_buffers):
81168         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81169         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81170         (sift_ctx_init):
81171         Likewise.
81172
81173         * lib/regex_internal.h:
81174         (re_string_allocate, re_string_construct, re_string_reconstruct):
81175         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81176         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81177         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81178         (re_string_context_at, re_string_peek_byte_case):
81179         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81180         is defined, since we now use prototypes always.
81181
81182         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81183         C89 or better.  All uses removed.
81184
81185 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * config/srclist.txt: Add glibc bugs 1220-1227.
81188
81189 2005-08-20  Jim Meyering  <jim@meyering.net>
81190
81191         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81192         of unused local, dfa.
81193
81194 2005-08-20  Bruno Haible  <bruno@clisp.org>
81195
81196         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81197
81198 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81199
81200         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81201         (re_node_set_insert_last, re_dfa_add_node):
81202         Rename local variables to avoid GCC shadowing warnings.
81203
81204 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81207         [defined lint]: Suppress bogus uninitialized-variable warnings.
81208
81209         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81210         and let the caller return REG_ESPACE if out of space.  This
81211         removes an uninitialied-variable warning with GCC 4.0.1, and also
81212         avoids taking the address of a local variable.  All callers
81213         changed.
81214
81215 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81218         $LIBCSRC/posix/regexec.c.
81219         Add glibc bug 1217 for regcomp.c.
81220
81221 2005-08-19  Jim Meyering  <jim@meyering.net>
81222
81223         * lib/regexec.c (proceed_next_node): Redo local variables to
81224         avoid GCC shadowing warnings.
81225
81226 2005-08-18  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/strstr.c (strstr): Fix return value in multibyte case.
81229         * lib/strcasestr.c (strcasestr): Likewise.
81230
81231 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81234
81235 2005-08-17  Jim Meyering  <jim@meyering.net>
81236
81237         Make the %s format (seconds since the epoch) work for a negative
81238         number and when used with a zero-padded field width, e.g. %015s.
81239
81240         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81241         label so that it precedes the code to set `digits'.  Otherwise,
81242         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81243         print `00-22'.  Now, it prints `-0022', as it should.
81244
81245 2005-08-17  Bruno Haible  <bruno@clisp.org>
81246
81247         * modules/strstr (Files): Add m4/mbrtowc.m4.
81248         (Depends-on): Add mbuiter.
81249
81250 2005-08-17  Bruno Haible  <bruno@clisp.org>
81251
81252         * modules/strcasestr: New file.
81253         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81254         strcasestr.
81255
81256 2005-08-17  Bruno Haible  <bruno@clisp.org>
81257
81258         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81259
81260 2005-08-17  Bruno Haible  <bruno@clisp.org>
81261
81262         * modules/mbuiter: New file.
81263         * MODULES.html.sh (Extended multibyte and wide character utilities):
81264         Add mbuiter.
81265
81266 2005-08-17  Bruno Haible  <bruno@clisp.org>
81267
81268         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81269         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81270
81271 2005-08-17  Bruno Haible  <bruno@clisp.org>
81272
81273         * m4/strcasestr.m4: New file.
81274
81275 2005-08-17  Bruno Haible  <bruno@clisp.org>
81276
81277         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81278         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81279
81280 2005-08-17  Bruno Haible  <bruno@clisp.org>
81281
81282         * lib/strcasestr.h: New file.
81283         * lib/strcasestr.c: New file.
81284
81285 2005-08-17  Bruno Haible  <bruno@clisp.org>
81286
81287         * lib/strcasecmp.c: Use mbuiter.h.
81288
81289 2005-08-17  Bruno Haible  <bruno@clisp.org>
81290
81291         * lib/mbuiter.h: New file.
81292
81293 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81296         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81297         and gl_GETOPT are both invoked via different paths (as happens
81298         with GNU tar CVS because it uses both argp and getopt), the former
81299         wins.
81300
81301 2005-08-16  Bruno Haible  <bruno@clisp.org>
81302
81303         * modules/tls: New file.
81304         * MODULES.html.sh (Multithreading): Add tls.
81305
81306 2005-08-16  Bruno Haible  <bruno@clisp.org>
81307
81308         * modules/strnlen1: New file.
81309         * MODULES.html.sh (String handling): Add strnlen1.
81310
81311 2005-08-16  Bruno Haible  <bruno@clisp.org>
81312
81313         * modules/strcase (Files): Add m4/mbrtowc.m4.
81314         (Depends-on): Add strnlen1, mbchar.
81315
81316 2005-08-16  Bruno Haible  <bruno@clisp.org>
81317
81318         * modules/mbiter: New file.
81319         * MODULES.html.sh (Extended multibyte and wide character utilities):
81320         Add mbiter.
81321
81322 2005-08-16  Bruno Haible  <bruno@clisp.org>
81323
81324         * modules/mbfile: New file.
81325         * MODULES.html.sh (Extended multibyte and wide character utilities):
81326         Add mbfile.
81327
81328 2005-08-16  Bruno Haible  <bruno@clisp.org>
81329
81330         * modules/mbchar: New file.
81331         * MODULES.html.sh (Extended multibyte and wide character utilities):
81332         New section.
81333
81334 2005-08-16  Bruno Haible  <bruno@clisp.org>
81335
81336         * m4/tls.m4: New file, from GNU gettext.
81337
81338 2005-08-16  Bruno Haible  <bruno@clisp.org>
81339
81340         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81341         always.
81342         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81343
81344 2005-08-16  Bruno Haible  <bruno@clisp.org>
81345
81346         * m4/mbiter.m4: New file.
81347
81348 2005-08-16  Bruno Haible  <bruno@clisp.org>
81349
81350         * m4/mbfile.m4: New file.
81351
81352 2005-08-16  Bruno Haible  <bruno@clisp.org>
81353
81354         * m4/mbchar.m4: New file.
81355
81356 2005-08-16  Bruno Haible  <bruno@clisp.org>
81357
81358         * lib/tls.h: New file, from GNU gettext.
81359         * lib/tls.c: New file, from GNU gettext.
81360
81361 2005-08-16  Bruno Haible  <bruno@clisp.org>
81362
81363         * lib/strnlen1.h: New file.
81364         * lib/strnlen1.c: New file.
81365
81366 2005-08-16  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81369         (mbi_init): Update.
81370         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81371         NUL byte, not after it.
81372
81373 2005-08-16  Bruno Haible  <bruno@clisp.org>
81374
81375         * lib/strcase.h (strcasecmp): Add note in comments.
81376         * lib/strncasecmp.c: Use code from strcasecmp.c.
81377         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81378         (strcasecmp): Work correctly in multibyte locales.
81379
81380 2005-08-16  Bruno Haible  <bruno@clisp.org>
81381
81382         * lib/mbiter.h: New file.
81383
81384 2005-08-16  Bruno Haible  <bruno@clisp.org>
81385
81386         * lib/mbfile.h: New file.
81387
81388 2005-08-16  Bruno Haible  <bruno@clisp.org>
81389
81390         * lib/mbchar.h: New file.
81391         * lib/mbchar.c: New file.
81392
81393 2005-08-16  Bruno Haible  <bruno@clisp.org>
81394
81395         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81396         the valid ones. Makes the comparison operations transitive:
81397         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81398         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81399
81400 2005-08-15  Simon Josefsson  <jas@extundo.com>
81401
81402         * modules/ssize_t (License): Change to 'unlimited'.
81403
81404         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81405
81406 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81409         Add comments for each pending glibc patch.
81410
81411 2005-08-15  Bruno Haible  <bruno@clisp.org>
81412
81413         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81414         __cplusplus is defined.
81415
81416 2005-08-14  Jim Meyering  <jim@meyering.net>
81417
81418         Sync from coreutils.
81419
81420         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81421         Use the hash-table-based cycle-detection code not just when
81422         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81423         Reported by James Youngman in
81424         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81425         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81426         FTS_TIGHT_CYCLE_CHECK.
81427         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81428         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81429         once again.
81430         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81431         * lib/fts.c (fd_safer): Remove decl.
81432         Include fcntl--.h rather than unistd-safer.h
81433         (fts_safe_changedir): Don't call fd_safer; no longer needed
81434         now that we include fcntl--.h.
81435
81436 2005-08-12  Simon Josefsson  <jas@extundo.com>
81437
81438         * modules/getndelim2: Use ssize_t module.
81439         * modules/getnline: Likewise.
81440         * modules/safe-read: Likewise.
81441         * modules/xreadlink: Likewise.
81442
81443         * modules/ssize_t: New file.
81444
81445 2005-08-12  Simon Josefsson  <jas@extundo.com>
81446
81447         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81448
81449 2005-08-12  Simon Josefsson  <jas@extundo.com>
81450
81451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81452         ssize_t.
81453
81454 2005-08-12  Simon Josefsson  <jas@extundo.com>
81455
81456         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81457         readline, getdelim and check_version.
81458         (Support for systems lacking ISO C 99: Sizes of integer types):
81459         Add size_max.
81460
81461 2005-08-12  Bruno Haible  <bruno@clisp.org>
81462
81463         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81464
81465 2005-08-11  Simon Josefsson  <jas@extundo.com>
81466
81467         * modules/readline: New file.
81468
81469         * modules/strnlen (Files): Add strnlen.h.
81470
81471 2005-08-11  Simon Josefsson  <jas@extundo.com>
81472
81473         * m4/readline.m4: New file.
81474
81475 2005-08-11  Simon Josefsson  <jas@extundo.com>
81476
81477         * lib/readline.h, readline.c: New file.
81478
81479 2005-08-11  Simon Josefsson  <jas@extundo.com>
81480
81481         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81482         gl_AVOID.
81483
81484 2005-08-11  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81487
81488 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81489
81490         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81491
81492 2005-08-10  Simon Josefsson  <jas@extundo.com>
81493
81494         * tests/test-iconvme.c: New file.
81495
81496 2005-08-10  Simon Josefsson  <jas@extundo.com>
81497
81498         * m4/strnlen.m4: New file.
81499
81500         * m4/strndup.m4: Don't check for strnlen declaration, done in
81501         strnlen.m4.
81502
81503 2005-08-10  Simon Josefsson  <jas@extundo.com>
81504
81505         * lib/strndup.c: Use strnlen.h.
81506
81507         * lib/strnlen.h: New file.
81508
81509 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81510
81511         * README: Typos.
81512
81513 2005-08-02  Simon Josefsson  <jas@extundo.com>
81514
81515         * modules/readline: New file.
81516
81517 2005-08-02  Simon Josefsson  <jas@extundo.com>
81518
81519         * modules/getdelim: New file.
81520
81521         * modules/getline: Rewrite, don't use getndelim2.
81522
81523 2005-08-02  Simon Josefsson  <jas@extundo.com>
81524
81525         * m4/getline.m4: Separate out getdelim stuff into separate module.
81526
81527         * m4/getdelim.m4: New file.
81528
81529 2005-08-02  Simon Josefsson  <jas@extundo.com>
81530
81531         * lib/getline.h, getline.c: Rewrite.
81532
81533         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81534
81535 2005-07-31  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/lock.h (gl_lock_initializer): New macro.
81538         (gl_lock_define_initialized): Use it.
81539         (gl_rwlock_initializer): New macro.
81540         (gl_rwlock_define_initialized): Use it.
81541         (gl_recursive_lock_initializer): New macro.
81542         (gl_recursive_lock_define_initialized): Use it.
81543
81544 2005-07-30  Karl Berry  <karl@gnu.org>
81545
81546         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81547         Report from Ben Pfaff, regarding getopt.
81548
81549 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81552         normal way.
81553         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81554         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81555         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81556         (gl_GETOPT): Use the new macros.  Most of the implementation
81557         is moved to the new macros.  This is for programs like Emacs
81558         that don't want all the functionality of gl_GETOPT.
81559
81560 2005-07-26  Bruno Haible  <bruno@clisp.org>
81561
81562         * m4/lock.m4: Update from GNU gettext.
81563
81564 2005-07-26  Bruno Haible  <bruno@clisp.org>
81565
81566         * lib/lock.h: Update from GNU gettext.
81567         * lib/lock.c: Update from GNU gettext.
81568
81569 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81570
81571         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81572         obsolescent AC_TRY_RUN.  Include the default includes files, for
81573         'exit'.
81574
81575 2005-07-24  Bruno Haible  <bruno@clisp.org>
81576
81577         * modules/visibility: New file.
81578         * MODULES.html.sh (Misc): Add visibility.
81579
81580 2005-07-24  Bruno Haible  <bruno@clisp.org>
81581
81582         * m4/visibility.m4: New file.
81583
81584 2005-07-24  Bruno Haible  <bruno@clisp.org>
81585
81586         * doc/visibility.texi: New file.
81587
81588 2005-07-22  Bruno Haible  <bruno@clisp.org>
81589
81590         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81591         $(ALLOCA_H), redundant through BUILT_SOURCES.
81592         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81593         redundant through BUILT_SOURCES.
81594         * modules/byteswap (Makefile.am): Remove explicit dependency on
81595         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81596         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81597         $(FNMATCH_H), redundant through BUILT_SOURCES.
81598         * modules/getopt (Makefile.am): Remove explicit dependency on
81599         $(GETOPT_H), redundant through BUILT_SOURCES.
81600         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81601         redundant through BUILT_SOURCES.
81602         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81603         redundant through BUILT_SOURCES.
81604         * modules/stdbool (Makefile.am): Remove explicit dependency on
81605         $(STDBOOL_H), redundant through BUILT_SOURCES.
81606         * modules/stdint (Makefile.am): Remove explicit dependency on
81607         $(STDINT_H), redundant through BUILT_SOURCES.
81608         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81609         Remove explicit dependency on $(SYSEXITS_H).
81610         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81611
81612 2005-07-18  Simon Josefsson  <jas@extundo.com>
81613
81614         * lib/check-version.c (check_version): Accept identical versions too.
81615
81616 2005-07-18  Bruno Haible  <bruno@clisp.org>
81617
81618         * modules/lock: New file.
81619         * MODULES.html.sh (Multithreading): New section.
81620
81621 2005-07-18  Bruno Haible  <bruno@clisp.org>
81622
81623         * m4/lock.m4: New file, from GNU gettext.
81624
81625 2005-07-18  Bruno Haible  <bruno@clisp.org>
81626
81627         * lib/lock.h: New file, from GNU gettext.
81628         * lib/lock.c: New file, from GNU gettext.
81629
81630 2005-07-18  Bruno Haible  <bruno@clisp.org>
81631
81632         * lib/lock.h (gl_once_t): New type.
81633         (gl_once_define, gl_once): New macros.
81634         * lib/lock.c (fresh_once): New variable.
81635         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81636         functions.
81637
81638 2005-07-16  Simon Josefsson  <jas@extundo.com>
81639
81640         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81641         workaround, suggested by Bruno.
81642
81643 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * modules/xalloc (Depends-on): Add xalloc-die.
81646         * modules/xvasprintf (Depends-on): Add xalloc-die.
81647
81648 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81651         with a minor change.
81652
81653 2005-07-15  Bruno Haible  <bruno@clisp.org>
81654
81655         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81656         When using lib/poll.c, define poll as rpl_poll.
81657
81658 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         * modules/argp (Depends-on): Remove unlocked-io.
81661
81662 2005-07-14  Derek Price  <derek@ximbiot.com>
81663
81664         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81665         for glob symlink bug.
81666
81667 2005-07-14  Bruno Haible  <bruno@clisp.org>
81668
81669         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81670         Instead, test for *_unlocked function declarations directly.
81671
81672 2005-07-11  Simon Josefsson  <jas@extundo.com>
81673
81674         * modules/size_max: New file.
81675
81676         * modules/xsize: Depend on size_max module for size_max.m4.
81677
81678 2005-07-11  Simon Josefsson  <jas@extundo.com>
81679
81680         * lib/size_max.h: New file.
81681
81682 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81683
81684         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81685         copyright symbol and the year.
81686         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81687         (version_etc_va): Use parameterized copyright notice.
81688         Reword to conform to the current GNU coding standards.
81689
81690 2005-07-11  Karl Berry  <karl@gnu.org>
81691
81692         * doc/gnulib.texi (Quoting): new node.
81693         (Initial import): more info, from Patrice.
81694
81695 2005-07-11  Bruno Haible  <bruno@clisp.org>
81696
81697         * gnulib-tool (func_usage): Document option --avoid.
81698         (Command line options): Handle --avoid.
81699         (func_acceptable): New function.
81700         (func_modules_transitive_closure): Use it.
81701
81702 2005-07-11  Bruno Haible  <bruno@clisp.org>
81703
81704         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81705         Reported by Jim Meyering.
81706
81707 2005-07-10  Bruno Haible  <bruno@clisp.org>
81708
81709         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81710         Needed when size_t is smaller than 'unsigned int'.
81711         Reported by Paul Eggert.
81712
81713 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81714
81715         * modules/argp (Depends-on): Add unlocked-io
81716
81717 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81718
81719         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81720         block of defines.
81721
81722 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81723
81724         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81725         fix now.
81726
81727 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81728         and Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81731         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81732
81733 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * modules/regex (Files): Add lib/regex_internal.c,
81736         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81737         (Depends-on): Add extensions.
81738         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81739
81740 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81743         pathconf.
81744         * m4/same.m4 (gl_SAME): Likewise.
81745         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81746
81747         * m4/regex.m4: Adjust to new libc regex implementation.
81748         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81749         all the .c and .h parts of (the new) regex.
81750         Quote the m4 stuff better.
81751         Check for RE_ICASE bug of old gnulib.
81752         Check for REG_STARTEND of recent libc.
81753         Rename local variables from jm_* to gl_*.
81754         Quote operand of "test -f".
81755         Say "recent enough" version of libc, not "version 2".
81756         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81757         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81758         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81759         Remove check for btowc, isascii.
81760         Require AM_LANGINFO_CODESET.
81761
81762 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * lib/regex.c, regex.h: Sync from libc.
81765         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81766         * lib/regexec.c:
81767         New files, synced from libc, except that regex_internal.h
81768         currently has a small porting fix.
81769
81770 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81771
81772         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81773         regex_internal.c, regexec.c.
81774         Add regex_internal.h too, but as a comment, since the libc version
81775         is currently broken in gnulib mode.
81776
81777 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81778
81779         Support programs like Emacs that use gnulib but not gettext.
81780         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81781         * modules/gettext-h: New file.
81782         * modules/gettext (Files): Remove lib/gettext.h.
81783         (Depends-on): Add gettext-h.
81784         (Makefile.am): Remove lib_SOURCES.
81785         * modules/argmatch, modules/c-stack, modules/closeout:
81786         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81787         * modules/execute, modules/file-type, modules/getaddrinfo:
81788         * modules/getopt, modules/human, modules/javacomp:
81789         * modules/javaexec, modules/mkdir-p, modules/obstack:
81790         * modules/openat, modules/pagealign_alloc, modules/pipe:
81791         * modules/quotearg, modules/regex, modules/rpmatch:
81792         * modules/unicodeio, modules/userspec, modules/version-etc:
81793         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81794         * modules/xsetenv:
81795         Depend on gettext-h, not gettext.
81796
81797 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81798
81799         * gnulib-tool (func_import): Add support for 'public domain' license.
81800         * modules/alloca, modules/atexit, modules/memmove:
81801         Now public domain, not GPL.
81802         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81803         * modules/realloc, modules/strerror, modules/strtod:
81804         Now LGPL, not GPL.
81805
81806 2005-07-05  Bruno Haible  <bruno@clisp.org>
81807
81808         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81809         autoconf CVS. Needed for mingw.
81810
81811 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81812
81813         Remove the dependency of the strftime module on the tzset module.
81814         * modules/strftime (Depends-on): Remove dependency on tzset.
81815
81816 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         Remove the dependency of the strftime module on the tzset module.
81819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81820         gl_FUNC_TZSET_CLOBBER.
81821
81822 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         Remove the dependency of the strftime module on the tzset module.
81825         * lib/strftime.c (my_strftime)
81826         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81827         Copy the input structure, to work around some of the bug with
81828         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81829         Solaris releases, you should also use the tzset module, but we won't
81830         require it as a dependency any more since we don't want LGPLed code
81831         to depend on GPLed code.
81832
81833 2005-07-02  Jim Meyering  <jim@meyering.net>
81834
81835         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81836         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81837         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81838         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81839
81840 2005-07-02  Jim Meyering  <jim@meyering.net>
81841
81842         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81843
81844 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81845
81846         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81847         declares only 'struct timespec;' (!).
81848
81849 2005-07-01  Jim Meyering  <jim@meyering.net>
81850
81851         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81852         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81853         * lib/save-cwd.c, tempname.c:
81854         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81855         and don't include <sys/file.h>).
81856
81857 2005-06-29  Jim Meyering  <jim@meyering.net>
81858
81859         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81860         type name.  Use the variable name instead.
81861         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81862         Likewise.
81863
81864 2005-06-28  Simon Josefsson  <jas@extundo.com>
81865
81866         * modules/check-version (Files): Add check-version.m4.
81867
81868 2005-06-28  Simon Josefsson  <jas@extundo.com>
81869
81870         * m4/check-version.m4: New file, suggested by Jim Meyering
81871         <jim@meyering.net>.
81872
81873 2005-06-28  Simon Josefsson  <jas@extundo.com>
81874
81875         * lib/check-version.h, lib/check-version.c: New files.
81876
81877 2005-06-28  Simon Josefsson  <jas@extundo.com>
81878
81879         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81880         collision with global variable.  Better indentation.  Don't
81881         increment buffer pointer beyond buffer end.  Based on comments
81882         from Paul Eggert <eggert@cs.ucla.edu>.
81883
81884         * lib/base64.h: Indent.
81885
81886 2005-06-28  Simon Josefsson  <jas@extundo.com>
81887
81888         * doc/gnulib.texi (Library version handling): New section.
81889
81890 2005-06-28  Jim Meyering  <jim@meyering.net>
81891
81892         * check-module (find_included_lib_files): Hard-code another
81893         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81894         but modules/fts-lgpl (correctly) does not list those files.
81895
81896         * modules/canonicalize (Files): Add lib/pathmax.h.
81897
81898 2005-06-25  Simon Josefsson  <jas@extundo.com>
81899
81900         * modules/check-version: New file.
81901
81902 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81905         initializer of struct addrinfo, as an indication that we don't
81906         care how many members the structure has.
81907
81908 2005-06-24  Derek Price  <derek@ximbiot.com>
81909         and Bruno Haible  <bruno@clisp.org>
81910
81911         Remove stat module & update lstat.
81912         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81913         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81914         * m4/stat.m4: Remove this file.
81915
81916 2005-06-24  Derek Price  <derek@ximbiot.com>
81917         and Bruno Haible  <bruno@clisp.org>
81918
81919         Remove stat module & update lstat.
81920         * lib/stat.c: Remove this file...
81921         (slash_aware_lstat): ...moving this content and its support...
81922         * lib/lstat.c (rpl_lstat): ...into here.
81923         * lib/lstat.h: New file.
81924
81925 2005-06-24  Derek Price  <derek@ximbiot.com>
81926         and Bruno Haible  <bruno@clisp.org>
81927
81928         Remove stat module & update lstat.
81929         * config/srclist.txt (libc sources): Remove stat.
81930
81931 2005-06-24  Derek Price  <derek@ximbiot.com>
81932         and Bruno Haible  <bruno@clisp.org>
81933
81934         Remove stat module & update lstat.
81935         * MODULES.html.sh (stat): Remove.
81936         * MODULES.html: Regenerated.
81937         * modules/lstat (Description): Correct function name.
81938         (Files): Add "lstat.h".
81939         (Depends-on): Remove stat, add xalloc, stat-macros.
81940         * modules/stat: Remove this file.
81941         (Include): Add "lstat.h", remove <sys/stat.h>.
81942
81943 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81946         (ranged_convert): Don't save conversion in a temporary struct.
81947         This causes a warning with GCC 4.0.0, and anyway in the typical
81948         case it's not worth the extra 100 bytes or so of code.
81949         (ranged_convert, __mktime_internal): When calling a function via a
81950         pointer P, use P () rather than (*P) (), as we now assume C89 or
81951         better.
81952
81953 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81954
81955         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81956         "who -r" failed to give output.  Problem reported by Tim Waugh.
81957
81958         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81959         (xcalloc): Use it to avoid needless tests.
81960         Problem reported by Jim Meyering.
81961
81962 2005-06-20  Derek Price  <derek@ximbiot.com>
81963
81964         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81965         unnecessary for Autoconfs > 2.59c.
81966
81967 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81968
81969         * lib/argp.h (__option_is_short): Check upper limit of
81970         __key. Isprint() requires its argument to have the value
81971         of an unsigned char or EOF.
81972
81973 2005-06-16  Jim Meyering  <jim@meyering.net>
81974
81975         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81976         when either N or S is zero.
81977
81978 2005-06-16  Derek Price  <derek@ximbiot.com>
81979
81980         * m4/bison.m4: Declare YACC & YFLAGS precious.
81981
81982 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81985         multibyte string or pattern, fall back on unibyte matching.
81986         Problem reported by James Youngman.
81987
81988 2005-06-08  Bruno Haible  <bruno@clisp.org>
81989
81990         * modules/csharpcomp: New file.
81991         * MODULES.html.sh (C#): Add csharpcomp.
81992
81993 2005-06-08  Bruno Haible  <bruno@clisp.org>
81994
81995         * m4/csharpcomp.m4: New file, from GNU gettext.
81996
81997 2005-06-08  Bruno Haible  <bruno@clisp.org>
81998
81999         * lib/csharpcomp.h: New file, from GNU gettext.
82000         * lib/csharpcomp.c: New file, from GNU gettext.
82001         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82002
82003 2005-06-08  Bruno Haible  <bruno@clisp.org>
82004
82005         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82006         warning on mingw.
82007
82008 2005-06-07  Derek Price  <derek@ximbiot.com>
82009
82010         Sync from CVS.
82011         * lib/glob_.h: Indent nested #ifdef.
82012
82013 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82014
82015         Sync from coreutils.
82016         Use "file name" when talking about file names, instead of "filename"
82017         or "path", as per the GNU coding standards.
82018         * lib/mkdir-p.c: Renamed from makepath.c.
82019         (make_dir_parents): Renamed from make_path.  All callers changed.
82020         * lib/mkdir-p.h: Likewise.  All includers changed.
82021         * lib/filenamecat.c: Renamed from path-concat.c.
82022         (file_name_concat): Renamed from path_concat.  All callers changed.
82023         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82024         * lib/filenamecat.h: Likewise.  All includers changed.
82025         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82026         in comments or local variable names.
82027         * lib/basename.c: Likewise.
82028         * lib/canonicalize.c, canonicalize.h: Likewise.
82029         * lib/dirname.c, dirname.h: Likewise.
82030         * lib/euidaccess.c: Likewise.
82031         * lib/exclude.c: Likewise
82032         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82033         * lib/fsusage.c, fsuage.h: Likewise.
82034         * lib/fts.c, fts_.h: Likewise.
82035         * lib/getcwd.c: Likewise.
82036         * lib/getloadavg.c: Likewise.
82037         * lib/mkstemp.c: Likewise.
82038         * lib/mountlist.c, mountlist.h: Likewise.
82039         * lib/openat.c, openat.h: Likewise.
82040         * lib/readlink-stub.c: Likewise.
82041         * lib/readutmp.c, readutmp.h: Likewise.
82042         * lib/rename.c: Likewise.
82043         * lib/rmdir.c: Likewise.
82044         * lib/same.c: Likewise.
82045         * lib/savedir.c: Likewise.
82046         * lib/stripslash.c: Likewise.
82047         * lib/tempname.c: Likewise.
82048         * lib/xreadlink.c: Likewise.
82049         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82050         All uses changed.
82051         * lib/exclude.h: Likewise.
82052
82053         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82054         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82055         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82056         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82057         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82058         files have been getting away with it for years (MORE/BSD 4.3
82059         is extinct now).
82060         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82061         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82062
82063         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82064         Define to 256, not 255, as per modern POSIX.
82065
82066 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         Sync from coreutils.
82069         Use "file name" when talking about file names, instead of "filename"
82070         or "path", as per the GNU coding standards.
82071         * MODULES.html.sh: mkdir-p renamed from makepath.
82072         filenamecat renamed from path-concat.
82073         * modules/filenamecat: Renamed from modules/path-concat.
82074         (Files): filenamecat.h and filenamecat.c renamed from
82075         path-concat.h and path-concat.c.
82076         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82077         (Include): filenamecat.h, not path-concat.h.
82078         * modules/mkdir-p: Renamed from modules/makepath.
82079         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82080         makepath.c.
82081         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82082         (Include): mkdir-p.h, not makepath.h.
82083
82084 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         Sync from coreutils.
82087         * m4/mkdir-p.m4: Renamed from makepath.m4.
82088         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82089         Rename files from makepath.c to mkdir-p.c, and from
82090         makepath.h to mkdir-p.h.
82091         * m4/filenamecat.m4: Renamed from path-concat.m4.
82092         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82093         Rename files from path-concat.c to filenamecat.c,
82094         and from path-concat.h to filenamecat.h.
82095         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82096         "file name" in local variables or comments.
82097         * m4/rename.m4: Likewise.
82098
82099 2005-06-01  Bruno Haible  <bruno@clisp.org>
82100
82101         * modules/csharpexec: New file.
82102         * MODULES.html.sh (C#): New section.
82103
82104 2005-06-01  Bruno Haible  <bruno@clisp.org>
82105
82106         * m4/csharp.m4: New file, from GNU gettext.
82107         * m4/csharpexec.m4: New file, from GNU gettext.
82108
82109 2005-06-01  Bruno Haible  <bruno@clisp.org>
82110
82111         * lib/csharpexec.h: New file, from GNU gettext.
82112         * lib/csharpexec.c: New file, from GNU gettext.
82113         * lib/csharpexec.sh.in: New file, from GNU gettext.
82114
82115 2005-05-31  Derek Price  <derek@ximbiot.com>
82116             Paul Eggert  <eggert@cs.ucla.edu>
82117
82118         Sync from cvs.
82119         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82120
82121 2005-05-31  Derek Price  <derek@ximbiot.com>
82122             Paul Eggert  <eggert@cs.ucla.edu>
82123
82124         Sync from cvs.
82125         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82126
82127 2005-05-29  Derek Price  <derek@ximbiot.com>
82128
82129         * config/srclist.txt (glob_.h, glob.c): Add these files.
82130
82131 2005-05-29  Derek Price  <derek@ximbiot.com>
82132
82133         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82134         * modules/glob: New file.
82135         * modules/getlogin_r: Add link to POSIX spec in description.
82136
82137 2005-05-29  Derek Price  <derek@ximbiot.com>
82138             Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         * m4/glob.m4: New file.
82141
82142 2005-05-29  Derek Price  <derek@ximbiot.com>
82143             Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/glob_.h, lib/glob.c: New files.
82146
82147 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82150         * modules/fts-lgpl (Depends-on): Remove gettext.
82151
82152 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82155         and don't require gt_INTTYPES_PRI.
82156
82157 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82160
82161         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82162         the configuration hassle isn't worth it.
82163         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82164         (LONGEST_MODIFIER, PRIuMAX): Remove.
82165
82166 2005-05-27  Bruno Haible  <bruno@clisp.org>
82167
82168         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82169
82170 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82171
82172         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82173         _POSIX_PTHREAD_SEMANTICS for Solaris.
82174
82175 2005-05-25  Derek Price  <derek@ximbiot.com>
82176
82177         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82178
82179 2005-05-25  Derek Price  <derek@ximbiot.com>
82180             Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82183         * lib/getlogin_r.c, getlogin_r.h: New files.
82184
82185 2005-05-25  Bruno Haible  <bruno@clisp.org>
82186             Derek Price  <derek@ximbiot.com>
82187
82188         * lib/getlogin_r.h: Simplify API documentation.
82189
82190 2005-05-23  Derek Price  <derek@ximbiot.com>
82191
82192         * modules/minmax (Files): Add m4/minmax.m4.
82193         (configure.ac): Add gl_MINMAX.
82194
82195 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82198         so that unistd-safer.h (GPL'ed code) need not be included.
82199
82200 2005-05-22  Bruno Haible  <bruno@clisp.org>
82201
82202         * m4/minmax.m4: New file.
82203         Based on a patch by Derek Price <derek@ximbiot.com>.
82204
82205 2005-05-22  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82208         (INT64_MIN): Fix definition.
82209         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82210
82211         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82212         NEED_SIGNED_INT_TYPES.
82213
82214         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82215         HAVE_SYSTEM_INTTYPES.
82216
82217 2005-05-22  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82220         Also include <sys/param.h> if it defines MIN, MAX.
82221         Based on a patch by Derek Price <derek@ximbiot.com>.
82222
82223 2005-05-21  Jim Meyering  <jim@meyering.net>
82224
82225         * modules/fts (Files): Add m4/inttypes-pri.m4.
82226         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82227
82228 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         New fts module.
82231         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82232         (setup_dir, free_dir): New functions.
82233         (enter_dir, leave_dir): Define trivial
82234         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82235         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82236         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82237         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82238         Move to fts-cycle.c.
82239         (fts_open): Use setup_dir.
82240         (fts_close): Use free_dir.
82241         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82242         This adds a label and some gotos, but the alternatives were messier.
82243         Check for memory allocation failure when entering a dir.
82244         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82245         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82246         (FTS): New member fts_cycle, that is a union that contains the
82247         old active_dir_ht and cycle_state.  All uses changed to mention
82248         fts_cycle.ht and fts_cycle.state.
82249         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82250         fts.c, with the following changes:
82251         (setup_dir, free_dir): New functions.
82252         (enter_dir): Now returns bool.  Return true if successful, false
82253         if memory exhausted.  All callers changed.
82254         Do not bother partly cleaning up on
82255         memory allocation failure; that is free_dir's job.
82256         However, free ad if hash_insert fails, to avoid memory leak.
82257         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82258         fts->fts_options to see which union member to use.
82259
82260 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82263         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82264
82265 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82268
82269 2005-05-20  Jim Meyering  <jim@meyering.net>
82270
82271         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82272         Now a macro, to pacify GCC.
82273
82274 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82275
82276         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82277         of -1.
82278
82279 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82280
82281         * lib/chown.c (rpl_chown): Return -1 on failure.
82282
82283 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82286         Don't check for stddef.h.
82287         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82288         don't use its results.
82289         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82290         since we include them unconditionally.  Don't require
82291         AM_STDBOOL_H, since stdbool is a prerequisite.
82292         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82293         since we assume C89 or better.
82294         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82295         as we don't use their results.
82296         Don't check for fchdir, memmove, memset, strrchr, as we use
82297         them unconditionally.
82298         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82299         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82300
82301 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82302
82303         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82304         Include <stddef.h> unconditionally, since we assume C89 now.
82305         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82306         * lib/fts.c: Include fts_.h first, to check interface.
82307         Do not include intprops.h; no longer needed.
82308         Include cycle-check.h and hash.h, since fts_.h no longer does.
82309         Remove unnecessary casts of closedir to void.
82310         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82311         decide whether to decrement nlinks.
82312         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82313         (FTS): Use struct hash_table * instead of Hash_table, so that
82314         we no longer need to include hash.h here.
82315
82316 2005-05-18  Jim Meyering  <jim@meyering.net>
82317
82318         * modules/dirfd (License): Change to LGPL.  Most of the code
82319         is already in the public domain.
82320
82321 2005-05-18  Jim Meyering  <jim@meyering.net>
82322
82323         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82324         Reported by Yoann Vandoorselaere.
82325
82326 2005-05-17  Jim Meyering  <jim@meyering.net>
82327
82328         * m4/fts.m4: New file, from coreutils.
82329
82330 2005-05-17  Jim Meyering  <jim@meyering.net>
82331
82332         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82333
82334 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82335
82336         Sync from coreutils.
82337         * m4/unlinkdir.m4: New file.
82338
82339 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82340
82341         Sync from coreutils.
82342         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82343         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82344         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82345         White space changes only.
82346         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82347         special.
82348         * lib/yesno.c: Include getline.h, not ctype.h.
82349         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82350         Use getline to remove arbitrary restriction on response length.
82351
82352 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * config/srclist-update: Spell out "Street" in FSF postal
82355         mail address; this is the style the FSF seems to prefer.
82356
82357         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82358         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82359         this updates FSF postal mail address.
82360
82361         Sync from coreutils.
82362         * modules/unlinkdir: New file.
82363         * modules/yesno (Depends-on): Add getline.
82364         * MODULES.html.sh (File system functions): Add unlinkdir.
82365
82366 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82369         lib/strsep.h:
82370         Change the initial comment to refer to GPL, not LGPL.
82371         gnulib-tool will change it to LGPL as needed.
82372
82373         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82374         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82375         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82376         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82377         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82378         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82379         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82380         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82381         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82382         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82383         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82384         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82385         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82386         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82387         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82388         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82389         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82390         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82391         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82392         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82393         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82394         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82395         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82396         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82397         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82398         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82399         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82400         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82401         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82402         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82403         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82404         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82405         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82406         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82407         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82408         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82409         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82410         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82411         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82412         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82413         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82414         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82415         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82416         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82417         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82418         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82419         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82420         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82421         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82422         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82423         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82424         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82425         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82426         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82427         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82428         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82429         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82430         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82431         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82432         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82433         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82434         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82435         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82436         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82437         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82438         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82439         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82440         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82441         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82442         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82443         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82444         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82445         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82446         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82447         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82448         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82449         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82450         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82451         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82452         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82453         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82454         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82455         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82456         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82457         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82458         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82459         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82460         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82461         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82462         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82463         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82464         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82465         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82466         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82467         lib/yesno.c, lib/yesno.h:
82468         Update FSF postal mail address.
82469
82470 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82473         tests/test-memmem.c, tests/test-stpncpy.c:
82474         Update FSF postal mail address.
82475
82476 2005-05-13  Bruno Haible  <bruno@clisp.org>
82477
82478         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82479         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82480         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82481         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82482         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82483         Add support for 64-bit integers in the MSVC compiler.
82484
82485 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82486
82487         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82488
82489 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82490
82491         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82492
82493 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * doc/getdate.texi (General date syntax): Don't say that date
82496         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82497         Problem reported by Nic Ferrier.
82498
82499 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82500
82501         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82502         specified in ai_socktype. Fix invalid ai_protocol
82503         check. ai_protocol is usually set to 0 or depending on
82504         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82505         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82506         ai_socktype / ai_protocol in the returned addrinfo structure.
82507
82508 2005-05-10  Simon Josefsson  <jas@extundo.com>
82509
82510         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82511         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82512
82513 2005-05-10  Karl Berry  <karl@gnu.org>
82514
82515         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82516         (from http://www.gnu.org/licenses).
82517         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82518         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82519         fdl.texi suffices.
82520
82521 2005-05-10  Karl Berry  <karl@gnu.org>
82522
82523         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82524         (COPYING.DOC): remove.
82525
82526         * config/srclist-update: new FSF address.
82527
82528 2005-05-10  Derek Price  <derek@ximbiot.com>
82529
82530         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82531         possible.
82532
82533 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82534             Bruno Haible  <bruno@clisp.org>
82535
82536         * modules/inet_ntop: New file.
82537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82538         inet_ntop.
82539
82540 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82541             Bruno Haible  <bruno@clisp.org>
82542
82543         * m4/inet_ntop.m4: New file.
82544
82545 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82546             Bruno Haible  <bruno@clisp.org>
82547
82548         * lib/inet_ntop.h: New file.
82549         * lib/inet_ntop.c: New file, from glibc with modifications.
82550
82551 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82552
82553         * modules/time_r (License): Change to LGPL.
82554         * modules/extensions (License): Change to LGPL.  Actually,
82555         the license is more permissive than that, but currently gnulib-tool
82556         doesn't know how to handle more-permissive licenses.
82557
82558         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82559         Problem reported by Dave Love.
82560
82561 2005-05-08  Jim Meyering  <jim@meyering.net>
82562
82563         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82564         blank.
82565
82566 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82567
82568         * modules/argmatch (Depends-on): Add stdbool.
82569         * modules/backupfile (Depends-on): Likewise.
82570         * modules/chdir-long (Depends-on): Likewise.
82571         * modules/closeout (Depends-on): Likewise.
82572         * modules/cycle-check (Depends-on): Likewise.
82573         * modules/dirname (Depends-on): Likewise.
82574         * modules/fnmatch (Depends-on): Likewise.
82575         * modules/fsusage (Depends-on): Likewise.
82576         * modules/fwriteerror (Depends-on): Likewise.
82577         * modules/getcwd (Depends-on): Likewise.
82578         * modules/getloadavg (Depends-on): Likewise.
82579         * modules/hard-locale (Depends-on): Likewise.
82580         * modules/makepath (Depends-on): Likewise.
82581         * modules/mountlist (Depends-on): Likewise.
82582         * modules/nanosleep (Depends-on): Likewise.
82583         * modules/posixtm (Depends-on): Likewise.
82584         * modules/quotearg (Depends-on): Likewise.
82585         * modules/readtokens (Depends-on): Likewise.
82586         * modules/readtokens0 (Depends-on): Likewise.
82587         * modules/readutmp (Depends-on): Likewise.
82588         * modules/save-cwd (Depends-on): Likewise.
82589         * modules/strftime (Depends-on): Likewise.
82590         * modules/userspec (Depends-on): Likewise.
82591         * modules/utimecmp (Depends-on): Likewise.
82592         * modules/xgetcwd (Depends-on): Likewise.
82593         * modules/xnanosleep (Depends-on): Likewise.
82594         * modules/xstrtod (Depends-on): Likewise.
82595         * modules/yesno (Depends-on): Likewise.
82596
82597 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82600         needless checks.
82601
82602 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         Merge from coreutils.  Among other things,
82605         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82606         * lib/fd-safer.c: New file.
82607         * lib/fcntl-safer.h, open-safer.c: Remove.
82608         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82609         * lib/dup-safer.c: Include unistd-safer.h first.
82610         Don't include errno.h.
82611         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82612         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82613         * lib/file-type.c: Rely on file-type.h change.
82614         * lib/getloadavg.c: Include unistd-safer.h.
82615         (getloadavg): Use safer open.
82616         * lib/getusershell.c: Include "stdio-safer.h".
82617         (getusershell): Use safer fopen.
82618         * lib/long-options.c (long_options): Use NULL rather than 0.
82619         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82620         'free'.
82621         * lib/modechange.c: Likewise.
82622         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82623         (MODE_DONE): New constant.
82624         (struct mode_change): Remove 'next' member.
82625         (make_node_op_equals): New function; like the old one of the
82626         same name, except it allocates an array.
82627         (mode_compile, mode_create_from_ref): Use it.
82628         (mode_compile): Allocate result as an array, not a linked list.
82629         Parse octal string ourself, so that we catch mistakes like "+0".
82630         (mode_adjust): Arg is an array, not a linked list.
82631         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82632         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82633         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82634         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82635         Remove.  This is now stat-macros.h's job.
82636         (talloc): Remove.  All callers replaced by xalloc, so that
82637         our invokers don't have to worry about reporting memory failures.
82638         (make_node_op_equals): Remove.
82639         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82640         New constants.
82641         (struct mode_change): Moved here from modechange.h.
82642         (mode_append_entry): Remove.
82643         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82644         apps to have incorrect behavior.  Use simpler algorithm for head
82645         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82646         Detect more invalid usages rather than having somewhat-random behavior.
82647         Don't insert an "a=" action, as that leads to incorrect behavior.
82648         (mode_compile, mode_create_from_ref): Return NULL on error instead
82649         of an enum, since now there's only one way to have an error.  All
82650         callers changed.
82651         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82652         at the correct time.  Simplify calculation of "+u" and its ilk.
82653         Don't mishandle "+X".
82654         (mode_free): Remove "register" and localize decls.
82655         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82656         (struct mode_change): Move to modechange.c; callers don't
82657         need to see this stuff.
82658         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82659         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82660         (mode_change, mode_adjust): Reflect the new signatures noted above.
82661         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82662         that might redefine system include files.
82663         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82664         (my_usleep): Use NULL rather than (void *) 0.
82665         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82666         Use siginterrupt to specify that system calls should be interrupted.
82667         (rpl_nanosleep): Move initialization of suspended closer to call of
82668         my_usleep.
82669         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82670         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82671         (desirable_utmp_entry): New function.
82672         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82673         using x2nrealloc, to simplify logic.
82674         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82675         size calculation.  Do not assume utmp file is a regular file.
82676         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82677         (READ_UTMP_CHECK_PIDS): New constant.
82678         * lib/save-cwd.c: Include unistd-safer.h.
82679         (save_cwd): Use fd_safer.
82680         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82681         [!_LIBC] Include "stat-macros.h" instead.
82682         * lib/unistd-safer.h (fd_safer): New decl.
82683
82684 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82685
82686         * modules/getloadavg (Depends-on): Add unistd-safer.
82687         * modules/getusershell (Depends-on): Add stdio-safer.
82688         * modules/lstat (Depends-on): Remove xalloc.
82689         * modules/mkstemp (Depends-on): Add stat-macros.
82690         * modules/modechange (Depends-on): Remove xstrtol.
82691         Add stat-macros, xalloc.
82692         * modules/save-cwd (Depends-on): Add unistd-safer.
82693         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82694         * modules/unistd-safer (Files): Add lib/fd-safer.c
82695         (Makefile.am): Remove lib_SOURCES.
82696
82697         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82698         Remove fcntl-safer; unistd-safer supersedes it.
82699
82700 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82703         AC_HEADER_STAT.
82704         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82705         (gl_PREREQ_CHOWN): Remove.
82706         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82707         it.  Don't require AC_HEADER_STAT.
82708         (gl_PREREQ_LSTAT): Remove.
82709         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82710         Don't require AC_HEADER_STAT.
82711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82712         (gl_PREREQ_RMDIR): Remove.
82713         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82714         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82715         the stat-macros module a prerequisite.
82716         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82717         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82718         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82719         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82720         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82721         variable names.
82722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82723         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82724         variable prefixes.
82725         * m4/fcntl-safer.m4: Remove.
82726         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82727         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82728         Invoke gl_PREREQ_FD_SAFER.
82729         (gl_PREREQ_FD_SAFER): New macro.
82730         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82731         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82732         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82733         Remove duplicate call to AC_LIBOBJ(readutmp).
82734         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82735
82736         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82737         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82738
82739 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         * MODULES.html.sh (Misc): Add byteswap.
82742
82743 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82744
82745         * modules/getcwd (Depends-on): Add extensions.
82746         * modules/openat (Depends-on): Likewise.
82747
82748 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82749
82750         * modules/byteswap: New file.
82751
82752 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82753
82754         * m4/byteswap.m4: New file.
82755
82756 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82757
82758         * lib/byteswap_.h: New file.
82759
82760 2005-04-25  Karl Berry  <karl@gnu.org>
82761
82762         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82763
82764 2005-04-25  Albert Chin  <china@thewrittenword.com>
82765
82766         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82767         Toolkit C bug.
82768
82769 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82770
82771         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82772         (func_ln_if_changed): Remove forcibly for no error message
82773         in case file does not exist.
82774
82775 2005-04-19  Simon Josefsson  <jas@extundo.com>
82776
82777         * gnulib-tool (Options): Make --symlink mean --symbolic.
82778
82779 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82780
82781         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82782
82783 2005-04-16  Simon Josefsson  <jas@extundo.com>
82784
82785         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82786
82787 2005-04-15  Simon Josefsson  <jas@extundo.com>
82788
82789         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82790
82791 2005-04-15  Simon Josefsson  <jas@extundo.com>
82792
82793         * gnulib-tool: Rename --symlink to --symbolic.
82794
82795 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82796
82797         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82798         symbolic links to files instead of copying/moving.  Add --aux-dir,
82799         specifying directory relative --dir where auxiliary build tools
82800         are placed.
82801
82802 2005-04-14  Bruno Haible  <bruno@clisp.org>
82803
82804         * modules/allocsa (License): Change to LGPL.
82805         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82806
82807 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82810         that "UTC +1 second" continues to work.  Problem reported
82811         by Dmitry V. Levin.
82812         (relunit_snumber): New rule.
82813         (relunit): Use it.
82814
82815 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/getdate.y (universal_time_zone_table): New constant.
82818         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82819         universal_time_zone_table.
82820         (lookup_zone): Prefer universal_time_zone_table to
82821         local_time_zone_table, so that "GMT" time stamps are allowed in
82822         London during the summer.  Problem reported by Ian Abbott.
82823
82824 2005-04-12  Jim Meyering  <jim@meyering.net>
82825
82826         * lib/human.c (humblock): Set *options even when returning due to
82827         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82828         warning from gcc-4.
82829
82830 2005-04-09  Jim Meyering  <jim@meyering.net>
82831
82832         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82833         -Wuninitialized: initialize tm0.tm_year.
82834
82835 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82838         count, since there's no maximum.  All uses changed.
82839         Add member dsts_seen.
82840         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82841         not being INT_MAX.
82842         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82843         Use pc_rels_seen to decide whther a date is absolute.
82844
82845         * lib/getdate.y (number): Don't overwrite year.
82846         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82847         check.
82848
82849 2005-04-02  Simon Josefsson  <jas@extundo.com>
82850
82851         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82852         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82853
82854 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82855
82856         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82857         where no absolute path name can be longer than PATH_MAX.
82858
82859 2005-03-27  Jim Meyering  <jim@meyering.net>
82860
82861         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82862
82863 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82866         "one's complement" -> "ones' complement" in comment, as per Knuth.
82867         "value of type" -> "type or expression" in comment.
82868         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82869
82870 2005-03-26  Jim Meyering  <jim@meyering.net>
82871
82872         Comment nits.
82873         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82874         Correct typos: s/or/of/.
82875
82876 2005-03-26  Jim Meyering  <jim@meyering.net>
82877
82878         * modules/check-include-files: Move to ../ and rename to...
82879         * check-module: ...this.
82880
82881 2005-03-25  Jim Meyering  <jim@meyering.net>
82882
82883         * modules/xvasprintf (Files): Add xalloc.h.
82884
82885 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82886
82887         * modules/gettext (Files): config/config.rpath ->
82888         build-aux/config.rpath
82889         * modules/iconv (Files): Likewise.
82890         Problem reported by Oskar Liljeblad.
82891
82892 2005-03-23  Jim Meyering  <jim@meyering.net>
82893
82894         * modules/check-include-files: New script to check for
82895         missing dependencies, multiple includes, etc.
82896
82897         * modules/c-strtold (Depends-on): Add xalloc.
82898         * modules/c-strtod (Depends-on): Add xalloc.
82899         * modules/hash (Depends-on): Add xalloc.
82900         (Files): Remove lib/xalloc.h.
82901
82902         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82903         * modules/userspec (Files): Add lib/inttostr.h.
82904
82905 2005-03-23  Jim Meyering  <jim@meyering.net>
82906
82907         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82908
82909 2005-03-22  Jim Meyering  <jim@meyering.net>
82910
82911         * modules/stat-macros: New module.
82912         * modules/canonicalize, modules/euidaccess, modules/file-type,
82913         * modules/filemode, modules/lchown, modules/makepath,
82914         * modules/rmdir, modules/stat: Depend on new stat-macros module
82915         rather than listing lib/stat-macros.h manually.
82916         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82917
82918 2005-03-22  Jim Meyering  <jim@meyering.net>
82919
82920         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82921
82922 2005-03-22  Bruno Haible  <bruno@clisp.org>
82923
82924         * config/srclist.txt: Replace target directory 'config' with
82925         'build-aux'.
82926         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82927         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82928         ../build-aux/.
82929
82930 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * modules/chdir-long (Depends-on): Add mempcpy.
82933
82934         * modules/acl, modules/backupfile, modules/c-strtod,
82935         modules/c-strtold, modules/canon-host, modules/canonicalize,
82936         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82937         modules/exclude, modules/exitfail, modules/file-type,
82938         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82939         modules/getdate, modules/getline, modules/getpagesize,
82940         modules/getpass, modules/getugroups, modules/group-member,
82941         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82942         modules/inttostr, modules/long-options, modules/makepath,
82943         modules/md5, modules/memcasecmp, modules/memcoll,
82944         modules/modechange, modules/mountlist, modules/path-concat,
82945         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82946         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82947         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82948         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82949         modules/strftime, modules/strndup, modules/strverscmp,
82950         modules/timespec, modules/unlocked-io, modules/userspec,
82951         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82952         modules/yesno:
82953         Remove lib_SOURCES line from Makefile.am section, as this is now
82954         done automatically by the corresponding Autoconf macro.
82955
82956 2005-03-21  Jim Meyering  <jim@meyering.net>
82957
82958         Changes imported from coreutils.
82959
82960         * lib/cycle-check.c: Don't include xalloc.h.
82961
82962         * lib/path-concat.c: Don't include assert.h.
82963         (path_concat): Remove assertion that would have triggered
82964         for ABASE starting with more than one slash.
82965         Reported by Andreas Schwab.
82966
82967         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82968         properly when ABASE is an absolute file name.
82969         Correct the description of this function.
82970         Include <assert.h>.
82971         Add an assertion and a test driver.
82972         This fixes a bug introduced on 2004-07-02.
82973         Andreas Schwab reported the resulting failure of cp --parents:
82974         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82975
82976 2005-03-21  Jim Meyering  <jim@meyering.net>
82977
82978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82979         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82980
82981 2005-03-21  Jim Meyering  <jim@meyering.net>
82982         and  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82985         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82986         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82987         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82988         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82989         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82990         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82991         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82992         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82993         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82994         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82995         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82996         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82997         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82998         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82999         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83000         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83001         for these modules.
83002
83003 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83006         (which shouldn't happen), generate nothing instead of returning 0
83007         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83008
83009 2005-03-16  Bruno Haible  <bruno@clisp.org>
83010
83011         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83012         HAVE_LONGLONG_64BIT.
83013
83014 2005-03-16  Bruno Haible  <bruno@clisp.org>
83015
83016         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83017         HAVE_LONGLONG_64BIT.
83018
83019 2005-03-16  Bruno Haible  <bruno@clisp.org>
83020
83021         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83022         HAVE_LONGLONG_64BIT.
83023
83024 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83025
83026         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83027         reliably distinguish strftime failure from empty output on POSIX
83028         hosts.
83029
83030 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83033         (iconv_string): Don't guess a size-zero buffer, as that might cause
83034         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83035         result would be 'too large', where 'too large' is (heuristically)
83036         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83037         overflow concerns.  This will prevent some unwanted malloc failures
83038         when the inputs are very large.
83039
83040 2005-03-15  Karl Berry  <karl@gnu.org>
83041
83042         * config/srclist.txt (config.rpath): from gettext.
83043         * config/config.rpath: update.
83044
83045 2005-03-15  Bruno Haible  <bruno@clisp.org>
83046
83047         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83048         to 'negate'.
83049
83050         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83051         variable.
83052
83053         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83054         results.
83055
83056 2005-03-14  Simon Josefsson  <jas@extundo.com>
83057
83058         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83059         <fx@gnu.org>.
83060
83061 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83064         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83065         intprops.h.
83066         * lib/strtol.c: Likewise.
83067
83068 2005-03-14  Jim Meyering  <jim@meyering.net>
83069
83070         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83071         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83072         to be nonzero so that we (and caller) can detect the difference
83073         between a valid zero-length expansion and an error return, even
83074         when the underlying strftime fails before writing anything into
83075         that location.
83076
83077 2005-03-14  Bruno Haible  <bruno@clisp.org>
83078
83079         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83080         Update from GNU gettext 0.14.3.
83081
83082 2005-03-10  Jim Meyering  <jim@meyering.net>
83083
83084         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83085
83086 2005-03-10  Jim Meyering  <jim@meyering.net>
83087
83088         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83089         so that this module works on systems without fchdir.
83090
83091 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         Factor int-properties macros into a single file, except for
83094         glibc-related files.
83095         * lib/intprops.h: New file.
83096         * lib/getloadavg.c: Include it instead of limits.h.
83097         (INT_STRLEN_BOUND): Remove.
83098         * lib/human.c: Include intprops.h.
83099         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83100         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83101         302/1000.
83102         * lib/inttostr.h: Include intprops.h instead of limits.h.
83103         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83104         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83105         for consistency with intprops.h.
83106         (time_t_is_integer, twos_complement_arithmetic): Use them.
83107         * lib/sig2str.h: Include <signal.h>, intprops.h.
83108         (INT_STRLEN_BOUND): Remove.
83109         * lib/strftime.c (TYPE_SIGNED): Remove.
83110         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83111         * lib/strtol.c: Adjust comments to match intprops.h.
83112         * lib/userspec.c: Include intprops.h.
83113         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83114         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83115         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83116         instead of rolling our own expressions.
83117         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83118
83119         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83120         instead of int.
83121         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83122         the right thing even if adding 1900 would overflow.  Similarly
83123         for tm_mon + 1 and tm_yday + 1.
83124         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83125         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83126         (DO_SIGNED_NUMBER): New macro.
83127         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83128
83129 2005-03-07  Bruno Haible  <bruno@clisp.org>
83130
83131         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83132
83133 2005-03-07  Bruno Haible  <bruno@clisp.org>
83134
83135         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83136
83137 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83138
83139         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83140         (func_import): Only replace files via --import when they have actually
83141         changed.
83142
83143 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83144
83145         * m4/mmap-anon.m4: New file.
83146         * m4/pagealign_alloc.m4: New file.
83147
83148 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83149             Bruno Haible  <bruno@clisp.org>
83150
83151         * modules/pagealign_alloc: New file.
83152         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83153
83154 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83155             Bruno Haible  <bruno@clisp.org>
83156
83157         * lib/pagealign_alloc.h: New file.
83158         * lib/pagealign_alloc.c: New file.
83159
83160 2005-03-03  Bruno Haible  <bruno@clisp.org>
83161
83162         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83163         Use an all-permissive copyright notice, recommended by RMS.
83164
83165 2005-03-02  Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83168         of AIX, the replacement has to be done only after <string.h> is
83169         included, therefore not in config.h. stpncpy.h does the replacement,
83170         and stpncpy.c uses it.
83171
83172 2005-03-02  Bruno Haible  <bruno@clisp.org>
83173
83174         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83175         stpncpy.c uses it.
83176
83177 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83178
83179         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83180         The workaround isn't strictly needed for POSIX conformance, and
83181         it's too much of a pain to configure and maintain.  We'll ask
83182         people to fix their kernels instead.
83183         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83184         (NANOSLEEP_BUG_WORKAROUND): Remove.
83185         (xnanosleep): Remove the workaround.
83186
83187 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83188
83189         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83190         Reported by Derek Price.
83191         (Include): Add "timespec.h".
83192
83193         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83194
83195 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83198         to detect nanosleep bug.
83199
83200 2005-03-01  Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83203
83204 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * modules/gethrxtime: New file.
83207         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83208         (Depends-on): Add gethrxtime.
83209         (configure.ac): Add gl_XNANOSLEEP.
83210         (Makefile.am): Remove lib_SOURCES line.
83211
83212 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83213
83214         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83215         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83216
83217 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83218
83219         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83220         * lib/timespec.h (gettime): Return void, since it always
83221         succeeds now.  All uses changed.
83222         * lib/gettime.c (gettime): Likewise.
83223         [HAVE_NANOTIME]: Prefer nanotime.
83224         Assume gettimeofday succeeds, as POSIX requires.
83225         Assime time () succeeds, since other code already does.
83226         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83227         (timespec_subtract): Remove.
83228         (NANOSLEEP_BUG_WORKAROUND): New constant.
83229         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83230         things considerably.  Use it only on GNU/Linux hosts, since the
83231         workaround shouldn't be needed elsewhere.
83232
83233 2005-02-24  Bruno Haible  <bruno@clisp.org>
83234
83235         * modules/gettext (Files): Add m4/glibc2.m4.
83236
83237 2005-02-24  Bruno Haible  <bruno@clisp.org>
83238
83239         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83240         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83241         * m4/progtest.m4:
83242         Update from GNU gettext 0.14.2.
83243         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83244
83245 2005-02-24  Bruno Haible  <bruno@clisp.org>
83246
83247         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83248         * lib/config.charset: Update from GNU gettext 0.14.2.
83249
83250 2005-02-24  Bruno Haible  <bruno@clisp.org>
83251
83252         * lib/gettext.h: Update from GNU gettext 0.14.2.
83253
83254 2005-02-23  Simon Josefsson  <jas@extundo.com>
83255
83256         * m4/iconvme.m4: New file.
83257
83258 2005-02-23  Jim Meyering  <jim@meyering.net>
83259
83260         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83261         change.
83262         Thanks to Bruno Haible for catching it.
83263
83264 2005-02-22  Simon Josefsson  <jas@extundo.com>
83265
83266         * modules/iconvme: New file.
83267
83268         * MODULES.html.sh: Add iconvme.
83269
83270 2005-02-22  Simon Josefsson  <jas@extundo.com>
83271
83272         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83273
83274 2005-02-22  Simon Josefsson  <jas@extundo.com>
83275
83276         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83277
83278 2005-02-22  Jim Meyering  <jim@meyering.net>
83279
83280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83281         s/ifndef/ifdef/.
83282
83283 2005-02-20  Neil Conway  <neilc@samurai.com>
83284
83285         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83286         returned by OSX/Darwin if the specified buffer is not large
83287         enough for the hostname.
83288
83289 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83290
83291         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83292         pass it to _help, otherwise the latter coredumps trying to
83293         dereference state.root_argp.
83294
83295 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83296
83297         * modules/chdir-long (Depends-on): Add memrchr.
83298         * modules/memrchr (Files): Add lib/memrchr.h.
83299         (Include): "memrchr.h".
83300
83301 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83302
83303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83304
83305 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83306
83307         * lib/memrchr.h: New file.
83308         * lib/chdir-long.c: Include it.
83309         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83310         Don't bother including stddef.h.
83311
83312 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83313
83314         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83315         inclusion.
83316         Include <sys/types.h>, for dev_t.
83317         (ME_DUMMY, ME_REMOTE): Move from here....
83318         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83319         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83320         Dmitry V. Levin.
83321         Include mountlist.h first, to test the interface.
83322
83323 2005-01-29  Bruno Haible  <bruno@clisp.org>
83324
83325         * lib/progname.c (program_name): Initialize.
83326         Needed when linking statically on MacOS X.
83327
83328 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         Sync from coreutils.
83331         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83332         (Depends-on): Add c-strtod.
83333         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83334
83335 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         Sync from coreutils.
83338         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83339
83340         Remove files that are specific to coreutils.
83341         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83342
83343 2005-01-28  Bruno Haible  <bruno@clisp.org>
83344
83345         * modules/javacomp: New file.
83346         * MODULES.html.sh (Java): Add javacomp.
83347
83348 2005-01-28  Bruno Haible  <bruno@clisp.org>
83349
83350         * m4/javacomp.m4: New file, from GNU gettext.
83351
83352 2005-01-28  Bruno Haible  <bruno@clisp.org>
83353
83354         * lib/javacomp.sh.in: New file, from GNU gettext.
83355         * lib/javacomp.h: New file, from GNU gettext.
83356         * lib/javacomp.c: New file, from GNU gettext.
83357
83358 2005-01-26  Simon Josefsson  <jas@extundo.com>
83359
83360         * lib/gai_strerror.c: Use GPL in header.
83361
83362 2005-01-26  Bruno Haible  <bruno@clisp.org>
83363
83364         * modules/javaexec: New file.
83365         * MODULES.html.sh (Java): Add javaexec.
83366
83367 2005-01-26  Bruno Haible  <bruno@clisp.org>
83368
83369         * m4/javaexec.m4: New file, from GNU gettext.
83370
83371 2005-01-26  Bruno Haible  <bruno@clisp.org>
83372
83373         * lib/javaexec.sh.in: New file, from GNU gettext.
83374         * lib/javaexec.h: New file, from GNU gettext.
83375         * lib/javaexec.c: New file, from GNU gettext.
83376
83377 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83378
83379         * modules/lchown (Depends-on): Remove lchown.h
83380
83381 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83382
83383         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83384         must be defined if the header file was not found, in order
83385         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83386
83387 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83388
83389         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83390         initializers for struct pentry_state.
83391         (__argp_error): Check return value of __asprintf
83392         (__argp_failure): Translate error message
83393
83394         * lib/argp-parse.c: Removed braces around the expansion of N_()
83395
83396 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83399         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83400         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83401         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83402         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83403         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83404         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83405         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83406         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83407         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83408         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83409         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83410         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83411         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83412         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83413         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83414         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83415         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83416         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83417         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83418         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83419         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83420         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83421         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83422         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83423         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83424         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83425         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83426         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83427         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83428         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83429         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83430         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83431         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83432         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83433         Use an all-permissive copyright notice, recommended by RMS.
83434
83435 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * modules/chdir-long (Depends-on): Remove mempcpy.
83438
83439 2005-01-21  Jim Meyering  <jim@meyering.net>
83440
83441         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83442         same value as for Solaris 9.
83443
83444         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83445         component length.  This included changing the parameter to be
83446         of type `char *' rather than `char const *'.
83447         * lib/chdir-long.h (chdir_long): Update prototype.
83448
83449         * lib/openat.c (fdopendir, fstatat): New functions.
83450         * lib/openat.h: Include headers required for use of DIR and struct
83451         stat.
83452         [AT_SYMLINK_NOFOLLOW]: Define.
83453         (fdopendir, fstatat): Add prototypes.
83454
83455 2005-01-21  Bruno Haible  <bruno@clisp.org>
83456
83457         * modules/classpath: New file.
83458         * MODULES.html.sh (Java): Add classpath.
83459
83460 2005-01-21  Bruno Haible  <bruno@clisp.org>
83461
83462         * lib/classpath.h: New file, from GNU gettext.
83463         * lib/classpath.c: New file, from GNU gettext.
83464
83465 2005-01-20  Simon Josefsson  <jas@extundo.com>
83466
83467         * modules/version-etc-fsf: New file.
83468
83469 2005-01-20  Simon Josefsson  <jas@extundo.com>
83470
83471         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83472         * lib/version-etc.c: Remove version_etc_copyright.
83473         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83474         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83475
83476 2005-01-20  Simon Josefsson  <jas@extundo.com>
83477
83478         * lib/base64.h (isbase64): Add.
83479
83480         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83481         using a unsigned prototype, don't inline.
83482         (base64_decode): Use it.
83483
83484 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83487         it.
83488
83489 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         * lib/save-cwd.c (save_cwd): Remove code to support the case
83492         where fchdir is missing or flaky.
83493
83494 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83497
83498 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83499
83500         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83501         AC_LIBSOURCES now does this.
83502         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83503         with new ullong_max module.
83504
83505 2005-01-19  Bruno Haible  <bruno@clisp.org>
83506
83507         * modules/sh-quote: New file.
83508         * MODULES.html.sh (Executing programs): Add sh-quote.
83509
83510 2005-01-19  Bruno Haible  <bruno@clisp.org>
83511
83512         * lib/sh-quote.h: New file, from GNU gettext.
83513         * lib/sh-quote.c: New file, from GNU gettext.
83514
83515 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83516
83517         Merge from coreutils.
83518         * m4/ullong_max.m4: New file.
83519         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83520         (gl_MACROS): Assume localeconv exists.
83521
83522 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         Merge changes from coreutils, as described below in several
83525         changelogs dated today.
83526
83527         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83528         (O_DIRECTORY): Remove; not needed here, since "." must be
83529         a directory.  All uses removed.
83530         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83531         universal on Suns, and we also need to test for IRIX.
83532         Revamp code to use 'if' rather than '#if'.
83533         Avoid unnecessary comparison of cwd->desc to 0.
83534
83535         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83536         for known valid error numbers rather than observed invalid ones.
83537
83538 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83539
83540         * modules/ullong_max: New file.
83541
83542         * modules/chdir-long, modules/openat: New files.
83543         * modules/save-cwd (Depends-on): Depend on chdir-long.
83544         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83545
83546 2005-01-18  Jim Meyering  <jim@meyering.net>
83547
83548         Merge from coreutils.
83549         * m4/chdir-long.m4, m4/openat.m4: New files.
83550         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83551         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83552         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83553         is sane and DOES follow symlinks.  Besides, testing 20 different
83554         systems found no broken chown implementations.
83555         Prompted by a change in rsync's copy of this macro.
83556         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83557
83558         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83559
83560         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83561         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83562         NULL-means-set-to-current-time semantics.
83563         Remove temporary file immediately, rather than waiting
83564         for configure's at-exit trap code to do it.
83565
83566 2005-01-18  Jim Meyering  <jim@meyering.net>
83567
83568         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83569
83570         * lib/utimens.c (futimens): Account for the fact that futimes
83571         can also fail with errno == ENOSYS or errno == ENOENT.
83572         Patch from Dmitry V. Levin.
83573
83574         Change the name of the robust chdir function from chdir to chdir_long.
83575         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83576         (restore_cwd): Use chdir_long, not chdir.
83577         * lib/chdir-long.c: Renamed from chdir.c.
83578         * lib/chdir-long.h: Renamed from chdir.h.
83579         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83580         Hurd.
83581
83582 2005-01-18  Bruno Haible  <bruno@clisp.org>
83583
83584         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83585         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83586         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83587         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83588         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83589         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83590         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83591         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83592         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83593         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83594         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83595         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83596         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83597         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83598         Use an all-permissive copyright notice, recommended by RMS.
83599
83600 2005-01-18  Bob Proulx  <bob@proulx.com>
83601
83602         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83603         simplify offsetof() macro construct to avoid compile failure with
83604         native HP-UX 11.0 ANSI C compiler.
83605
83606 2005-01-17  Bruno Haible  <bruno@clisp.org>
83607
83608         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83609         redundant because stpncpy.m4 takes care of it.
83610
83611 2005-01-17  Bruno Haible  <bruno@clisp.org>
83612
83613         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83614
83615 2005-01-17  Bruno Haible  <bruno@clisp.org>
83616
83617         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83618         used.
83619
83620 2005-01-17  Bruno Haible  <bruno@clisp.org>
83621
83622         * lib/fwriteerror.h (fwriteerror): Change specification to include
83623         fclose.
83624         * lib/fwriteerror.c: Include <stdbool.h>.
83625         (fwriteerror): At the end, close the file stream. Record whether
83626         stdout was already closed.
83627
83628 2005-01-17  Bruno Haible  <bruno@clisp.org>
83629
83630         * lib/execute.c (environ): Declare if needed.
83631         * lib/pipe.c (environ): Likewise.
83632         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83633
83634 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83635
83636         * modules/argp: Depend on vsnprintf
83637
83638 2005-01-10  Jim Meyering  <jim@meyering.net>
83639
83640         * modules/closeout (Depends-on): Add atexit.
83641
83642 2005-01-06  Bruno Haible  <bruno@clisp.org>
83643
83644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83645
83646 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83647
83648         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83649         definitions to be after all include files, to avoid collisions.
83650         Problem reported by Bob Proulx.
83651
83652 2005-01-04  Jim Meyering  <jim@meyering.net>
83653
83654         Changes imported from coreutils.
83655         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83656         as the mkstemp template, use a temporary directory and an
83657         8.3-friendly template to avoid trouble on systems like DJGPP.
83658         Reported by Juan M. Guerrero via Stepan Kasal.
83659         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83660         close. Remove the temporary directory right away, rather than waiting
83661         for configure's at-exit trap code to do it.
83662         Suggestion from Stepan Kasal.
83663
83664 2005-01-01  Simon Josefsson  <jas@extundo.com>
83665
83666         * gnulib-tool: Print #include directives when --import'ing.
83667
83668 2004-12-28  Simon Josefsson  <jas@extundo.com>
83669
83670         * tests/test-base64.c: Include required header files.  Remove
83671         unused variables.
83672
83673 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83674
83675         * modules/error (Depends-on): Remove gettext.
83676
83677 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83678
83679         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83680         not needed.  This removes a dependency on the gettext module.
83681         [defined _LIBC]: Do not include <libintl.h>; not needed.
83682
83683 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83686         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83687
83688 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83689
83690         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83691         HAVE_DECL_STRTOLD.
83692
83693 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * modules/getdate (Depends-on): Remove alloca-opt.
83696
83697 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83700
83701 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83702
83703         * lib/argp-parse.c: Include <stddef.h>.
83704         (alignof, alignto): New macros.
83705         (parser_init): Don't assume that void * is aligned sufficiently
83706         for struct option.
83707
83708         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83709         need to extend the stack.
83710         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83711         large.
83712
83713 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83714
83715         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83716
83717 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83718
83719         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83720         (2004-10-24) change.  Apparently this was a false alarm.
83721
83722         * modules/getdate: Depend on alloca-opt, not alloca.
83723
83724 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83725
83726         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83727         Remove now-obsolete comment about AIX.
83728         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83729         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83730         (YYMAXDEPTH): New macro.
83731
83732 2004-12-18  Simon Josefsson  <jas@extundo.com>
83733
83734         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83735
83736 2004-12-18  Bruno Haible  <bruno@clisp.org>
83737
83738         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83739
83740 2004-12-18  Bruno Haible  <bruno@clisp.org>
83741
83742         * lib/fatal-signal.c (fatal_signals): Make non-const.
83743         (init_fatal_signals): New function.
83744         (uninstall_handlers, install_handlers): Ignore signals that were set to
83745         SIG_IGN.
83746         (at_fatal_signal): Call init_fatal_signals.
83747         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83748         SIG_IGN.
83749         Reported by Paul Eggert.
83750
83751 2004-12-18  Bruno Haible  <bruno@clisp.org>
83752
83753         * doc/alloca.texi: New file.
83754         * doc/alloca-opt.texi: New file.
83755
83756 2004-12-17  Jim Meyering  <jim@meyering.net>
83757
83758         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83759         Otherwise, install-sh could exit with improper exit status when
83760         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83761
83762 2004-12-16  Simon Josefsson  <jas@extundo.com>
83763
83764         * tests/test-base64.c: Add license.
83765
83766 2004-12-15  Stepan Kasal  <address@hidden>
83767
83768         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83769
83770 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         * modules/getcwd (Files): Add m4/d-ino.m4.
83773         Suggested by Mark D. Baushke.
83774
83775 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         * lib/getdate.y (textint): New member "negative".
83778         (time_zone_hhmm): New function.
83779         Expect 14 shift-reduce conflicts, not 13.
83780         (o_colon_minutes): New rule.
83781         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83782         (yylex): Set the "negative" member of signed numbers.
83783
83784 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * doc/getdate.texi (Time of day items, Time zone items):
83787         Describe new formats +00:00, UTC+00:00.
83788
83789 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83792         spurious "-l"s.  Problem reported by Stepan Kasal.
83793
83794 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83797         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83798
83799 2004-12-04  Simon Josefsson  <jas@extundo.com>
83800
83801         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83802         Vandoorselaere <yoann@prelude-ids.org>.
83803
83804 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83805
83806         Changes imported from coreutils.
83807         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83808         exist.
83809         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83810
83811 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         Changes imported from coreutils.
83814         * lib/hard-locale.c: Assume <locale.h> exists.
83815         Include "strdup.h".
83816         (GLIBC_VERSION): New macro.
83817         (hard_locale): Assume setlocale exists.
83818         Rewrite to avoid #ifdef.
83819         Use strdup rather than malloc + strcpy.
83820         * lib/human.c: Assume <locale.h> exists.
83821         (human_readable): Assume localeconv exists.
83822
83823 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * modules/hard-locale (Depends-on): Add strdup.
83826
83827 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83828
83829         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83830         convert T2, not T.  (Imported from libc.)
83831
83832 2004-11-30  Simon Josefsson  <jas@extundo.com>
83833
83834         * modules/restrict (License): Change to LGPL.
83835
83836 2004-11-30  Simon Josefsson  <jas@extundo.com>
83837
83838         * m4/restrict.m4: Add copyright and copying conditions.
83839
83840 2004-11-30  Simon Josefsson  <jas@extundo.com>
83841
83842         * m4/base64.m4: New file.
83843
83844 2004-11-30  Simon Josefsson  <jas@extundo.com>
83845
83846         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83847         base64.
83848
83849         * tests/test-base64.c: New file.
83850
83851         * modules/base64: New file.
83852
83853 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83856         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83857
83858         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83859
83860 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83861
83862         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83863         (__getcwd.c): Don't restore errno; glibc doesn't.
83864         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83865         first, falling back to our code only if its results look suspicious.
83866         Ensure that the resulting buffer is only as large as necessary.
83867
83868         * lib/readutmp.c: Include readutmp.h first.
83869         Include <errno.h>, since readutmp.h no longer does that.
83870         * lib/readutmp.h: Don't include <errno.h>,
83871         <sys/param.h>, <time.h>; not needed to establish interface.
83872         (errno): Remove decl.
83873         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83874         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83875         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83876
83877 2004-11-28  Simon Josefsson  <jas@extundo.com>
83878
83879         * lib/base64.h, base64.c: New file.
83880
83881 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83884
83885 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83888         (Depends-on): Remove pathmax, same.  Add mempcpy.
83889         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83890         (Makefile.am): Append getcwd.h to lib_SOURCES.
83891         (Include): Add getcwd.h.
83892         (Maintainer): Change from Jim Meyering to "all, glibc",
83893         since getdate now uses intended-for-glibc code.
83894         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83895         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83896
83897 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83898
83899         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83900         HP's ANSI C compiler.
83901         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83902         Declaring int functions causes warnings on some modern systems and
83903         shouldn't be needed to compile on ancient ones.
83904         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83905         defined.
83906
83907         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83908         with the following changes.
83909         (__set_errno): Parenthesize properly.
83910         Include <stdbool.h>.
83911         (MIN, MAX, MATCHING_INO): New macros.
83912         (__getcwd): Define with prototype, not K&R form.
83913         Use heuristics to allocate default buffer on stack if possible.
83914         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83915         behavior, and to avoid the PATH_MAX limit when computing
83916         ../../../../...
83917         Use MATCHING_INO to compare inode number to file.
83918         Check for arithmetic overflow in size calculations.
83919         Fix bug in reallocation of dot array that caused getcwd to fail
83920         on directories nested deeper than 75.
83921         Be more careful about saving errno on error.
83922         Do not use realloc; use only free+malloc, as this is a bit
83923         more flexible and avoids a needless copy operation.
83924         Do not inspect st_dev and st_ino for symbolic links; POSIX
83925         doesn't specify the latter.
83926         Check for closedir errors.
83927         Avoid needless casts.
83928         Use "#ifdef weak_alias" around weak_alias, to be like other
83929         glibc code.
83930         The following changes to getcwd.c have effect only when used in
83931         gnulib; they have no effect inside glibc proper.
83932         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83933         as alloca isn't used.
83934         (alloca, __alloca): Likewise.
83935         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83936         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83937         unconditionally, as gnulib assumes C89 or better.
83938         Do not include <sys/param.h>.
83939         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83940         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83941         better.
83942         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83943         Include <dirent.h> in a way that is compatible with modern Autoconf.
83944         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83945         New macros, if not already defined.
83946         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83947         Use "_LIBC", not "defined _LIBC", for consistency.
83948         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83949         a mempcpy module.
83950         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83951         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83952         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83953         credit only to Jim Meyering and adjust the copyright dates.
83954         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83955         <stdlib.h>, <unistd.h>, "pathmax.h".
83956         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83957         (INITIAL_BUFFER_SIZE): Remove.
83958         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83959
83960 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83961
83962         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83963         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83964         Use the _ONCE methods, for efficiency.
83965         Check for fcntl.h.  In test program, include <errno.h>
83966         and <fcntl.h> if available.  Remove old K&R cruft from
83967         test program.  Check for common errors in GNU/Linux,
83968         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83969         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83970         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83971         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83972         name accordingly.
83973         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83974         accommodate new getcwd.c.
83975         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83976         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83977         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83978         that's all we need now.
83979
83980 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83981
83982         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83983         argp-parse.c depends on getopt internals, that means we should
83984         always use our getopt, to be on the safe side.
83985         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83986         order not to spoil the result of an eventual previous invocation
83987         of gl_GETOPT_SUBSTITUTE.
83988
83989 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83990
83991         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83992         redefinition warnings. To avoid them, include the defines
83993         in `#if !defined __need_getopt ... #endif'. The only place
83994         where __getopt_argv_const is used is in definitions
83995         of getopt_long and getopt_long_only below, which are as well
83996         protected by `#ifndef __need_getopt'.
83997         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83998         __need_getopt after including <stdio.h> and <unistd.h> These
83999         headers might have defined it.
84000
84001 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84002
84003         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84004
84005 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84008         (futimens): New function, which uses futimes if available.
84009         (futimens, utimens): Support timespec==NULL, with same semantics
84010         as utime and utimens.
84011         * lib/utimens.h (futimens): New decl.
84012
84013 2004-11-23  Jim Meyering  <jim@meyering.net>
84014
84015         * lib/getopt_.h: Remove trailing blanks.
84016
84017 2004-11-23  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/__fpending.c: Add comment.
84020
84021 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * modules/canonicalize (Depends-on): Add xreadlink.
84024         Problem reported by James Youngman.
84025
84026 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84027
84028         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84029         New macros.
84030         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84031         optopt): Use them instead of invoking ## directly; otherwise, the
84032         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84033
84034 2004-11-19  Bruno Haible  <bruno@clisp.org>
84035
84036         * lib/strtok_r.c: Move comments from here...
84037         * lib/strtok_r.h: ... to here.
84038
84039 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84042         implementations that mishandle size_t overflow.
84043
84044 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84047         might fail.  Problem reported by Yoann Vandoorselaere.
84048         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84049         implementations that mishandle size_t overflow.
84050
84051 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * modules/canon-host (Depends-on): Add strdup.
84054
84055 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84056
84057         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84058
84059 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84060
84061         * lib/canon-host.c: Include "strdup.h".
84062         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84063         Use strdup instead of malloc/strcpy to duplicate strings.
84064
84065         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84066         (human_space_before_unit): New constant.
84067         * lib/human.c (human_readable): Support it.
84068
84069         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84070         (xgetcwd): Set errno correctly when failing.
84071         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84072         the failure is actually due to a PATH_MAX problem.
84073
84074         Further getopt changes to make it more likely that glibc will
84075         buy the changes back.
84076         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84077         (getopt): Use it, so to preserve glibc semantic
84078         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84079         when compiling for libc.
84080         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84081         (getopt_long, getopt_long_only): Use it.
84082
84083         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84084         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84085         (getopt): Argv is now char * const *, as per standard.
84086         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84087         not char *__getopt_argv_const *.
84088         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84089         _getopt_long_only_r): Likewise.
84090         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84091         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84092         _getopt_long_r, _getopt_long_only_r): Likewise.
84093         * lib/getopt_.h (__getopt_argv_const): Remove.
84094         (getopt): Argv is now char * const *, as per standard.
84095
84096         * lib/getdate.y (tORDINAL): New token.
84097         (day, relunit): Allow it for relative times.
84098         (relative_time_table): Use tORDINAL for ordinals.
84099
84100 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84101
84102         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84103         Document that "second" isn't allowed as an ordinal number.
84104
84105 2004-11-16  Jim Meyering  <jim@meyering.net>
84106
84107         * modules/closeout (Depends-on): Add fpending.
84108
84109 2004-11-15  Jim Meyering  <jim@meyering.net>
84110
84111         * lib/closeout.c: Include "__fpending.h" once again.
84112         Include <stdbool.h>.
84113         (close_stdout): Don't fail just because stdout was closed initially,
84114         since some programs don't write to stdout in the normal course of
84115         operation (other than --version and --help), and we don't want this
84116         function to make e.g. `touch file >&-' fail.
84117         But do fail if it was closed and someone has tried to write to it.
84118         E.g., `printf foo >&-' must fail.
84119
84120 2004-11-13  Jim Meyering  <jim@meyering.net>
84121
84122         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84123
84124 2004-11-12  Simon Josefsson  <jas@extundo.com>
84125
84126         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84127         small doc fix is still pending.
84128
84129 2004-11-11  Simon Josefsson  <jas@extundo.com>
84130
84131         * modules/strtok_r: New file.
84132
84133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84134         strtok_r.
84135
84136 2004-11-11  Simon Josefsson  <jas@extundo.com>
84137
84138         * m4/strtok_r.m4: New file.
84139
84140         * m4/getopt.m4: Replace opterr.
84141
84142 2004-11-11  Simon Josefsson  <jas@extundo.com>
84143
84144         * lib/strtok_r.h, strtok_r.c: New file.
84145
84146 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84149         of replacing opterr, getopt, etc.  This should handle the
84150         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84151
84152 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84153
84154         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84155         we can stop lying to compilers about the constness of argv when we
84156         are compiled outside glibc.
84157         (getopt, getopt_long, getopt_long_only): Use it.
84158         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84159         _getopt_internal, getopt): Likewise.
84160         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84161         _getopt_long_only_r): Likewise.
84162         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84163         _getopt_long_r, _getopt_long_only_r): Likewise.
84164
84165         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84166         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84167         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84168         the other external symbols.
84169         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84170         declaration, since the above renaming now works around collisions.
84171
84172 2004-11-11  Jim Meyering  <jim@meyering.net>
84173
84174         * lib/linebreak.c: Remove trailing blanks.
84175         * lib/alloca_.h: Likewise.
84176         * lib/acosl.c: Likewise.
84177         * lib/euidaccess.c: Likewise.
84178         * lib/allocsa.h: Likewise.
84179
84180 2004-11-10  Simon Josefsson  <jas@extundo.com>
84181
84182         * m4/getaddrinfo.m4: New file.
84183
84184 2004-11-10  Simon Josefsson  <jas@extundo.com>
84185
84186         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84187
84188 2004-11-10  Simon Josefsson  <jas@extundo.com>
84189
84190         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84191         getaddrinfo.
84192
84193         * modules/getaddrinfo: New file.
84194
84195 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84198
84199 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * lib/mktime.c (SHR): New macro, which is a portable
84202         substitute for >> that should work even on Crays.
84203         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84204         Problem reported by Mark D. Baushke in
84205         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84206         * lib/getdate.y (SHR): Likewise.
84207         (tm_diff): Use it.
84208         * lib/strftime.c (SHR): Likewise.
84209         (tm_diff): Use it.
84210         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84211         quote_these_too, so that right shifts are well defined.  All uses
84212         changed.
84213
84214 2004-11-10  Jim Meyering  <jim@meyering.net>
84215
84216         Ensure that no close failure goes unreported.
84217         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84218         return early when it seems there's nothing to flush.
84219         Don't include __fpending.h.
84220
84221 2004-11-10  Jim Meyering  <jim@meyering.net>
84222
84223         * modules/closeout (Depends-on): Remove fpending.
84224
84225 2004-11-10  Jim Meyering  <jim@meyering.net>
84226
84227         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84228
84229 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84232         gl_FUNC_STRFTIME.
84233         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84234         and AC_REQUIRE when possible, to avoid duplicate checks.
84235         Check for <wchar.h>.
84236
84237 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84240
84241 2004-11-09  Bruno Haible  <bruno@clisp.org>
84242
84243         * m4/sockpfaf.m4: New file.
84244
84245 2004-11-05  Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84248         Reported by Mark D. Baushke <mdb@cvshome.org>.
84249
84250 2004-11-04  Bruno Haible  <bruno@clisp.org>
84251
84252         2004-09-11  Bruno Haible  <bruno@clisp.org>
84253                 * allocsa.valgrind: New file.
84254         2004-02-06  Bruno Haible  <bruno@clisp.org>
84255                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84256                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84257                 Reported by Christopher Seip <chris.seip@hp.com>.
84258
84259 2004-11-04  Bruno Haible  <bruno@clisp.org>
84260
84261         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84262         (Makefile.am): Distribute it.
84263
84264 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84267         with errno == ERANGE if the buffer is too small.
84268         Problem reported by Mark D. Baushke.
84269
84270 2004-11-03  Albert Chin  <china@thewrittenword.com>
84271             Paul Eggert  <eggert@cs.ucla.edu>
84272
84273         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84274         equivalent, substitute $ac_type for equivalent type rather than
84275         blindly using uint32_t *always* which won't work if uint32_t is not
84276         available.  Define _UINT32_T to work around typedef of uint32_t if
84277         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84278         2.5.1.
84279
84280 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * m4/jm-macros.m4: Sync from coreutils.
84283         (gl_MACROS): Check for mbrlen, for pathchk.
84284         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84285
84286 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * lib/xreadlink.c (MAXSIZE): New macro.
84289         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84290         size does not exceed MAXSIZE.  Avoid cast.
84291         As suggested by Mark D. Baushke in
84292         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84293         if readlink fails with buffer size just under MAXSIZE, try again
84294         with MAXSIZE.
84295
84296 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84297
84298         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84299
84300 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84301         and  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84304         (get_date): Overparenthesize to avoid GCC warning.
84305
84306 2004-11-02  Bruno Haible  <bruno@clisp.org>
84307
84308         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84309         returns void.
84310
84311 2004-11-02  Bruno Haible  <bruno@clisp.org>
84312
84313         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84314         function returns void.
84315
84316 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84319         fflush_unlocked, flockfile, funlockfile, funlockfile,
84320         fputs_unlocked, putc_unlocked.
84321
84322 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84325         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84326         already declared.
84327
84328 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * modules/getdate (Files): Add doc/getdate.texi.
84331         (Depends-on): Add setenv, xalloc.
84332
84333 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84334
84335         * lib/getdate.y: Add support for TZ="foo" within a date string.
84336         Fix some bugs near time_t boundaries.  Reject dates with
84337         out-of-range components, e.g., "Sept 31".
84338         Include <stdlib.h>, "setenv.h", "xalloc.h".
84339         (ISDIGIT_LOCALE): Remove; unused.
84340         Note that the TZ and time functions used here are not reentrant.
84341         (mktime_ok, get_tz): New functions.
84342         (TZBUFSIZE): New constant.
84343         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84344         This requires that we sometimes generate our own TZ="XXX..." setting.
84345
84346 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         * doc/getdate.texi: New file, from coreutils with modifications for
84349         the new TZ parsing.
84350
84351 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84352
84353         * lib/mktime.c (not_equal_tm): Remove redundant check.
84354
84355 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * modules/regex (lib_SOURCES): Add regex.c.
84358         Reported by James Youngman in
84359         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84360
84361 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * lib/getdate.y: Use Bison 1.875 features, and some minor
84364         code cleanups.  This change does not affect semantics.
84365         Don't include <stdlib.h>; no longer needed.
84366         Don't include unlocked-io.h; only the "#if TEST" code uses
84367         stdio, and performance isn't crucial there.
84368         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84369         Bison 1.875 features as described below.
84370         All uses of "PC." replaced by "pc->".
84371         (YYSTYPE): Add a forward declaration.
84372         (yylex, yyerror): Use full prototypes in forward decls.
84373         Use "%pure-parser" rather than obsolescent "%pure_parser".
84374         Use %parse-param and %lex-param instead of obsolescent
84375         YYPARSE_PARAM and YYLEX_PARAM.
84376         (meridian_table, month_and_day_table, time_units_table,
84377         relative_time_table, time_zone_table, military_table,
84378         lookup_zone, lookup_word, get_date):
84379         Use NULL instead of 0 where appropriate.
84380         (to_hour): Avoid abort (), to avoid a dependency on
84381         stdlib.h.
84382         (yyerror, yylex): Now accepts parser_control * arg.
84383         (main) [TEST]: Use '\0' rather than 0 for char.
84384
84385 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84388
84389 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84392         It's now the caller's responsibility to handle the case where
84393         !HAVE_GETPAGESIZE && !defined getpagesize.
84394
84395         * lib/mktime.c (leapyear): Arg is long int, not int.
84396
84397 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84400
84401 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84404         missing.  Problem reported by James Youngman.
84405
84406 2004-10-16  Simon Josefsson  <jas@extundo.com>
84407
84408         * gnulib-tool: Fix comments.  Fix parse problem.
84409         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84410
84411 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84414         implementation of getopt_long.  Problem reported by Alexander Taler in:
84415         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84416
84417 2004-10-15  Bruno Haible  <bruno@clisp.org>
84418
84419         * gnulib-tool: Untabify. Initialize supplied_libname.
84420         (func_usage): More homogenous output.
84421         (func_modules_transitive_closure, func_modules_to_filelist,
84422         func_emit_lib_Makefile_am): New functions.
84423         (func_import): New function, extracted from big case statement. Use
84424         func_get_license, func_modules_transitive_closure,
84425         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84426         opt_lgpl. Don't use test -a, as it's not portable.
84427         (func_create_testdir): Use func_modules_transitive_closure,
84428         func_modules_to_filelist, func_emit_lib_Makefile_am.
84429
84430 2004-10-15  Bruno Haible  <bruno@clisp.org>
84431
84432         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84433
84434 2004-10-15  Bruno Haible  <bruno@clisp.org>
84435
84436         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84437         the portions belonging to each module.
84438         Suggested by Derek Robert Price <derek@ximbiot.com>.
84439
84440 2004-10-12  Simon Josefsson  <jas@extundo.com>
84441
84442         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84443         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84444         to real functions.
84445
84446 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84447
84448         * modules/vsnprintf: New file.
84449
84450 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84451
84452         * m4/vsnprintf.m4: New file.
84453
84454 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84455
84456         * lib/vsnprintf.h: New file.
84457         * lib/vsnprintf.c: New file.
84458
84459 2004-10-11  Bruno Haible  <bruno@clisp.org>
84460
84461         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84462         vsnprintf.
84463
84464 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84465
84466         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84467
84468 2004-10-07  Bruno Haible  <bruno@clisp.org>
84469
84470         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84471         fits into the provided buffer.
84472
84473 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * lib/diacrit.c, diacrit.h: Add GPL notice.
84476
84477         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84478         notice.
84479         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84480         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84481         This avoids a potential constant-folding bug.
84482
84483 2004-10-05  Bruno Haible  <bruno@clisp.org>
84484
84485         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84486         for the declaration of strsep.
84487
84488 2004-10-05  Bruno Haible  <bruno@clisp.org>
84489
84490         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84491
84492 2004-10-04  Simon Josefsson  <jas@extundo.com>
84493
84494         * modules/memmem: New file.
84495         * tests/test-memmem.c: New file.
84496         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84497
84498 2004-10-04  Simon Josefsson  <jas@extundo.com>
84499
84500         * m4/memmem.m4: New file.
84501
84502 2004-10-04  Simon Josefsson  <jas@extundo.com>
84503
84504         * lib/memmem.h: New file.
84505         * lib/memmem.c: New file, taken from glibc.
84506
84507 2004-10-04  Simon Josefsson  <jas@extundo.com>
84508
84509         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84510         '#ifdef USE_UNLOCKED_IO'.
84511
84512 2004-10-04  Simon Josefsson  <jas@extundo.com>
84513
84514         * config/srclist.txt: Add memmem from glibc.
84515
84516 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84519
84520         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84521         modules/exclude, modules/getdate, modules/getline,
84522         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84523         modules/getusershell, modules/linebuffer, modules/md5,
84524         modules/mountlist, modules/posixtm, modules/readtokens,
84525         modules/readutmp, modules/regex, modules/sha1,
84526         modules/version-etc, modules/yesno:
84527         Remove dependency on unlocked-io.
84528
84529 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84530
84531         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84532
84533         * m4/unlocked-io.m4: Add copyright notice.
84534         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84535
84536 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84539         * lib/xmalloc.c (xmemdup): Likewise.
84540         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84541         XFREE): Remove these long-obsolescent macros.
84542         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84543         * lib/xstrdup.c: Remove.
84544
84545         * lib/regex.c (re_comp): Cast gettext return value to char *,
84546         Problem reported by Martin Neitzel via Mark D. Baushke.
84547
84548 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84549
84550         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84551         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84552         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84553         regex.c, sha1.c, version-etc.c, yesno.c:
84554         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84555         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84556         the includer's responsibility.
84557
84558         Sync from coreutils.
84559
84560         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84561         points to the start of a string, as the C Standard says the
84562         resulting behavior is undefined.
84563
84564         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84565         simple -> simple_backups, numbered_existing ->
84566         numbered_existing_backups, numbered -> numbered_backups
84567         to avoid shadowing problems.  All uses changed.
84568         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84569         * lib/backupfile.c (check_extension, numbered_backup):
84570         Rename locals to avoid shadowing 'basename'.
84571         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84572         once.
84573
84574         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84575         * lib/.cvsignore: Add getopt.h.
84576
84577 2004-10-04  Bruno Haible  <bruno@clisp.org>
84578
84579         * modules/README: New file.
84580         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84581         not a module.
84582
84583 2004-10-02  Jim Meyering  <jim@meyering.net>
84584
84585         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84586
84587 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84588
84589         * modules/strsep: New file.
84590
84591 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84592
84593         * m4/strsep.m4: New file.
84594
84595 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84596
84597         * lib/strsep.h: New file.
84598         * lib/strsep.c: New file.
84599
84600 2004-10-01  Simon Josefsson  <jas@extundo.com>
84601
84602         * lib/snprintf.c (snprintf): Handle size==0.
84603
84604 2004-10-01  Simon Josefsson  <jas@extundo.com>
84605             Bruno Haible  <bruno@clisp.org>
84606
84607         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84608         (snprintf): Declare 'args'.
84609
84610 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84611
84612         * lib/snprintf.c: Remove comments as to why each header is needed.
84613
84614 2004-10-01  Bruno Haible  <bruno@clisp.org>
84615
84616         * MODULES.html.sh: Add strsep.
84617
84618 2004-09-30  Simon Josefsson  <jas@extundo.com>
84619
84620         * modules/snprintf: New file.
84621
84622 2004-09-30  Simon Josefsson  <jas@extundo.com>
84623
84624         * m4/snprintf.m4: New file.
84625
84626 2004-09-30  Simon Josefsson  <jas@extundo.com>
84627
84628         * lib/snprintf.h, lib/snprintf.c: New files.
84629
84630 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84631
84632         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84633         (hol_entry_help): Never translate an empty string.
84634         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84635         * lib/argp.h (OPTION_NO_TRANS): New option.
84636
84637 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * modules/argp (Maintainer): Replace Simon Josefsson
84640         by Sergey Poznyakoff.
84641
84642 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84645         changes merged back into glibc.
84646
84647 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84650
84651 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84652
84653         * lib/xvasprintf.c: Include xalloc.h.
84654         (xvasprintf): Use xalloc_die, not xmalloc_die.
84655
84656 2004-09-29  Bruno Haible  <bruno@clisp.org>
84657
84658         * modules/alloca-opt: New file, derived from modules/alloca.
84659         * modules/allocsa: Depend on alloca-opt instead of alloca.
84660         * modules/setenv: Likewise.
84661         * modules/vasnprintf: Likewise.
84662         * MODULES.html.sh: Add alloca-opt.
84663
84664 2004-09-28  Simon Josefsson  <jas@extundo.com>
84665
84666         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84667         LGPL, and to replace license template from GPL to LGPL.
84668
84669 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84670
84671         * modules/dummy: Change license to LGPL.
84672
84673 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84674
84675         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84676
84677 2004-09-24  Simon Josefsson  <jas@extundo.com>
84678
84679         * modules/minmax (License): Change from GPL to LGPL.
84680
84681 2004-09-23  Simon Josefsson  <jas@extundo.com>
84682
84683         * gnulib-tool (--import): Typo.
84684
84685 2004-09-23  Simon Josefsson  <jas@extundo.com>
84686
84687         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84688
84689 2004-09-22  Bruno Haible  <bruno@clisp.org>
84690
84691         * modules/*: Add 'License' field.
84692         * gnulib-tool: Accept --extract-license option.
84693         (func_get_license): New function.
84694
84695 2004-09-21  Bruno Haible  <bruno@clisp.org>
84696
84697         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84698         Reported by Simon Josefsson.
84699
84700 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84701
84702         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84703         gl_AC_TYPE_LONG_LONG.
84704
84705 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84708
84709 2004-09-18  Simon Josefsson  <jas@extundo.com>
84710         and  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84713         calls with autoreconf.  Define GL_LIB.
84714
84715 2004-09-14  Karl Berry  <karl@gnu.org>
84716
84717         * config/srclist.txt: unsync setenv.c, sigh.
84718
84719 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84722         Problem reported by Bruno Haible in:
84723         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84724
84725 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * config/srclist.txt: Comment out argp-pvh.c.
84728
84729 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84732         in case some system header has #define'd it.  Problem reported by
84733         Soeren D. Schulze in
84734         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84735
84736 2004-09-09  Karl Berry  <karl@gnu.org>
84737
84738         * regex.[ch]: delete from the root.  These were supposed to be
84739                 synced with emacs cvs, but this has not happened for about
84740                 a year, and anyway nothing else uses emacs regex.[ch].
84741                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84742                 lib/regex[.ch] is untouched.
84743
84744 2004-09-09  Bruno Haible  <bruno@clisp.org>
84745
84746         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84747
84748 2004-09-09  Bruno Haible  <bruno@clisp.org>
84749
84750         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84751         modifications.
84752         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84753
84754 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84755
84756         * modules/xvasprintf: New file.
84757         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84758
84759 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84760
84761         * lib/xvasprintf.h: New file.
84762         * lib/xvasprintf.c: New file.
84763         * lib/xasprintf.c: New file.
84764
84765 2004-09-08  Bruno Haible  <bruno@clisp.org>
84766
84767         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84768
84769 2004-09-08  Bruno Haible  <bruno@clisp.org>
84770
84771         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84772         length is > INT_MAX.
84773         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84774         more.
84775
84776 2004-09-08  Bruno Haible  <bruno@clisp.org>
84777
84778         * lib/stdint_.h: New file, taken from GNU clisp.
84779
84780 2004-09-08  Bruno Haible  <bruno@clisp.org>
84781             Oskar Liljeblad  <oskar@osk.mine.nu>
84782
84783         * modules/stdint: New file.
84784         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84785
84786 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         Import from coreutils.
84789         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84790         strings on unbounded length.  alloca's performance benefits aren't
84791         that important here.
84792         (V_STRDUP): Remove.
84793         (parse_with_separator): New function, with most of the internals
84794         of the old parse_user_spec.  Allow user to omit both user and group,
84795         for compatibility with FreeBSD.
84796         Clone only the user name, not the entire spec.
84797         Do not set *uid, *gid unless entirely successful.
84798         Avoid memory leak in some failing cases.
84799         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84800         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84801         (parse_user_spec): Rewrite to use parse_with_separator.
84802
84803 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84804
84805         * modules/userspec: Don't depend on alloca.
84806
84807 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84810
84811 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84812
84813         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84814         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84815         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84816
84817 2004-08-16  Simon Josefsson  <jas@extundo.com>
84818
84819         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84820         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84821         Add --dry-run for --import.
84822         Let user provided command line parameters override configure.ac
84823         settings.
84824
84825 2004-08-12  Simon Josefsson  <jas@extundo.com>
84826
84827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84828         as discussed with Paul Eggert in threads rooted at
84829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84830         and
84831         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84832         Before, the test was empty, and relied on ELIDE_CODE in source
84833         code.)
84834         (gl_PREREQ_GETOPT): New macro.
84835         (gl_GETOPT): Use them.
84836
84837 2004-08-12  Simon Josefsson  <jas@extundo.com>
84838
84839         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84840         * lib/getopt_.h: Renamed from getopt.h.
84841
84842 2004-08-12  Simon Josefsson  <jas@extundo.com>
84843
84844         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84845         Change default library name from libfoo to libgnu.
84846         Now, if you have a configure.ac that says:
84847                 gl_SOURCE_BASE(gl)
84848                 gl_M4_BASE(gl/m4)
84849                 gl_MODULES(error getopt etcetera)
84850                 gl_INIT
84851         you can import all you need by running:
84852                 ../gnulib/gnulib-tool --import
84853
84854         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84855         (Makefile.am): Rewrite, use logic from argz.
84856         (Include): Use <getopt.h> instead of "getopt.h".
84857
84858 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * modules/argp (Files): Add m4/unlocked-io.m4.
84861         (Depends-on): Add extensions.
84862
84863 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84866         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84867         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84868         Check for program_invocation_name, program_invocation_short_name,
84869         flockfile, funlockfile, features.h, _getopt_long_only_r.
84870
84871 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84874         its complicated substitute.
84875         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84876         and program_invocation_name.
84877         (__argp_basename) [!_LIBC]: Remove; the only use was
84878         replaced by its body.
84879         (__argp_short_program_name): Change condition from
84880         !defined __argp_short_program_name to
84881         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84882         to match argp-namefrob.h.
84883         (__argp_failure): Don't assume strerror_r returns char *.
84884         * lib/argp-parse.c (N_): Define unconditionally.
84885         (argp_default_options): Fill out initializers with 0 to avoid
84886         gcc warnings.
84887
84888 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84891         getopt1.c.
84892
84893 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         Merge from coreutils.
84896
84897         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84898
84899         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84900         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84901
84902 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         Merge from coreutils.
84905
84906         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84907         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84908         for Reliant Unix 5.43.
84909
84910         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84911         (union fooround): Use uintmax_t, not long int.
84912         The rest is a merge from libc:
84913         [defined _LIBC]: Include <shlib-compat.h>.
84914         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84915
84916         * lib/settime.c (settime): Recode to avoid warning with
84917         Sun Forte C 6U2.
84918
84919         * lib/strverscmp.c: Convert to UTF-8.
84920
84921 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84922
84923         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84924         m4/uintmax_t.m4.
84925
84926 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * modules/xalloc-die: New file.
84929         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84930
84931         * modules/md5 (Files): Add m4/uint32_t.m4.
84932         * modules/sha1: Renamed from modules/sha.
84933         (Files):
84934         Rename lib/sha.h to lib/sha1.h.
84935         Rename lib/sha.c to lib/sha1.c.
84936         Rename m4/sha.m4 to m4/sha1.m4.
84937         (lib_SOURCES): Likewise.
84938         (configure.ac): Rename gl_SHA to gl_SHA1.
84939         (Include): sha.h -> sha1.h.
84940
84941 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84942
84943         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84944         * m4/sha1.m4: Renamed from sha.m4.
84945         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84946
84947 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * lib/obstack.h (obstack_empty_p):
84950         Don't assume that chunk->contents is suitably aligned.
84951         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84952         Likewise. Problem reported by Benno in
84953         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84954
84955         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84956         readable.  This could be improved further but it'd take some work.
84957
84958 2004-08-08  Simon Josefsson  <jas@extundo.com>
84959
84960         * modules/xgethostname (Depends-on): Remove exit and error (not
84961         used).
84962
84963         * modules/getpass-gnu: Add getpass.h.
84964         (Depends-on): Add stdbool.
84965         * modules/getpass: Add getpass.h.
84966
84967 2004-08-08  Simon Josefsson  <jas@extundo.com>
84968
84969         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84970         Check getpass declaration.
84971
84972 2004-08-08  Simon Josefsson  <jas@extundo.com>
84973
84974         * lib/xgethostname.c: Don't include error.h (not used).
84975
84976         * lib/getpass.h: Add.
84977         * lib/getpass.c: Include getpass.h first.
84978
84979 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * lib/xalloc-die.c: New file.
84982         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84983         All uses removed.
84984         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84985         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84986         xalloc-die.c.
84987         (_, N_, xalloc_die): Move to xalloc-die.c.
84988         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84989         so that we needn't mess with xalloc_msg_memory_exhausted.
84990
84991         * lib/sha1.h: Renamed from sha.h.
84992         (SHA1_H): Renamed from _SHA_H.
84993         (sha1_ctx): Renamed from sha_ctx.
84994         (sha1_init_ctx): Renamed from sha_init_ctx.
84995         (sha1_process_block): Renamed from sha_process_block.
84996         (sha1_process_bytes): Renamed from sha_process_bytes.
84997         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84998         (sha1_read_ctx): Renamed from sha_read_ctx.
84999         (sha1_stream): Renamed from sha_stream.
85000         (sha1_buffer): Renamed from sha_buffer.
85001         * lib/sha1.c: Likewise; renamed from sha.c.
85002         Do not include <sys/types.h>.
85003         Include <stddef.h> rather than <stdlib.h>.
85004
85005 2004-08-08  Bruno Haible  <bruno@clisp.org>
85006
85007         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85008         FILESYSTEM_PREFIX_LEN.
85009         * lib/progreloc.c: Likewise.
85010         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85011
85012 2004-08-06  Simon Josefsson  <jas@extundo.com>
85013
85014         * modules/progname (Depends-on): Don't depend on stdbool.
85015
85016 2004-08-06  Simon Josefsson  <jas@extundo.com>
85017
85018         * modules/getsubopt: New file.
85019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85020         getsubopt.
85021
85022 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         More merge from coreutils.
85025
85026         * m4/utimens.m4, m4/utimecmp.m4: New files.
85027         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85028         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85029         prereq.m4, sha.m4: Import changes from coreutils.
85030
85031 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         More merge from coreutils.
85034         * modules/raise, modules/readtokens0, modules/utimens:
85035         * modules/utimecmp, module/xnanosleep: New files.
85036         * modules/strftime: Add lib/strftime.h.
85037         Change include from <time.h> to "strftime.h".
85038         * modules/yesno: Add lib/yesno.h.
85039         * modules/backupfile: Remove lib/addext.c.
85040         * modules/euidaccess: Add stat-macros.h.
85041         * modules/canonicalize, modules/euidaccess,
85042         modules/filemode, modules/lchown, modules/makepath,
85043         modules/rmdir, modules/stat: Likewise.
85044
85045 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         Merge from tar.
85048         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85049         SIZE_MAX is a valid preprocessor constant.
85050         (__argp_basename): Change from "#ifndef _LIBC"
85051         to "#ifndef __argp_short_program_name", so that
85052         we don't compile these functions for tar.
85053
85054         More merges from coreutils.
85055         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85056         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85057         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85058         * lib/addext.c: Remove; no longer needed.
85059         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85060         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85061         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85062         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85063         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85064         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85065         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85066         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85067         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85068         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85069         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85070         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85071         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85072         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85073         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85074         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85075         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85076         Import changes from coreutils.
85077
85078 2004-08-05  Simon Josefsson  <jas@extundo.com>
85079
85080         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85081
85082 2004-08-05  Simon Josefsson  <jas@extundo.com>
85083
85084         * m4/getsubopt.m4: New file.
85085
85086 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         Merge from coreutils.
85089
85090         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85091         * m4/getcwd-path-max.m4: New files.
85092
85093         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85094         FILESYSTEM_PREFIX_LEN ->
85095         FILE_SYSTEM_PREFIX_LEN.
85096         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85097         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85098         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85099         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85100
85101         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85102         prerequisite modules now handle the DOS stuff.
85103         Don't check for unistd.h.
85104
85105 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         Merge from coreutils.
85108
85109         * lib/.gdb-history: Remove; this doesn't belong here.
85110
85111         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85112         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85113         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85114         * lib/getcwd.c: New files.
85115
85116         * lib/dirname.h: Include <stdbool.h>.
85117         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85118         for consistency with POSIX terminology.  All uses changed.
85119         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85120         (strip_trailing_slashes): Use bool for booleans.
85121         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85122
85123         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85124         sometimes returns a positive errno value even when it succeeds.
85125         (print_errno_message) [!LIBC]: Fall back on strerror if
85126         __strerror_r fails.
85127
85128         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85129         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85130         (longest_relative_suffix): New function.
85131         (path_concat): Use it.  Assume first argument is not NULL.
85132         Port to DOS.  Omit redundant separators.
85133         Report an error instead of returning NULL.
85134         Use mempcpy instead of memcpy.
85135         (xpath_concat): Remove: not declared or used.
85136
85137         * lib/same.h: Include <stdbool.h>
85138         (same_name): Return bool, not int.
85139         * lib/same.c (same_name): Likewise.
85140         (errno): Don't declare; we assume C89 or better now.
85141
85142         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85143         if not already defined.
85144
85145         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85146         * lib/dup-safer.c (errno): Likewise.
85147
85148 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85149
85150         Merge from coreutils.
85151         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85152         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85153         * modules/path-concat: Don't depend on strdup.
85154
85155 2004-08-03  Simon Josefsson  <jas@extundo.com>
85156
85157         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85158         * lib/progname.h: Don't include stdbool.h.
85159
85160 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85163         * MODULES.html.sh (func_all_modules): Remove fatal.
85164
85165 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85166
85167         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85168
85169 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85170
85171         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85172         working.
85173
85174 2004-08-02  Simon Josefsson  <jas@extundo.com>
85175
85176         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85177         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85178         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85179
85180 2004-08-01  Simon Josefsson  <jas@extundo.com>
85181
85182         * lib/xgetdomainname.c: Include stdlib.h, for free().
85183
85184 2004-07-19  Bruno Haible  <bruno@clisp.org>
85185
85186         * MODULES.html.sh (func_all_modules): Add dummy.
85187
85188 2004-07-16  Simon Josefsson  <jas@extundo.com>
85189
85190         * modules/dummy: New file.
85191
85192 2004-07-16  Simon Josefsson  <jas@extundo.com>
85193
85194         * lib/dummy.c: New file.
85195
85196 2004-07-16  Bruno Haible  <bruno@clisp.org>
85197
85198         * lib/backupfile.h: Add extern "C" for C++.
85199         * lib/closeout.h: Likewise.
85200         * lib/copy-file.h: Likewise.
85201         * lib/findprog.h: Likewise.
85202         * lib/full-write.h: Likewise.
85203         * lib/pathname.h: Likewise.
85204         * lib/progname.h: Likewise.
85205         * lib/stpcpy.h: Likewise.
85206         * lib/stpncpy.h: Likewise.
85207         * lib/strcase.h: Likewise.
85208         * lib/strstr.h: Likewise.
85209         * lib/xalloc.h: Likewise.
85210
85211         * lib/mbswidth.h: Add extern "C" for C++.
85212         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85213
85214 2004-07-13  Robert Millan  <robertmh@gnu.org>
85215
85216         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85217
85218 2004-07-09  Simon Josefsson  <jas@extundo.com>
85219
85220         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85221         failed without this.)
85222
85223 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * modules/chown (Files): Add lib/fchown-stub.c, since
85226         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85227
85228 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * lib/fchown-stub.c: New file.
85231
85232 2004-06-24  Jim Meyering  <jim@meyering.net>
85233
85234         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85235
85236 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85237
85238         * modules/argz: Omit "#include".
85239
85240         * MODULES.html.sh (func_all_modules): Add calloc, to match
85241         2004-06-01 addition of calloc module.
85242
85243 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         * m4/argz.m4: New file, which is autoupdated from libtool.
85246
85247 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85250         libtool.
85251
85252 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * config/srclist-update: Don't insist on "USA." before the
85255         close-comment, as libtool omits the period and puts the */ on a
85256         separate line.
85257         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85258         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85259
85260 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85261
85262         * modules/argz: New file.
85263         * MODULES.html.sh (func_all_modules): Add argz.
85264
85265 2004-06-12  Jim Meyering  <jim@meyering.net>
85266         and  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * modules/hash (Files): Add lib/xalloc.h.
85269         * modules/pipe (Depends-on): Add wait-process.
85270         * modules/stat (Depends-on): Add xalloc.
85271         * modules/userspec (Files): Add lib/userspec.h.
85272         * modules/xstrto
85273
85274         Upgrade from gettext-0.13.
85275         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85276         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85277         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85278
85279 2004-06-10  Jim Meyering  <jim@meyering.net>
85280
85281         * lib/calloc.c: New file.
85282
85283 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85284
85285         * lib/getdate.y (yylex): Allow space between sign and number.
85286         Problem reported by Dan Jacobson.
85287
85288 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         Merge from coreutils CVS.
85291
85292         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85293         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85294         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85295         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85296         xstrtol.m4: Fix copyright date and/or serial number.
85297
85298         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85299         See if we need an fchown replacement.
85300         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85301         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85302         and use the replacement function if we detect either defect.
85303
85304         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85305         gl_UTIMECMP.
85306
85307 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85308         and  Jim Meyering  <jim@meyering.net>
85309
85310         Merge from coreutils CVS.
85311
85312         * lib/stat-macros.h: New file, with contents from file-type.h
85313         and coreutils' system.h.
85314         * lib/file-type.c: Include "stat-macros.h".
85315         * lib/file-type.h (file_type): Move all macro definitions to new file,
85316         stat-macros.h.
85317
85318         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85319         Wrap old code with this conditional.
85320         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85321         function that does not dereference symlinks.
85322         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85323
85324         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85325         dependency problems.
85326         (xreadlink): Accept new arg SIZE, for efficiency.
85327         All decls and uses changed.
85328         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85329
85330         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85331         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85332
85333         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85334         sysexits.h.
85335
85336 2004-06-01  Jim Meyering  <jim@meyering.net>
85337
85338         * m4/calloc.m4: New file.
85339
85340 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85343         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85344         Also, fix a typo in a diagnostic.
85345
85346 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85349         or AC_FUNC_REALLOC.
85350
85351 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85352
85353         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85354         macros to be defined.
85355         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85356         the allocator returns NULL because the requested size is zero.
85357
85358 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85361         var.  Add comment explaining why libc still defines it.  This
85362         merges the following patch from glibc:
85363         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85364
85365 2004-05-20  Andreas Schwab  <schwab@suse.de>
85366
85367         * m4/free.m4: Replace free if it not known to work, not the other
85368         way round.
85369
85370 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85373         present in glibc since revision 1.1 of this file.
85374         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85375         obstack_alignment_mask, obstack_alloc, obstack_base,
85376         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85377         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85378         obstack_grow0, obstack_init, obstack_int_grow,
85379         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85380         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85381         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85382         nonexistent functions.
85383
85384 2004-05-18  Karl Berry  <karl@gnu.org>
85385
85386         * config/srclist.txt: break link for vasnprintf.c.
85387
85388 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         Port obstack to the AS/400, where pointers are 16 bytes wide and
85391         you cannot cast an integer to a valid pointer.  This patch is
85392         currently waiting to be integrated into glibc; see
85393         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85394
85395         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85396         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85397         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85398         (struct obstack): temp member is now a union of a pointer and
85399         an integer, instead of an integer.  All integer uses changed.
85400         This does not affect the physical layout of struct obstack,
85401         except on hosts (like the AS/400) where the size or alignment of
85402         void * is greater than that of ptrdiff_t.
85403         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85404         __STDC__)]: Store temporary in pointer member of union, not
85405         integer member.
85406         * lib/obstack.c: Include <stddef.h>, for offsetof.
85407         (struct fooalign): Remove; it doesn't need a name.
85408         (union fooround): Change double to long double, and add void *.
85409         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85410         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85411         not a macro.  Hence the values are always int; so remove all
85412         casts-to-int in uses.
85413
85414 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85415
85416         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85417         we can get this patch merged into glibc.
85418
85419 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85420             Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * m4/argp: Depend on alloca.
85423
85424 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85425             Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85428         freecoding.
85429
85430 2004-05-17  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85433         precision that consists of a '.' followed by an empty digit string.
85434         Patch by Tor Lillqvist <tml@iki.fi>.
85435
85436 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85437
85438         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85439         for backward compatibility with older code.  We need our own
85440         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85441         it under some other name, and our alloca.h will define it.
85442
85443 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85444             Derek Price  <derek@ximbiot.com>
85445
85446         * lib/alloca.c: Include <alloca.h>, to get our interface.
85447         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85448         include <alloca.h> first.  Use C89 prototype for alloca; this
85449         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85450         Use #elif for simplicity, since we can assume C89 now.
85451         Don't try to source the system alloca.h since it will not be found
85452         and to prevent recursively including its replacement.
85453         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85454         * lib/regex.c: Likewise.
85455
85456 2004-05-16  Derek Price  <derek@ximbiot.com>
85457             Paul Eggert  <eggert@cs.ucla.edu>
85458
85459         getline cleanup.  This changes the getndelim2 API: both order of
85460         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85461         no delimiter).
85462
85463         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85464         interface does that.
85465         (getline): Always use getdelim, so that we don't have two
85466         copies of this code.
85467         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85468         if available.
85469         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85470         (GETNDELIM2_MAXIMUM): New macro.
85471         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85472         instead of the old practice of delim2==0.  All callers changed.
85473         Return -1 on overflow, instead of returning junk.
85474         Do not set *linesize unless allocation succeeds.
85475         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85476         that we include sys/types.h.
85477         * lib/getnline.h: Likewise.
85478         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85479         (getndelim2): Reorder arguments.
85480         * lib/getnline.c (getnline, getndelim):
85481         Don't discard the NMAX argument.
85482         (getnline): Invoke getndelim, to avoid code duplication.
85483         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85484         of (size_t) -1 by callers of the getnline family.
85485
85486 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85489         Check for gettimeofday.
85490         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85491         Check for settimeofday, stime.
85492
85493 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * lib/nanosleep.c (suspended): Change its type from int to
85496         sig_atomic_t volatile.
85497         (first_call): Make it private to rpl_nanosleep, and have it
85498         be zero initially as that's a bit faster.
85499         (my_usleep): Round up fractional times instead of truncating them,
85500         as this is the usual meaning for 'sleep'.
85501
85502         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85503         doesn't work.
85504         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85505         (ENOSYS): Define if not defined.
85506         (settime): Fall back on stime if it exists and settimeofday fails.
85507         But don't bother with fallbacks if a method fails with errno == EPERM.
85508
85509 2004-05-11  Jim Meyering  <jim@meyering.net>
85510
85511         Prior to this change, the save_cwd caller required read access to the
85512         current directory on most systems (ones with the fchdir function).
85513
85514         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85515         fails, try write-only, and finally, resort to using xgetcwd.
85516
85517 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * lib/obstack.c, obstack.h: Import changes from libc.
85520
85521 2004-04-28  Bruno Haible  <bruno@clisp.org>
85522
85523         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85524         also implicitly appends .exe to executables.
85525         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85526         accepts Windows pathnames.
85527         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85528         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85529         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85530         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85531         Reported by Derek Robert Price <derek@ximbiot.com>.
85532
85533 2004-04-21  Karl Berry  <karl@gnu.org>
85534
85535         * config/srclist.txt (localcharset.c): break sync.
85536
85537 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85538
85539         * m4/host-os.m4: Add a copyright notice.
85540
85541 2004-04-20  Jim Meyering  <jim@meyering.net>
85542
85543         Change UTILS_ to gl_ in AC_DEFINE'd names.
85544         Change utils_- and jm_-prefixed variables, too.
85545         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85546         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85548
85549         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85550         Don't emit trailing blanks.
85551         Also rename jm_-prefixed variables to have gl_ prefix.
85552
85553         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85554         Also rename jm_-prefixed variables to have gl_ prefix.
85555
85556         * m4/jm-macros.m4: Reflect the renamings.
85557         * m4/prereq.m4: Likewise.
85558
85559 2004-04-20  Jim Meyering  <jim@meyering.net>
85560
85561         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85562         memory.
85563
85564 2004-04-20  Jim Meyering  <jim@meyering.net>
85565             Bruno Haible  <bruno@clisp.org>
85566
85567         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85568         memory when realloc fails.
85569
85570 2004-04-19  Jim Meyering  <jim@meyering.net>
85571
85572         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85573         now that readutmp.c may call `free (0)'.
85574
85575 2004-04-19  Bruno Haible  <bruno@clisp.org>
85576
85577         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85578         * m4/inttypes_h.m4: Likewise.
85579         * m4/stdint_h.m4: Likewise.
85580         * m4/intmax_t.m4: Likewise.
85581         * m4/uintmax_t.m4: Likewise.
85582
85583 2004-04-18  Jim Meyering  <jim@meyering.net>
85584
85585         * m4/prereq.m4: Don't forbid jm_ prefix.
85586
85587         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85588         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85589         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85590         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85591         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85592         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85593         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85594         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85595         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85596         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85597         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85598         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85599         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85600         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85601         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85602         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85603         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85604         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85605         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85606
85607 2004-04-18  Jim Meyering  <jim@meyering.net>
85608
85609         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85610         failure, don't leak memory and do call END_UTMP_ENT.
85611
85612 2004-04-16  Jim Meyering  <jim@meyering.net>
85613
85614         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85615         coreutils' stat program.
85616         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85617
85618 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85619
85620         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85621         C89.
85622         (CHAR_BIT): Remove, since we assume C89.
85623         Include <stdint.h> if available, as per current Autoconf CVS advice.
85624
85625 2004-03-31  Jim Meyering  <jim@meyering.net>
85626
85627         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85628         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85629         * m4/xalloc.m4: Likewise.
85630
85631 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85632
85633         Merge from coreutils.
85634
85635         * m4/inttostr.m4: New file.
85636         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85637         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85638         Require gl_CLOCK_TIME.
85639         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85640
85641 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85642
85643         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85644         not bool, to be more consistent with Unix conventions.
85645         Suggested by Bruno Haible.
85646
85647         Merge from coreutils.
85648
85649         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85650         * lib/umaxtostr.c: New files.
85651
85652         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85653         the usual <time.h> dance.
85654         (get_date): Change signature to support fractional time stamps.
85655         All callers changed.
85656         * lib/getdate.y: Include "getdate.h" first, as we can now
85657         assume C89 and don't need to worry about 'const'.
85658         Similarly, include "unlocked-io.h" near start, not in middle.
85659         Include <limits.h>.
85660         (textint.value): Use long int rather than int.
85661         (textint.digits): Use size_t rather than int.
85662         (BILLION, LOG10_BILLION): New constants.
85663         (parser_control): New member rel_ns.  Members day_ordinal,
85664         time_zone, month, day, hour, minutes, rel_year, rel_month,
85665         rel_day, rel_hour, rel_minutes, rel_seconds
85666         are now long int, not int.  Member seconds is now struct timespec,
85667         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85668         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85669         not int.
85670         (%union.intval): Now long int, not int.
85671         New member timespec.
85672         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85673         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85674         (spec): Now is a timespec or an item list.
85675         (timespec, items): New nonterminals.
85676         (time, rel, relunit, number, get_date):
85677         Add support for fractional seconds.
85678         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85679         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85680         (to_hour): First arg is now long int, not int.
85681         (to_year): Returns long int, not int.
85682         Don't treat year -70 like 70.
85683         (tm_diff): Returns long int, not int.
85684         (lookup_word): Use bool instead of int when appropriate.
85685         (yylex): Use size_t for count, not int.
85686         Detect overflow when parsing large integer constants.
85687         Add support for fractions.
85688         (get_date): Make pointers 'const' if possible.
85689         Use more-portable code to detect integer overflow.
85690         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85691         Don't use ctime; it's not reliable if the year has >4 digits.
85692
85693         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85694         This is for compatibility with BSD.
85695
85696         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85697         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85698         From coreutils' system.h.
85699
85700         * lib/userspec.c: Don't include "posixver.h".
85701         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85702         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85703         compatible extension.  Simplify code by removing a boolean int
85704         that was always nonzero if a string was nonnull.
85705
85706 2004-03-30  Jim Meyering  <jim@meyering.net>
85707
85708         Merge from coreutils.
85709
85710         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85711         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85712         on some systems one must include <grp.h> before it.
85713         Reported by Christian Krackowizer.
85714
85715 2004-03-30  Jim Meyering  <jim@meyering.net>
85716
85717         Merge from coreutils.
85718
85719         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85720
85721         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85722         an empty input stream.
85723
85724         * lib/readtokens.c: Include <stdbool.h>.
85725         (readtoken): Use `size_t' rather than int/long.
85726         All callers adjusted.
85727         Use `bool' rather than `int' where appropriate.
85728         Use memset rather than an explicit loop.
85729         Use x2nrealloc rather than xrealloc.
85730         Allow the use of `\0' as a delimiter.
85731         (readtokens): Likewise.
85732         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85733
85734 2004-03-30  Jim Meyering  <jim@meyering.net>
85735
85736         * m4/realloc.m4: Remove file, since now it does no more than
85737         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85738         the `configure.ac' section of module/realloc.
85739         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85740
85741 2004-03-30  Bruno Haible  <bruno@clisp.org>
85742
85743         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85744         nonnull.
85745
85746 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85747
85748         Merge changes to getloadavg.c from coreutils and Emacs.
85749
85750         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85751         Define to an expression, not to the empty string.
85752         Include cloexec.h and xalloc.h.
85753         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85754         Use set_cloexec_flag rather than rolling our own.
85755         * lib/cloexec.c, lib/cloexec.h: New files.
85756
85757 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85758
85759         * m4/cloexec.m4: New file.
85760
85761 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85762
85763         * lib/getopt.h: Sync with libc CVS.
85764
85765 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85766             Bruno Haible  <bruno@clisp.org>
85767
85768         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85769         mbswidth.
85770
85771 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85772             Bruno Haible  <bruno@clisp.org>
85773
85774         * lib/mbswidth.h: Include <wchar.h> only if
85775         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85776         <wchar.h>.
85777         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85778
85779 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85780
85781         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85782         Sync with libc CVS.
85783         * lib/getopt_int.h: New file, also synced from libc.
85784
85785 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85786
85787         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85788         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85789         Bring back getopt.c, getopt.h, getopt1.c.
85790
85791 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85792
85793         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85794         All uses changed.  Check for sa_sigaction member; this fixes
85795         a bug first reported by Jason Andrade in
85796         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85797
85798 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85799
85800         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85801         '#if' expressions.  Unlike the code it replaces, it does not
85802         depend on (defined _SC_PAGESIZE).  However, it does depend on
85803         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85804         first reported by Jason Andrade in
85805         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85806
85807 2004-02-25  Simon Josefsson  <jas@extundo.com>
85808
85809         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85810
85811 2004-02-25  Simon Josefsson  <jas@extundo.com>
85812
85813         * lib/strdup.h: New file.
85814         * lib/strdup.c: Include it.
85815         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85816         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85817
85818 2004-02-23  Karl Berry  <karl@gnu.org>
85819
85820         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85821         (from fencepost.gnu.org:/gd/gnuorg).
85822
85823 2004-02-23  Karl Berry  <karl@gnu.org>
85824
85825         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85826         * config/srclist.txt: add maintain/standards documents.
85827
85828 2004-02-18  Bruno Haible  <bruno@clisp.org>
85829
85830         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85831         Reported by Derek Robert Price <derek@ximbiot.com>.
85832
85833 2004-02-16  Karl Berry  <karl@gnu.org>
85834
85835         * config/mkinstalldirs, install-sh: update from automake.
85836
85837 2004-02-06  Karl Berry  <karl@gnu.org>
85838
85839         * m4/po.m4: update from gettext 0.14.1.
85840
85841 2004-02-06  Karl Berry  <karl@gnu.org>
85842
85843         * lib/config.charset: update from gettext 0.14.1.
85844
85845 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85846
85847         Add comments and code, prompted by suggestions from Bruno Haible
85848         for sh-quote.
85849         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85850         describing the enum quoting_style values.
85851         * lib/quotearg.c (quotearg_alloc): New function.
85852         (quotearg_buffer_restyled): Treat lone { and } as special.
85853         Treat = as special.  Work around bug with older shells
85854         that "see" a '\' that is really the 2nd byte of a multibyte char.
85855         Quote empty string with shell_quoting_style.
85856
85857 2004-02-03  Bruno Haible  <bruno@clisp.org>
85858
85859         * m4/pipe.m4: New file, from GNU gettext.
85860
85861 2004-02-03  Bruno Haible  <bruno@clisp.org>
85862
85863         * lib/pipe.h: New file, from GNU gettext.
85864         * lib/pipe.c: New file, from GNU gettext.
85865
85866 2004-01-27  Bruno Haible  <bruno@clisp.org>
85867
85868         * m4/execute.m4: New file, from GNU gettext.
85869
85870 2004-01-27  Bruno Haible  <bruno@clisp.org>
85871
85872         * lib/execute.h: New file, from GNU gettext.
85873         * lib/execute.c: New file, from GNU gettext.
85874         * lib/w32spawn.h: New file, from GNU gettext.
85875
85876 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85877
85878         Merge from diffutils.
85879
85880         * lib/file-type.c (file_type): Add typed memory objects.
85881         * lib/file-type.h (S_TYPEISTMO): New macro.
85882
85883         * lib/c-stack.h (c_stack_action): Remove argv argument.
85884         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85885         (die): Don't calculate message unless segv_action returns.
85886         (get_stack_location, min_address_from_argv, max_address_from_argv,
85887         volatile stack_base, volatile_stack_size): Remove.
85888         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85889         that every segmentation violation is a stack overflow.  (Ouch!)
85890         See Debian bug 136249 (still outstanding) for more info about why
85891         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85892
85893 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85894
85895         Exit-status fix from coreutils.
85896
85897         Use exit_failure consistently in place of EXIT_FAILURE,
85898         so that program exit statuses are consistent on failure.
85899
85900         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85901         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85902         * lib/argmatch.h: Comment fix to match the above.
85903         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85904         Now a macro referring to exit_failure, instead of a separate
85905         variable.  Include "exitfail.h" to get it.
85906         * lib/xstrtol.h: Include "exitfail.h".
85907         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85908
85909         * lib/long-options.c (parse_long_options): Use prototype
85910         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85911         for clarity.
85912
85913 2004-01-21  Jim Meyering  <jim@meyering.net>
85914
85915         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85916         so as not to conflict with a different-sized __mktime_internal
85917         function in GNU libc.
85918         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85919         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85920
85921 2004-01-20  Karl Berry  <karl@gnu.org>
85922
85923         * config/config.guess: update from config.
85924
85925         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85926
85927 2004-01-20  Bruno Haible  <bruno@clisp.org>
85928
85929         Safer stack allocation.
85930         * lib/setenv.c: Include allocsa.h.
85931         (alloca): Remove fallback definition.
85932         (freea): Remove macro.
85933         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85934         instead of freea.
85935
85936 2004-01-20  Bruno Haible  <bruno@clisp.org>
85937
85938         * m4/eealloc.m4: New file, from GNU gettext.
85939
85940 2004-01-20  Bruno Haible  <bruno@clisp.org>
85941
85942         * m4/allocsa.m4: New file, from GNU gettext.
85943
85944 2004-01-20  Bruno Haible  <bruno@clisp.org>
85945
85946         * lib/xallocsa.h: New file, from GNU gettext.
85947         * lib/xallocsa.c: New file, from GNU gettext.
85948
85949 2004-01-20  Bruno Haible  <bruno@clisp.org>
85950
85951         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85952
85953 2004-01-20  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85956         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85957         specially.
85958
85959 2004-01-20  Bruno Haible  <bruno@clisp.org>
85960
85961         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85962         patch.
85963
85964 2004-01-20  Bruno Haible  <bruno@clisp.org>
85965
85966         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85967
85968 2004-01-20  Bruno Haible  <bruno@clisp.org>
85969
85970         * lib/eealloc.h: New file.
85971
85972 2004-01-20  Bruno Haible  <bruno@clisp.org>
85973
85974         * lib/binary-io.h: Avoid warnings on Cygwin.
85975
85976 2004-01-20  Bruno Haible  <bruno@clisp.org>
85977
85978         * lib/allocsa.h: New file, from GNU gettext.
85979         * lib/allocsa.c: New file, from GNU gettext.
85980
85981 2004-01-18  Karl Berry  <karl@gnu.org>
85982
85983         * doc/gpl.texi, doc/lgpl.texi: new files.
85984
85985 2004-01-18  Karl Berry  <karl@gnu.org>
85986
85987         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85988         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85989
85990 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85991
85992         Merge from coreutils.
85993
85994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85995         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85996         (gl_DEFAULT_POSIX2_VERSION): Move
85997         the documentation from 'configure' into 'config.hin',
85998         so that 'configure --help' isn't burdened by it and
85999         we don't have to worry about its formatting there.
86000         Reword the documentation so that it's more succinct
86001         and can be run together into a single paragraph.
86002         * m4/same.m4 (gl_SAME): Check for pathconf.
86003
86004 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86005
86006         Merge from coreutils.
86007
86008         * lib/posixver.c: Include posixver.h.
86009
86010         * lib/same.c: Include <stdbool.h>, <limits.h>.
86011         (_POSIX_NAME_MAX): Define if not defined.
86012         (MIN): New macro.
86013         (same_name): If file names are silently truncated, report
86014         that the file names are the same if they are the same after
86015         the silent truncation.
86016
86017         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86018         conversion function.
86019         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86020         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86021         longer needed.
86022
86023 2004-01-15  Jim Meyering  <jim@meyering.net>
86024
86025         Merge from coreutils.
86026
86027         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86028         if no library is required.
86029         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86030         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86031         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86032         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86033         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86034         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86035         value, $ac_cv_search_crypt, if it's "none required".
86036         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86037         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86038         not gl_FUNC_GETLOADAVG.
86039         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86040         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86041
86042 2004-01-15  Jim Meyering  <jim@meyering.net>
86043
86044         Merge from coreutils.
86045
86046         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86047         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86048         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86049
86050         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86051         optional configure-time default.
86052
86053         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86054
86055         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86056
86057 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86058
86059         Merge from coreutils.
86060
86061         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86062         value, $ac_cv_search_nanosleep, if it's "none required".
86063
86064 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86065
86066         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86067         with like-named macro in fnmatch.c.
86068         (EXT): Use an internal constant instead.
86069
86070         Merge fnmatch patches from glibc.
86071         * lib/fnmatch.c (mbsinit): Remove define.
86072         Add libc_hidden_ver (__fnmatch, fnmatch).
86073         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86074         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86075
86076 2004-01-14  Karl Berry  <karl@gnu.org>
86077
86078         * config/install-sh: update from automake.
86079
86080 2004-01-13  Karl Berry  <karl@gnu.org>
86081
86082         * config/install-sh: update from automake.
86083
86084 2004-01-09  Karl Berry  <karl@gnu.org>
86085
86086         * config/install-sh: update from automake.
86087
86088 2004-01-05  Karl Berry  <karl@gnu.org>
86089
86090         * config/config.{sub,guess}: update from config.
86091
86092 2003-12-31  Karl Berry  <karl@gnu.org>
86093
86094         * config/depcomp: update from automake.
86095
86096 2003-12-14  Karl Berry  <karl@gnu.org>
86097
86098         * lib/config.charset: update from gettext-runtime.
86099
86100 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86101
86102         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86103         Bug reported by Alfred M. Szmidt.
86104
86105 2003-12-03  Bruno Haible  <bruno@clisp.org>
86106
86107         * m4/gettext.m4: Upgrade from gettext-0.13.
86108         * m4/po.m4: Upgrade from gettext-0.13.
86109         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86110         * m4/intmax.m4: New file, from gettext-0.13.
86111         * m4/printf-posix.m4: New file, from gettext-0.13.
86112
86113 2003-11-29  Karl Berry  <karl@gnu.org>
86114
86115         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86116
86117 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86118             Bruno Haible  <bruno@clisp.org>
86119
86120         * lib/printf-parse.h: Don't include sys/types.h.
86121         (ARG_NONE): New macro.
86122         (char_directive): Change type of *arg_index fields to size_t.
86123         * lib/printf-parse.c: Don't include sys/types.h.
86124         (SSIZE_MAX): Remove macro.
86125         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86126         Remove unnecessary overflow check.
86127         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86128         fields.
86129
86130 2003-11-25  Bruno Haible  <bruno@clisp.org>
86131
86132         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86133
86134 2003-11-25  Bruno Haible  <bruno@clisp.org>
86135
86136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86137         gt_TYPE_SSIZE_T.
86138
86139 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86140
86141         * modules/alloca: Remove dependency on xalloc.
86142
86143 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86144
86145         * lib/alloca.c: Remove dependency on xalloc module.
86146         (xalloc_die): Remove.
86147         (memory_full) [!defined emacs]: New macro.
86148         [!defined emacs]: Don't include xalloc.h.
86149         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86150         address arithmetic overflows.  Change datatypes a bit to avoid
86151         unnecessary casts.
86152
86153 2003-11-22  Jim Meyering  <jim@meyering.net>
86154
86155         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86156         s/size/size_t/.
86157
86158 2003-11-21  Karl Berry  <karl@gnu.org>
86159
86160         * config/config.{sub,guess}: update from config.
86161
86162 2003-11-18  Karl Berry  <karl@gnu.org>
86163
86164         * config/config.{sub,guess}: update from config.
86165
86166         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86167
86168 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86169
86170         * README: Mention that S+T cannot overflow if S is the size of
86171         an existing object and T is sufficiently small.
86172
86173 2003-11-17  Jim Meyering  <jim@meyering.net>
86174
86175         On systems without utime and without a utimes function capable of
86176         dealing with a NULL struct utimbuf* argument, this utime replacement
86177         could -- in unusual circumstances -- leak a file descriptor.
86178         * lib/utime.c: Include <unistd.h> and <errno.h>.
86179         (utime_null): Be sure to close `fd' and to preserve errno.
86180         Reported by Geoff Collyer via Arnold Robbins.
86181
86182 2003-11-17  Bruno Haible  <bruno@clisp.org>
86183
86184         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86185         (Depends-on): Add xsize.
86186
86187 2003-11-17  Bruno Haible  <bruno@clisp.org>
86188
86189         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86190
86191 2003-11-17  Bruno Haible  <bruno@clisp.org>
86192
86193         * lib/vasnprintf.c (alloca): Remove fallback definition.
86194         (freea): Remove definition.
86195         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86196         Reported by Paul Eggert.
86197
86198 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86199             Bruno Haible  <bruno@clisp.org>
86200
86201         Protect against address arithmetic overflow.
86202         * lib/printf-args.h: Include stddef.h.
86203         (arguments): Change type of field 'count' to size_t.
86204         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86205         'unsigned int' where appropriate.
86206         * lib/printf-parse.h: Include sys/types.h.
86207         (char_directive): Change type of *arg_index fields to ssize_t.
86208         (char_directives): Change type of fields 'count', max_*_length to
86209         size_t.
86210         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86211         (SSIZE_MAX): Define fallback value.
86212         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86213         instead of 'int' where appropriate. Check a_allocated, d_allocated
86214         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86215         * lib/vasnprintf.c: Include xsize.h.
86216         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86217         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86218         overflow. Avoid wraparound when converting a width or precision from
86219         decimal to binary.
86220
86221 2003-11-16  Bruno Haible  <bruno@clisp.org>
86222
86223         Update from GNU gettext.
86224         * lib/printf-parse.c: Generalize to it can be compiled for wide
86225         strings.
86226         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86227         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86228         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86229         SNPRINTF): New macros.
86230         Don't include <alloca.h> if the file is used inside libintl.
86231         (local_wcslen): New function, for Solaris 2.5.1.
86232         (VASNPRINTF): Use it instead of wcslen.
86233
86234 2003-11-16  Bruno Haible  <bruno@clisp.org>
86235
86236         * lib/xsize.h (xmax): New function.
86237         (xsum, xsum3, xsum4): Declare as "pure" functions.
86238
86239 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86240
86241         * modules/xalloc (Files): Undo latest change, since xalloc.h
86242         no longer needs SIZE_MAX or PTRDIFF_MAX.
86243
86244 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86245
86246         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86247         gl_PTRDIFF_MAX.
86248
86249 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86250
86251         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86252         "return", to pacify some unknown compiler.  Problem reported
86253         by Joerg Schilling.
86254
86255 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86256
86257         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86258         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86259         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86260         heuristic is just as accurate as far as we know, and it removes a
86261         dependency on size_max.m4 and ptrdiff_max.m4.
86262
86263 2003-11-11  Bruno Haible  <bruno@clisp.org>
86264
86265         * modules/xsize (Files): Add m4/size_max.m4.
86266         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86267
86268 2003-11-11  Bruno Haible  <bruno@clisp.org>
86269
86270         * m4/size_max.m4: New file.
86271         * m4/ptrdiff_max.m4: New file.
86272         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86273         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86274         (gl_XALLOC): Invoke it.
86275
86276 2003-11-11  Bruno Haible  <bruno@clisp.org>
86277
86278         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86279         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86280         defined.
86281
86282 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86283
86284         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86285         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86286         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86287         From Bruno Haible.
86288         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86289         not (size_t) -1, since it's defined here.
86290
86291 2003-11-09  Karl Berry  <karl@gnu.org>
86292
86293         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86294
86295 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86296
86297         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86298         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86299         Reject sizes of exactly SIZE_MAX bytes.
86300         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86301         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86302
86303 2003-11-05  Bruno Haible  <bruno@clisp.org>
86304
86305         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86306         SIZE_MAX defined in <limits.h> on Solaris.
86307
86308 2003-11-04  Jim Meyering  <jim@meyering.net>
86309
86310         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86311         variable names, rather than @VAR@.
86312         * modules/poll: Likewise.
86313
86314 2003-11-04  Bruno Haible  <bruno@clisp.org>
86315
86316         * modules/xsize: New file.
86317         * modules/linebreak: Depend on xsize.
86318         * MODULES.html.sh (func_all_modules): Add xsize.
86319
86320 2003-11-04  Bruno Haible  <bruno@clisp.org>
86321
86322         * m4/xsize.m4: New file.
86323
86324 2003-11-04  Bruno Haible  <bruno@clisp.org>
86325
86326         * lib/xsize.h: New file.
86327         * lib/linebreak.c: Include xsize.h.
86328         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86329         argument for overflow.
86330         Suggested by Paul Eggert.
86331
86332 2003-11-03  Karl Berry  <karl@gnu.org>
86333
86334         * config/config.{guess,sub}: update from config.
86335
86336 2003-11-03  Jim Meyering  <jim@meyering.net>
86337
86338         * modules/userspec (lib_SOURCES): Add userspec.h.
86339         (Include): Add "userspec.h".
86340         Improve description.
86341
86342 2003-11-03  Jim Meyering  <jim@meyering.net>
86343
86344         * lib/userspec.c: Include "userspec.h".
86345         * lib/userspec.h: New file.
86346
86347 2003-11-03  Bruno Haible  <bruno@clisp.org>
86348
86349         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86350
86351 2003-11-03  Bruno Haible  <bruno@clisp.org>
86352
86353         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86354         available, to avoid (extremely rare) race condition.
86355         Suggested by Paul Eggert.
86356
86357 2003-11-02  Karl Berry  <karl@gnu.org>
86358
86359         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86360
86361 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86362
86363         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86364         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86365         (read_filesystem_list): Set and use me_type_malloced.
86366         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86367         whatever the type happens to be), for brevity and consistency.
86368         Check for size calculation overflow on Alphas running OSF/1.
86369
86370 2003-10-31  Jim Meyering  <jim@meyering.net>
86371
86372         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86373
86374         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86375
86376 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86377             Bruno Haible  <bruno@clisp.org>
86378
86379         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86380         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86381
86382 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86383
86384         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86385         netbsd*-gnu*.  Suggested by Robert Millan.
86386
86387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86388
86389         * modules/group-member: Depend on stdbool.
86390
86391 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86392
86393         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86394
86395 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86396
86397         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86398         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86399         after the 'gnu' in these cases.  This fixes some bugs in the
86400         previous change, and is based on suggestions by Robert Millan.
86401
86402 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86403
86404         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86405         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86406         no longer needed.
86407         * lib/quotearg.c (quotearg_n_options): Use it.
86408         * lib/group-member.c: Include <stdbool.h>.
86409         (free_group_info): Arg is now const *; don't free arg.
86410         (get_group_info): Now returns bool and accepts struct group_info *,
86411         rather than returning a malloc'ed struct group_info *.
86412         All uses changed.  Check for overflow in internal size calculation.
86413
86414         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86415         rather than xmalloc/xrealloc.
86416         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86417         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86418         conformance bug: the old code used a pointer after freeing the
86419         storage that it addressed.
86420         * lib/hash.c (hash_initialize): Simplify the code by using
86421         xalloc_oversized rather than doing it by hand.
86422         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86423         the buffer preserved.  Use free and xmalloc instead.
86424         * lib/quotearg.c (quotearg_n_options): Likewise.
86425         Use a simpler test for size overflow.  Don't use xalloc_oversized
86426         because unsigned int might be wider than size_t (!); this suggests
86427         that we should switch from unsigned int to size_t for slot numbers.
86428
86429 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86430
86431         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86432         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86433         NetBSD kernels.  Requested by Richard Stallman.
86434
86435 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86436
86437         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86438         to allocate the returned structure.  Do not allocate a subarray,
86439         as x2nrealloc will do that.
86440         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86441         instead of xnrealloc.
86442         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86443
86444 2003-10-27  Bruno Haible  <bruno@clisp.org>
86445
86446         * lib/stdbool_.h: Better support for BeOS.
86447
86448 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86449
86450         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86451         now uses inline.
86452
86453 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86454
86455         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86456         callers that want to do their own size-overflow checking.  Include
86457         <stdbool.h>, since xalloc_oversized returns bool.
86458         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86459         to use xalloc_oversized.
86460
86461         Add two functions x2realloc, x2nrealloc, for programs that grow
86462         arrays dynamically by doubling their sizes.
86463         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86464         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86465         New functions.
86466
86467         Port to C99 semantics for 'inline' of external functions.
86468         Bug reported by Bruno Haible.
86469         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86470         with the old contents of xnmalloc.
86471         (xnmalloc, xmalloc): Use it.
86472         (xnrealloc_inline): New static inline function,
86473         with the old contents of xnrealloc.
86474         (xnrealloc, xrealloc): Use it.
86475
86476         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86477         that.
86478
86479 2003-10-26  Karl Berry  <karl@gnu.org>
86480
86481         * config/srclist.txt (COPYING.DOC): no longer available from
86482         /gd/gnuorg; don't know where the ultimate source is.
86483
86484 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86485
86486         Fix several address-calculation bugs in the hash modules,
86487         plus some minor code cleanup.
86488
86489         * lib/hash.h: Include <stdbool.h>, for bool.
86490         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86491         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86492         hash_get_n_entries, hash_get_max_bucket_length,
86493         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86494         hash_rehash): Use size_t rather than unsigned.
86495         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86496         hash_get_n_buckets_used, hash_get_n_entries,
86497         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86498         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86499         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86500         Likewise.
86501         (SIZE_MAX): Define if not defined.
86502         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86503         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86504         hash_print):
86505         Use const * when possible.
86506         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86507         (check_tuning): Fix bug: if tuning parameters were very close to
86508         0 or 1, rounding errors could have caused subscript violations.
86509         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86510         (hash_initialize): Add 'fail:' label
86511         to free table and return NULL, and use it to simplify code.
86512         Use calloc rather than clearing the storage ourself.
86513         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86514         buffer size calculations.
86515         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86516         Include <stddef.h>, for size_t.
86517         * lib/hash-pjw.c (hash_pjw): Likewise.
86518         Switch to method described by Bruno Haible.
86519         Include <limits.h>, for CHAR_BIT.
86520         (SIZE_BITS): New macro.
86521
86522 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86523
86524         * m4/getline.m4 (AM_FUNC_GETLINE):
86525         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86526         hosts.  Problem reported by Derek Robert Price in
86527         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86528         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86529         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86530
86531 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86532
86533         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86534         ceiling the allocation at NMAX bytes rather than silently
86535         discarding input bytes before NMAX is reached.  This makes
86536         a difference only if NMAX exceeds SIZE_MAX / 2.
86537
86538         * lib/obstack.c: Merge from glibc.
86539         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86540         Add libc_hidden_def (_obstack_newchunk).
86541         (_obstack_free) [! defined _LIBC]: Remove.
86542         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86543         a clone of the function body.
86544         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86545         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86546
86547         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86548         glibc.
86549         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86550         arg to memcpy.
86551
86552         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86553         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86554         Don't use lvalue casts, as GCC plans to remove support for them
86555         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86556         was also present in the non-GCC version, indicating that this
86557         code had always been buggy and had never been widely used.
86558         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86559         Use the fast variant of each macro, rather than copying the
86560         definiens of the fast variant; that way, we'll be more likely to
86561         catch future bugs in the fast variants.
86562
86563 2003-10-20  Bruno Haible  <bruno@clisp.org>
86564
86565         * modules/wait-process: New file.
86566         * MODULES.html.sh (func_all_modules): Add wait-process.
86567
86568 2003-10-20  Bruno Haible  <bruno@clisp.org>
86569
86570         * m4/wait-process.m4: New file.
86571
86572 2003-10-20  Bruno Haible  <bruno@clisp.org>
86573
86574         * lib/wait-process.h: New file, from GNU gettext.
86575         * lib/wait-process.c: New file, from GNU gettext.
86576
86577 2003-10-19  Jim Meyering  <jim@meyering.net>
86578
86579         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86580         HPUX 10.20.
86581
86582 2003-10-18  Karl Berry  <karl@gnu.org>
86583
86584         * config/config.guess: update from config.
86585
86586 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86587
86588         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86589         (getgroups): First arg is int, not size_t.
86590         Don't let 'free' mangle errno.
86591
86592 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86593
86594         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86595
86596 2003-10-16  Karl Berry  <karl@gnu.org>
86597
86598         * config/config.{guess,sub}: update from config.
86599
86600 2003-10-16  Jim Meyering  <jim@meyering.net>
86601
86602         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86603         memcpy.
86604
86605 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86606
86607         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86608         (SIZE_MAX): Remove.
86609         (new_exclude, add_exclude_file): Initial size no longer needs to
86610         be a power of 2.
86611         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86612         our own address arithmetic overflow checking.
86613
86614         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86615         (fnmatch): Do not alloca more than 2000 wide characters;
86616         instead, use malloc for large buffers.
86617         Check for address arithmetic overflow, and return -1
86618         with errno set to ENOMEM in that case.
86619         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86620         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86621         instead, return -1.  Check for address arithmetic overflow.
86622
86623 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86624
86625         Handle invalid suffixes and overflow independently, so that
86626         callers can treat them independently as needed.  Fix some bugs in
86627         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86628         suffix for a human-readable blocksize.  The major caller-visible
86629         change is the addition of a new
86630         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86631         that both overflow and suffix chars were found.
86632
86633         * lib/human.c (humblock): Don't check separately for invalid suffix
86634         char; that is xstrtoumax's job (now that its bug is fixed).
86635         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86636         INTMAX_MAX]: New macros.
86637         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86638         TYPE_MAXIMUM): New macros.
86639         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86640         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86641         if overflow occurs, as it's what __strtol does and it's more useful
86642         in practice.
86643         (__xstrtol): If __strtol reports some error other than ERANGE,
86644         reflect it to the caller as LONGINT_INVALID.  If it reports
86645         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86646         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86647         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86648         value.
86649         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86650         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86651         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86652         [defined UINTMAX_MAX]: New macros.
86653
86654 2003-10-14  Bruno Haible  <bruno@clisp.org>
86655
86656         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86657
86658 2003-10-14  Bruno Haible  <bruno@clisp.org>
86659
86660         * m4/sig_atomic_t: New file, from GNU gettext.
86661         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86662
86663 2003-10-14  Bruno Haible  <bruno@clisp.org>
86664
86665         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86666         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86667         Also use volatile where needed.
86668
86669 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86670
86671         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86672         Change maintainer from Bruno Haible to 'all'.
86673
86674 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86675
86676         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86677
86678 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86679
86680         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86681         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86682         and define in terms of the other primitives.
86683         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86684         (SIZE_MAX): Define if not already defined.
86685         (array_size_overflow): New function.
86686         (xalloc_die): Abort instead of exiting if 'error' returns.
86687         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86688         (xmalloc, xrealloc): Use them.
86689         (xcalloc): Check for address arithmetic overflow.
86690         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86691         a bit faster than strcpy.
86692
86693 2003-10-10  Simon Josefsson  <jas@extundo.com>
86694
86695         * modules/argp (Depends-on): Add restrict and strcase.
86696
86697 2003-10-10  Simon Josefsson  <jas@extundo.com>
86698
86699         * m4/argp.m4: Add AC_C_INLINE.
86700
86701 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86702
86703         Merge getpass from libc, plus a few fixes.
86704
86705         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86706         Include <stdbool.h>.
86707         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86708         __fsetlocking to empty.
86709         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86710         do include <bits/libc-lock.h>.
86711         Do not include <fcntl.h>; not needed.
86712         [_LIBC]: Include <wchar.h>.
86713         (NOTCANCEL_MODE): New macro.
86714         (flockfile, funlockfile) [_LIBC]: New macros.
86715         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86716         [!_LIBC]: New macros.
86717         (call_fclose): New function.
86718         (getpass): Use it.  Save tty stream separately; this simplifies the
86719         code and makes it more reliable if stdin happens to equal stdout.
86720         Invoke __fsetlocking on tty.
86721         Handle thread cancellation if needed.
86722         Namespace cleanup (use __tcgetattr, __getline).
86723         Use bool for Booleans.
86724         [USE_IN_LIBIO]: Handle wide streams.
86725         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86726         stream might go where.
86727
86728         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86729         doesn't have to include <stdio.h> before us.
86730         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86731         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86732         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86733         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86734         if not declared, so that we can use getpass.c code from libc without
86735         rewriting it.
86736         (flockfile, ftrylockfile, funlockfile): New macros.
86737
86738 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86739
86740         * modules/getpass: Depend on stdbool.
86741
86742 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86743
86744         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86745
86746 2003-10-07  Karl Berry  <karl@gnu.org>
86747
86748         * config/config.{guess,sub}: update from config.
86749
86750 2003-10-06  Jim Meyering  <jim@meyering.net>
86751             Bruno Haible  <bruno@clisp.org>
86752
86753         This lets translators provide better translations for the
86754         "Written by ..." part of --version output.
86755         * lib/version-etc.h: Include stdarg.h.
86756         (version_etc_copyright): Declare as readonly.
86757         (version_etc): Make this function variadic with a NULL-terminated list
86758         of author name strings.
86759         (version_etc_va): New declaration.
86760         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86761         (version_etc_copyright): Declare as readonly.
86762         (version_etc_va): New function. Provide a different translatable string
86763         for each possible number of authors < 10. Abbreviate when there are 10
86764         authors or more.
86765         (version_etc): Make this function variadic. Call version_etc_va.
86766         Suggestion from Gary V. Vaughan.
86767
86768         * lib/long-options.h (parse_long_options): Change prototype: the
86769         authors string is moved to the end and becomes variadic.
86770         * lib/long-options.c: Include stdarg.h.
86771         (parse_long_options): Make this function variadic, too.
86772         Call version_etc_va, not version_etc.
86773
86774 2003-10-06  Bruno Haible  <bruno@clisp.org>
86775
86776         * modules/version-etc-2: Remove file.
86777         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86778
86779 2003-10-06  Bruno Haible  <bruno@clisp.org>
86780
86781         * modules/fatal-signal: New file.
86782         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86783
86784 2003-10-06  Bruno Haible  <bruno@clisp.org>
86785
86786         * m4/fatal-signal.m4: New file.
86787         * m4/signalblocking.m4: New file, from GNU gettext.
86788
86789 2003-10-06  Bruno Haible  <bruno@clisp.org>
86790
86791         * lib/version-etc-2.h: Remove file.
86792         * lib/version-etc-2.c: Remove file.
86793
86794 2003-10-06  Bruno Haible  <bruno@clisp.org>
86795
86796         * lib/fatal-signal.h: New file, from GNU gettext.
86797         * lib/fatal-signal.c: New file, from GNU gettext.
86798
86799 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86800
86801         * README: Rework advice for preventing empty .o files.
86802         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86803         not <sys/types.h>.
86804
86805 2003-10-04  Karl Berry  <karl@gnu.org>
86806
86807         * lib/argp*: update from libc.
86808
86809 2003-10-04  Karl Berry  <karl@gnu.org>
86810
86811         * config/config.{guess,sub}: update from config.
86812
86813 2003-10-02  Bruno Haible  <bruno@clisp.org>
86814
86815         * modules/lchown (Include): Add lchown.h.
86816         * modules/time_r (Include): Use "..." syntax.
86817         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86818
86819 2003-10-01  Simon Josefsson  <jas@extundo.com>
86820
86821         * MODULES.html.sh (func_all_modules): Move gethostname from section
86822         'based on' to section 'lacking' POSIX:2001.
86823
86824 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86825
86826         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86827         to output mode on the same stream.
86828
86829 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86830
86831         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86832         Fix arg typo in previous patch.
86833
86834 2003-09-28  Jim Meyering  <jim@meyering.net>
86835
86836         * lib/error.c: Correct cpp indentation.
86837
86838 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86839
86840         * modules/free: New file.
86841
86842 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86843
86844         * m4/free.m4: New file.
86845
86846 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86847
86848         * lib/minmax.h (MIN, MAX)
86849         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86850         Omit the special code that used __typeof__, since we worry that
86851         it could be more trouble than it's worth.  See:
86852         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86853         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86854
86855         * lib/free.c: New file.
86856
86857 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86858
86859         Trivial fixes to Makefile.am parts of module listings.
86860         * modules/strstr: Append strstr.h to lib_SOURCES.
86861         * modules/strcase: Likewise, for strcase.h.
86862
86863 2003-09-27  Karl Berry  <karl@gnu.org>
86864
86865         * config/mkinstalldirs: update from automake.
86866
86867 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86868
86869         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86870         (error_tail): Do not loop, reallocating temporary buffer, since
86871         the output cannot contain more wide characters than the input
86872         contains bytes, the size must be big enough already.  This avoids
86873         one potential size overflow calculation.  Check for size overflow
86874         when calculating temporary buffer size.  Free temporary buffer
86875         when done, if it was allocated with malloc; this plugs a memory
86876         leak.  Remove casts from void * to pointers, that are no longer
86877         needed now that we're assuming C89 or better.
86878
86879         Merge error changes from glibc.
86880
86881         * lib/error.c, error.h: Update copyright notice header to match glibc.
86882         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86883         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86884         Disable cancellation while printing error.
86885         * lib/error.h: Prepend __ to parameter names.
86886
86887 2003-09-26  Jim Meyering  <jim@meyering.net>
86888
86889         * lib/error.c (error_tail): Move some declarations
86890         into inner scope where the local variables are used.
86891
86892 2003-09-26  Bruno Haible  <bruno@clisp.org>
86893
86894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86895         stpncpy().
86896         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86897
86898 2003-09-26  Bruno Haible  <bruno@clisp.org>
86899
86900         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86901         (stpncpy): Define as alias for gnu_stpncpy.
86902         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86903
86904 2003-09-25  Simon Josefsson  <jas@extundo.com>
86905
86906         * lib/xgetdomainname.h: New file.
86907         * lib/xgetdomainname.c: New file.
86908
86909 2003-09-25  Simon Josefsson  <jas@extundo.com>
86910             Bruno Haible  <bruno@clisp.org>
86911
86912         * modules/getdomainname: New file.
86913         * modules/xgetdomainname: New file.
86914         * MODULES.html.sh (func_all_modules): Add getdomainname,
86915         xgetdomainname.
86916
86917 2003-09-25  Simon Josefsson  <jas@extundo.com>
86918             Bruno Haible  <bruno@clisp.org>
86919
86920         * m4/getdomainname.m4: New file.
86921
86922 2003-09-25  Simon Josefsson  <jas@extundo.com>
86923             Bruno Haible  <bruno@clisp.org>
86924
86925         * lib/getdomainname.h: New file.
86926         * lib/getdomainname.c: New file.
86927
86928 2003-09-25  Karl Berry  <karl@gnu.org>
86929
86930         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86931
86932 2003-09-25  Karl Berry  <karl@gnu.org>
86933
86934         * config/install-sh: update from automake.
86935
86936 2003-09-25  Bruno Haible  <bruno@clisp.org>
86937
86938         * modules/version-etc-2: New file, from modules/version-etc with
86939         modifications.
86940         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86941
86942 2003-09-25  Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86945         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86946
86947 2003-09-24  Simon Josefsson  <jas@extundo.com>
86948
86949         * modules/xgethostname: Add xgethostname.h.
86950
86951 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86952
86953         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86954         the buffer associated with the argument.  Bug reported by
86955         Simon Josefsson.
86956
86957 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86958
86959         * README: Document assumptions that 'int' is at least 32 bits
86960         wide, that integer arithmetic is 2's complement without overflow,
86961         that there are no holes in integer values, that adding sizes of
86962         two nonoverlapping objects can't overflow, and that all-bits-zero
86963         yields scalar zero.  Fix spelling and capitalization typos.
86964
86965 2003-09-19  Karl Berry  <karl@gnu.org>
86966
86967         * lib/argp.h: update from libc.
86968
86969 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86970
86971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86972         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86973         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86974
86975 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86976
86977         * gnulib-tool: Use "test -h", not "test -L", for portability
86978         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86979         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86980         (sed_extract_prog): Issue s commands one-by-one, rather than
86981         using \| in one s command.
86982
86983 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86984
86985         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86986         input error, instead of returning NULL the next time we are called
86987         (and therefore losing track of errno).
86988
86989 2003-09-16  Bruno Haible  <bruno@clisp.org>
86990
86991         * gnulib-tool (func_create_testdir): Warn about duplicated
86992         dependencies.
86993
86994 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86995
86996         * modules/argmatch, modules/fatal, modules/obstack,
86997         modules/xalloc, modules/xgethostname: Sort dependencies by
86998         importance, not alphabetically.
86999
87000 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87001
87002         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87003         fails, so that the caller gets the proper errno.
87004
87005         * lib/readutmp.c (read_utmp): Likewise.
87006         Check for fstat error.  Close stream and free storage
87007         when failing.
87008
87009 2003-09-14  Karl Berry  <karl@gnu.org>
87010
87011         * config/srclist.txt (strdup.c): disable for c89 changes.
87012
87013 2003-09-14  Jim Meyering  <jim@meyering.net>
87014
87015         * lib/getloadavg.c: Correct cpp indentation.
87016         * lib/strdup.c: Likewise.
87017         * lib/vasnprintf.c: Likewise.
87018
87019 2003-09-14  Bruno Haible  <bruno@clisp.org>
87020
87021         * modules/fwriteerror: New file.
87022         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87023
87024 2003-09-14  Bruno Haible  <bruno@clisp.org>
87025
87026         * lib/fwriteerror.h: New file.
87027         * lib/fwriteerror.c: New file.
87028
87029 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87030
87031         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87032         modules/xgethostname, modules/xalloc: Depend on exit.
87033
87034 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87035
87036         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87037
87038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87039         and AC_MINIX, too, so that their extensions are available.
87040
87041         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87042         This macro has been superseded by gl_BACKUPFILE.
87043
87044         More patches to assume C89 or better.
87045
87046         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87047
87048         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87049         unconditionally.
87050         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87051         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87052         Include <string.h>, <stdlib.h> unconditionally.
87053         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87054         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87055         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87056         headers or for string.h.
87057         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87058         or strtoul.
87059
87060         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87061         headers.
87062         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87063         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87064         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87065         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87068         memcpy, memset.
87069         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87070         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87071         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87072         strtol.
87073         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87074         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87075         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87076         strtoul.
87077
87078 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87079
87080         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87081         * lib/obstack.c [!defined _LIBC]: Likewise.
87082         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87083         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87084         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87085
87086         More changes to assume C89 or better.
87087
87088         * lib/error.c (error_tail): Assume vprintf.
87089
87090         * lib/argmatch.c (getenv): Remove decl.
87091         * lib/progreloc.c (get_full_program_name): Define via prototype.
87092         * lib/setenv.c (clearenv): Likewise.
87093         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87094         needed.
87095         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87096         (malloc, memcpy): Remove decls.
87097         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87098         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87099         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87100         (memcpy): Remove macro.
87101         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87102         (__P): Remove.  All uses removed.
87103         (PTR): Remove.  All uses changed to void *.
87104         (CHAR_BIT, NULL): Remove.
87105         (spaces, zeros, memset_space, memset_zero)
87106         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87107         Remove.
87108         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87109         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87110         Define with prototype.
87111         Remove now-unnecessary prototype decl.
87112         (extra_args_spec): Assume ANSI C.  All uses changed.
87113         (extra_args_spec_iso): Remove.
87114         (my_strftime, emacs_strftimeu): Define via prototype.
87115         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87116         unconditionally.
87117         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87118         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87119         (strtoul, strtol): Remove decls.
87120         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87121         LONG_MAX): Remove.
87122         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87123         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87124         (LOCALE_PARAM_PROTO): New macro.
87125         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87126         (INTERNAL (strtol), strtol): Define with a prototype.
87127         (PARAMS): Remove.  All uses removed.
87128         * lib/tempname.c: Include <string.h> unconditionally.
87129         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87130         * lib/xgethostname.c (main): Define with a prototype.
87131         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87132         Include <stdlib.h> unconditionally.
87133         (calloc, malloc, realloc, free): Remove decls.
87134         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87135         Include <stdlib.h> unconditionally.  Sort include file names.
87136         (strtod): Remove.
87137         (xstrtod): Define with a prototype.
87138         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87139         (strtol, strtoul): Remove decls.
87140
87141 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87142
87143         More patches to assume C89 or better.
87144         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87145         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87146         string.h, memchr, STDC_HEADERS.
87147
87148 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87149
87150         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87151         Include <stdlib.h>, <string.h> unconditionally.
87152         Remove now-unnecessary cast to char *.
87153         * lib/strnlen.c: Include <string.h> unconditionally.
87154         * lib/yesno.c (yesno): Define with a prototype.
87155
87156 2003-09-11  Bruno Haible  <bruno@clisp.org>
87157
87158         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87159
87160 2003-09-10  Jim Meyering  <jim@meyering.net>
87161
87162         * lib/error.c: Correct indentation of cpp directives.
87163
87164 2003-09-10  Bruno Haible  <bruno@clisp.org>
87165
87166         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87167         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87168         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87169         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87170         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87171         <stdlib.h> and <string.h> checks.
87172         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87173         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87174
87175 2003-09-10  Bruno Haible  <bruno@clisp.org>
87176
87177         * lib/strcspn.c: Include <string.h> unconditionally.
87178         * lib/strpbrk.c: Include <string.h> unconditionally.
87179         * lib/strstr.c: Include <string.h> unconditionally.
87180         * lib/unicodeio.c: Include <string.h> unconditionally.
87181         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87182         * lib/unsetenv.c: Likewise.
87183         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87184         * lib/yesno.c: Include <stdlib.h> unconditionally.
87185         (rpmatch): Add prototype.
87186
87187 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87188
87189         More patches to assume C89 or better.
87190         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87191         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87192         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87193         or for string.h.
87194         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87195         stdlib.h.
87196         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87197         C headers.
87198         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87199         string.h.
87200         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87201         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87202         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87203         or for string.h.
87204         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87205         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87206         C headers.
87207         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87208         memcpy.
87209         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87210         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87211         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87212         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87213         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87214         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87215         string.h, free.
87216         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87217         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87218         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87219         C headers, or for string.h.
87220         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87221         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87222         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87223         headers, memory.h, stdlib.h, string.h, strings.h.
87224         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87225         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87226         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87227         strchr.
87228         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87229         headers, memory.h, string.h.
87230         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87231         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87232         free.
87233         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87234         headers.
87235         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87236         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87237         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87238         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87239         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87240
87241 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87242
87243         More K&R removal.
87244
87245         * lib/acosl.c (main): Use a prototype.
87246         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87247         tanl.c: Likewise.
87248
87249         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87250
87251         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87252         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87253         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87254         with a prototype.
87255         * lib/getopt.c (const): Remove macro.
87256         Include <string.h> unconditionally.
87257         (my_index): Remove; all uses changed to strchr.
87258         (strlen): Remove decl.
87259         (exchange): Remove forward decl; no longer needed.
87260         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87261         Define with prototype.
87262         * lib/getopt1.c (const): Remove macro.
87263         (getopt_long, getopt_long_only, main): Define with prototype.
87264
87265         * lib/getugroups.c: Include <string.h> unconditionally.
87266
87267         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87268         (getusershell, setusershell, endusershell, readname, main):
87269         Define with prototypes.
87270
87271         * lib/group-member.c: Include group-member.h first.
87272         Include <stdlib.h> unconditionally.
87273
87274         * lib/hard-locale.c: Include hard-locale.h first.
87275         Include <stdlib.h>, <string.h> unconditionally.
87276
87277         * lib/hash.c (free, malloc): Remove decls.
87278         Include <stdlib.h> unconditionally.
87279
87280         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87281         (getenv): Do not declare.
87282
87283         * lib/idcache.c: Include <string.h> unconditionally.
87284
87285         * lib/long-options.c: Include long-options.h first, to test interface.
87286         Include <stdlib.h> unconditionally.
87287
87288         * lib/makepath.c: Include makepath.h first, to test interface.
87289         Include <stdlib.h> and <string.h> unconditionally.
87290
87291         * lib/linebuffer.c: Include <stdlib.h>.
87292         (free): Remove decl.
87293
87294         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87295         stddef.h. rpl_malloc returns void *, not char *.
87296         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87297         prototype.
87298
87299         * lib/md5.h: Include <limits.h> unconditionally.
87300         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87301         (__P): Remove; all uses removed.
87302         * lib/md5.c: Include "md5.h" first.
87303         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87304         md5_buffer, md5_process_bytes, md5_process_block):
87305         Define with prototypes.
87306         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87307         * lib/sha.c: Include "sha.h" first.
87308         Include <stdlib.h>, <string.h> unconditionally.
87309
87310         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87311         * lib/memcmp.c (__ptr_t): Likewise.
87312         * lib/memrchr.c (__ptr_t): Likewise.
87313         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87314         Include <string.h> unconditionally.
87315         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87316         * lib/memchr.c: Include <stdlib.h> unconditionally.
87317         * lib/memchr.c (LONG_MAX): Remove.
87318         * lib/memrchr.c (LONG_MAX): Likewise.
87319         * lib/memchr.c (__memchr): Define via a prototype.
87320         * lib/memrchr.c (__memrchr): Likewise.
87321         * lib/memcmp.c (__P): Remove, and remove all uses.
87322         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87323         Remove forward decls; no longer needed.
87324         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87325         Use types required by C89 in prototype.
87326
87327         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87328         * lib/savedir.c: Likewise.
87329         * lib/mkdir.c (free): Remove decl.
87330         * lib/rmdir.c (rmdir): Define with a prototype.
87331         * lib/savedir.c: Include savedir.h first, to test interface.
87332
87333         * lib/mktime.c (STDC_HEADERS): Remove.
87334         Include <stdlib.h>, <string.h> unconditionally.
87335
87336         * lib/modechange.c: Include <stdlib.h> unconditionally.
87337         (malloc): Remove decl.
87338
87339         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87340         (free): Remove decl.
87341
87342         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87343         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87344         (This type really should be intptr_t, but that's a C99ism.)
87345         (_obstack_memcpy): Remove: all uses changed to memcpy.
87346         Include <string.h> unconditionally.
87347         (struct obstack): Assume __STDC__ for types of members
87348         chunkfun, freefun, extra_arg.
87349         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87350         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87351         obstack_begin, obstack_specify_allocation,
87352         obstack_specify_allocation_with_arg, obstack_chunkfun,
87353         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87354         Remove unprototyped decls and the macros that use them.
87355         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87356         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87357         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87358         (defined __STDC__ && __STDC__)]:
87359         Remove nonprototyped code.
87360         Include <stdlib.h> unconditionally.
87361         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87362         _obstack_allocated_p, _obstack_free, obstack_free,
87363         _obstack_memory_used, print_and_abort):
87364         Define using prototypes.
87365         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87366         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87367         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87368         obstack_next_free, obstack_object_size, obstack_room) [0]:
87369         Remove unused, unprototyped code.
87370
87371         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87372
87373         * lib/physmem.c (physmem_total, physmem_available, main): Define
87374         with prototypes.
87375
87376         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87377         (main): Define with a prototype.
87378
87379         * lib/posixver.c (getenv): Remove decl.
87380
87381         * lib/putenv.c (malloc): Returns void *, not char *.
87382         Include <string.h> unconditionally.
87383         (strchr, memcpy, NULL): Do not define.
87384
87385         * lib/readtokens.c: Include readtokens.h first, to test interface.
87386         Include <stdlib.h>, <string.h> unconditionally.
87387         (init_tokenbuffer): Define with a prototype.
87388
87389         * lib/regex.c (PARAMS): Remove.  All uses removed.
87390         All uses of _RE_ARGS removed, too.
87391         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87392         unconditionally.
87393         (bzero): Assume memset exists.
87394         (memcmp, memcpy, NULL): Remove.
87395         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87396         char, or assignments to local vars of type signed char.
87397         (init_syntax_once, PREFIX(extract_number_and_incr),
87398         PREFIX(print_partial_compiled_pattern),
87399         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87400         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87401         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87402         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87403         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87404         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87405         wcs_compile_range, byte_compile_range, truncate_wchar,
87406         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87407         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87408         count_mbs_length, wcs_re_match_2_internal,
87409         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87410         PREFIX(alt_match_null_string_p),
87411         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87412         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87413         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87414         now-unnecessary declaration, if any.
87415         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87416         regcomp, regexec):
87417         Remove now-unnecessary casts among pointer types.
87418         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87419
87420         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87421         (free): Remove decl.
87422
87423         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87424
87425         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87426         (free): Remove decl.
87427
87428         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87429         * lib/xgetcwd.c: Likewise.
87430
87431         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87432         (free): Remove decl.
87433
87434         * lib/strchrnul.c (strchrnul): Define with a prototype.
87435         Fix bug: c_in was not converted to char before searching.
87436
87437         The following changes are not K&R related:
87438
87439         * lib/group-member.h: Include <sys/types.h>, so that this file is
87440         self-contained.
87441         * lib/makepath.h: Likewise.
87442
87443         * lib/getusershell.c (readname, default_index, line_size, readname):
87444         Use size_t, not int, for sizes.
87445         (readname): If the size overflows, report an error instead of
87446         looping forever.
87447
87448 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87449
87450         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87451         libc.
87452
87453 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87454
87455         * README: New section: portability guidelines.
87456
87457 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87458
87459         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87460         C89 spec.
87461
87462 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87463
87464         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87465
87466 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87467
87468         Assume C89 or better; remove K&R cruft.
87469         A few of these changes were first proposed by Derek Robert Price
87470         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87471
87472         * lib/addext.c: Include <string.h> unconditionally.
87473         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87474         Don't declare getenv or malloc.
87475
87476         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87477         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87478         (NULL): Remove.
87479         (find_stack_direction, alloca): Use prototypes.
87480
87481         * lib/atexit.c (atexit): Define using a prototype.
87482
87483         * lib/basename.c, dirname.c, stripslash.c:
87484         Include <string.h> unconditionally.
87485
87486         * lib/bcopy.c: Include <stddef.h>.
87487         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87488
87489         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87490
87491         * lib/error.h (error, error_at_line, error_print_progname)
87492         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87493         * lib/error.c: Include error.h first, to check interface.
87494         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87495         (VA_START): Remove; all uses changeed to va_start.
87496         (exit, strerror): Remove decls.
87497         (error_print_progname): Prototype uncondionally.
87498         Don't include <errno.h>; no longer needed.
87499         (private_strerror): Remove.
87500         (error_tail): Always define.
87501         (error, error_at_line): Assume C89 or better; always use prototypes.
87502         * lib/fatal.c: Include "fatal.h" first, to test interface.
87503         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87504         (VA_START): Remove; all uses changed to va_start.
87505         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87506         this case.
87507         (exit): Remove decl.
87508         (fatal): Prototype unconditionally.  Assume va_start works.
87509         Abort at end, to pacify gcc.
87510
87511         * lib/euidaccess.c (main): Define with a prototype.
87512
87513         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87514
87515         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87516
87517         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87518         prototypes.
87519         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87520         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87521         (getenv): Remove decl.
87522         (fnmatch): Define using a prototype.
87523         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87524         (FCT): Define using a prototype.
87525
87526         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87527
87528         * lib/gethostname.c: Include <stddef.h>.
87529         (gethostname): Define with prototype.  Length is size_t, not int.
87530
87531 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87532
87533         Assume C89 or better; remove K&R cruft.
87534         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87535         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87536         string.h, getenv, malloc.
87537         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87538         headers.
87539         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87540         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87541         do not check for strerror.
87542         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87543         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87544         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87545         do not check for doprnt or vprintf.
87546         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87547         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87548
87549 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87550
87551         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87552         getversion.c should have been removed then, but was accidentally
87553         preserved.
87554
87555         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87556         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87557
87558 2003-09-08  Karl Berry  <karl@gnu.org>
87559
87560         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87561                 config, forget about prep.
87562
87563         * config/depcomp, missing: update from automake.
87564
87565 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87566
87567         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87568         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87569
87570 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87571
87572         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87573         copy_tm_result.  Bug reported by Simon Josefsson in
87574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87575
87576 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87577
87578         * m4/time_r.m4: New file.
87579         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87580         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87581         is. Check for timegm declaration.
87582         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87583         Do not check for gmtime_r.
87584         Replace mktime if __mktime_internal does not exist and if mktime
87585         hasn't been replaced already.
87586
87587 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87588
87589         * lib/time_r.c, lib/time_r.h: New files.
87590
87591         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87592         __localtime_r.
87593         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87594         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87595
87596         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87597         __gmtime_r.
87598         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87599         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87600         Include <time_r.h>.
87601
87602         * lib/timegm.c: Switch to glibc implementation, with the following
87603         changes:
87604         [defined HAVE_CONFIG_H]: Include <config.h>.
87605         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87606         (__mktime_internal) [!defined _LIBC]: New decl.
87607         (__gmtime_r) [!defined _LIBC]: New macro and function.
87608         (timegm): Use a prototype, since gnulib assumes C89.
87609         Do not bother declaring tmp to be const, as it's not really usefu.
87610         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87611         (timegm): Declare only if HAVE_DECL_TIMEGM.
87612
87613 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87614
87615         * MODULES.html.sh (func_all_modules): Add time_r.
87616         * modules/time_r: New file.
87617         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87618         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87619
87620 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87621
87622         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87623         Bug reported by Lute Kamstra in
87624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87625
87626         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87627         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87628         course with correspondingly smaller numbers for tomorrow and
87629         yesterday.  From Tadayoshi Funaba.  Originally installed into
87630         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87631         coreutils merge?).
87632
87633 2003-08-31  Simon Josefsson  <jas@extundo.com>
87634
87635         * modules/timegm: New file.
87636         * MODULES.html.sh (func_all_modules): Add timegm.
87637
87638 2003-08-31  Simon Josefsson  <jas@extundo.com>
87639
87640         * m4/timegm.m4: New file.
87641
87642 2003-08-31  Simon Josefsson  <jas@extundo.com>
87643
87644         * lib/timegm.h: New file.
87645         * lib/timegm.c: New file.  Based on
87646         wget-1.8.2/src/http.c:mktime_from_utc.
87647
87648 2003-08-31  Karl Berry  <karl@gnu.org>
87649
87650         * lib/argp.h: update from libc.
87651
87652 2003-08-28  Bruno Haible  <bruno@clisp.org>
87653
87654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87655         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87656         followed by '#define fnmatch fnmatch_posix' gives an error.
87657
87658 2003-08-28  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87661         warning on QNX, which defines O_BINARY to 000000.
87662
87663 2003-08-27  Jim Meyering  <jim@meyering.net>
87664
87665         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87666         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87667         would fail after 32.  Reported by Danny Levinson.  Details here:
87668         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87669
87670 2003-08-24  Bruno Haible  <bruno@clisp.org>
87671
87672         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87673         MSVC7 <stdio.h> is included later.
87674
87675 2003-08-22  Simon Josefsson  <jas@extundo.com>
87676
87677         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87678
87679 2003-08-20  Karl Berry  <karl@gnu.org>
87680
87681         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87682
87683 2003-08-20  Bruno Haible  <bruno@clisp.org>
87684
87685         * modules/progname: New file.
87686         * MODULES.html.sh (func_all_modules): Add progname.
87687
87688 2003-08-20  Bruno Haible  <bruno@clisp.org>
87689
87690         * lib/progname.h: New file, from GNU gettext.
87691         * lib/progname.c: New file, from GNU gettext.
87692         * lib/progreloc.c: New file, from GNU gettext.
87693
87694 2003-08-19  Jim Meyering  <jim@meyering.net>
87695
87696         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87697         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87698
87699 2003-08-19  Bruno Haible  <bruno@clisp.org>
87700
87701         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87702         more.
87703
87704 2003-08-19  Bruno Haible  <bruno@clisp.org>
87705
87706         * lib/xstrdup.c: Assume <string.h> exists.
87707
87708 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87709
87710         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87711         in makefile rules.
87712
87713 2003-08-18  Jim Meyering  <jim@meyering.net>
87714
87715         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87716         * m4/lib-ld.m4: Likewise.
87717
87718 2003-08-18  Jim Meyering  <jim@meyering.net>
87719
87720         * lib/setenv.h: Indent nested cpp directive.
87721         * lib/vasnprintf.c: Remove trailing blanks.
87722
87723 2003-08-17  Simon Josefsson  <jas@extundo.com>
87724
87725         * modules/xstrndup: New file.
87726         * MODULES.html.sh (func_all_modules): Add xstrndup.
87727
87728 2003-08-17  Simon Josefsson  <jas@extundo.com>
87729
87730         * modules/argp: Fix autoconf macro name. Add more dependencies.
87731
87732 2003-08-17  Simon Josefsson  <jas@extundo.com>
87733
87734         * m4/xstrndup.m4: New file.
87735
87736 2003-08-17  Simon Josefsson  <jas@extundo.com>
87737
87738         * m4/argp.m4: New file.
87739
87740 2003-08-17  Simon Josefsson  <jas@extundo.com>
87741             Bruno Haible  <bruno@clisp.org>
87742
87743         * lib/xstrndup.h: New file.
87744         * lib/xstrndup.c: New file.
87745
87746 2003-08-17  Bruno Haible  <bruno@clisp.org>
87747
87748         * modules/strndup (Files, Include): Add lib/strndup.h.
87749
87750 2003-08-17  Bruno Haible  <bruno@clisp.org>
87751
87752         * modules/euidaccess (Files): Add lib/euidaccess.h.
87753
87754 2003-08-17  Bruno Haible  <bruno@clisp.org>
87755
87756         * lib/strndup.h: New file.
87757
87758 2003-08-17  Bruno Haible  <bruno@clisp.org>
87759
87760         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87761         like AC_GNU_SOURCE.
87762         * modules/extensions (configure.ac): Comment out the invocation of
87763         gl_USE_SYSTEM_EXTENSIONS.
87764
87765 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87766
87767         Merges from coreutils, etc.
87768         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87769         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87770         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87771         fixing a typo.
87772         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87773         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87774
87775 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87776
87777         Document merge from coreutils.
87778         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87779         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87780         * modules/utime: Add m4/utimes-null.m4.
87781
87782 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87783
87784         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87785         space, undoing this 2003-08-12 change:
87786         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87787
87788 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87789
87790         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87791         strtoul.c from libc, undoing this 2003-08-12 change:
87792         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87793
87794 2003-08-16  Jim Meyering  <jim@meyering.net>
87795
87796         Merges from coreutils.
87797         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87798         prefix.  Adjust cache variables similarly.  Create 500 rather than
87799         just 300 files, to exercise bug on Darwin6.5, too.
87800         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87801         $missing_dir.
87802         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87803         AM_SYS_POSIX_TERMIOS.
87804         Reported by mkc@mathdogs.com.
87805         Also change use of $am_cv_sys_posix_termios
87806         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87807         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87808         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87809         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87810         in /proc/mounts until it finds one with matching device number.  This
87811         is unnecessary when the FILE argument *is* a mount point.  No stat call
87812         is necessary in that case.  So, disable the statvfs-testing code on
87813         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87814         as RedHat bug# 84846.
87815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87816         to 1MB, so as not to render systems with no stack size limit (e.g.,
87817         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87818         Include <unistd.h>.  On some systems,
87819         it is required for the definition of _SC_PAGESIZE.
87820
87821 2003-08-16  Jim Meyering  <jim@meyering.net>
87822
87823         Merge from coreutils.
87824         * lib/xstrtoimax.c: #else #if -> #elif.
87825         * lib/xstrtoumax.c: Likewise.
87826
87827 2003-08-16  Jim Meyering  <jim@meyering.net>
87828
87829         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87830         * m4/utimes.m4: Removed.
87831         * m4/utimes-null.m4: Renamed from utimes.m4.
87832
87833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87834         to 1MB, so as not to render systems with no stack size limit (e.g.,
87835         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87836         Include <unistd.h>.  On some systems,
87837         it is required for the definition of _SC_PAGESIZE.
87838
87839 2003-08-16  Jim Meyering  <jim@meyering.net>
87840         and Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         Merges from coreutils, etc.
87843
87844         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87845         using the latest version from cvs.  This avoids problems with #line
87846         directives using a vendor (Sun) compiler.
87847         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87848         Don't set GETGROUPS_LIB here; now it's
87849         done via getgroups.m4's wrapper function.
87850         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87851         rather than just in sh-util/configure.in, so that the
87852         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87853         same.
87854         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87855         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87856         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87857         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87858         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87859         Remove code that is now done by the newly-required macros.
87860         Append $(EXEEXT) to DF_PROG.
87861         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87862         Do not invoke or require the following here,
87863         since prereq.m4 or some gnulib .m4 now does this for us:
87864         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87865         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87866         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87867         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87868         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87869         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87870         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87871         AC_FUNC_OBSTACK.
87872         Do not replace the following functions, as this is now the job
87873         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87874         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87875         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87876         atexit getpass, strdup, getpagesize.
87877         Replace 'raise'.
87878         Do not check for the following functions, as this is now the job
87879         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87880         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87881         setregid.
87882         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87883         Check for sys/sysctl.h.
87884         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87885         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87886         of checking for ssize_t ourselves.
87887
87888         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87889         Require every macro that gnulib/modules/* suggests for us.
87890         (jm_PREREQ_ADDEXT): New macro.
87891         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87892         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87893
87894         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87895         (gl_PHYSMEM): Use it.
87896         Also check for `table' function.
87897         Check for new headers and functions.
87898         Add check for sys/sysmp.h.
87899         With suggestions from Kaveh Ghazi.
87900         Ignore headers that are present but cannot be compiled.  This
87901         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87902         C 5.4.
87903
87904 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87905
87906         Document merge from coreutils.
87907         * modules/userspec: Depend on posixver.
87908         * modules/strftime: Depend on tzset.
87909
87910 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87911
87912         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87913         rather than tab, after '#' in shell-script copyright notices.
87914         Suggested by Bruno Haible.
87915
87916 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87917
87918         * config/srclist-update: Use three spaces, rather than tab, after '#'
87919         in shell-script copyright notices.  Suggested by Bruno Haible.
87920         Remove unnecessary parenthesization in regular expression.
87921
87922 2003-08-15  Jim Meyering  <jim@meyering.net>
87923
87924         Merge from coreutils.
87925         * lib/xgethostname.c: Include <stdlib.h>.
87926         (xghostname): Don't exit for anything other than memory-related
87927         failure; just return NULL.
87928         * lib/userspec.c: Include "posixver.h".
87929         (parse_user_spec): Accept `.' as a separator only
87930         in pre-POSIX-200112 mode.
87931         * lib/strtoimax.c: Use #elif rather than #else #if.
87932         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87933         Remove function, now that we can rely on a working tzset function.
87934         [!_LIBC]: Ensure that the required autoconf test has been run.
87935         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87936         Use underlying_strftime for %r.
87937         * lib/sha.c: Merge in some clean-up and optimization changes from
87938         glibc.
87939         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87940         Ensure that it is a multiple of 64.
87941         Rearrange loop exit tests so as to avoid performing an
87942         additional fread after encountering an error or EOF.
87943         * lib/realloc.c: Update copyright date.
87944
87945 2003-08-15  Jim Meyering  <jim@meyering.net>
87946         and Paul Eggert  <eggert@twinsun.com>
87947
87948         Merge from coreutils.
87949         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87950         member but strut utmpx does not.  Needed for AIX 4.3.3.
87951         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87952
87953 2003-08-15  Jim Meyering  <jim@meyering.net>
87954         and Paul Eggert  <eggert@cs.ucla.edu>
87955
87956         Merges from coreutils, etc.
87957         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87958         Require gl_FUNC_TZSET_CLOBBER.
87959         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87960         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87961         members.
87962
87963 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87964
87965         Help the merge from coreutils.
87966         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87967         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87968         * m4/tzset.m4: Use it too.
87969
87970 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87971
87972         * modules/tzset: New file.
87973
87974 2003-08-14  Jim Meyering  <jim@meyering.net>
87975
87976         Merges from coreutils.
87977         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87978         variable names, rather than @FNMATCH_H@.
87979         * modules/alloca: Likewise for $(ALLOCA_H).
87980
87981         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87982         the three copies of the literal target, `fnmatch.h'.
87983         * modules/alloca (alloca.h): Likewise.
87984
87985 2003-08-14  Jim Meyering  <jim@meyering.net>
87986
87987         Merge from coreutils.
87988         * m4/tzset.m4: New file.
87989         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87990         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87991         otherwise, AIX 5.1 systems would end up using the latter.
87992         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87993         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87994         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87995         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87996
87997 2003-08-14  Jim Meyering  <jim@meyering.net>
87998
87999         Merge from coreutils.
88000         * lib/obstack.h: Whitespace changes.
88001         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88002         and xcalloc return values.
88003         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88004         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88005         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88006         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88007         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88008         error from mntctl.
88009         Use mntctl's return value to drive the entry-processing loop, since
88010         we can't rely on the value of the vmt_length member in the last
88011         entry.  On some systems doing so could result in exhausting
88012         virtual memory.  Based in part on a patch from Mike Jetzer.
88013
88014 2003-08-14  Jim Meyering  <jim@meyering.net>
88015         and Paul Eggert  <eggert@twinsun.com>
88016
88017         Merges from coreutils, plus other fixes.
88018         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88019         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88020         for credits and details.  Thanks to Kaveh Ghazi for helping
88021         to keep these files in sync.
88022         (ARRAY_SIZE): Define it.
88023         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88024         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88025         (memcasecmp): Don't assume size_t fits in unsigned int.
88026         Remove casts and duplicate code.
88027         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88028         (memcpy): Remove definition.
88029         Merge in some clean-up and optimization changes from glibc.
88030         [BLOCKSIZE]: Move definition to top of file.
88031         Ensure that it is a multiple of 64.
88032         Rearrange loop exit tests so as to avoid performing an
88033         additional fread after encountering an error or EOF.
88034         * lib/md5.h (md5_uintptr): Define.
88035         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88036         return to the initial working directory.  Preserve errno
88037         for caller.
88038         * lib/idcache.c: Include "xalloc.h".
88039         (xmalloc, xrealloc): Remove decls.
88040         (getuser): Remove casts no longer required in C89.
88041         * lib/human.c: Include stdio.h, for sprintf.
88042         * lib/group-member.c: Include "xalloc.h".
88043         (xmalloc, xrealloc): Remove decls.
88044         (get_group_info): Remove casts no longer required in C89.
88045         * lib/getusershell.c (readname): Remove casts no longer required in
88046         C89.
88047         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88048         * lib/getline.c: Whitespace fix, from coreutils.
88049
88050 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88051
88052         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88053         Check for isascii.
88054
88055         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88056         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88057         Undo previous (whitespace-only) change.
88058
88059 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88060
88061         * lib/exclude.c: Include <ctype.h>
88062         (IN_CTYPE_DOMAIN): New macro.
88063         (is_space): New fn.
88064         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88065         and empty lines.
88066
88067         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88068         Undo previous (whitespace-only) change.
88069
88070 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88071
88072         * config/srclist-update: Change update back to the old behavior,
88073         leaving whitespace alone.  Use one 'sed' command rather than a
88074         pipeline.
88075         (fixlicense): Now a variable, not a function.
88076         (remove_trailing_blanks): Remove.
88077         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88078         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88079         Undo previous (whitespace-only) change.
88080
88081 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88082
88083         Merge from coreutils.
88084         * modules/euidaccess: Add lib_SOURCES, include for new
88085         file euidaccess.h
88086
88087 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88088
88089         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88090         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88091         Normalize leading white space and remove trailing white space.
88092
88093         Merge from coreutils
88094         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88095
88096         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88097         0.12.1.  These files are now being upgraded automatically by
88098         ../config/srclist-update.
88099
88100 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88101
88102         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88103         Normalize leading white space and remove trailing white space.
88104         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88105         notice, as per ../config/srclist-update.
88106
88107         Merge from coreutils.
88108         * lib/euidaccess.h: New file.
88109         * lib/euidaccess.c: Include it.
88110         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88111         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88112         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88113
88114 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88115
88116         * config/srclist-update: Add copyright notice.
88117         (remove_id_lines, remove_trailing_blanks): New constants.
88118         (fixfile): Use them to normalize spacing a bit in copied files.
88119         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88120         Normalize leading white space and remove trailing white space.
88121
88122         * config/texinfo.tex: Sync with texinfo.
88123
88124         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88125         strtoul.c from libc, to merge coreutils whitespace changes.
88126
88127         * config/srclist.txt: Get the following m4 files from gettext:
88128         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88129         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88130         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88131         wint_t.m4.
88132
88133 2003-08-12  Karl Berry  <karl@gnu.org>
88134
88135         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88136         been made.
88137
88138 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88139
88140         * modules/gnu-source, m4/gnu-source.m4:
88141         Remove; we're assuming Autoconf 2.54 or later now.
88142         Suggested by Bruno Haible.
88143         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88144
88145 2003-08-11  Bruno Haible  <bruno@clisp.org>
88146
88147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88148
88149 2003-08-11  Bruno Haible  <bruno@clisp.org>
88150
88151         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88152         (vasnprintf): Use it instead of wcslen.
88153
88154 2003-08-11  Bruno Haible  <bruno@clisp.org>
88155
88156         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88157         value to ensure that _Bool promotes to int. Use #define for _Bool when
88158         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88159
88160 2003-08-10  Karl Berry  <karl@gnu.org>
88161
88162         * lib/regex.h: update from libc (whitespace fix).
88163
88164 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88165
88166         Merge some files from coreutils.  These changes were
88167         originally made by Jim Meyering.
88168         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88169         many older Unixes require this.
88170         * lib/alloca.c (alloca): Remove cast to argument of free;
88171         no longer needed in C89.
88172         * lib/alloca_.h, regex.h: Fix white space to match
88173         what GNU indent does.
88174
88175 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88176
88177         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88178         apparently Emacs's Unicode mode got confused before my 2003-08-05
88179         checkin.
88180
88181 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88182
88183         * m4/extensions.m4: New file.
88184         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88185         Require gl_USE_SYSTEM_EXTENSIONS.
88186         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88187         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88188
88189 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88190
88191         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88192         * modules/extensions, modules/gnu-source: New files.
88193         * modules/timespec, modules/unlocked-io: Depend on extensions.
88194
88195 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88196
88197         * modules/restrict: New file.
88198         * MODULES.html.sh (func_all_modules): Add restrict.
88199         * modules/regex: Depend on restrict.
88200
88201 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88202
88203         * m4/restrict.m4: New file.
88204         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88205
88206 2003-08-07  Bruno Haible  <bruno@clisp.org>
88207
88208         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88209         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88210
88211 2003-08-07  Bruno Haible  <bruno@clisp.org>
88212
88213         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88214         makes the module 'getndelim2' compatible with the module 'getline'.
88215
88216 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88217
88218         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88219         byte with "\201" to avoid glitches when editing that source file
88220         with multi-gnome-terminal.
88221
88222 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88223
88224         * lib/bumpalloc.h: Remove.
88225
88226 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88227
88228         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88229         * modules/bumpalloc: Remove.
88230
88231 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88232
88233         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88234         GNU coding style.
88235
88236         Merge from coreutils.
88237         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88238         1. From glibc.
88239         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88240         from Karl Berry, implemented by Jim Meyering.
88241         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88242         from Dmitry V. Levin.
88243         Remove anachronistic cast of xrealloc.
88244         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88245         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88246         type. Otherwise, it wouldn't compile with at least /bin/cc on
88247         ymp-cray-unicos9.0.2.X.
88248         Combine two mostly-identical uses of alloca into one.
88249         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88250
88251 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88252
88253         [From Emacs.]
88254
88255         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88256         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88257         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88258         obsolete NLIST_NAME_UNION.
88259         [__GNU__]: Undef BSD and FSCALE.
88260         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88261
88262 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88263
88264         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88265         an enum type, so that it's guaranteed to promote to int.  See:
88266         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88267
88268 2003-08-03  Karl Berry  <karl@gnu.org>
88269
88270         * config/depcomp: update from automake.
88271
88272 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88273
88274         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88275         (strerror): Don't assume that a printable int fits in 14 bytes.
88276
88277 2003-07-31  Bruno Haible  <bruno@clisp.org>
88278
88279         * modules/getpass-gnu: New file.
88280         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88281
88282 2003-07-31  Bruno Haible  <bruno@clisp.org>
88283
88284         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88285
88286 2003-07-24  Karl Berry  <karl@gnu.org>
88287
88288         * config/missing: update from automake.
88289
88290 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88291             Bruno Haible  <bruno@clisp.org>
88292
88293         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88294         * lib/getline.c (getline, getdelim): Likewise.
88295         Remove _GNU_SOURCE define; now it's defined in config.h through
88296         m4/getline.m4.
88297
88298 2003-07-23  Karl Berry  <karl@gnu.org>
88299
88300         * config/config.sub: update from prep.
88301
88302 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88303
88304         * modules/xalloc (Depends-on): Add exitfail.
88305         * modules/xmemcoll: Likewise.
88306
88307 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88310         over-parenthesization in macros.
88311
88312         Sync with coreutils.
88313
88314         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88315         required by C99.
88316
88317         Use `exit_failure' for xalloc and xmemcoll instead of their own
88318         private exit-failure variables.
88319         * lib/xalloc.h (xalloc_exit_failure): Remove.
88320         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88321         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88322         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88323         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88324         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88325
88326 2003-07-20  Jim Meyering  <jim@meyering.net>
88327
88328         * modules/closeout (Depends-on): Add exitfail.
88329         Suggestion from Bruno Haible.
88330
88331 2003-07-19  Karl Berry  <karl@gnu.org>
88332
88333         * config/config.sub: update from prep.
88334
88335 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88336
88337         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88338         Remove.
88339         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88340         to test that it can stand by itself.  Include "exitfail.h".
88341         Clients should set exit_failure instead.
88342         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88343
88344 2003-07-18  Bruno Haible  <bruno@clisp.org>
88345
88346         * modules/getndelim2: New file.
88347         * modules/getline: Share files with module getndelim2.
88348         * modules/getnline: Depend on getndelim2 instead of sharing files with
88349         it. Add getnline.c to lib_SOURCES.
88350         * MODULES.html.sh (func_all_modules): Add getndelim2.
88351
88352 2003-07-18  Bruno Haible  <bruno@clisp.org>
88353
88354         * m4/getndelim2.m4: New file.
88355         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88356         invoke gl_PREREQ_GETNDELIM2.
88357         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88358         gl_PREREQ_GETNDELIM2.
88359         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88360         gl_GETNDELIM2.
88361
88362 2003-07-18  Bruno Haible  <bruno@clisp.org>
88363
88364         * lib/getndelim2.h: New file.
88365         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88366         getndelim2.h.
88367         (getndelim2): Make non-static. Change return type to ssize_t.
88368         * lib/getline.h: Change argument names.
88369         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88370         * lib/getnline.c: Include getndelim2.h.
88371
88372 2003-07-18  Andreas Schwab  <schwab@suse.de>
88373
88374         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88375
88376 2003-07-17  Karl Berry  <karl@gnu.org>
88377
88378         * config/config.sub: update from prep.
88379
88380 2003-07-17  Bruno Haible  <bruno@clisp.org>
88381
88382         * modules/getnline: New file.
88383         * modules/getline: Add lib/getndelim2.c to source file list.
88384         * MODULES.html.sh (func_all_modules): Add getnline.
88385
88386 2003-07-17  Bruno Haible  <bruno@clisp.org>
88387
88388         * m4/getnline.m4: New file.
88389
88390 2003-07-17  Bruno Haible  <bruno@clisp.org>
88391
88392         * m4/Makefile.am.in: Remove file.
88393         * m4/Makefile.am: Remove file.
88394         * m4/Makefile.in: Remove file.
88395
88396 2003-07-17  Bruno Haible  <bruno@clisp.org>
88397
88398         * lib/getnline.h: New file.
88399         * lib/getnline.c: New file.
88400         * lib/getndelim2.c: New file, extracted from getline.c.
88401         (getndelim2): Renamed from getdelim2, with added nmax argument.
88402         * lib/getline.c: Include getndelim2.c.
88403         (getdelim2): Moved out to getndelim2.c.
88404         (getline, getdelim): Update.
88405
88406 2003-07-17  Bruno Haible  <bruno@clisp.org>
88407
88408         * lib/Makefile.am: Remove file.
88409         * lib/Makefile.in: Remove file.
88410
88411 2003-07-17  Bruno Haible  <bruno@clisp.org>
88412
88413         * configure.in: Remove file.
88414         * Makefile.in: Remove file.
88415
88416 2003-07-17  Bruno Haible  <bruno@clisp.org>
88417
88418         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88419
88420 2003-07-16  Karl Berry  <karl@gnu.org>
88421
88422         * config/srclist-update: was running fixlicense twice, which caused
88423                 texinfo.tex to be nullified for some reason.  Simplify,
88424                 $gplsrc is no longer needed as far as I can see?
88425
88426 2003-07-16  Jim Meyering  <jim@meyering.net>
88427
88428         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88429
88430 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88431
88432         * config/srclist.txt: Get the following files from gettext-runtime/intl
88433         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88434         ref-del.sin.  From Bruno Haible.
88435         * config/srclist-update (fixfile): Change grep pattern again, since the
88436         previous fix didn't work (there was another trailing $).  Use
88437         '[$]' to escape the $s.
88438
88439 2003-07-15  Karl Berry  <karl@gnu.org>
88440
88441         * lib/vasnprintf.c: update from gettext.
88442
88443 2003-07-15  Karl Berry  <karl@gnu.org>
88444
88445         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88446         gets expanded when surrounded by '$'.
88447
88448 2003-07-15  Jim Meyering  <jim@meyering.net>
88449
88450         * modules/save-cwd: Don't depend on error.  From Derek Price.
88451
88452 2003-07-15  Jim Meyering  <jim@meyering.net>
88453
88454         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88455
88456 2003-07-14  Simon Josefsson  <jas@extundo.com>
88457
88458         * modules/mempcpy: New file.
88459         * MODULES.html.sh (func_all_modules): Add mempcpy.
88460
88461 2003-07-14  Simon Josefsson  <jas@extundo.com>
88462
88463         * m4/mempcpy.m4: New file.
88464
88465 2003-07-14  Simon Josefsson  <jas@extundo.com>
88466
88467         * lib/mempcpy.h: New file.
88468         * lib/mempcpy.c: New file.
88469
88470 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88471
88472         * modules/getdate, modules/posixtm: Depend on mktime.
88473
88474 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88475
88476         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88477         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88478         unicodeio.c, unicodeio.h, unlocked-io.h:
88479         Switch from LGPL to GPL.
88480
88481 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88482
88483         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88484         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88485         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88486         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88487         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88488         updated automatically by ../config/srclist-update.  This changes
88489         their license from LPGL to GPL.
88490
88491 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88492
88493         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88494         assumed to refer to the root of the most recent stable gettext version.
88495         * config/srclistvars.sh: Add defaults for eggert.
88496         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88497         Match "This program" as well as "The program".  This is needed
88498         for gettext.
88499
88500 2003-07-14  Jim Meyering  <jim@meyering.net>
88501
88502         Don't emit diagnostics.  Let callers do that.
88503         * lib/save-cwd.c: Don't include "error.h".
88504         (save_cwd): Don't call error.  Ensure that errno is valid
88505         when returning nonzero.
88506
88507         * lib/save-cwd.h (restore_cwd): Update prototype.
88508         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88509         Simplify.  Don't call error upon failure.  Let callers do that.
88510         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88511         when auditing is enabled.  But don't bother updating the #if.
88512
88513 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88514
88515         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88516         it breaks C++ compilation.
88517         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88518
88519 2003-07-10  Simon Josefsson  <jas@extundo.com>
88520
88521         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88522
88523 2003-07-10  Jim Meyering  <jim@meyering.net>
88524
88525         * m4/clock_time.m4: Remove trailing blank.
88526         * m4/intmax_t.m4: Likewise.
88527
88528 2003-07-10  Jim Meyering  <jim@meyering.net>
88529
88530         * lib/vasnprintf.c: Remove trailing blanks.
88531         Make cpp indentation consistent.
88532
88533 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88534
88535         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88536         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88537         Switch from LGPL to GPL.
88538
88539 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88540
88541         * config/srclist.txt: Sort sublists.  Add
88542         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88543         that differ from gnulib for one reason or another; we'd like this list
88544         to be smaller but for now let's document what we have.
88545
88546 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88547
88548         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88549         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88550         and sweeter "eval x=$x".
88551         * config/srclist.txt: Get lib/argp* from glibc.
88552
88553 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88554
88555         * lib/mktime.c: Fix some boundary cases and remove need for floating
88556         point.
88557
88558         Issue a compile-time diagnostic if time_t is floating point, or if
88559         two's complement arithmetic is not in effect, or if arithmetic
88560         right shift does not propagate the sign.  These assumptions were
88561         all in the original code but they weren't checked.
88562
88563         (TIME_T_MIDPOINT, verify): New macros.
88564         (__isleap): Remove; it has integer overflow problems.
88565         (leapyear): New function, without those problems.
88566         (ydhms_tm_diff): Remove; splitting into two parts.
88567         (ydhms_diff): New function, containing the arithmetic part of
88568         the old ydhms_tm_diff function.  Issue a compile-time
88569         diagnostic if we are not using C99 integer division.
88570         Avoid casts when possible.
88571         (guess_time_tm): New function, containing the checking part of
88572         the old ydhms_tm_diff function.  Return the new value, rather than
88573         the difference between it and the old.  Accept a new argument T
88574         so that *T specifies the old value.  Check for overflow in the result.
88575
88576         (__mktime_internal): Use a time_t offset, not a long int offset.
88577         This undoes the 2003-06-04 change, which is no longer needed now
88578         that we have better overflow checking.
88579         (localtime_offset): Likewise.
88580
88581         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88582         and long are 64-bit but int is only 32-bit.
88583         (ydhms_diff): Use long int to store year1 and yday1.
88584         Issue a compile-time diagnostic if long int is not wide enough.
88585
88586         (__mktime_internal): Use long int to store adjusted year and yday.
88587         Use plain C rather than preprocessor commands, if that doesn't
88588         affect efficiency.
88589         Check for overflow (and try to repair) after each probe
88590         rather than checking only at the very end.  This avoids some bugs
88591         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88592         does not equal GMT offset at maximum time).
88593         Use integer to check for overflow rather than floating point; this
88594         is more portable to non-IEEE hosts, and is a tad faster.
88595         When we detect that we are oscillating between two values,
88596         don't check whether tm_isdst has the requested value, since
88597         we already know the answer.  When tm_isdst has the wrong value,
88598         use a different heuristic to find the right one, based on the
88599         extreme values actually observed in practice in tz2003a,
88600         rather than the (overly optimistic) "previous 3 calendar quarters".
88601
88602         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88603         "T const" to accommodate glibc style.
88604         (check_result): Use less-confusing report format.  "long" -> "long int.
88605         (main): Likewise.
88606         Don't loop if the iteration overflows time_t.
88607         Allow a negative step in the iteration.
88608
88609 2003-07-06  Karl Berry  <karl@gnu.org>
88610
88611         * config/depcomp: update from automake.
88612         * config/config.sub: update from prep.
88613
88614 2003-07-03  Karl Berry  <karl@gnu.org>
88615
88616         * config/config.guess: update from prep.
88617
88618 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88619
88620         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88621         xreadlink.c now includes it unconditionally.
88622
88623 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88624
88625         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88626         having it depend on HAVE_SYS_TYPES_H.
88627
88628 2003-07-01  Bruno Haible  <bruno@clisp.org>
88629
88630         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88631         <sys/types.h> should be sufficient.
88632         Reported by Paul Eggert.
88633
88634 2003-06-26  Karl Berry  <karl@gnu.org>
88635
88636         * config/depcomp: update from automake.
88637
88638 2003-06-26  Bruno Haible  <bruno@clisp.org>
88639
88640         * modules/human: Depend on module stdbool.
88641
88642 2003-06-25  Bruno Haible  <bruno@clisp.org>
88643
88644         * modules/readlink: New file.
88645         * modules/xreadlink: Depend on it.
88646         * MODULES.html.sh (func_all_modules): Add readlink.
88647
88648 2003-06-25  Bruno Haible  <bruno@clisp.org>
88649
88650         * m4/readlink.m4: New file.
88651
88652 2003-06-25  Bruno Haible  <bruno@clisp.org>
88653
88654         * lib/readlink.c: New file.
88655
88656 2003-06-22  Karl Berry  <karl@gnu.org>
88657
88658         * config/srclist.txt: update mkinstalldirs from automake.
88659         * config/mkinstalldirs: update.
88660
88661 2003-06-22  Bruno Haible  <bruno@clisp.org>
88662
88663         Portability to mingw32.
88664         * m4/ssize_t.m4: New file, from GNU gettext.
88665         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88666         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88667
88668 2003-06-22  Bruno Haible  <bruno@clisp.org>
88669
88670         * modules/safe-read: Add m4/ssize_t.m4.
88671         * modules/xreadlink: Add m4/ssize_t.m4.
88672
88673 2003-06-20  Bruno Haible  <bruno@clisp.org>
88674
88675         Assume C89, so PARAMS isn't needed.
88676         * lib/unicodeio.h (PARAMS): Remove.
88677         * lib/unicodeio.c: Don't use PARAMS.
88678
88679 2003-06-18  Karl Berry  <karl@gnu.org>
88680
88681         * config/config.{guess,sub}: update from prep.
88682
88683 2003-06-18  Jim Meyering  <jim@meyering.net>
88684
88685         Merge changes from coreutils.
88686         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88687         Remove explicit declarations of xmalloc and realloc.
88688         Include xalloc.h.
88689         (read_utmp): Remove anachronistic cast of xmalloc.
88690
88691 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88692
88693         Assume C89, so PARAMS isn't needed.
88694         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88695         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88696         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88697         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88698         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88699         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88700         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88701         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88702         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88703         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88704         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88705         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88706         no longer needed. Anyway, config.h should always be included before any
88707         other file.
88708
88709 2003-06-11  Simon Josefsson  <jas@extundo.com>
88710
88711         * modules/sysexits: New file.
88712         * MODULES.html.sh (func_all_modules): Add sysexits.
88713
88714 2003-06-11  Simon Josefsson  <jas@extundo.com>
88715
88716         * lib/sysexit_.h: New file.
88717
88718 2003-06-11  Derek Price  <derek@ximbiot.com>
88719
88720         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88721         necessary.
88722
88723 2003-06-11  Bruno Haible  <bruno@clisp.org>
88724
88725         * m4/sysexits.m4: New file.
88726
88727 2003-06-10  Simon Josefsson  <jas@extundo.com>
88728
88729         * lib/argp.h: New file, from glibc.
88730         * lib/argp-ba.c: New file, from glibc.
88731         * lib/argp-eexst.c: New file, from glibc.
88732         * lib/argp-fmtstream.c: New file, from glibc.
88733         * lib/argp-fmtstream.h: New file, from glibc.
88734         * lib/argp-fs-xinl.c: New file, from glibc.
88735         * lib/argp-help.c: New file, from glibc.
88736         * lib/argp-namefrob.h: New file, from glibc.
88737         * lib/argp-parse.c: New file, from glibc.
88738         * lib/argp-pv.c: New file, from glibc.
88739         * lib/argp-pvh.c: New file, from glibc.
88740         * lib/argp-xinl.c: New file, from glibc.
88741
88742 2003-06-10  Simon Josefsson  <jas@extundo.com>
88743
88744         * modules/strchrnul: New file.
88745
88746 2003-06-10  Simon Josefsson  <jas@extundo.com>
88747
88748         * modules/argp: New file.
88749
88750 2003-06-10  Simon Josefsson  <jas@extundo.com>
88751
88752         * m4/strchrnul.m4: New file.
88753
88754 2003-06-10  Simon Josefsson  <jas@extundo.com>
88755
88756         * lib/strchrnul.h: New file.
88757         * lib/strchrnul.c: New file.
88758
88759 2003-06-10  Bruno Haible  <bruno@clisp.org>
88760
88761         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88762
88763 2003-06-07  Karl Berry  <karl@gnu.org>
88764
88765         * config/config.{guess,sub}: update from prep.
88766
88767 2003-06-07  Jim Meyering  <jim@meyering.net>
88768
88769         * modules/strtod: Use $(...) notation, not @...@ for
88770         AC_REPLACE'd variables.
88771         * modules/localcharset: Likewise.
88772
88773 2003-06-07  Jim Meyering  <jim@meyering.net>
88774
88775         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88776         in place of my name in the copyright comment.
88777         Remove definition and uses of __P.
88778
88779         From coreutils.
88780         * lib/stat.c: Don't declare xmalloc explicitly.
88781         Instead, include "xalloc.h".
88782         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88783         xrealloc, and xcalloc return values.
88784         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88785         Improve comment.
88786         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88787
88788 2003-06-07  Bruno Haible  <bruno@clisp.org>
88789
88790         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88791         avoid AC_CONFIG_LINKS.
88792         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88793         fnmatch.h, to avoid AC_CONFIG_LINKS.
88794         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88795
88796 2003-06-07  Bruno Haible  <bruno@clisp.org>
88797
88798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88799         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88800         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88801         directory.
88802         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88803         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88804         directory.
88805
88806 2003-06-06  Jim Meyering  <jim@meyering.net>
88807
88808         Merge from coreutils.
88809         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88810         Consolidate declarations and initializations of *_base* locals.
88811
88812         Merge from coreutils.
88813         This avoids a core dump on systems without GNU putenv,
88814         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88815         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88816         (unsetenv): New static function, from GNU libc.
88817         (rpl_putenv): Use it.
88818
88819         * lib/modechange.c: Remove trailing blanks.
88820
88821         Merge from coreutils.
88822         * lib/fsusage.c: Remove declaration of statfs.
88823         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88824
88825         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88826
88827 2003-06-06  Jim Meyering  <jim@meyering.net>
88828
88829         * lib/stdbool_.h: Renamed from stdbool.h.in.
88830
88831 2003-06-06  Jim Meyering  <jim@meyering.net>
88832             Bruno Haible  <bruno@clisp.org>
88833
88834         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88835         Adjust Makefile.am snippet not to redirect directly to target.
88836         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88837
88838 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88839
88840         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88841         mismatch, look in future quarters as well as past.  This fixes a
88842         bug when processing fall-backwards gaps immediately after a long
88843         period of daylight-saving time.
88844
88845         * lib/mktime.c: Assume freestanding C89 or better.
88846         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88847         (__P): Remove; not used.
88848         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88849         (mktime, not_equal_tm, print_tm, check_result,
88850         main): Use prototypes.  Use const * where appropriate.
88851         (main): Fix typo in testing code that uncovered by above changes.
88852         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88853
88854 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88855
88856         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88857         locale.h, localeconv.  This merges changes from coreutils.
88858
88859         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88860         It can be removed after the next Autoconf is released.
88861         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88862         needed.
88863
88864 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88865
88866         * lib/mktime.c: Fix Debian bug 177940
88867         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88868         (localtime_offset): Now long int, not time_t, because we want it
88869         to be guaranteed to be signed.  All uses changed.
88870         (__mktime_internal): If overflow would occur when adding offset,
88871         don't add it.
88872
88873         Merge 'human' changes from coreutils.  Rewrite to support
88874         locale-specific notations like thousands separators.
88875         * lib/human.c: Simplify authorship notice.
88876         Include human.h immediately after config.h.
88877         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88878         <limits.h>: Do not include, since human.h does.
88879         (SIZE_MAX, UINTMAX_MAX): New macros.
88880         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88881         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88882         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88883         (power_letter): Renamed from suffixes.
88884         (generate_suffix_backwards): Remove.
88885         (adjust_value): Now takes int style (because of human.h changes)
88886         and long double value (for greater precision on some platforms).
88887         (group_number): New function.
88888         (human_readable): Use it.  Use integer options, not enum.
88889         Put the options before the sizes in the arg list.
88890         Support all the new options.
88891         The old human_readable function has been removed;
88892         use inttostr.h instead.
88893         (human_readable, default_block_size, humblock):
88894         Use uintmax_t, not int, for block sizes.
88895         (human_readable_inexact, block_size_types): Remove.
88896         (block_size_opts): New constant.
88897         (human_options): Renamed from human_block_size, with new signature
88898         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88899         * lib/human.h: Add copyright and authorship notice.
88900         Include <limits.h> and <stdbool.h> unconditionally.
88901         (PARAMS): Remove.  All uses removed.
88902         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88903         (enum human_inexact_style): Remove tag; now a nameless enum.
88904         (human_floor, human_ceiling, human_round_to_even): Now have
88905         values 2, 0, 1 rather than -1, 1, 0.
88906         (human_group_digits, human_suppress_point_zero, human_autoscale,
88907         human_base_1024, human_SI, human_B): New constants.
88908         (human_readable_inexact, human_block_size): Remove.
88909         (human_readable): Size args are now uintmax_t, not int.
88910         (human_options): New decl.
88911
88912         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88913         unnecessary now that we assume C89 or better.  This change
88914         imported from coreutils.
88915
88916         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88917         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88918         in the 2003-05-30 sync from glibc.
88919
88920         .h files should stand alone, but we shouldn't include <sys/types.h>
88921         if we can get away with just <stddef.h>.
88922
88923         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88924         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88925         rather than <sys/types.h>, as we merely need size_t.
88926         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88927         to get size_t.
88928         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88929         Include <stdio.h>, to get FILE.
88930         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88931         memcasecmp.h has included <stddef.h> and all we need is size_t.
88932         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88933         our interface, instead of including <sys/types.h>
88934
88935 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88936
88937         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88938         now, as glibc mktime is buggy on non-glibc systems.
88939
88940 2003-06-03  Karl Berry  <karl@gnu.org>
88941
88942         * config/config.sub: update from prep.
88943
88944 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88945
88946         [from coreutils]
88947         Fix some minor time-related bugs with POSIX time arguments.
88948         Some valid time stamps were being rejected (notably -1, and
88949         time stamps before 1900 on 64-bit hosts).  And some invalid
88950         time stamps were being accepted, e.g. September 31.
88951
88952         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88953         that we can return (time_t) -1 successfully.
88954         * lib/posixtm.c: Likewise.
88955         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88956         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88957         (t): Remove static var.
88958         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88959         of static var.  All uses changed.
88960         (year): Do not reject years before 1900; they can occur with
88961         64-bit time_t.
88962         (posix_time_parse): Do not check for out-of-range components;
88963         that is now the caller's responsibility, since our checks were
88964         only approximations.
88965         (posixtime): Use mktime to check for out-of-range components,
88966         since it knows them exactly.
88967         If mktime returns (time_t) -1, check whether an error actually occurred
88968         by invoking localtime on -1.
88969         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88970         posixtime failures better.
88971         Improve the test data (in comments only).
88972
88973 2003-06-02  Karl Berry  <karl@gnu.org>
88974
88975         * config/mkinstalldirs (version): new variable.
88976         (--version): new option.
88977         (usage): improve message.
88978
88979 2003-05-30  Karl Berry  <karl@gnu.org>
88980
88981         * lib/mktime.c: update from libc.
88982
88983 2003-05-30  Bruno Haible  <bruno@clisp.org>
88984
88985         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88986         * config/config.rpath: Upgrade to gettext-0.12.1.
88987
88988 2003-05-30  Bruno Haible  <bruno@clisp.org>
88989
88990         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88991         * m4/nls.m4: New file, from gettext-0.12.1.
88992         * m4/po.m4: New file, from gettext-0.12.1.
88993         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88994
88995 2003-05-30  Bruno Haible  <bruno@clisp.org>
88996
88997         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88998         * lib/localcharset.h: Likewise.
88999         * lib/localcharset.c: Likewise.
89000
89001 2003-05-29  Karl Berry  <karl@gnu.org>
89002
89003         * config/config.rpath: update from gettext.
89004
89005 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89006
89007         Assume the headers required for C89 freestanding compilers.
89008         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89009         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89010         * m4/human.m4 (gl_HUMAN): Likewise.
89011         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89012         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89013         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89014         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89016         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89017
89018 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89019
89020         Assume the headers required for C89 freestanding compilers.
89021         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89022         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89023         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89024         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89025         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89026         define, since <limits.h> is guaranteed to do that.
89027         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89028         * lib/exclude.c: Include <stdbool.h> unconditionally.
89029         * lib/tempname.c: Include <stddef.h> unconditionally.
89030         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89031         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89032         <stddef.h> does that.
89033         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89034         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89035         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89036         needed.
89037         * lib/xstrtol.c: Likewise.
89038         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89039         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89040
89041         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89042         warnings on some platforms.
89043
89044         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89045         arbitrarily.
89046
89047 2003-05-26  Jim Meyering  <jim@meyering.net>
89048
89049         Merge in a change from coreutils:
89050         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89051         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89052         that condition, rather than `-1' which is slightly misleading.
89053         Change the name of the cache variable to have the gl_ prefix.
89054         Prompted by a patch from Richard Dawe for DJGPP.
89055
89056 2003-05-24  Karl Berry  <karl@gnu.org>
89057
89058         * config/config.guess: update from prep.
89059
89060 2003-05-22  Karl Berry  <karl@gnu.org>
89061
89062         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89063
89064 2003-05-20  Karl Berry  <karl@gnu.org>
89065
89066         * config/config.guess: update from prep.
89067
89068 2003-05-18  Karl Berry  <karl@gnu.org>
89069
89070         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89071         might actually be set by the user.
89072
89073         * config/depcomp, install-sh, mdate-sh: update from automake.
89074
89075 2003-05-17  Bruno Haible  <bruno@clisp.org>
89076
89077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89078         invalid expansion for AC_EGREP_CPP.
89079         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89080         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89081         Suggested by Akim Demaille <akim@epita.fr> in
89082         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89083
89084 2003-05-12  Jim Meyering  <jim@meyering.net>
89085
89086         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89087         the space-padded-by-default conversion specifiers, %e, %k, %l.
89088
89089 2003-05-12  Bruno Haible  <bruno@clisp.org>
89090
89091         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89092         the string is longer than 4 KB.
89093
89094 2003-05-11  Karl Berry  <karl@gnu.org>
89095
89096         * config/config.{guess,sub}: update from prep.
89097
89098 2003-05-09  Bruno Haible  <bruno@clisp.org>
89099
89100         * modules/error: Add m4/strerror_r.m4 to file list.
89101
89102 2003-05-03  Bruno Haible  <bruno@clisp.org>
89103
89104         Upgrade to Unicode-4.0.
89105         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89106         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89107         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89108         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89109         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89110         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89111         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89112         Change width of U+E0100..U+E01EF from 1 to 0.
89113
89114 2003-04-25  Jim Meyering  <jim@meyering.net>
89115
89116         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89117         of type size_t, not int.
89118
89119 2003-04-25  Bruno Haible  <bruno@clisp.org>
89120
89121         * lib/copy-file.c: Include <stddef.h>, for size_t.
89122
89123 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89124
89125         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89126         code which expansion is under static control.  Patch imported from
89127         Akim Demaille's patch to Bison; see
89128         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89129
89130 2003-04-14  Bruno Haible  <bruno@clisp.org>
89131
89132         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89133
89134 2003-04-11  Jim Meyering  <jim@meyering.net>
89135
89136         Merge changes from Coreutils.
89137
89138         2003-03-22  Jim Meyering  <jim@meyering.net>
89139
89140         * lib/strftime.c (widen): Cast alloca return value to proper type.
89141
89142         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89143
89144         From GNU libc.
89145         * lib/strftime.c (my_strftime): Handle very large width
89146         specifications for numeric values correctly.  Improve checks for
89147         overflow.
89148
89149         2003-01-19  Jim Meyering  <jim@meyering.net>
89150
89151         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89152         definitions.
89153         (nl_get_alt_digit) [! defined my_strftime]: Define.
89154         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89155         _nl_get_alt_digit and _nl_get_walt_digit.
89156
89157         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89158         libc. These changes have no effect outside of _LIBC.
89159
89160 2003-04-10  Bruno Haible  <bruno@clisp.org>
89161
89162         * modules/findprog: New file.
89163         * MODULES.html.sh (func_all_modules): Add it.
89164
89165 2003-04-10  Bruno Haible  <bruno@clisp.org>
89166
89167         * m4/findprog.m4: New file.
89168         * m4/eaccess.m4: New file.
89169
89170 2003-04-10  Bruno Haible  <bruno@clisp.org>
89171
89172         * lib/findprog.h: New file, from GNU gettext.
89173         * lib/findprog.c: New file, from GNU gettext.
89174
89175 2003-04-05  Jim Meyering  <jim@meyering.net>
89176
89177         Merge changes from Coreutils.
89178
89179         * lib/exclude.h (PARAMS): Remove definition and uses.
89180         * lib/exclude.c: Remove uses of `PARAMS'.
89181
89182         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89183         Add test-cases for DOS filenames. Declare program_name.
89184         (main): Set up program_name.  Patch by Rich Dawe.
89185
89186         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89187         error from mntctl.
89188         Use mntctl's return value to drive the entry-processing loop, since
89189         we can't rely on the value of the vmt_length member in the last
89190         entry.  On some systems doing so could result in exhausting
89191         virtual memory.  Based in part on a patch from Mike Jetzer.
89192
89193 2003-04-04  Bruno Haible  <bruno@clisp.org>
89194
89195         * modules/linebreak: New file.
89196         * MODULES.html.sh (func_all_modules): Add it.
89197
89198 2003-04-04  Bruno Haible  <bruno@clisp.org>
89199
89200         * m4/linebreak.m4: New file.
89201
89202 2003-04-04  Bruno Haible  <bruno@clisp.org>
89203
89204         * lib/linebreak.h: New file, from GNU gettext.
89205         * lib/linebreak.c: New file, from GNU gettext with slight
89206         modifications.
89207         * lib/lbrkprop.h: New file, from GNU gettext.
89208
89209 2003-04-03  Bruno Haible  <bruno@clisp.org>
89210
89211         * modules/utf8-ucs4: New file.
89212         * modules/utf16-ucs4: New file.
89213         * modules/ucs4-utf8: New file.
89214         * modules/ucs4-utf16: New file.
89215         * MODULES.html.sh (func_all_modules): Add them.
89216
89217 2003-04-03  Bruno Haible  <bruno@clisp.org>
89218
89219         * m4/utf-ucs4.m4: New file.
89220         * m4/ucs4-utf.m4: New file.
89221
89222 2003-04-03  Bruno Haible  <bruno@clisp.org>
89223
89224         * lib/utf8-ucs4.h: New file, from GNU gettext.
89225         * lib/utf16-ucs4.h: New file, from GNU gettext.
89226         * lib/ucs4-utf8.h: New file, from GNU gettext.
89227         * lib/ucs4-utf16.h: New file, from GNU gettext.
89228
89229 2003-04-02  Bruno Haible  <bruno@clisp.org>
89230
89231         * modules/binary-io: New file.
89232         * MODULES.html.sh (func_all_modules): Add it.
89233
89234 2003-04-02  Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/binary-io.h: New file, from GNU gettext.
89237
89238 2003-04-01  Bruno Haible  <bruno@clisp.org>
89239
89240         * modules/pathname: New file.
89241         * MODULES.html.sh (func_all_modules): Add it.
89242
89243 2003-04-01  Bruno Haible  <bruno@clisp.org>
89244
89245         * lib/pathname.h: New file, from GNU gettext.
89246         * lib/concatpath.c: New file, from GNU gettext.
89247
89248 2003-03-30  Bruno Haible  <bruno@clisp.org>
89249
89250         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89251
89252 2003-03-30  Bruno Haible  <bruno@clisp.org>
89253
89254         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89255         function chown() doesn't exist.
89256
89257 2003-03-28  Bruno Haible  <bruno@clisp.org>
89258
89259         * modules/copy-file: New file.
89260         * MODULES.html.sh (func_all_modules): Add it.
89261
89262 2003-03-28  Bruno Haible  <bruno@clisp.org>
89263
89264         * m4/copy-file.m4: New file.
89265
89266 2003-03-28  Bruno Haible  <bruno@clisp.org>
89267
89268         * lib/copy-file.h: New file, from GNU gettext.
89269         * lib/copy-file.c: New file, from GNU gettext.
89270
89271 2003-03-18  Jim Meyering  <jim@meyering.net>
89272
89273         * lib/quote.c (quote_n): Fix typo in comment.
89274
89275 2003-03-18  Bruno Haible  <bruno@clisp.org>
89276
89277         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89278         checking.
89279         * m4/onceonly_2_57.m4: Likewise.
89280
89281 2003-03-17  Bruno Haible  <bruno@clisp.org>
89282
89283         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89284         (m4_quote): Remove macro.
89285         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89286
89287 2003-03-14  Jim Meyering  <jim@meyering.net>
89288
89289         Merge changes from Coreutils.
89290         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89291         to be const, in order to avoid warnings.
89292         (obstack_room): Likewise.
89293         (obstack_empty_p): Likewise.
89294
89295 2003-03-14  Bruno Haible  <bruno@clisp.org>
89296
89297         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89298         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89299
89300 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89301
89302         Merge changes from Bison.
89303         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89304         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89305         when compiling Bison 1.875's `bitset bset = obstack_alloc
89306         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89307         * lib/hash.c: Include <stdbool.h> unconditionally.
89308
89309 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89310
89311         * m4/onceonly.m4 (m4_quote): New macro.
89312         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89313         Quote AC_FOREACH variable-expansions properly.
89314
89315 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89316
89317         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89318
89319 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89320
89321         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89322         Reported by Bruce Becker; see:
89323         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89324
89325 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89326             Bruno Haible  <bruno@clisp.org>
89327
89328         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89329         Reported by John Hughes, see
89330         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89331
89332 2003-02-20  Bruno Haible  <bruno@clisp.org>
89333
89334         * MODULES.html.sh (func_all_modules): Add poll.
89335
89336 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89337
89338         * modules/poll: New file.
89339
89340 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89341
89342         * lib/poll_.h: New file.
89343         * lib/poll.c: New file.
89344
89345 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89346
89347         * m4/poll.m4: New file.
89348
89349 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89350
89351         * modules/mathl: New file.
89352
89353 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89354
89355         * lib/mathl.h: New file.
89356         * lib/acosl.c: New file.
89357         * lib/asinl.c: New file.
89358         * lib/atanl.c: New file.
89359         * lib/ceill.c: New file.
89360         * lib/cosl.c: New file.
89361         * lib/expl.c: New file.
89362         * lib/floorl.c: New file.
89363         * lib/frexpl.c: New file.
89364         * lib/ldexpl.c: New file.
89365         * lib/logl.c: New file.
89366         * lib/sincosl.c: New file.
89367         * lib/sinl.c: New file.
89368         * lib/sqrtl.c: New file.
89369         * lib/tanl.c: New file.
89370         * lib/trigl.c: New file.
89371         * lib/trigl.h: New file.
89372
89373 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89374
89375         * m4/mathl.m4: New file.
89376
89377 2003-02-18  Bruno Haible  <bruno@clisp.org>
89378
89379         * MODULES.html.sh (func_all_modules): Add mathl.
89380
89381 2003-02-17  Bruno Haible  <bruno@clisp.org>
89382
89383         * modules/mkdtemp: New module.
89384         * MODULES.html.sh (func_all_modules): Add it.
89385
89386 2003-02-17  Bruno Haible  <bruno@clisp.org>
89387
89388         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89389
89390 2003-02-17  Bruno Haible  <bruno@clisp.org>
89391
89392         * lib/mkdtemp.h: New file, from GNU gettext.
89393         * lib/mkdtemp.c: New file, from GNU gettext.
89394
89395 2003-02-02  Jim Meyering  <jim@meyering.net>
89396
89397         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89398         e.g. glibc-2.2.93.
89399
89400 2003-01-31  Bruno Haible  <bruno@clisp.org>
89401
89402         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89403         'rpl_rename'.
89404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89405         'rpl_strnlen'.
89406         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89407         'rpl_strtod'.
89408         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89409         'rpl_utime'.
89410
89411 2003-01-31  Bruno Haible  <bruno@clisp.org>
89412
89413         * lib/rename.c: #undef rename before defining rpl_rename.
89414         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89415
89416 2003-01-30  Bruno Haible  <bruno@clisp.org>
89417
89418         * modules/vasnprintf, modules/vasprintf: New modules.
89419         * MODULES.html.sh (func_all_modules): Add them.
89420
89421 2003-01-30  Bruno Haible  <bruno@clisp.org>
89422
89423         * m4/signed.m4: New file, from GNU gettext.
89424         * m4/longdouble.m4: New file, from GNU gettext.
89425         * m4/wchar_t.m4: New file, from GNU gettext.
89426         * m4/wint_t.m4: New file, from GNU gettext.
89427         * m4/vasnprintf.m4: New file.
89428         * m4/vasprintf.m4: New file.
89429
89430 2003-01-30  Bruno Haible  <bruno@clisp.org>
89431
89432         * lib/printf-args.h: New file, from GNU gettext.
89433         * lib/printf-args.c: New file, from GNU gettext.
89434         * lib/printf-parse.h: New file, from GNU gettext.
89435         * lib/printf-parse.c: New file, from GNU gettext.
89436         * lib/vasnprintf.h: New file, from GNU gettext.
89437         * lib/vasnprintf.c: New file, from GNU gettext.
89438         * lib/asnprintf.c: New file, from GNU gettext.
89439         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89440         * lib/vasprintf.c: New file, from GNU gettext.
89441         * lib/asprintf.c: New file, from GNU gettext.
89442
89443 2003-01-29  Bruno Haible  <bruno@clisp.org>
89444
89445         * modules/stpncpy: New module.
89446         * MODULES.html.sh (func_all_modules): Add it.
89447
89448 2003-01-29  Bruno Haible  <bruno@clisp.org>
89449
89450         * m4/stpncpy.m4: New file.
89451
89452 2003-01-29  Bruno Haible  <bruno@clisp.org>
89453
89454         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89455         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89456
89457 2003-01-28  Bruno Haible  <bruno@clisp.org>
89458
89459         * modules/c-ctype: New module.
89460         * MODULES.html.sh (func_all_modules): Add it.
89461
89462 2003-01-28  Bruno Haible  <bruno@clisp.org>
89463
89464         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89465         Paul Eggert.
89466         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89467         Paul Eggert.
89468
89469 2003-01-27  Bruno Haible  <bruno@clisp.org>
89470
89471         * modules/xsetenv: New module.
89472         * MODULES.html.sh (func_all_modules): Add it.
89473
89474 2003-01-27  Bruno Haible  <bruno@clisp.org>
89475
89476         * lib/xsetenv.h: New file, from GNU gettext.
89477         * lib/xsetenv.c: New file, from GNU gettext.
89478
89479 2003-01-23  Jim Meyering  <jim@meyering.net>
89480
89481         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89482         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89483
89484 2003-01-23  Bruno Haible  <bruno@clisp.org>
89485
89486         * modules/minmax: New module.
89487         * MODULES.html.sh (func_all_modules): Add it.
89488
89489 2003-01-23  Bruno Haible  <bruno@clisp.org>
89490
89491         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89492         Eggert.
89493
89494 2003-01-22  Bruno Haible  <bruno@clisp.org>
89495
89496         * modules/exit: New module.
89497         * MODULES.html.sh (func_all_modules): Add it.
89498
89499 2003-01-22  Bruno Haible  <bruno@clisp.org>
89500
89501         * lib/exit.h: New file, from GNU gettext.
89502
89503 2003-01-19  Bruno Haible  <bruno@clisp.org>
89504
89505         * gnulib-tool: Recognize option --extract-maintainer.
89506         (func_get_maintainer): New function.
89507         * modules/*: Add Maintainer entry.
89508
89509 2003-01-16  Jim Meyering  <jim@meyering.net>
89510
89511         * m4/regex.m4: The `regex' struct is both input and output.
89512         Initialize it before each use.  Patch by Tim Waugh.
89513
89514 2003-01-16  Bruno Haible  <bruno@clisp.org>
89515
89516         * MODULES.html.sh: Add a table of contents. Add the module name as
89517         leftmost column. Add hyperlinks.
89518
89519 2003-01-15  Bruno Haible  <bruno@clisp.org>
89520
89521         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89522
89523 2003-01-15  Bruno Haible  <bruno@clisp.org>
89524
89525         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89526         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89527         suffix.
89528
89529 2003-01-15  Bruno Haible  <bruno@clisp.org>
89530
89531         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89532
89533 2003-01-15  Bruno Haible  <bruno@clisp.org>
89534
89535         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89536         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89537
89538 2003-01-14  Jim Meyering  <jim@meyering.net>
89539
89540         * lib/same.c (same_name): Tweak a comment.
89541
89542 2003-01-14  Bruno Haible  <bruno@clisp.org>
89543
89544         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89545         when a string comparison is sufficient.
89546
89547 2003-01-14  Bruno Haible  <bruno@clisp.org>
89548
89549         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89550         'unsigned int'.
89551
89552 2003-01-14  Bruno Haible  <bruno@clisp.org>
89553
89554         * lib/hash-pjw.c: Add comment about low quality of this function.
89555
89556 2003-01-13  Bruno Haible  <bruno@clisp.org>
89557
89558         * modules/stpcpy: Distribute lib/stpcpy.h.
89559         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89560
89561 2003-01-13  Bruno Haible  <bruno@clisp.org>
89562
89563         * modules/*: Add a description.
89564         * modules/strpbrk: Fix Makefile.am snippet.
89565         * modules/strtoimax: Fix dependencies.
89566         * modules/strtoumax: Likewise.
89567
89568 2003-01-13  Bruno Haible  <bruno@clisp.org>
89569
89570         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89571         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89572         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89573
89574 2003-01-13  Bruno Haible  <bruno@clisp.org>
89575
89576         * gnulib-tool (func_create_testdir): Store config/* files in the main
89577         directory.
89578         * config.rpath: Move to ...
89579         * config/config.rpath: ... here.
89580         * modules/gettext: Contains config/config.rpath, not config.rpath.
89581         * modules/iconv: Likewise.
89582
89583 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89584
89585         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89586         to avoid collisions with libcurses and libreadline.
89587
89588         * m4/getstr.m4: Remove.
89589         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89590
89591 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89592
89593         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89594         to avoid collisions with libcurses and libreadline.
89595
89596         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89597         * lib/getstr.h, getstr.c: Remove.
89598         * lib/getline.c: Include "getline.h", to check interface.
89599         Move body of old getstr.c here: this defines MIN_CHUNK and
89600         declares getdelim2, which is renamed from getstr.
89601         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89602
89603         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89604         All uses changed.
89605         * lib/linebuffer.h: Likewise.
89606         (readline): Remove backward-compatibility macro.
89607
89608 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89609
89610         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89611         to avoid collisions with libcurses and libreadline.
89612         * getstr: Remove.
89613         * MODULES.html.sh: Remove getstr.
89614         * modules/getline: Depend on unlocked-io, not getstr.
89615
89616 2003-01-12  Jim Meyering  <jim@meyering.net>
89617
89618         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89619
89620 2003-01-10  Bruno Haible  <bruno@clisp.org>
89621
89622         * modules/alloca: Change Makefile.am requirements. Simplify Include
89623         requirements. Add lib/alloca_.h to file list.
89624
89625 2003-01-10  Bruno Haible  <bruno@clisp.org>
89626
89627         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89628
89629 2003-01-10  Bruno Haible  <bruno@clisp.org>
89630
89631         * lib/alloca_.h: New file.
89632         * lib/getdate.y: Unconditionally include alloca.h.
89633         * lib/makepath.c: Likewise.
89634         * lib/setenv.c: Likewise.
89635         * lib/userspec.c: Likewise.
89636
89637 2003-01-09  Karl Berry  <karl@gnu.org>
89638
89639         * MODULES.html.sh: include `dirname $0` in PATH, to find
89640         gnulib-tool.
89641
89642 2003-01-09  Bruno Haible  <bruno@clisp.org>
89643
89644         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89645         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89646
89647 2003-01-09  Bruno Haible  <bruno@clisp.org>
89648
89649         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89650
89651 2003-01-09  Bruno Haible  <bruno@clisp.org>
89652
89653         * lib/stdbool.h.in: New file.
89654
89655 2003-01-09  Bruno Haible  <bruno@clisp.org>
89656
89657         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89658         * MODULES.html.sh: Likewise.
89659
89660 2003-01-08  Jim Meyering  <jim@meyering.net>
89661
89662         * lib/full-write.c: Undefine and define-away `const' after inclusion
89663         of errno.h, not before.  Suggestion from Bruno Haible.
89664
89665 2003-01-08  Bruno Haible  <bruno@clisp.org>
89666
89667         * modules/full-read: Depend on full-write.
89668
89669 2003-01-08  Bruno Haible  <bruno@clisp.org>
89670
89671         * lib/safe-read.c: Include specification header first, to ensure its
89672         selfcontainedness.
89673         * lib/full-write.c: Likewise.
89674
89675 2003-01-07  Jim Meyering  <jim@meyering.net>
89676
89677         * lib/full-write.c: Rework so that it may serve to define full_read,
89678         too.
89679         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89680
89681 2003-01-07  Bruno Haible  <bruno@clisp.org>
89682
89683         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89684         <inttypes.h>.
89685         * lib/xstrtol.h: Likewise.
89686         * lib/xstrtoimax.c: Likewise.
89687         * lib/xstrtoumax.c: Likewise.
89688         * lib/human.h: Likewise.
89689
89690         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89691         on systems that have <inttypes.h> but not <stdint.h>.
89692
89693 2003-01-07  Bruno Haible  <bruno@clisp.org>
89694
89695         * MODULES.html.sh: Add copyright notice.
89696         (missed_files): Omit CVS directory entries.
89697         (func_module): Make it work with sed-3.02.
89698         * MODULES.txt: Remove file.
89699
89700 2003-01-06  Jim Meyering  <jim@meyering.net>
89701
89702         * lib/version-etc.c: Update year in translatable copyright string.
89703
89704 2003-01-03  Karl Berry  <karl@gnu.org>
89705
89706         * config/config.{guess,sub}: update from prep.
89707
89708 2003-01-02  Karl Berry  <karl@gnu.org>
89709
89710         * doc/COPYING.DOC: belatedly updated to 1.2.
89711
89712 2003-01-01  Karl Berry  <karl@gnu.org>
89713
89714         * gnulib-tool (func_verify_module): report module name $module in
89715         error message, not $1.
89716         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89717         be created, only if it doesn't exist.
89718         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89719
89720 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89721
89722         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89723
89724 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89725
89726         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89727         memcmp if strcoll doesn't work.
89728
89729 2002-12-31  Bruno Haible  <bruno@clisp.org>
89730
89731         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89732         nonempty.
89733
89734 2002-12-31  Bruno Haible  <bruno@clisp.org>
89735
89736         * lib/memcoll.c (STRCOLL): New macro.
89737         (memcoll): Use it.
89738
89739 2002-12-31  Bruno Haible  <bruno@clisp.org>
89740
89741         * lib/localcharset.h: New file.
89742         * lib/localcharset.c: Include it.
89743         * lib/unicodeio.c: Likewise.
89744
89745 2002-12-31  Bruno Haible  <bruno@clisp.org>
89746
89747         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89748         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89749
89750 2002-12-31  Bruno Haible  <bruno@clisp.org>
89751
89752         * lib/getline.h: Include <stddef.h>, for size_t.
89753
89754         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89755         * lib/unicodeio.c: Don't include <stddef.h>.
89756
89757 2002-12-31  Bruno Haible  <bruno@clisp.org>
89758
89759         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89760         HAVE_TM_ZONE.
89761
89762 2002-12-24  Karl Berry  <karl@gnu.org>
89763
89764         * config/config.guess: update from prep.
89765
89766 2002-12-24  Bruno Haible  <bruno@clisp.org>
89767
89768         General infrasructure.
89769         * m4/README: Rewritten.
89770         * m4/onceonly.m4: New file.
89771         * m4/onceonly_2_57.m4: New file.
89772
89773         Module atexit.
89774         * m4/atexit.m4: New file.
89775
89776         Module strtod.
89777         * m4/strtod.m4: New file.
89778
89779         Module strtol.
89780         * m4/strtol.m4: New file.
89781
89782         Module strtoul.
89783         * m4/strtoul.m4: New file.
89784
89785         Module memchr.
89786         * m4/memchr.m4: New file.
89787
89788         Module memcmp.
89789         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89790         (jm_FUNC_MEMCMP): Invoke it.
89791
89792         Module memcpy.
89793         * m4/memcpy.m4: New file.
89794
89795         Module memmove.
89796         * m4/memmove.m4: New file.
89797
89798         Module memset.
89799         * m4/memset.m4: New file.
89800
89801         Module strcspn.
89802         * m4/strcspn.m4: New file.
89803
89804         Module strpbrk.
89805         * m4/strpbrk.m4: New file.
89806
89807         Module strstr.
89808         * m4/strstr.m4: New file.
89809
89810         Module strerror.
89811         * m4/strerror.m4: New file.
89812
89813         Module mktime.
89814         * m4/mktime.m4: Renamed from jm-mktime.m4.
89815         (gl_PREREQ_MKTIME): New macro.
89816         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89817
89818         Module malloc.
89819         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89820         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89821         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89822
89823         Module realloc.
89824         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89825         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89826         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89827
89828         Module strftime.
89829         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89831         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89832         gl_TM_GMTOFF.
89833         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89834
89835         Module xalloc.
89836         * m4/xalloc.m4: New file.
89837
89838         Module alloca.
89839         * m4/alloca.m4: New file.
89840
89841         Module putenv.
89842         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89843         (jm_FUNC_PUTENV): Invoke it.
89844
89845         Module setenv.
89846         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89847         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89848         when invoked twice.
89849         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89850         gt_FUNC_SETENV.
89851
89852         Module memrchr.
89853         * m4/memrchr.m4: New file.
89854
89855         Module stpcpy.
89856         * m4/stpcpy.m4: New file.
89857
89858         Module strcase.
89859         * m4/strcase.m4: New file.
89860
89861         Module strdup.
89862         * m4/strdup.m4: New file.
89863
89864         Module strnlen.
89865         * m4/strnlen.m4: New file.
89866
89867         Module strndup.
89868         * m4/strndup.m4: New file.
89869
89870         Module xstrtod.
89871         * m4/xstrtod.m4: New file.
89872
89873         Module xstrtol.
89874         * m4/xstrtol.m4: New file.
89875
89876         Module getdate.
89877         * m4/getdate.m4: New file.
89878
89879         Module unlocked-io.
89880         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89881         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89882         * m4/jm-glibc-io.m4n: Remove file.
89883
89884         Module long-options.
89885         * m4/long-options.m4: New file.
89886
89887         Module md5.
89888         * m4/md5.m4: New file.
89889
89890         Module sha.
89891         * m4/sha.m4: New file.
89892
89893         Module getstr.
89894         * m4/getstr.m4: New file.
89895
89896         Module getline.
89897         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89898         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89899         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89900         simply getline. Infoke gl_PREREQ_GETLINE.
89901
89902         Module obstack.
89903         * m4/obstack.m4: New file.
89904
89905         Module hash.
89906         * m4/hash.m4: New file.
89907
89908         Module readtokens.
89909         * m4/readtokens.m4: New file.
89910
89911         Module strverscmp.
89912         * m4/strverscmp.m4: New file.
89913
89914         Module stdbool.
89915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89916         OSF/1.
89917
89918         Module strtoll.
89919         * m4/strtoll.m4: New file.
89920
89921         Module strtoull.
89922         * m4/strtoull.m4: New file.
89923
89924         Module strtoimax.
89925         * m4/strtoimax.m4: New file.
89926
89927         Module strtoumax.
89928         * m4/strtoumax.m4: New file.
89929
89930         Module xstrtoimax.
89931         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89932         jm_AC_PREREQ_XSTRTOIMAX.
89933         Moved the strtol prerequisites to strtol.m4.
89934         Moved the strtoll prerequisites to strtoll.m4.
89935         Moved the strtoimax prerequisites to strtoimax.m4.
89936
89937         Module xstrtoumax.
89938         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89939         jm_AC_PREREQ_XSTRTOUMAX.
89940         Moved the strtoul prerequisites to strtoul.m4.
89941         Moved the strtoull prerequisites to strtoull.m4.
89942         Moved the strtoumax prerequisites to strtoumax.m4.
89943
89944         Module chown.
89945         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89946         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89947
89948         Module dup2.
89949         * m4/dup2.m4: New file.
89950
89951         Module ftruncate.
89952         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89953         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89954
89955         Module getgroups.
89956         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89957         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89958
89959         Module gettimeofday.
89960         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89961         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89962         gl_PREREQ_GETTIMEOFDAY.
89963
89964         Module mkdir.
89965         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89966         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89967
89968         Module mkstemp.
89969         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89970         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89971         jm_AC_TYPE_UINTMAX_T.
89972         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89973
89974         Module stat.
89975         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89976         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89977
89978         Module lstat.
89979         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89980         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89981
89982         Module timespec.
89983         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89984         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89985         * m4/st_mtim.m4: Indentation.
89986
89987         Module nanosleep.
89988         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89989         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89990         gl_PREREQ_NANOSLEEP.
89991
89992         Module regex.
89993         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89994         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89995         (gl_REGEX): New macro.
89996
89997         Module rename.
89998         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89999         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90000
90001         Module rmdir.
90002         * m4/rmdir.m4: New file.
90003
90004         Module utime.
90005         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90006         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90007         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90008
90009         Module dirname.
90010         * m4/dirname.m4: New file.
90011
90012         Module getopt.
90013         * m4/getopt.m4: New file.
90014
90015         Module unistd-safer.
90016         * m4/unistd-safer.m4: New file.
90017
90018         Module fnmatch.
90019         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90020         declaration.
90021         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90022         (gl_FUNC_FNMATCH_POSIX): New macro.
90023         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90024         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90025         simply fnmatch.
90026
90027         Module exclude.
90028         * m4/exclude.m4: New file.
90029
90030         Module human.
90031         * m4/human.m4: New file.
90032
90033         Module acl.
90034         * m4/acl.m4: Nop.
90035
90036         Module backupfile.
90037         * m4/backupfile.m4: New file.
90038         * m4/d-ino.m4: Indentation.
90039
90040         Module fsusage.
90041         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90042         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90043         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90044
90045         Module dirfd.
90046         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90047         requirements.
90048
90049         Module euidaccess.
90050         * m4/euidaccess.m4: New file.
90051
90052         Module file-type.
90053         * m4/file-type.m4: New file.
90054
90055         Module fileblocks.
90056         * m4/fileblocks.m4: New file.
90057
90058         Module filemode.
90059         * m4/filemode.m4: New file.
90060
90061         Module isdir.
90062         * m4/isdir.m4: New file.
90063
90064         Module lchown.
90065         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90066         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90067
90068         Module makepath.
90069         * m4/makepath.m4: New file.
90070
90071         Module modechange.
90072         * m4/modechange.m4: New file.
90073
90074         Module mountlist.
90075         * m4/mountlist.m4: New file.
90076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90077         Indentation.
90078
90079         Module path-concat.
90080         * m4/path-concat.m4: New file.
90081
90082         Module pathmax.
90083         * m4/pathmax.m4: New file.
90084
90085         Module same.
90086         * m4/same.m4: New file.
90087
90088         Module save-cwd.
90089         * m4/save-cwd.m4: New file.
90090
90091         Module savedir.
90092         * m4/savedir.m4: New file.
90093
90094         Module xgetcwd.
90095         * m4/xgetcwd.m4: New file.
90096         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90097
90098         Module xreadlink.
90099         * m4/xreadlink.m4: New file.
90100
90101         Module safe-read.
90102         * m4/safe-read.m4: New file.
90103
90104         Module safe-write.
90105         * m4/safe-write.m4: New file.
90106
90107         Module closeout.
90108         * m4/closeout.m4: New file.
90109
90110         Module stdio-safer.
90111         * m4/stdio-safer.m4: New file.
90112
90113         Module getpass.
90114         * m4/getpass.m4: New file.
90115
90116         Module getugroups.
90117         * m4/getugroups.m4: New file.
90118
90119         Module group-member.
90120         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90121         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90122
90123         Module idcache.
90124         * m4/idcache.m4: New file.
90125
90126         Module userspec.
90127         * m4/userspec.m4: New file.
90128
90129         Module gettime.
90130         * m4/clock_time.m4: New file.
90131         * m4/gettime.m4: New file.
90132
90133         Module settime.
90134         * m4/settime.m4: New file.
90135
90136         Module posixtm.
90137         * m4/posixtm.m4: New file.
90138
90139         Module gethostname.
90140         * m4/gethostname.m4: New file.
90141
90142         Module canon-host.
90143         * m4/canon-host.m4: New file.
90144
90145         Module gettext.
90146         * m4/codeset.m4: New file, from gettext-0.11.5.
90147         * m4/gettext.m4: New file, from gettext-0.11.5.
90148         * m4/glibc21.m4: New file, from gettext-0.11.5.
90149         * m4/iconv.m4: New file, from gettext-0.11.5.
90150         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90151         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90152         * m4/inttypes.m4: New file, from gettext-0.11.5.
90153         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90154         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90155         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90156         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90157         * m4/lib-link.m4: New file, from gettext-0.11.5.
90158         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90159         * m4/progtest.m4: New file, from gettext-0.11.5.
90160         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90161         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90162         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90163
90164         Module localcharset.
90165         * m4/localcharset.m4: New file.
90166
90167         Module hard-locale.
90168         * m4/hard-locale.m4: New file.
90169
90170         Module mbswidth.
90171         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90172         onceonly macros.
90173         * m4/mbrtowc.m4: Add comment.
90174
90175         Module memcasecmp.
90176         * m4/memcasecmp.m4: New file.
90177
90178         Module memcoll.
90179         * m4/memcoll.m4: New file.
90180
90181         Module unicodeio.
90182         * m4/unicodeio.m4: New file.
90183
90184         Module rpmatch.
90185         * m4/rpmatch.m4: New file.
90186
90187         Module yesno.
90188         * m4/yesno.m4: New file.
90189
90190         Module exitfail.
90191         * m4/exitfail.m4: New file.
90192
90193         Module c-stack.
90194         * m4/c-stack.m4 (gl_C_STACK): New macro.
90195         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90196
90197         Module error.
90198         * m4/error.m4 (gl_ERROR): New macro.
90199         (jm_PREREQ_ERROR): Use onceonly macros.
90200
90201         Module fatal.
90202         * m4/fatal.m4: New file.
90203
90204         Module getloadavg.
90205         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90206         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90207
90208         Module getpagesize.
90209         * m4/getpagesize.m4: New file.
90210
90211         Module getusershell.
90212         * m4/getusershell.m4: New file.
90213
90214         Module physmem.
90215         * m4/physmem.m4: New file.
90216
90217         Module posixver.
90218         * m4/posixver.m4: New file.
90219
90220         Module quotearg.
90221         * m4/quotearg.m4: New file.
90222
90223         Module quote.
90224         * m4/quote.m4: New file.
90225
90226         Module readutmp.
90227         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90228
90229         Module sig2str.
90230         * m4/sig2str.m4: New file.
90231
90232         Other.
90233         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90234         ulonglong.m4.
90235         * m4/intmax_t.m4: New file.
90236         * m4/d-type.m4: Indentation.
90237         * m4/jm-macros.m4: Update.
90238         * m4/prereq.m4 (jm_PREREQ): Update.
90239         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90240         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90241         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90242         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90243         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90244         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90245         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90246         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90247         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90248         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90249         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90250         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90251         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90252         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90253         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90254         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90255         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90256         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90257         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90258
90259 2002-12-24  Bruno Haible  <bruno@clisp.org>
90260
90261         * MODULES.txt: Update according to m4/ changes.
90262
90263         Module gettext.
90264         * config.rpath: New file, from gettext-0.11.5.
90265
90266         * modules/*: New module descriptions.
90267         * gnulib-tool: New file.
90268         * MODULES.html.sh: New file.
90269
90270 2002-12-21  Karl Berry  <karl@gnu.org>
90271
90272         * doc/fdl.texi: update to version 1.2.
90273
90274 2002-12-19  Karl Berry  <karl@gnu.org>
90275
90276         * config/config.guess: update from prep.
90277
90278 2002-12-18  Bruno Haible  <bruno@clisp.org>
90279
90280         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90281         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90282
90283 2002-12-17  Bruno Haible  <bruno@clisp.org>
90284
90285         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90286         stdlib.h, string.h.
90287
90288 2002-12-17  Bruno Haible  <bruno@clisp.org>
90289
90290         * lib/canon-host.c (strdup): Remove unused declaration.
90291
90292         * lib/fsusage.c: Include full_read.h.
90293         (get_fs_usage): Use full_read instead of safe_read.
90294
90295         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90296
90297 2002-12-12  Karl Berry  <karl@gnu.org>
90298
90299         * config/config.guess: update from prep.
90300
90301 2002-12-11  Bruno Haible  <bruno@clisp.org>
90302
90303         * m4/setenv.m4: New file, from gettext-0.11.5.
90304
90305 2002-12-11  Bruno Haible  <bruno@clisp.org>
90306
90307         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90308         not unsetenv().
90309         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90310         modifications:
90311
90312         2002-12-11  Bruno Haible  <bruno@clisp.org>
90313
90314                 * setenv.c (alloca): Fall back to malloc.
90315                 (freea): New macro.
90316                 (setenv): Use freea() to free memory allocated with alloca().
90317
90318         2002-11-13  Bruno Haible  <bruno@clisp.org>
90319
90320                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90321                 function declarations.
90322                 * unsetenv.c (unsetenv): Likewise.
90323
90324         2002-03-04  Bruno Haible  <bruno@clisp.org>
90325
90326                 Portability to AIX 4.3.3.
90327                 * unsetenv.c: New file, extracted from setenv.c.
90328                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90329
90330         2001-12-20  Bruno Haible  <bruno@clisp.org>
90331
90332                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90333                 use malloc instead. For SunOS 4.
90334
90335         2001-12-11  Bruno Haible  <bruno@clisp.org>
90336
90337                 * setenv.c: Declare alloca.
90338                 (compar_fn_t): New typedef.
90339                 (KNOWN_VALUE, STORE_VALUE): Use it.
90340
90341         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90342         setenv.h.
90343
90344 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90345
90346         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90347         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90348         Choose values that are less likely to collide with system fnmatch
90349         options.
90350         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90351         defined (e.g., a pure POSIX system).
90352         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90353         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90354
90355 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90356
90357         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90358         a pain in practice to deal with generated m4 files.  This change
90359         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90360
90361         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90362         and jm-glibc-io.m4, as they are no longer a special case.
90363         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90364         kludge and the auto-generation stuff.  Check only whether the
90365         functions are declared, not whether they exist, since older hosts
90366         that don't declare the functions can't use the optimization anyway.
90367
90368 2002-12-06  Jim Meyering  <jim@meyering.net>
90369
90370         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90371
90372         Merge in changes from libc's misc/error.c, in preparation
90373         for the merge of gnulib's changes back into libc.
90374
90375         * lib/error.c (_): Define only if not already defined.
90376         Move definition to follow all #include directives.
90377         Include unlocked-io.h only if !_LIBC.
90378         [_LIBC]: Include <libio/libioP.h>.
90379         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90380         (fflush): Tweak definition to use INTUSE.
90381         (putc): Define.
90382
90383 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90384
90385         * lib/alloca.c [defined emacs]: Include "lisp.h".
90386         (xalloc_die) [defined emacs]: New macro.
90387         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90388         [! defined emacs]: Include <xalloc.h>.
90389         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90390         (pointer): Typedef to POINTER_TYPE *.
90391         (malloc): Remove decl; we now always use xmalloc.
90392         (alloca): Use old-style definition, since Emacs needs this.
90393         Check for arithmetic overflow when computing combined size.
90394
90395 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90396
90397         Do not generate unlocked-io.h automatically, since it's easier to
90398         maintain it by hand.
90399
90400         * lib/unlocked-io.h: New file, from GNU diffutils,
90401         but with proper copyright notice and attribution.
90402         * lib/gen-uio: Remove.
90403         * lib/Makefile.am: Add copyright notice.
90404         (libfetish_a_SOURCES): Add unlocked-io.h.
90405         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90406         (DISTCLEANFILES, io_functions): Remove macros.
90407         (EXTRA_DIST): Remove gen_uio.
90408         (unlocked-io.h): Remove rule.
90409
90410 2002-12-04  Jim Meyering  <jim@meyering.net>
90411
90412         Reflect the fact that stat.c and lstat.c are no longer generated.
90413         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90414         (DISTCLEANFILES): Likewise.
90415         (EXTRA_DIST): Likewise.
90416         (all_local): Don't depend on stat.c or lstat.c.
90417         (stat.c, lstat.c): Remove rules.
90418         (EXTRA_DIST): Remove xstat.in.
90419
90420         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90421         * lib/stat.c: New file.  Contents mostly from xstat.in.
90422         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90423         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90424
90425         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90426         too.
90427         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90428
90429 2002-12-03  Jim Meyering  <jim@meyering.net>
90430
90431         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90432         but not semantics, to minimize the differences between these two files.
90433         (safe_read): Change comment to mention SAFE_READ_ERROR.
90434
90435         * lib/safe-read.c (IS_EINTR): Define.
90436         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90437
90438 2002-12-02  Jim Meyering  <jim@meyering.net>
90439
90440         * lib/safe-read.c (EINTR): Define.
90441         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90442         (INT_MAX): Provide fallback.
90443         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90444
90445         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90446
90447 2002-12-02  Bruno Haible  <bruno@clisp.org>
90448
90449         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90450         Define, taken from safe-read.c.
90451         (INT_MAX): Provide fallback.
90452         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90453         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90454
90455         * lib/safe-read.c (EINTR): Remove definition.
90456         (safe_read): Don't use EINTR if it is absent.
90457
90458 2002-12-01  Jim Meyering  <jim@meyering.net>
90459
90460         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90461         zero.
90462         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90463
90464 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90465
90466         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90467         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90468         with `if (! (value < limit)) abort ();', for readability.
90469
90470 2002-11-26  Karl Berry  <karl@gnu.org>
90471
90472         * lib/strdup.c: copy from libc again, with jim's ok.
90473         * lib/.cppi-disable: re-add strdup.c
90474
90475 2002-11-25  Karl Berry  <karl@gnu.org>
90476
90477         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90478         instead of "strtol.c".
90479
90480 2002-11-25  Karl Berry  <karl@gnu.org>
90481
90482         * config/install-sh: update from automake for variable quoting, $0 in
90483         error msgs, etc.
90484
90485         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90486         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90487         entry.
90488
90489 2002-11-25  Jim Meyering  <jim@meyering.net>
90490
90491         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90492
90493 2002-11-24  Karl Berry  <karl@gnu.org>
90494
90495         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90496         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90497
90498 2002-11-24  Jim Meyering  <jim@meyering.net>
90499
90500         Update from coreutils:
90501
90502         * lib/mktime.c: Merge in changes from libc.
90503
90504         Avoid a link-time failure on some Linux systems.
90505         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90506         (otherwise).
90507         (__mon_yday): Declare with the STATIC attribute.
90508         (__mktime_internal): Likewise.
90509         Based on a report from Greg Schafer.
90510
90511 2002-11-23  Jim Meyering  <jim@meyering.net>
90512
90513         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90514         Use `unsigned', not `int', as type of index.
90515
90516         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90517
90518         * lib/fsusage.c: Remove unneeded parentheses around operands of
90519         `defined'.
90520
90521 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90522
90523         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90524         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90525         so that we can be included first.
90526         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90527         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90528         No need to include stddef.h or sys/types.h any more.
90529         Surround local include files with "", not "<>".
90530         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90531         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90532         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90533         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90534         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90535         (ISPRINT): Remove; no longer needed now that we assume C89.
90536
90537         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90538         Preserve errno.
90539
90540         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90541         quotearg_char): Use SIZE_MAX rather than
90542         (size_t) -1 when we are talking about "infinity".
90543
90544         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90545
90546 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90547
90548         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90549         hint that one should use `if (! x) abort ();' rather than `assert
90550         (x);', and anyway it's one less thing to worry about configuring.
90551         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90552         hash_rehash, hash_insert): Use abort rather than assert.
90553
90554 2002-11-22  Bruno Haible  <bruno@clisp.org>
90555
90556         * lib/safe-read.h: Assume C89. Add comments.
90557         (safe_read): Change return type to size_t.
90558         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90559         byte counts > SSIZE_MAX correctly.
90560         * lib/safe-write.h: New file.
90561         * lib/safe-write.c: New file.
90562         * lib/full-read.h: New file.
90563         * lib/full-read.c: New file.
90564         * lib/full-write.h: Assume C89. Add comments.
90565         * lib/full-write.c: Include safe-write.h.
90566         (full_write): Rewritten to use safe_write.
90567         Suggested by Jim Meyering and Paul Eggert.
90568
90569 2002-11-21  Jim Meyering  <jim@meyering.net>
90570
90571         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90572
90573         Merge in changes from the coreutils.
90574
90575         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90576         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90577         <stdint.h>.
90578         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90579         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90580         int.  Work more efficiently if X is the same width as uintmax_t.
90581         Do not compare X to -1, to avoid bogus compiler warning.
90582         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90583         Don't assume that f_frsize and f_bsize are the same type.
90584
90585         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90586         warning on FreeBSD.
90587
90588         * lib/makepath.c (make_path): Restore umask *before* creating the final
90589         component.
90590         (make_path): Minor reformatting.
90591
90592         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90593         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90594         HAVE_MALLOC/HAVE_REALLOC.
90595
90596         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90597         dummy ones.  At least on GNU/Linux systems, `auto' means something
90598         else.
90599         From Michael Stone.
90600
90601 2002-11-21  Bruno Haible  <bruno@clisp.org>
90602
90603         Remove case insensitive option matching.
90604         * lib/argmatch.h (argcasematch): Remove declaration.
90605         (ARGCASEMATCH): Remove macro.
90606         (__xargmatch_internal): Remove case_sensitive argument.
90607         (XARGMATCH): Update.
90608         (XARGCASEMATCH): Remove macro.
90609         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90610         case_sensitive argument.
90611         (argcasematch): Remove function.
90612         (__xargmatch_internal): Remove case_sensitive argument.
90613         (main): Use XARGMATCH instead of XARGCASEMATCH.
90614
90615         * lib/xmalloc.c: Change compile-time error message. Add comment about
90616         required autoconf version.
90617
90618 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90619
90620         Merge argmatch cleanups from Bison.  Assume C89.
90621
90622         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90623         Include stdlib.h, for EXIT_FAILURE.
90624         Always include <string.h>, since we assume C89.
90625         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90626         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90627         Include <stddef.h> instead, since it's all we need for size_t.
90628         (PARAMS): Remove.  All uses removed.
90629         (ARRAY_CARDINALITY): Do not bother to #undef.
90630         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90631         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90632         Remove unnecessary parentheses.
90633         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90634         Insert necessary parentheses.
90635         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90636         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90637
90638 2002-11-19  Bruno Haible  <bruno@clisp.org>
90639
90640         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90641         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90642
90643         * lib/mbswidth.h (PARAMS): Remove macro.
90644         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90645         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90646
90647         * lib/gcd.h (PARAMS): Remove macro.
90648         (gcd): Use ANSI C function declarations.
90649         * lib/gcd.c (gcd): Likewise.
90650
90651 2002-11-15  Bruno Haible  <bruno@clisp.org>
90652
90653         * lib/strcspn.c: Include <stddef.h>.
90654         (strcspn): Use ANSI C function declaration. Change return type to
90655         size_t. Use NULL.
90656         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90657         (strpbrk): Use NULL.
90658         * lib/strpbrk.h (PARAMS): Remove macro.
90659         (strpbrk): Use ANSI C function declaration.
90660         * lib/strstr.c: Don't include <sys/types.h>.
90661         * lib/strstr.h (PARAMS): Remove macro.
90662         (strstr): Use ANSI C function declarations.
90663
90664 2002-11-14  Karl Berry  <karl@gnu.org>
90665
90666         * config/mkinstalldirs: `do' on separate line, instead of
90667         `for var; do'.
90668
90669 2002-11-06  Bruno Haible  <bruno@clisp.org>
90670
90671         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90672         * lib/gcd.c (gcd): Likewise.
90673
90674 2002-11-05  Bruno Haible  <bruno@clisp.org>
90675
90676         * lib/gcd.h: New file, from gettext-0.11.5.
90677         * lib/gcd.c: New file, from gettext-0.11.5.
90678
90679 2002-11-05  Bruno Haible  <bruno@clisp.org>
90680
90681         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90682         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90683         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90684         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90685
90686         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90687         <libintl.h>.
90688         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90689         <libintl.h>.
90690
90691         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90692         * lib/human.c: Include gettext.h instead of <libintl.h>.
90693         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90694         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90695         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90696         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90697         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90698         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90699         (textdomain): Remove definition.
90700         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90701
90702         * lib/long-options.c: Remove include of <libintl.h> and definition of
90703         _.
90704         * lib/same.c: Remove include of <libintl.h> and definition of _.
90705
90706 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90707
90708         * lib/config.charset: A few additions for Solaris.
90709
90710 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90711
90712         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90713         * lib/localcharset.c (locale_charset): Declare as extern "C".
90714
90715 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90716
90717         * lib/config.charset: msdos in uk_UA uses CP1125.
90718
90719 2002-11-04  Bruno Haible  <bruno@clisp.org>
90720
90721         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90722         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90723         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90724         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90725         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90726
90727 2002-11-04  Bruno Haible  <bruno@clisp.org>
90728
90729         * lib/localcharset.c (locale_charset): Don't return an empty string.
90730
90731 2002-11-04  Bruno Haible  <bruno@clisp.org>
90732
90733         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90734         aliases.
90735
90736 2002-11-04  Bruno Haible  <bruno@clisp.org>
90737
90738         * lib/config.charset: Update for newest glibc. Add canonical names
90739         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90740
90741 2002-11-04  Bruno Haible  <bruno@clisp.org>
90742
90743         * lib/config.charset: Add support for NetBSD.
90744
90745 2002-11-04  Bruno Haible  <bruno@clisp.org>
90746
90747         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90748
90749 2002-11-01  Bruno Haible  <bruno@clisp.org>
90750
90751         * configure.in: Add AC_CONFIG_AUX_DIR call.
90752         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90753         test/Makefile.
90754         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90755
90756 2002-09-28  Karl Berry  <karl@gnu.org>
90757
90758         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90759         installed automake until the next release, since changes have been
90760         made.
90761
90762 2002-09-25  Karl Berry  <karl@gnu.org>
90763
90764         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90765         * lib/getopt*: copy from libc/posix.
90766         * lib/gettext.h: copy from gettext.
90767         * lib/.cppi-disable: add strdup.c, gettext.h.
90768
90769 2002-09-25  Karl Berry  <karl@gnu.org>
90770
90771         * config/srclist.txt: enable gettext.h check.
90772         * config/config.{guess,sub}: update from prep.
90773         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90774                 from automake 1.6.3.
90775         See srclist*.
90776
90777 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90778
90779         * regex.c (PATFETCH): Remove the translating fetch.
90780         (PATFETCH_RAW): Rename to PATFETCH.
90781         (set_image_of_range): New fun.
90782         (SET_RANGE_TABLE_WORK_AREA): Use it.
90783         (regex_compile): Don't translate the pattern chars so eagerly.
90784         Only do it when inserting an `exactn' bytecode or when handling
90785         a char-range.
90786         (mutually_exclusive_p): Avoid empty statement.
90787
90788 2002-07-06  Jim Meyering  <meyering@lucent.com>
90789
90790         * m4/README: Don't mention Makefile.am.in.
90791         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90792
90793 2002-07-01  Jim Meyering  <meyering@lucent.com>
90794
90795         * lib/c-stack.c: Include sys/time.h.
90796         From Volker Borchert.
90797
90798 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90799
90800         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90801
90802 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90803
90804         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90805         New macro.  Use it uniformly instead of
90806         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90807         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90808         reported by Vin Shelton.
90809
90810 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90811
90812         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90813         Do not assume SA_SIGINFO behavior.
90814         Bug reported by Jim Meyering on NetBSD 1.5.2.
90815
90816 2002-06-22  Jim Meyering  <meyering@lucent.com>
90817
90818         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90820
90821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90822         now that configure.ac uses AC_GNU_SOURCE.
90823         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90824         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90825
90826         Update to latest tools.  Suggestions from Paul Eggert.
90827         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90828         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90829         * m4/fnmatch.m4: Likewise.
90830         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90831         to AC_HEADER_STDBOOL
90832
90833 2002-06-22  Jim Meyering  <meyering@lucent.com>
90834
90835         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90836         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90837
90838 2002-06-22  Jim Meyering  <meyering@lucent.com>
90839
90840         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90841
90842         * lib/exitfail.c, exitfail.h: Likewise.
90843         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90844
90845         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90846         of fnmatch.h.
90847         (EXTRA_DIST): Add fnmatch_loop.c.
90848         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90849
90850         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90851         * lib/fnmatch.c: Update from diffutils-2.8.2.
90852         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90853         * lib/fnmatch.h: Remove file.
90854
90855 2002-06-21  Jim Meyering  <meyering@lucent.com>
90856
90857         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90858         * m4/mbrtowc.m4: Likewise.
90859
90860         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90861         * m4/mbswidth.m4: Reflect name change:
90862         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90863         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90864
90865         * m4/lib-link.m4: Update from gettext-0.11.2.
90866         * m4/gettext.m4: Likewise.
90867
90868         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90869         From Alfred M. Szmidt.
90870
90871 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90872
90873         * lib/file-type.h: Report an error if neither S_ISREG nor
90874         S_IFREG is defined, instead of using a test specific to glibc
90875         2.2.  This should be safe, since POSIX requires S_ISREG and
90876         Unix Version 7 had S_IFREG.  We don't need to check for
90877         <sys/types.h> since we don't use any symbols that it defines.
90878
90879 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90880
90881         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90882         $@-t, so that each temporary file name is unique and valid in the first
90883         8 characters, for operation under DOS.
90884
90885 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90886
90887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90888
90889 2002-06-15  Jim Meyering  <meyering@lucent.com>
90890
90891         Work even with DJGPP 2.03, which lacks support for symlinks.
90892         From Richard Dawe.
90893         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90894         is defined.
90895         * lib/lchown.c (S_ISLNK): Likewise.
90896
90897 2002-06-15  Jim Meyering  <meyering@lucent.com>
90898
90899         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90900         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90901         have been included before this file.
90902
90903 2002-06-14  Jim Meyering  <meyering@lucent.com>
90904
90905         * lib/file-type.h: Use the version from diffutils-2.8.2.
90906         * lib/file-type.c: Likewise.
90907
90908 2002-06-07  Jim Meyering  <meyering@lucent.com>
90909
90910         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90911         They're needed at least for NetBSD 1.5.2.
90912         ($statxfs_includes): Include those same headers.
90913         ($statxfs_includes): Include sys/vfs.h if available.
90914         ($statxfs_includes): Likewise for sys/statvfs.h.
90915         Check for the following members in both structs statfs and statvfs:
90916         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90917
90918 2002-06-01  Jim Meyering  <meyering@lucent.com>
90919
90920         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90921         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90922
90923 2002-05-28  Jim Meyering  <meyering@lucent.com>
90924
90925         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90926         Reported by Volker Borchert.
90927
90928 2002-05-27  Jim Meyering  <meyering@lucent.com>
90929
90930         Fix a problem seen only on nonconforming systems whereby ls.c's
90931         use of localtime, and then of gettimeofday would cause trouble:
90932         the localtime call used to initialize rpl_gettimeofday's save
90933         mechanism would clobber ls's current local time information so
90934         that in any long listing the first file would always be listed
90935         with date 1970-01-01.  Analysis by Volker Borchert.
90936
90937         * lib/gettimeofday.c (localtime): Undefine.
90938         (rpl_localtime): New function.
90939
90940 2002-05-27  Jim Meyering  <meyering@lucent.com>
90941
90942         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90943         localtime.
90944
90945         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90946         use the replacement function; it wouldn't resolve at link time.
90947         Reported by Volker Borchert.
90948
90949 2002-05-22  Jim Meyering  <meyering@lucent.com>
90950
90951         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90952         file-type.h.
90953         * lib/file-type.h: New file.
90954         * lib/file-type.c (file_type): New file/function.  Extracted from
90955         diffutils.
90956
90957 2002-04-30  Jim Meyering  <meyering@lucent.com>
90958
90959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90960
90961 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90962
90963         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90964
90965 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90966
90967         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90968         Do not check for alloca.h (no longer used) or stdbool.h (was never
90969         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90970
90971 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90972
90973         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90974
90975 2002-04-29  Jim Meyering  <meyering@lucent.com>
90976
90977         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90978         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90979         Use AC_FUNC_STRNLEN here instead.
90980
90981         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90982         With autoconf-2.53a, it's part of AC_PROG_CC.
90983
90984 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90985
90986         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90988
90989 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90990
90991         * lib/sig2str.h, lib/sig2str.c: New files.
90992         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90993
90994 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90995
90996         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90997         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90998         of 127, since 64 is the largest conceivable number for ancient
90999         nonstandard hosts.
91000         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91001
91002 2002-04-28  Jim Meyering  <meyering@lucent.com>
91003
91004         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91005
91006 2002-04-24  Jim Meyering  <meyering@lucent.com>
91007
91008         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91009         (jm_PREREQ): Use it.
91010
91011         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91012         mach/mach.h fcntl.h.
91013         Check for this function: setlocale.
91014
91015 2002-04-24  Jim Meyering  <meyering@lucent.com>
91016
91017         * lib/gettext.h: New file, from Gettext.
91018         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91019         (libfetish_a_SOURCES): Add gettext.h.
91020
91021 2002-04-16  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91024         ut_pid, ut_id, ut_exit.
91025
91026 2002-04-16  Jim Meyering  <meyering@lucent.com>
91027
91028         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91029         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91030         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91031
91032 2002-04-12  Jim Meyering  <meyering@lucent.com>
91033
91034         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91035         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91036         existence of the getmntinfo function.  Needed for Darwin 5.3.
91037
91038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91039         This is necessary at least on Darwin 5.3.
91040
91041         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91042         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91043         strnlen.o in the library, and that makes some versions of ranlib
91044         object.
91045
91046 2002-04-12  Jim Meyering  <meyering@lucent.com>
91047
91048         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91049
91050 2002-04-09  Jim Meyering  <meyering@lucent.com>
91051
91052         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91053         to be more precise.  Rather than saying we're checking whether the
91054         function `works', say what we're testing.
91055         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91056         Reported by Bruno Haible.
91057
91058 2002-03-10  Jim Meyering  <meyering@lucent.com>
91059
91060         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91061         Suggestion from Santiago Vila.
91062
91063 2002-03-08  Jim Meyering  <meyering@lucent.com>
91064
91065         * lib/rename.c: Mention that this wrapper is needed also on
91066         mips-dec-ultrix4.4 systems.
91067
91068 2002-03-02  Jim Meyering  <meyering@lucent.com>
91069
91070         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91071         not HAVE_CLOCK_SETTIME.
91072
91073 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91074
91075         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91076         Check for clock_settime.
91077
91078 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91079
91080         * lib/nanosleep.h: Rename to....
91081         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91082
91083         * lib/gettime.c: New file.
91084         * lib/settime.c: New file.
91085         * lib/stime.c: Remove.
91086
91087         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91088         timespec.h.  Remove nanosleep.h.
91089
91090 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91091
91092         * m4/acl.m4: New file.
91093         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91094         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91095
91096 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/acl.c, lib/acl.h: New files.
91099         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91100
91101 2002-02-24  Jim Meyering  <meyering@lucent.com>
91102
91103         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91104         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91105         cause trouble.  Reported by Nelson Beebe.
91106
91107 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91108
91109         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91110         compilers that don't know that xalloc_die never returns.
91111
91112 2002-02-20  Jim Meyering  <meyering@lucent.com>
91113
91114         * lib/getdate.c: Regenerate using bison-1.33.
91115
91116 2002-02-17  Jim Meyering  <meyering@lucent.com>
91117
91118         * config/config.guess (main): Don't use `head -1'; it's no longer
91119         portable. Use `sed 1q' instead.
91120
91121 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91122
91123         * m4/codeset.m4: Upgrade to gettext-0.11.
91124         * m4/gettext.m4: Upgrade to gettext-0.11.
91125         * m4/glibc21.m4: Upgrade to gettext-0.11.
91126         * m4/iconv.m4: Upgrade to gettext-0.11.
91127         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91128         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91129         * m4/lib-ld.m4: New file, from gettext-0.11.
91130         * m4/lib-link.m4: New file, from gettext-0.11.
91131         * m4/lib-prefix.m4: New file, from gettext-0.11.
91132         * m4/progtest.m4: Upgrade to gettext-0.11.
91133
91134 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91135
91136         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91137         (jm_PREREQ): Use it.
91138
91139 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91140
91141         * lib/posixver.c, lib/posixver.h: New files.
91142         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91143
91144 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91145             Bruno Haible  <bruno@clisp.org>
91146
91147         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91148         (fwrite_success_callback): New declaration.
91149         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91150         print_unicode_char. Call failure callback instead of error.
91151         (fwrite_success_callback): New function.
91152         (exit_failure_callback): New function.
91153         (fallback_failure_callback): New function.
91154         (print_unicode_char): Call unicode_to_mb.
91155
91156 2002-01-26  Jim Meyering  <meyering@lucent.com>
91157
91158         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91159         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91160
91161 2002-01-26  Jim Meyering  <meyering@lucent.com>
91162
91163         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91164
91165 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91166
91167         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91168
91169 2002-01-22  Jim Meyering  <meyering@lucent.com>
91170
91171         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91172         Otherwise, some versions of automake would omit the rule that makes
91173         Makefile from Makefile.in.
91174
91175 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91176
91177         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91178         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91179         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91180         (memcoll): Set errno to zero if there is no error.
91181
91182         * lib/quotearg.c (quotearg_buffer_restyled):
91183         Fix bug with quoting buffers containing NUL when backslashing escapes.
91184         This bug was exposed by the other changes in this patch.
91185         (quotearg_n_options): New arg ARGSIZE.
91186         All callers changed.
91187         (quoting_options_from_style): New function.
91188         (quotearg_n_style): Use it.
91189         (quotearg_n_style_mem): New function.
91190
91191         * lib/quotearg.h (quotearg_n_style_mem): New function.
91192
91193 2002-01-19  Jim Meyering  <meyering@lucent.com>
91194
91195         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91196         Remove useless quotes: DF_PROG="df".
91197         * m4/strnlen.m4: New file.
91198
91199 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91200
91201         * lib/backupfile.c (ISDIGIT): Comment fix.
91202         * lib/getdate.y (ISDIGIT): Likewise.
91203         * lib/posixtm.c (ISDIGIT, year): Likewise.
91204         * lib/strverscmp.c (ISDIGIT): Likewise.
91205         * lib/userspec.c (ISDIGIT): Likewise.
91206
91207 2002-01-16  Jim Meyering  <meyering@lucent.com>
91208
91209         * lib/getdate.y: Add three semicolons, each just before a closing
91210         brace. Bison (as of version 1.31) no longer papers over that mistake.
91211
91212 2002-01-05  Jim Meyering  <meyering@lucent.com>
91213
91214         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91215
91216 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91217
91218         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91219         not silently exit merely because the output buffer happens to
91220         have nothing pending.
91221
91222 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91223
91224         See the big note in ../ChangeLog.
91225         * lib/human.c (suffixes): Prefer K to k for 1024.
91226         (generate_suffix_backwards): New function.
91227         (human_readable_inexact): Use it.
91228         * lib/xstrtol.c (__xstrtol): If there is no number but there
91229         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91230         Accept 'K' as well as 'k'.
91231
91232 2001-12-15  Jim Meyering  <meyering@lucent.com>
91233
91234         * lib/regex.h (__restrict_arr): Update from libc.
91235
91236         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91237         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91238         (STREQ): Define.
91239
91240 2001-12-14  Jim Meyering  <meyering@lucent.com>
91241
91242         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91243         Suggestion from Bruno Haible.
91244
91245 2001-12-10  Jim Meyering  <meyering@lucent.com>
91246
91247         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91248         xrealloc, Instead, include "xalloc.h".
91249         (initbuffer): Don't cast xmalloc return value to char*.
91250         (readline): Reword comment.
91251         Don't cast xrealloc return value to char*
91252         Return NULL, not 0.
91253
91254 2001-12-09  Jim Meyering  <meyering@lucent.com>
91255
91256         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91257         about `signed and unsigned type in conditional expression'.
91258         * lib/posixtm.c (posix_time_parse): Likewise.
91259
91260         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91261
91262         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91263         to avoid a pedantic warning.
91264
91265         * lib/getstr.c: Don't include assert.h.
91266         (getstr): Remove warning-evoking assertions.
91267         Return -1 if offset parameter is out of bounds.
91268         Change the type of a local from int to size_t.
91269
91270         * lib/strftime.c (my_strftime_localtime_r): Include this function
91271         definition in the `#if ! HAVE_TM_GMTOFF' block.
91272
91273         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91274         Include xalloc.h instead.
91275
91276 2001-12-02  Jim Meyering  <meyering@lucent.com>
91277
91278         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91279         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91280         included.
91281
91282         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91283         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91284
91285 2001-11-30  Akim Demaille  <akim@epita.fr>
91286
91287         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91288         before being defined.
91289
91290 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91291
91292         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91293         First arg is int, not unsigned.
91294         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91295         (SIZE_MAX, UINT_MAX): New macros.
91296         (quotearg_n_options): Abort if N is negative.
91297         Avoid overflow check on hosts where size_t is 64 bits and int
91298         is 32 bits, as overflow is impossible there.
91299         Fix off-by-one typo that caused unnecessary reallocation.
91300
91301 2001-11-27  Jim Meyering  <meyering@lucent.com>
91302
91303         * lib/tempname.c: Merge with version from libc.
91304         * lib/regex.c: Likewise.
91305
91306         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91307         systems for which STDC_HEADERS is 0, it was not included, resulting in
91308         a warning about an integer-to-pointer conversion problem with getenv.
91309         Reported by Volker Borchert.
91310
91311 2001-11-26  Jim Meyering  <meyering@lucent.com>
91312
91313         * lib/gtod.h: Remove file.
91314         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91315         * lib/gettimeofday.c: Don't include gtod.h.
91316         (GTOD_init): Remove function.
91317         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91318         Suggestion from Volker Borchert.
91319
91320 2001-11-23  Jim Meyering  <meyering@lucent.com>
91321
91322         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91323         it.
91324         * lib/hash.c (struct hash_table): Define it here instead.
91325
91326 2001-11-22  Jim Meyering  <meyering@lucent.com>
91327
91328         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91329
91330 2001-11-20  Jim Meyering  <meyering@lucent.com>
91331
91332         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91333         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91334
91335 2001-11-19  Jim Meyering  <meyering@lucent.com>
91336
91337         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91338         directory.  Use "conftestXXXXXX" as the template.
91339         Suggestion from Paul Eggert.
91340
91341         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91342         immediately, so the test doesn't mistakenly hit the max-open-files
91343         limit.
91344
91345 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91346
91347         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91348         (TEMPORARIES): New macro.
91349         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91350         removes an artificial limitation (e.g. HP-UX 10.20, where
91351         TMP_MAX is 17576).
91352
91353 2001-11-18  Jim Meyering  <meyering@lucent.com>
91354
91355         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91356
91357 2001-11-18  Jim Meyering  <meyering@lucent.com>
91358
91359         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91360         on SunOS 4.
91361
91362         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91363         files will be created before anything else.
91364
91365 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91366
91367         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91368         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91369
91370 2001-11-17  Jim Meyering  <meyering@lucent.com>
91371
91372         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91373         Prompted by a report from Bob Proulx.
91374
91375         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91376         Instead, require UTILS_FUNC_MKSTEMP.
91377
91378 2001-11-17  Jim Meyering  <meyering@lucent.com>
91379
91380         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91381         Now, that's done as part of AC_FUNC_STRTOD.
91382
91383 2001-11-17  Jim Meyering  <meyering@lucent.com>
91384
91385         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91386         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91387         rather than group writable.  Patch by Juan F. Codagnone.
91388
91389         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91390         xrealloc, Instead, include "xalloc.h".
91391
91392         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91393         Remove explicit declarations of xmalloc, xrealloc,
91394         and xstrdup.  Instead, include "xalloc.h".
91395
91396         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91397         unlocked-io.h.
91398         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91399         Likewise.
91400         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91401
91402         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91403         Reported by Padraig Brady.
91404
91405         * lib/mkstemp.c: #undef mkstemp.
91406         Include config.h.
91407         (rpl_mkstemp): Rename from mkstemp.
91408         Protoize.
91409
91410 2001-11-16  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91413         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91414         determine the amount of total physical memory, use pstat_getstatic.
91415         HPUX-11 doesn't define _SC_PHYS_PAGES.
91416         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91417         If sysconf couldn't be used to determine the amount of available
91418         physical memory, use both pstat_getstatic and pstat_getdynamic.
91419         Based on a patch from Bob Proulx.
91420
91421 2001-11-10  Jim Meyering  <meyering@lucent.com>
91422
91423         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91424         (jm_PREREQ): Use it.
91425
91426 2001-11-09  Jim Meyering  <meyering@lucent.com>
91427
91428         * m4/jm-macros.m4: Require autoconf-2.52f.
91429         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91430         Use these AC_-prefixed names, not the AM_-prefixed ones.
91431
91432         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91433
91434 2001-11-05  Jim Meyering  <meyering@lucent.com>
91435
91436         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91437
91438 2001-11-04  Jim Meyering  <meyering@lucent.com>
91439
91440         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91441         $DEFS.
91442
91443 2001-11-03  Jim Meyering  <meyering@lucent.com>
91444
91445         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91446         of AC_DEFUN.
91447
91448         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91449         know the name of the variable in the macro definition.
91450
91451 2001-11-03  Jim Meyering  <meyering@lucent.com>
91452
91453         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91454         in argmatch_to_argument call.
91455
91456         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91457         argument.
91458
91459         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91460         e.g., a fault due to an attempt to free a NULL pointer.
91461
91462 2001-11-01  Jim Meyering  <meyering@lucent.com>
91463
91464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91465         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91466
91467 2001-11-01  Jim Meyering  <meyering@lucent.com>
91468
91469         * lib/dirfd.c, lib/dirfd.h: New files.
91470         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91471
91472         * lib/hash.c (hash_print) [TESTING]: Clean up.
91473
91474 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91475
91476         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91477         to avoid a warning if -Wall.
91478
91479 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91480
91481         * README: New file
91482         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91483         (per RMS's instructions, this is now the canonical source)
91484         * lgpl/, gpl/: New directories.
91485
91486 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91487
91488         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91489
91490 2001-10-21  Jim Meyering  <meyering@lucent.com>
91491
91492         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91493         this code would end up calling gettext even in packages built
91494         with --disable-nls.
91495         * lib/getopt.c (_): Likewise.
91496         * lib/regex.c (_): Likewise.
91497
91498 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91499
91500         * m4/error.m4 (jm_PREREQ_ERROR):
91501         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91502         AC_FUNC_STRERROR_R does that.
91503         Check for strerror declaration.
91504
91505         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91506         are supposed to have them these days.
91507         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91508         Merge changes from latest Autoconf CVS.
91509         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91510         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91511         POSIX decided to standardize on the int flavor of strerror_r.
91512
91513 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91516         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91517         Use strerror_r that is only a macro, even if it is not a function.
91518         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91519         (private_strerror): Use prototypes, not old-style function definition.
91520         (print_errno_message): New function.
91521         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91522         char*-flavored one.
91523         (error_tail, error, error_at_line): Use it.
91524
91525 2001-10-11  Jim Meyering  <meyering@lucent.com>
91526
91527         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91528         and quote_n (1, ... to avoid clobbering a buffer.
91529
91530 2001-10-05  Jim Meyering  <meyering@lucent.com>
91531
91532         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91533         hash-pjw.h.
91534         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91535         * lib/hash-pjw.h: New file.
91536
91537 2001-09-30  Jim Meyering  <meyering@lucent.com>
91538
91539         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91540         `struct fsstat' has the `f_fstypename' member.
91541         Use that to define FS_TYPE, which is now used to make
91542         the getfsstat link test tighter.
91543
91544 2001-09-30  Jim Meyering  <meyering@lucent.com>
91545
91546         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91547         Include <sys/ucred.h>, for Apple Darwin.
91548         Include sys/mount.h and sys/fs_types.h only if available.
91549         (FS_TYPE): Define.
91550         (read_filesystem_list): Use FS_TYPE.
91551
91552 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91553
91554         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91555         a boolean context.
91556
91557 2001-09-29  Jim Meyering  <meyering@lucent.com>
91558
91559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91560         [one-argument getmntent function]): Include stdio.h before mntent.h.
91561         SunOS 4.1.x needs it for the declaration of `FILE'.
91562         Patch by Volker Borchert.
91563
91564         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91565         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91566         sys/fs_types.h, and make the link-test for getfsstat guard #include
91567         directives with appropriate #if HAVE_*_H tests so that we can
91568         detect getfsstat on Apple Darwin1.3.7 systems.
91569         Reported by Nelson Beebe.
91570         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91571
91572 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91573
91574         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91575         #defines strtoimax.  Also treat the other strto* functions
91576         like strtoimax.
91577
91578         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91579         Check for strtoul and strtoumax,
91580         as those declarations are made even in the signed case.
91581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91582         Likewise, for strtol and strtoimax.
91583
91584 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91585
91586         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91587         #defines strtoimax.  Also treat the other strto* functions
91588         like strtoimax.
91589
91590         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91591         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91592         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91593
91594 2001-09-26  Jim Meyering  <meyering@lucent.com>
91595
91596         Most macros in unlocked-io.h had the wrong number of arguments.
91597         * lib/gen-uio: New script.
91598         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91599         * lib/unlocked-io.hin: Remove file.
91600         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91601         rather than trying to embed it here.
91602         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91603         Reported by Padraig Brady.
91604
91605 2001-09-25  Volker Borchert  <bt@teknon.de>
91606
91607         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91608         `result'.
91609
91610 2001-09-24  Jim Meyering  <meyering@lucent.com>
91611
91612         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91613
91614 2001-09-23  Jim Meyering  <meyering@lucent.com>
91615
91616         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91617         instead of the mere test for existence of mntent.h.  The latter
91618         would get a false-positive on AIX 3.4 systems.
91619         In the outer getmntent if-block, don't die if neither of the getmntent
91620         tests succeeds.  Instead, just fall through and continue with the
91621         remaining tests.
91622
91623 2001-09-23  Jim Meyering  <meyering@lucent.com>
91624
91625         * lib/mountlist.c: Remove useless parentheses in #if directives.
91626         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91627         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91628
91629 2001-09-22  Jim Meyering  <meyering@lucent.com>
91630
91631         * m4/gettext.m4: New file.  From gettext.
91632         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91633         * m4/progtest.m4: Likewise
91634         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91635         * m4/glibc21.m4: Likewise.
91636
91637         * m4/libintl.m4: Remove.  No longer used.
91638
91639 2001-09-22  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/localcharset.c: Update from latest gettext.
91642         * lib/config.charset: Likewise.
91643
91644 2001-09-20  Jim Meyering  <meyering@lucent.com>
91645
91646         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91647         strtoimax.
91648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91649         strtoumax.
91650
91651 2001-09-20  Jim Meyering  <meyering@lucent.com>
91652
91653         * lib/xstrtol.c (strtoimax): Guard declaration with
91654         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91655         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91656         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91657         (strtoumax): Likewise, for completeness (it wasn't necessary).
91658
91659 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91660
91661         * lib/strtoimax.c (HAVE_LONG_LONG):
91662         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91663         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91664         to work around bug in IBM C compiler.
91665
91666 2001-09-17  Jim Meyering  <meyering@lucent.com>
91667
91668         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91669         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91670         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91671         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91672         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91673         whenever the right hand side need not be expanded by the shell.
91674
91675 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91676
91677         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91678         library.  It's not correct, as some older glibcs are buggy.
91679         fnmatch wasn't fixed until glibc 2.2.
91680
91681         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91682         special shell magic here.
91683
91684 2001-09-16  Jim Meyering  <meyering@lucent.com>
91685
91686         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91687         * m4/jm-macros.m4: Require it.
91688
91689 2001-09-16  Jim Meyering  <meyering@lucent.com>
91690
91691         * lib/mkdir.c: New file.
91692
91693 2001-09-15  Jim Meyering  <meyering@lucent.com>
91694
91695         * m4/jm-macros.m4: Check for help2man.
91696
91697 2001-09-11  Jim Meyering  <meyering@lucent.com>
91698
91699         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91700         The body, by Paul Eggert, was moved here from configure.in.
91701         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91702
91703 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91704
91705         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91706         (jm_PREREQ): Use it.
91707
91708 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91709
91710         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91711         Use ssize_t, not int, to store result of readlink.
91712         Check for ssize_t overflow as well as size_t overflow,
91713         as POSIX says the result of readlink is implementation-defined
91714         when ssize_t overflows.
91715         Remove unnecessary cast to char*.
91716         Use free+malloc instead of realloc, as the storage doesn't need
91717         to be preserved and it's clearer and can be more efficient that way.
91718         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91719         * lib/xreadlink.h (xreadlink): Update prototype.
91720
91721 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91722
91723         * lib/xgetcwd.c: Revert some of the previous change; intead,
91724         fix the HAVE_GETCWD_NULL code to behave more like the
91725         !HAVE_GETCWD_NULL code used to.
91726
91727         Include "xalloc.h".
91728         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91729         invoke xalloc_die.
91730
91731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91732
91733         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91734         sys/param.h, as pathmax.h includes them.
91735
91736 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91737
91738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91739         (jm_PREREQ_XGETCWD): New macro.
91740
91741         * m4/getcwd.m4: New file.
91742
91743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91744
91745         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91746         like the HAVE_GETCWD_NULL code.
91747         Include pathmax.h if not HAVE_GETCWD.
91748         Do not include xalloc.h.
91749         (INITIAL_BUFFER_SIZE): New symbol.
91750         Do not use xmalloc / xrealloc, since the caller is responsible for
91751         handling errors.  Preserve errno around `free' during failure.
91752         Do not overrun buffer when using getwd.
91753
91754 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91755
91756         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91757         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91758         getcwd (NULL, 0).
91759
91760 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91761
91762         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91763         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91764         spotted by Jim Meyering.
91765
91766 2001-09-03  Jim Meyering  <meyering@lucent.com>
91767
91768         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91769         failure.
91770
91771 2001-09-02  Jim Meyering  <meyering@lucent.com>
91772
91773         * lib/error.c: Update from GNU libc.
91774
91775 2001-09-01  Jim Meyering  <meyering@lucent.com>
91776
91777         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91778         Used by df.
91779
91780 2001-09-01  Jim Meyering  <meyering@lucent.com>
91781
91782         * lib/xreadlink.c: New file.
91783         * lib/xreadlink.h: New file.
91784         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91785         xreadlink.h.
91786
91787         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91788         doesn't conflict with sparc Solaris 7's definition in
91789         /usr/include/sys/int_types.h.
91790
91791         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91792         files.
91793         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91794         and strncasecmp as r-values.  Unixware didn't have declarations.
91795
91796 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91797
91798         * lib/xstrtol.h: Add copyright notice.
91799         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91800         LONGINT_INVALID_SUFFIX_CHAR.
91801
91802 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91803
91804         * lib/xstrtol.c (strtoimax): New decl.
91805
91806 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91807
91808         * lib/xgetcwd.c: Don't include pathmax.h.
91809         Include stdlib.h and unistd.h if available.
91810         Include xalloc.h.
91811         (xmalloc, xstrdup, free): Remove decls.
91812         (xgetcwd): Don't assume sizes fit in unsigned.
91813         Check for overflow when computing sizes.
91814         Simplify reallocation code.
91815
91816 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91817
91818         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91819         a directory's st_size can have an arbitrary value, so the old
91820         usage could waste an arbitrary amount of memory.  All uses
91821         changed.
91822         * lib/savedir.h: Update prototype.
91823
91824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91825
91826         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91827
91828         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91829         old strtoimax.c.
91830
91831         Also, make the following further changes to make this file's
91832         configuration more similar to that of strtol.c:
91833         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91834         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91835         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91836         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91837         changed to signed values.
91838
91839         And make the following changes as well:
91840         Fix copyright notice, as 1999 was missing.
91841         (verify): New macro.
91842         (strtoimax): Check sizes at compile-time, not run-time.
91843         Prefer strtol to strtoll if both work.
91844         (main): Remove; it was not that useful and was a pain to maintain.
91845
91846         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91847
91848 2001-08-31  Jim Meyering  <meyering@lucent.com>
91849
91850         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91851         Use an initial, malloc'd, buffer of length 128 rather than
91852         a statically allocated one of length 1024.
91853
91854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91855
91856         Simplify code, partly by assuming autoconf 2.52 semantics.
91857
91858         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91859
91860         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91861         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91862         All uses removed.
91863         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91864         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91865         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91866         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91867         jm_AC_HEADER_INTTYPES_H.
91868         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91869
91870         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91871
91872         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91873         Quote first arg of AC_DEFUN.
91874         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91875         since they are needed to parse the include file even if we need
91876         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91877         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91878         but with opposite signedness.
91879
91880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91881
91882         Merge 'exclude' changes from tar 1.13.22.
91883         This fixes one or two unlikely storage allocation overflow bugs,
91884         but doesn't change user-visible behavior otherwise.
91885
91886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91887
91888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91889         (jm_PREREQ_EXCLUDE): New macro.
91890
91891 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91892
91893         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91894         tm to be declared.
91895
91896 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91897
91898         * lib/hash.c: Remove '2001' from copyright notice.
91899
91900 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91901
91902         * lib/full-write.h: New file.
91903         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91904         * lib/full-write.c: Correct credits, as cccp.c no longer
91905         exists and anyway it was so heavily changed from the old cccp
91906         code as to be unrecognizable.  Include full-write.h.
91907         (full_write): Return size_t, with short writes meaning failure.
91908         All callers changed.  This fixes a bug with large buffers
91909         on 64-bit hosts.
91910         * lib/utime.c: Include full-write.h.
91911
91912 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91913
91914         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91915         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91916         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91917         Include if available.
91918         (<xalloc.h>): Include
91919         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91920         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91921         collide with FNM macros.
91922         (struct patopts): New struct.
91923         (struct exclude): Use it, as exclude patterns now come with options.
91924         (new_exclude): Support above changes.
91925         (new_exclude, add_exclude_file):
91926         Initial size must now be a power of two to simplify overflow checking.
91927         (free_exclude, fnmatch_no_wildcards): New function.
91928         (excluded_filename): No longer requires options arg, as the options
91929         are determined by add_exclude.  Now returns bool, not int.
91930         (excluded_filename, add_exclude):
91931         Add support for the fancy new exclusion options.
91932         (add_exclude, add_exclude_file): Now takes int options arg.
91933         Check for arithmetic overflow when computing sizes.
91934         (add_exclude_file): xrealloc might modify errno, so don't
91935         realloc until after errno might be used.
91936
91937         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91938         New macros.
91939         (free_exclude): New decl.
91940         (add_exclude, add_exclude_file): Now takes int options arg.
91941         (excluded_filename): No longer requires options arg, as the options
91942         are determined by add_exclude.  Now returns bool, not int.
91943
91944 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91945
91946         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91947
91948 2001-08-27  Jim Meyering  <meyering@lucent.com>
91949
91950         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91951
91952         * lib/version-etc.c (N_): Remove definition.
91953         Revert most of last change.
91954         Instead, simply don't mark the `Copyright...' string for translation.
91955         Based on advice from Paul Eggert.
91956
91957         * lib/strtoxmax.c: Tweak comment.
91958
91959 2001-08-26  Jim Meyering  <meyering@lucent.com>
91960
91961         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91962
91963         * m4/xstrtoimax.m4: New file.
91964         * m4/xstrtoumax.m4: Add comments explaining why we
91965         AC_REPLACE_FUNCS(strtol).
91966
91967 2001-08-26  Jim Meyering  <meyering@lucent.com>
91968
91969         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91970         of copyright with `%s' so translators don't get an untranslated
91971         message in 2002.
91972         (COPYRIGHT_YEAR): Define.
91973         (version_etc): Use fprintf rather than fputs.
91974         Suggestion from Ulrich Drepper.
91975
91976         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91977
91978         * lib/strtoll.c: New file, from GNU libc.
91979         * lib/xstrtoimax.c: New file.
91980
91981         * lib/xstrtol.h: Add xstrtoimax.
91982         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91983         * lib/strtoimax.c: New file.  Likewise, but first define
91984         STRTOUXMAX_SIGNED.
91985
91986         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91987         ...
91988         * lib/strtoxmax.c: ... then renamed to this.
91989
91990 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91991
91992         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91993         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91994         (jm_AC_TYPE_INTMAX_T): New macro.
91995         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91996
91997         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91998
91999         * m4/longlong.m4: Renamed from ulonglong.m4.
92000         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92001         * m4/uintmax_t.m4: Removed.
92002
92003 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92004
92005         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92006         Port to Solaris 8, where 'sed' requires a space after the 'r'
92007         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92008         Redirect output to $tmp just once.
92009
92010 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92011
92012         * lib/addext.c (<errno.h>): Include.
92013         (errno): Declare if not defined.
92014         (addext): Work correctly when pathconf returns -1 and leaves
92015         errno alone because there is no limit.  Also, work even if
92016         pathconf returns a value greater than SIZE_MAX.
92017
92018 2001-08-12  Jim Meyering  <meyering@lucent.com>
92019
92020         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92021         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92022         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92023         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92024         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92025         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92026         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92027         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92028         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92029         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92030         utime.m4, utimes.m4, xstrtoumax.m4:
92031         Quote the first argument in each use of AC_DEFUN.
92032
92033 2001-08-12  Jim Meyering  <meyering@lucent.com>
92034
92035         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92036         Simply `return getcwd (NULL, 0);'.
92037         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92038         Use 1300 as initial value for length, not PATH_MAX.
92039
92040         * lib/pathmax.h: Clean up cpp syntax.
92041
92042 2001-08-12  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/gettimeofday.c: New file.
92045         * lib/gtod.h: New file.
92046         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92047
92048 2001-08-05  Jim Meyering  <meyering@lucent.com>
92049
92050         * m4/jm-macros.m4: Require autoconf-2.52.
92051
92052 2001-08-04  Jim Meyering  <meyering@lucent.com>
92053
92054         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92055         stmt, to get in sync with glibc.
92056
92057 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92058
92059         The following changes are from gettext 0.10.39 as maintained by
92060         Bruno Haible.
92061
92062         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92063         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92064         with inverted sense.  All uses changed.
92065
92066         * lib/mbswidth.c: Don't include <limits.h>.
92067         Include <stdlib.h> and <string.h> unconditionally.
92068         (iswcntrl, mbsinit, ISCNTRL): New macros.
92069         (mbsnwidth): Use K&R style function declarations.
92070         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92071         can optimize it when MB_CUR_MAX == 1.
92072         The width of control characters is zero, not 1.
92073
92074 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92075
92076         The following changes are from gettext 0.10.39 as maintained by
92077         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92078
92079         * m4/codeset.m4: Upgrade to serial AM1.
92080         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92081         all uses changed.  Quote first arg of AC_DEFUN.
92082         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92083
92084         * m4/iconv.m4: Upgrade to serial AM2.
92085         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92086         Add --with-libconv-prefix.
92087         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92088         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92089         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92090         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92091         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92092
92093         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92094         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92095         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92096         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92097         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92098         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92099         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92100         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92101         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92102
92103         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92104         string.h any more.
92105
92106         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92107         not the default value.
92108
92109         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92110         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92111         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92112         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92113         Also check for iswcntrl, used for wcwidth fallback.
92114         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92115         to Autoconf 2.13.
92116
92117 2001-08-03  Jim Meyering  <meyering@lucent.com>
92118
92119         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92120         as it was in the original.  Reported by Paul Eggert.
92121
92122 2001-07-16  Jim Meyering  <meyering@lucent.com>
92123
92124         * m4/gettimeofday.m4: New file.
92125         Prompted by a report from Bernhard Baehr.
92126
92127 2001-07-15  Jim Meyering  <meyering@lucent.com>
92128
92129         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92130         stuff. Now it's in ../Makefile.cfg.
92131
92132 2001-07-15  Jim Meyering  <meyering@lucent.com>
92133
92134         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92135         (BUILT_SOURCES): Add unlocked-io.h.
92136         (io_functions): Define.
92137         (unlocked-io.h): New rule.
92138         (DISTCLEANFILES): Add unlocked-io.h.
92139         (all-local): Depend on unlocked-io.h, to ensure it is created.
92140
92141         * lib/unlocked-io.hin: New file
92142
92143         * lib/regex.c: Update from glibc.
92144
92145 2001-07-05  Jim Meyering  <meyering@lucent.com>
92146
92147         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92148         recommendation.
92149         (libfetish_a_SOURCES): Put all .h files here instead.
92150         Remove a thus-exposed (better checks in automake) duplicate and
92151         two unnecessary .h files.
92152
92153 2001-07-04  Jim Meyering  <meyering@lucent.com>
92154
92155         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92156         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92157         distcheck failure.
92158
92159 2001-07-02  Jim Meyering  <meyering@lucent.com>
92160
92161         The following changes were prompted by suggestions from Bruno Haible.
92162
92163         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92164         is now generated.
92165         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92166         definition of EXTRA_DIST.
92167         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92168         ensure that the generated file is created/updated whenever the list
92169         of $(unlocked_functions) is changed.
92170         (jm-glibc-io.m4): New rule.
92171         (unlocked-io.h): New rule -- currently unused.
92172
92173 2001-06-24  Jim Meyering  <meyering@lucent.com>
92174
92175         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92176         unmatched right bracket, rather than kludging it with an extra,
92177         falsely-matching quote in a comment.  Patch by Akim Demaille.
92178
92179 2001-06-11  Jim Meyering  <meyering@lucent.com>
92180
92181         * lib/regex.c: Update from GNU libc.
92182
92183 2001-05-27  Jim Meyering  <meyering@lucent.com>
92184
92185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92186         Check for ut_type in struct utmp.
92187
92188 2001-05-27  Jim Meyering  <meyering@lucent.com>
92189
92190         * lib/readutmp.h (UT_TYPE): Define.
92191
92192 2001-05-24  Jim Meyering  <meyering@lucent.com>
92193
92194         * lib/argmatch.c: Include "quote.h".
92195         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92196         quote function.  Reported by Göran Uddeborg.
92197
92198 2001-05-22  Jim Meyering  <meyering@lucent.com>
92199
92200         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92201         now that we use the package-supplied version unconditionally.
92202         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92203
92204 2001-05-21  Jim Meyering  <meyering@lucent.com>
92205
92206         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92207         shell syntax errors.
92208
92209 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92210
92211         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92212
92213 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92214
92215         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92216         Don't bother to check library strftime, since
92217         we'll be using our own my_strftime function anyway.
92218         Define my_strftime instead of strftime.
92219
92220 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92221
92222         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92223         which is not yet declared.
92224
92225 2001-05-15  Jim Meyering  <meyering@lucent.com>
92226
92227         * m4/regex.m4: Use proper quoting so brackets appear in the test
92228         program.
92229         Reported by, and with help from, Bruno Haible.
92230
92231 2001-05-13  Jim Meyering  <meyering@lucent.com>
92232
92233         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92234         undefined.
92235
92236 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92237
92238         dirname code cleanup.  base_name now behaves more compatibly
92239         with POSIX basename when given file names that have trailing
92240         slashes, and similarly for dir_name.  Add new primitives
92241         base_len and dir_len.  Put the directory-name-related decls
92242         into dirname.h.
92243
92244         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92245         * lib/backupfile.c (base_name): Likewise.
92246         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92247         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92248         * lib/makepath.c (strip_trailing_slashes): Likewise.
92249         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92250         ISSLASH): Likewise.
92251         * lib/rename.c (strip_trailing_slashes): Likewise.
92252         * lib/same.c (base_name): Likewise.
92253         * lib/stripslash.c (ISSLASH): Likewise.
92254
92255         * lib/addext.c: Include <dirname.h> after size_t is defined.
92256         * lib/backupfile.c: Likewise.
92257
92258         * lib/addext.c (addext): Use base_len to trim redundant
92259         trailing slashes instead of doing it ourselves.
92260         But do not trim the last slash if it is not redundant.
92261
92262         * lib/backupfile.c (find_backup_file_name,
92263         max_backup_version): Use base_len instead of rolling it ourselves.
92264         Handle the case of "" and (on DOS) "C:" correctly.
92265
92266         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92267         needed. Include <string.h>, <dirname.h>.
92268         (base_name): Allow file names ending in slashes, other than names
92269         that are all slashes.  In this case, return the basename followed
92270         by the slashes.  This is more general, and can be used in places
92271         where the original base_name purposely had an assertion failure.
92272         (base_len): New function.
92273
92274         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92275         Do not include <assert.h>; no longer needed.
92276         Include xalloc.h.
92277         (memrchr): Remove decl.
92278         (dir_name_r): Remove.
92279         (dir_len): Renamed from dirlen.  All callers changed.
92280         Rewrite in terms of base_name, for simplicity and consistency.
92281         (dir_name): Never return NULL.  All callers changed.
92282         Do not include <stdlib.h> in test program; no longer needed.
92283         return 0; is fine for test program.
92284
92285         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92286         New macros.
92287         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92288
92289         * lib/path-concat.c (path_concat): Use base_len to compute
92290         base length, not strlen; this means we cannot rely on memcpy
92291         to null-terminate.
92292
92293         * lib/same.c (STREQ): Remove.
92294         (same_name): Handle the case where the basename ends in trailing '/'.
92295
92296         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92297         a slash was stripped.  Do not strip the last slash after a
92298         file system prefix.
92299
92300 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92301
92302         * lib/Makefile.am (libfetish_a_SOURCES):
92303         Add strftime.c, since we now compile it on all hosts.
92304
92305         * lib/strftime.c (my_strftime):
92306         Define to nstrftime if emacs, but only if my_strftime is not defined.
92307         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92308         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92309         Add one more extra argument: a nanoseconds value.
92310         All uses changed.
92311         (ns): New macro.
92312         (my_strftime function): Add %N format.
92313         (emacs_strftimeu): Renamed from emacs_strftime,
92314         with extra ut argument.
92315
92316 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92317
92318         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92319
92320 2001-04-21  Jim Meyering  <meyering@lucent.com>
92321
92322         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92323         doesn't interfere.
92324
92325 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92326
92327         * m4/ftruncate.m4: Check for chsize.
92328         Link with ftruncate.o unconditionally if ftruncate is missing.
92329         This was required when cross-compiling to i586-mingw32msvc.
92330
92331 2001-04-08  Jim Meyering  <meyering@lucent.com>
92332
92333         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92334         recomputed; that's necessary when the offset spans a DST transition.
92335         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92336
92337 2001-04-02  Jim Meyering  <meyering@lucent.com>
92338
92339         * lib/regex.h, regex.c: Update from GNU libc.
92340
92341 2001-03-24  Jim Meyering  <meyering@lucent.com>
92342
92343         * m4/jm-macros.m4: Require autoconf-2.49d.
92344
92345 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92346
92347         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92348
92349 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92350
92351         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92352
92353 2001-03-17  Jim Meyering  <meyering@lucent.com>
92354
92355         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92356         now that the version in autoconf is equivalent.
92357         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92358
92359         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92360         Suggestion from Akim Demaille.
92361
92362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92363         (jm_PREREQ_TEMPNAME): New function.
92364
92365 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92366
92367         * lib/tempname.c (uint64_t): Define to uintmax_t if
92368         not defined, and if UINT64_MAX is not defined.
92369         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92370         Reported by John David Anglin.
92371
92372 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92373
92374         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92375         resolve alias if codeset is empty.
92376         * lib/config.charset (BeOS): Use wildcard syntax.
92377
92378 2001-03-13  Jim Meyering  <meyering@lucent.com>
92379
92380         * lib/path-concat.c (path_concat)
92381         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92382         concatenating e.g., `C:' and `foo'.
92383         From Bruno Haible.
92384
92385 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92386
92387         * lib/localcharset.c (locale_charset): Don't use
92388         setlocale(LC_CTYPE,NULL). Don't return NULL.
92389         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92390
92391 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92392
92393         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92394         support for DOS/DJGPP.
92395
92396 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92397
92398         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92399         lacks mkstemp.  Compile our own tempname.c if we compile our own
92400         mkstemp.c, as mkstemp relies on tempname.
92401
92402 2001-03-01  Jim Meyering  <meyering@lucent.com>
92403
92404         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92405         AH_VERBATIM really does output its argument verbatim.
92406
92407 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92408
92409         * lib/Makefile.am (libfetish_a_SOURCES):
92410         Add dup-safer.c, fopen-safer.c.
92411         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92412
92413         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92414         * lib/unistd-safer.h: New files.
92415
92416 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92417
92418         The mkstemp replacement is taken from glibc 2.2.2, with some
92419         portability fixes for use outside glibc, as follows:
92420
92421         * lib/tempname.c (struct_stat64): New macro.
92422         (direxists, __gen_tempname): Use it.
92423         This avoids a portability problem with Solaris 8.
92424
92425         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92426         (<stddef.h>, <stdint.h>, <string.h>):
92427         Include only if STDC_HEADERS || _LIBC.
92428         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92429         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92430         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92431         (__set_errno): Define this macro if <errno.h> doesn't.
92432         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92433         Define these macros if <stdio.h> doesn't.
92434         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92435         Define these macros if <sys/stat.h>
92436         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92437         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92438         __xstat64): Define if not _LIBC.
92439         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92440         (__gen_tempname): Invoke gettimeofday only if
92441         HAVE_GETTIMEOFDAY || _LIBC;
92442         otherwise, fall back on plain "time".
92443         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92444
92445         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92446
92447         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92448
92449 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92450
92451         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92452
92453 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92454
92455         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92456         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92457         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92458         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92459
92460 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92461
92462         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92463         Remove workaround macros for hosts that have mbrtowc but not
92464         mbstate_t, as we now insist on proper declarations for both
92465         before using mbrtowc.
92466
92467 2001-02-17  Jim Meyering  <meyering@lucent.com>
92468
92469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92470         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92471         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92472         UnixWare 7.1.1.
92473
92474         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92475         rather than AC_CACHE_VAL.
92476
92477 2001-02-17  Jim Meyering  <meyering@lucent.com>
92478
92479         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92480         around included file name.
92481
92482         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92483
92484         * lib/strftime.c: Update from GNU libc (the only changes were to
92485         comments).
92486
92487 2001-02-17  Jim Meyering  <meyering@lucent.com>
92488
92489         * lib/regex.c: Update from libc.
92490
92491 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92492
92493         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92494         clash.
92495
92496 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92497
92498         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92499         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92500         Reported by Mark Hounschell via Paul Eggert.
92501
92502 2001-02-07  Jim Meyering  <meyering@lucent.com>
92503
92504         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92505
92506 2001-02-05  Jim Meyering  <meyering@lucent.com>
92507
92508         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92509         it includes the patch required for `large file' support with at least
92510         HP-UX's 10.20 /bin/cc.
92511
92512 2001-02-03  Jim Meyering  <meyering@lucent.com>
92513
92514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92515         AS_IF, now that it works once again (mysteriously).
92516         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92517
92518 2001-01-30  Jim Meyering  <meyering@lucent.com>
92519
92520         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92521         * m4/chown.m4: Rename conftestchown to conftest.chown.
92522         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92523         s/conftestdir2/conftest.d2/.
92524         * m4/utimes.m4: s/conftestdata/conftest.data/
92525         Inspired by Pavel Roskin's change in autoconf.
92526
92527 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92528
92529         * lib/config.charset: Update for FreeBSD 4.2.
92530
92531 2001-01-27  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92534         a use of AS_IF.
92535         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92536
92537 2001-01-26  Jim Meyering  <meyering@lucent.com>
92538
92539         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92540         quotearg.c includes it.
92541
92542 2001-01-26  Jim Meyering  <meyering@lucent.com>
92543
92544         * lib/quotearg.c: Include stddef.h.
92545         * lib/quote.c: Include stddef.h.
92546         Reported by Axel Kittenberger.
92547
92548         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92549         line in double quotes so that it evokes a better diagnostic.
92550         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92551         Reported by Axel Kittenberger.
92552
92553 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92554
92555         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92556         as if it was a `charset'.
92557
92558 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92559
92560         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92561         has const.
92562
92563 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92564
92565         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92566         to avoid a warning.  Add back 'const' to inptr.
92567
92568 2001-01-20  Jim Meyering  <meyering@lucent.com>
92569
92570         Be sure that headers are checked before used in code compiled
92571         for the type checks.
92572         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92573         In place of that, invoke jm_CHECK_ALL_TYPES.
92574         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92575         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92576         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92577         The check for ssize_t was mistakenly run before the test for unistd.h.
92578
92579         The configure-time check for stdbool.h was missing.
92580         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92581         (jm_PREREQ_HASH): New function.
92582
92583 2001-01-17  Jim Meyering  <meyering@lucent.com>
92584
92585         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92586         for autoconf-2.49c.
92587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92588
92589 2001-01-16  Jim Meyering  <meyering@lucent.com>
92590
92591         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92592         From Bruno Haible.
92593
92594 2001-01-14  Jim Meyering  <meyering@lucent.com>
92595
92596         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92597         foo and bar.  Create conftestdir/ in the script, not in the C code.
92598         Remove directories in the script, not in the C code.
92599         Remove conftestdir{,2} before trying to create the directory.
92600         Make the entire configure script fail if the mkdir fails.
92601
92602 2001-01-14  Jim Meyering  <meyering@lucent.com>
92603
92604         * lib/rename.c: New file.  From Volker Borchert.
92605         Include stdlib.h, string.h or strings.h, and xalloc.h.
92606         Use strip_trailing_slashes rather than open-coding it.
92607
92608 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92609
92610         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92611
92612 2001-01-03  Jim Meyering  <meyering@lucent.com>
92613
92614         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92615         of local `inptr' to avoid warning with some system declarations of
92616         iconv.
92617
92618 2001-01-02  Volker Borchert  <bt@teknon.de>
92619
92620         * m4/rename.m4: New file.
92621         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92622
92623 2001-01-01  Jim Meyering  <meyering@lucent.com>
92624
92625         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92626         even on systems with utmpx.h.  It's necessary for the declaration of
92627         utmp's ut_user member.  Reported by Andreas Jaeger.
92628
92629         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92630         available. They are required for the declarations of getgrgid and
92631         getpwuid resp.
92632         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92633         Reported by Andreas Jaeger.
92634
92635 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92636
92637         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92638         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92639         so `make install' also works in VPATH builds.
92640
92641 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92642
92643         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92644         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92645         can be used in subdirectories.
92646
92647 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92648
92649         * lib/modechange.c: Do not assume that mode_t uses the
92650         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92651         the other-execute bit of FOO even if S_IXOTH != 1.
92652
92653         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92654         WOTH, XOTH, ALLM): New macros.
92655         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92656          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92657         Use them.
92658         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92659         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92660         (mode_compile):
92661         No need to use uintmax_t; unsigned long is long enough.
92662         Don't bother to get suffix since we don't use it.
92663
92664 2000-12-26  Jim Meyering  <meyering@lucent.com>
92665
92666         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92667         better with autoheader.
92668
92669 2000-12-24  Jim Meyering  <meyering@lucent.com>
92670
92671         * lib/hash.c (is_prime): Return explicit boolean values.
92672         (hash_get_first): Return NULL to appease Irix5.6's 89.
92673         Reported by Nelson Beebe.
92674
92675 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92676
92677         * lib/localcharset.c (locale_charset): Add support for Win32.
92678
92679 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92680
92681         * lib/physmem.h, lib/physmem.c: New files.
92682
92683         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92684         (noinst_HEADERS): Add physmem.h.
92685
92686         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92687         't' for compatibility with Solaris 8 sort.
92688
92689 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92690
92691         * lib/config.charset: Add support for BeOS.
92692
92693 2000-12-17  Jim Meyering  <meyering@lucent.com>
92694
92695         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92696         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92697
92698 2000-12-16  Jim Meyering  <meyering@lucent.com>
92699
92700         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92701         N and M) would have treated it like `chown N:N FILE'.
92702
92703         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92704
92705 2000-12-16  Jim Meyering  <meyering@lucent.com>
92706
92707         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92708         SHELLS_FILE to a file name that's useful on djgpp systems.
92709         Include stdlib.h.
92710         (ADDITIONAL_DEFAULT_SHELLS): Define.
92711         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92712         Based mostly on a patch from Prashant TR.
92713
92714 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92715
92716         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92717         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92718         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92719
92720 2000-12-08  Andreas Schwab  <schwab@suse.de>
92721
92722         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92723         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92724
92725 2000-12-07  Jim Meyering  <meyering@lucent.com>
92726
92727         * lib/stripslash.c (ISSLASH): Define.
92728         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92729         `/'.
92730         From Prashant TR.
92731
92732         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92733         (dir_name_r): Declare this function as static.
92734         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92735         manifest itself on a name containing a mix of slashes and
92736         backslashes.
92737         Make this function work with names starting with a DOS-style
92738         drive letter and colon prefix.
92739         (dir_name): Append `.' if necessary.
92740         Based mostly on patches from Prashant TR and Eli Zaretskii.
92741
92742         * lib/dirname.h (dir_name_r): Remove prototype.
92743
92744 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92745
92746         * m4/off_t-format.m4: Remove this file.
92747         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92748
92749 2000-12-06  Jim Meyering  <meyering@lucent.com>
92750
92751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92752         replacement strtoull, we may well need the replacement strtoul, too.
92753         Check for declarations of strtoul and strtoull.
92754         Check for strtol.  Mainly as a cue to cause automake to include
92755         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92756         Check for limits.h -- strtol.c needs it.
92757
92758 2000-12-05  Jim Meyering  <meyering@lucent.com>
92759
92760         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92761
92762 2000-12-04  Jim Meyering  <meyering@lucent.com>
92763
92764         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92765         Also include memory.h, stdlib.h, unistd.h if appropriate.
92766         Reported by Andreas Jaeger (conflicting declaration of malloc).
92767
92768 2000-12-02  Jim Meyering  <meyering@lucent.com>
92769
92770         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92771         * m4/jm-macros.m4 (jm_MACROS): require it.
92772
92773 2000-12-02  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92776
92777 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92778
92779         * lib/memrchr.c: Include <config.h> before any system include file.
92780
92781 2000-11-30  Jim Meyering  <meyering@lucent.com>
92782
92783         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92784
92785 2000-11-30  Jim Meyering  <meyering@lucent.com>
92786
92787         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92788
92789 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92790
92791         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92792
92793 2000-11-26  Jim Meyering  <meyering@lucent.com>
92794
92795         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92796
92797 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92798
92799         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92800         size of (size_t) -1; it's not portable.
92801
92802 2000-11-17  Jim Meyering  <meyering@lucent.com>
92803
92804         * lib/strstr.c: Update from GNU libc.
92805
92806 2000-11-17  Akim Demaille  <akim@epita.fr>
92807
92808         * lib/obstack.h: Formatting changes.
92809         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92810         prevent type checking.
92811         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92812         cast the value to (void *): assigning a `foo *' to a `void *'
92813         variable is valid.
92814         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92815
92816 2000-11-16  Jim Meyering  <meyering@lucent.com>
92817
92818         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92819
92820 2000-11-11  Jim Meyering  <meyering@lucent.com>
92821
92822         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92823
92824 2000-11-10  Jim Meyering  <meyering@lucent.com>
92825
92826         * lib/obstack.h: Update from GNU libc.
92827         * lib/obstack.c: Likewise.
92828
92829 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92830
92831         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92832
92833 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92834
92835         * lib/getusershell.c (setusershell): Use rewind rather than
92836         fseek/fseeko, to avoid configuration hassles with fseeko.
92837         Don't bother opening SHELLS_FILE if shellstream is NULL;
92838         it's not necessary.
92839
92840 2000-11-05  Jim Meyering  <meyering@lucent.com>
92841
92842         * lib/makepath.h (make_dir): Declare.
92843         * lib/makepath.c (make_dir): Remove `static' attribute.
92844         Tweak a comment.
92845
92846 2000-11-04  Jim Meyering  <meyering@lucent.com>
92847
92848         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92849
92850 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92851
92852         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92853         last one in a bucket, advance to the next bucket.
92854
92855 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92856
92857         * lib/fnmatch.c: Do not comment out all the code if we are using
92858         the GNU C library, because in some cases we are replacing buggy
92859         code in the GNU C library itself.
92860
92861 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92862
92863         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92864         (regex_compile): Catch bogus \(\1\).
92865
92866 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92867
92868         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92869         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92870         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92871
92872 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92873
92874         * lib/error.h, getline.h, modechange.h:
92875         Remove "2000" from Copyright line, as the file hasn't been
92876         changed this year other than in the copyright notice.
92877
92878         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92879         was changed this year.
92880
92881 2000-10-29  Jim Meyering  <meyering@lucent.com>
92882
92883         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92884         renaming.
92885         * m4/ls-mntd-fs.m4: Likewise
92886
92887 2000-10-29  Jim Meyering  <meyering@lucent.com>
92888
92889         * lib/xstat.in: Fix grammar in comment.
92890
92891 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92892
92893         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92894         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92895         doesn't define __restrict_arr.
92896
92897 2000-10-28  Jim Meyering  <meyering@lucent.com>
92898
92899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92900         (jm_PREREQ_MEMCHR): New function.
92901
92902 2000-10-28  Jim Meyering  <meyering@lucent.com>
92903
92904         * lib/memchr.c: Update from libc.
92905         Adjust for portability:
92906         [HAVE_STDLIB_H]: Include stdlib.h.
92907         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92908         Undef __memchr, too.
92909         [!weak_alias]: Define __memchr to memchr.
92910
92911         * lib/regex.c: Update from libc.
92912         * lib/regex.h: Likewise.
92913         * lib/getopt1.c: Likewise.
92914         * lib/memcmp.c: Likewise.
92915
92916         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92917         Avoid using fseek, when possible -- it's broken by design.
92918         Patch by Ulrich Drepper.
92919
92920 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92921
92922         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92923         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92924         Giving in to popular pressure to shut up the compiler with casts.
92925
92926 2000-10-26  Jim Meyering  <meyering@lucent.com>
92927
92928         * lib/strftime.c: Update from libc.
92929
92930 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92931
92932         * regex.c: More `unsigned char' -> `re_char' changes.
92933         Also change several `int' into `re_wchar_t'.
92934         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92935         (PUSH_FAILURE_POINTER): Don't cast any more.
92936         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92937         We want GCC to complain, since this piece of code makes
92938         re_match non-reentrant, which *should* be fixed.
92939         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92940         (EXTEND_BUFFER): Use RETALLOC.
92941         (SET_LIST_BIT): Don't cast.
92942         (re_wchar_t): New type.
92943         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92944         that those two functions will always properly return.
92945         (IMMEDIATE_QUIT_CHECK): Cast to void.
92946         (analyse_first): Use recursion rather than an explicit stack.
92947         (re_compile_fastmap): Can't fail anymore.
92948         (re_search_2): Don't check re_compile_fastmap for failure.
92949         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92950         Now also sets the new value (passed in a new argument).
92951         (re_match_2_internal): Use it.
92952         Also, use a new var `reg' of type size_t when looping through regs
92953         rather than reuse the inappropriate `mcnt'.
92954
92955 2000-10-25  Jim Meyering  <meyering@lucent.com>
92956
92957         * lib/obstack.c: Update from libc.
92958
92959 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92960
92961         * regex.c (regex_compile): Change the way of handling a range from
92962         a char less than 256 to a char not less than 256.
92963
92964 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92965
92966         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92967         NT-Emacs only.
92968         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92969         so that re_search functions only quit when callers expect them to.
92970
92971 2000-10-23  Jim Meyering  <meyering@lucent.com>
92972
92973         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92974         wrong.  That set_locale call must not have any side effects.
92975         From Paul Eggert.
92976
92977 2000-10-22  Jim Meyering  <meyering@lucent.com>
92978
92979         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92980         [CYCLIC]: Remove now-unused definition.
92981
92982         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92983         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92984         Suggestion from Ulrich Drepper.
92985
92986 2000-10-21  Jim Meyering  <meyering@lucent.com>
92987
92988         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92989         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92991
92992 2000-10-21  Jim Meyering  <meyering@lucent.com>
92993
92994         * lib/dirname.c (memrchr): Declare if necessary.
92995         (dir_name): Remove the restriction that there be no
92996         trailing slashes.  Now, this code skips past them, effectively
92997         ignoring them.
92998         [TEST_DIRNAME] (main): New unit tests.
92999
93000         * lib/memrchr.c: New file from GNU libc.
93001         Undef __memrchr, too.
93002         [!weak_alias]: Define __memrchr to memrchr.
93003         Guard weak_alias use with `#ifdef weak_alias'.
93004
93005 2000-10-21  Jim Meyering  <meyering@lucent.com>
93006
93007         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93008         (dir_name): Use dir_name_r.
93009         * lib/dirname.h (dir_name_r): Declare it.
93010
93011 2000-10-17  Jim Meyering  <meyering@lucent.com>
93012
93013         * lib/quote.h (PARAMS): Define and use.
93014         Reported by Akim Demaille.
93015
93016         * lib/getopt.c: Update from libc.
93017
93018 2000-10-16  Jim Meyering  <meyering@lucent.com>
93019
93020         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93021         setlocale.
93022         From Jan Fedak.
93023
93024 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93025
93026         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93027
93028 2000-09-25  Jim Meyering  <meyering@lucent.com>
93029
93030         * lib/md5.h (rol): Define (from GnuPG).
93031
93032         * lib/sha.c: Give credit (GnuPG) where due.
93033         (M): Use rol rather than open-coding it.
93034         Add a FIXME comment.
93035
93036 2000-09-21  Jim Meyering  <meyering@lucent.com>
93037
93038         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93039         Reported by Michael Stone.
93040
93041 2000-09-20  Jim Meyering  <meyering@lucent.com>
93042
93043         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93044         (noinst_HEADERS): Add sha.h.
93045         Based on code from Scott G. Miller and from GnuPG.
93046
93047 2000-09-18  Jim Meyering  <meyering@lucent.com>
93048
93049         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93050         LIBS. Otherwise, everyone ends up linking with -lelf for some
93051         configurations.
93052         Reported by Mike Stone.
93053
93054 2000-09-15  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/regex.c: Update from libc.
93057
93058 2000-09-10  Jim Meyering  <meyering@lucent.com>
93059
93060         * lib/getopt.c (_getopt_internal): Update from glibc.
93061
93062 2000-09-09  Jim Meyering  <meyering@lucent.com>
93063
93064         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93065         think it should be used as a general replacement for isascii.
93066         * lib/fnmatch.c: Likewise.
93067         * lib/mbswidth.c: Likewise
93068         * lib/regex.c: Likewise.
93069
93070         Don't use atoi.
93071         * lib/userspec.c: Include sys/param.h and limits.h.
93072         Include xstrtol.h.
93073         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93074         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93075         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93076         UID, GID.  Check range.
93077
93078 2000-09-06  Jim Meyering  <meyering@lucent.com>
93079
93080         * lib/getopt.c (_getopt_internal): Update from glibc.
93081
93082 2000-08-30  Jim Meyering  <meyering@lucent.com>
93083
93084         * lib/strftime.c: Merge in changes from GNU libc.
93085
93086 2000-08-26  Jim Meyering  <meyering@lucent.com>
93087
93088         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93089         * m4/fpending.m4: New file.
93090
93091 2000-08-26  Jim Meyering  <meyering@lucent.com>
93092
93093         * lib/closeout.c: Include "__fpending.h".
93094         (close_stdout_status): Return right away if there's nothing to flush.
93095
93096         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93097         * lib/__fpending.c: New file.
93098         * lib/__fpending.h: New file.
93099
93100 2000-08-20  Jim Meyering  <meyering@lucent.com>
93101
93102         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93103         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93104         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93105
93106 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93107
93108         Improve fileutils installation on systems where running
93109         programs (like install) can't be unlinked.
93110         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93111         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93112
93113 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93114
93115         Standardize on "memory exhausted" instead of "Memory exhausted"
93116         or "virtual memory exhausted".
93117         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93118         "virtual memory exhausted".
93119         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93120         our own message.
93121         * lib/userspec.c (parse_user_spec): Likewise.
93122         * lib/bumpalloc.h: comment fix
93123         * lib/same.c, userspec.c: Include xalloc.h.
93124
93125         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93126         not char *const and pointing to a constant array.
93127         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93128         (xrealloc): Comment fix.
93129
93130         * lib/userspec.c (parse_user_spec):
93131         Don't translate a message until just before returning,
93132         to avoid unnecessary translation.
93133
93134 2000-08-07  Jim Meyering  <meyering@lucent.com>
93135
93136         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93137         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93138         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93139         getgroups.c, gethostname.c, getopt.h, group-member.c,
93140         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93141         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93142         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93143         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93144         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93145         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93146         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93147         yesno.c: Back out Copyright date changes for each file with no change
93148         this year.  This eases coordination with other programs using the same
93149         source code modules.  From Paul Eggert.
93150
93151 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93152
93153         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93154         not char, for compatibility with glibc 2.1.3 strftime.c.
93155
93156 2000-08-03  Greg McGary  <greg@mcgary.org>
93157
93158         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93159         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93160         (EXTEND_BUFFER): Use them.
93161
93162 2000-08-01  Jim Meyering  <meyering@lucent.com>
93163
93164         * lib/dirname.c (ISSLASH): Define.
93165         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93166         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93167         both `\' and `/' may be use as path separators.
93168         Based on a patch from Prashant TR.
93169
93170 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93171
93172         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93173         slot vector a constant, since it might get modified.
93174
93175 2000-07-31  Jim Meyering  <meyering@lucent.com>
93176
93177         * lib/xmalloc.c: Use `virtual memory exhausted', not
93178         `Memory exhausted'.
93179         * lib/obstack.c (print_and_abort): Likewise.
93180
93181 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93182
93183         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93184         buffer, so that the caller can always quote one small
93185         component of a "memory exhausted" message in slot 0.
93186         From a suggestion by Jim Meyering.
93187
93188 2000-07-30  Jim Meyering  <meyering@lucent.com>
93189
93190         * lib/makepath.c (make_path): Quote the other instance, too.
93191
93192         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93193         (STATIC_BUF_SIZE): Define.
93194         (quotearg_n_options): Use only statically allocated storage when
93195         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93196         than STATIC_BUF_SIZE.
93197
93198 2000-07-29  Jim Meyering  <meyering@lucent.com>
93199
93200         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93201         * lib/dirname.c (dir_name): Likewise.
93202
93203         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93204         `/'.
93205
93206         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93207         (dir_name): Assert that there are no trailing slashes.
93208
93209 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93210
93211         * lib/mbswidth.h (mbswidth): Add a flags argument.
93212         (mbswidth): New declaration.
93213         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93214         * lib/mbswidth.c (mbswidth): Add a flags argument.
93215         (mbsnwidth): New function.
93216
93217 2000-07-24  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93220
93221 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93222
93223         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93224
93225 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93226
93227         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93228         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93229         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93230         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93231         invoke multibyte primitives.
93232
93233 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93234
93235         * lib/quotearg.c:
93236         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93237         so that mbstate_t is always defined.
93238
93239         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93240         be 1 in at least one GCC installation, and this configuration
93241         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93242         performance on hosts that have mbrtowc but have only unibyte
93243         locales, but I assume these hosts are rare.
93244
93245 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93246
93247         * lib/mbswidth.c (_XOPEN_SOURCE):
93248         Don't define; this causes problems on Solaris 7.
93249         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93250
93251 2000-07-23  Jim Meyering  <meyering@lucent.com>
93252
93253         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93254         too: getgrgid, getpwuid, getuid.
93255
93256 2000-07-23  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/basename.c (base_name): Add an assertion.
93259
93260 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93261
93262         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93263         shadow its mbsinit function.
93264
93265 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93266
93267         * lib/mbswidth.h: New file.
93268         * lib/mbswidth.c: New file.
93269         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93270         (noinst_HEADERS): Add mbswidth.h.
93271
93272 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93273
93274         * lib/config.charset: Add support for FreeBSD. Improve support for
93275         HP-UX and IRIX 6.
93276
93277 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93278
93279         * m4/mbswidth.m4: New file.
93280         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93281
93282 2000-07-15  Jim Meyering  <meyering@lucent.com>
93283
93284         * lib/makepath.c: Include quote.h.
93285         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93286         corresponding argument in a `quote (...)' call.
93287         Give better diagnostics.
93288
93289         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93290         (noinst_HEADERS): Add quote.h.
93291
93292         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93293         from tar's src/misc.c.
93294         * lib/quote.h: New file.  Prototypes for same.
93295
93296 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93297
93298         From a suggestion by Bruno Haible.
93299         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93300         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93301         to decide whether to define the BeOS workaround macro;
93302         this adjusts to the change to AC_MBSTATE_T.
93303
93304 2000-07-14  Jim Meyering  <meyering@lucent.com>
93305
93306         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93307         jm_AC_TYPE_UINTMAX_T.
93308
93309 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93310
93311         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93312
93313         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93314         quotearg_buffer_restyled): Add support for
93315         clocale_quoting_style.  Undo previous change to
93316         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93317         and "{RIGHT QUOTATION MARK}" msgids.
93318
93319 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93320
93321         From a suggestion by Bruno Haible.
93322         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93323         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93324         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93325         and mbstate_t, to a single-part test that simply defines mbstate_t.
93326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93327         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93328
93329 2000-07-10  Jim Meyering  <meyering@lucent.com>
93330
93331         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93332
93333         * m4/gnu-source.m4: Output to confdefs.h directly.
93334         Suggestion from Akim Demaille.
93335
93336 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93337
93338         The old behavior of quoting `like this' doesn't look good with
93339         newer, ISO-style fonts.  See:
93340         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93341
93342         Instead, quote "like this" by default.  Let the translator
93343         tailor the locale-specific quoting behavior by providing
93344         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93345
93346         * lib/quotearg.c (N_): New macro.
93347         (gettext_default): New function.
93348         (quotearg_buffer_restyled): Use
93349         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93350         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93351
93352 2000-07-09  Jim Meyering  <meyering@lucent.com>
93353
93354         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93355         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93356
93357         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93359
93360 2000-07-09  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/Most files: Update copyright dates to include 2000.
93363
93364 2000-07-08  Jim Meyering  <meyering@lucent.com>
93365
93366         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93367         if not defined.
93368         (xgethostname): Remove now-unnecessary #ifdef.
93369         Move declaration of `err' into loop where it's used.
93370
93371 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93372         and Bruno Haible  <haible@clisp.cons.org>
93373
93374         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93375         only if the test for an object-type mbstate_t fails.  This
93376         prevents us from mistakenly reporting that mbstate_t is a
93377         system object type after we "#define mbstate_t int" to work
93378         around its lack.
93379
93380 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93381         and Bruno Haible  <haible@clisp.cons.org>
93382
93383         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93384
93385 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93386
93387         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93388         to strerror_r.
93389         Include <ctype.h> for use of isalpha.
93390
93391 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93392
93393         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93394         by allocating a larger buffer. Test the gethostname return value for
93395         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93396         returns an error and ENAMETOOLONG isn't defined.
93397
93398 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93399
93400         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93401         dimension.
93402
93403 2000-07-04  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93406         of the deprecated AC_CHECKING.
93407
93408 2000-07-04  Jim Meyering  <meyering@lucent.com>
93409
93410         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93411         Reported by Bruno Haible.
93412
93413 2000-07-04  Jim Meyering  <meyering@lucent.com>
93414
93415         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93416         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93417         lacks mbrtowc.
93418
93419 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93420
93421         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93422         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93423
93424 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93425         and Bruno Haible  <haible@clisp.cons.org>
93426
93427         * lib/quotearg.c (mbrtowc):
93428         Assign to *pwc, and return 1 only if result is nonzero.
93429         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93430
93431 2000-07-03  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93434
93435 2000-07-03  Jim Meyering  <meyering@lucent.com>
93436
93437         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93438         This is necessary to get a definition of e.g., UTMP_FILE on
93439         HP-UX 10.20.
93440         From Bob Proulx.
93441
93442 2000-07-02  Jim Meyering  <meyering@lucent.com>
93443
93444         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93445
93446         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93447         AC_LIBOBJ(function_name).
93448         * m4/chown.m4: Likewise.
93449         * m4/fnmatch.m4: Likewise.
93450         * m4/ftruncate.m4: Likewise.
93451         * m4/getgroups.m4: Likewise.
93452         * m4/getline.m4: Likewise.
93453         * m4/group-member.m4: Likewise.
93454         * m4/jm-macros.m4: Likewise.
93455         * m4/lstat.m4: Likewise.
93456         * m4/malloc.m4: Likewise.
93457         * m4/memcmp.m4: Likewise.
93458         * m4/nanosleep.m4: Likewise.
93459         * m4/putenv.m4: Likewise.
93460         * m4/realloc.m4: Likewise.
93461         * m4/regex.m4: Likewise.
93462         * m4/stat.m4: Likewise.
93463         * m4/strftime.m4: Likewise.
93464
93465 2000-07-02  Jim Meyering  <meyering@lucent.com>
93466
93467         * lib/quotearg.c (mbstate_t): Don't define here.
93468
93469 2000-07-02  Jim Meyering  <meyering@lucent.com>
93470
93471         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93472
93473 2000-07-01  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93476
93477 2000-07-01  Jim Meyering  <meyering@lucent.com>
93478
93479         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93480         problem.
93481
93482 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93483
93484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93485         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93486
93487 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93488
93489         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93490         per change in ../m4/ls-mntd-fs.m4.
93491         (read_filesystem_list): Ignore symbolic links.
93492
93493 2000-06-29  Jim Meyering  <meyering@lucent.com>
93494
93495         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93496         for declaration of strcmp.
93497
93498         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93499
93500         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93501         Avoid warning by casting result to `char *' to remove `const'.
93502
93503 2000-06-28  Jim Meyering  <meyering@lucent.com>
93504
93505         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93506         included by quotearg.c, for which we perform this test.  From
93507         Bruno Haible.
93508
93509 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93510
93511         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93512         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93513         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93514
93515 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93516
93517         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93518
93519 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93520
93521         savedir now sets errno on failure and invokes xmalloc to get memory.
93522         Fix a couple of other minor bugs while we're at it.
93523
93524         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93525         (NAMLEN): Remove macro.
93526         (malloc, realloc): Remove decls.
93527         (stpcpy): Likewise.
93528         ("xalloc.h"): Include.
93529         (NAME_SIZE_DEFAULT): New macro.
93530         (savedir): Use xmalloc / xrealloc to allocate memory.
93531         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93532         Skip "" directory entries.
93533         Use strlen to calculate directory entry length, since the old method
93534         is rarely used these days and isn't worth supporting.
93535         Don't use a pointer after freeing it.
93536         Check for integer overflow when calculating allocation size.
93537         Use memcpy to copy entries, instead of stpcpy.
93538         Set errno properly when returning NULL.
93539         Check for readdir error.
93540
93541 2000-06-26  Jim Meyering  <meyering@lucent.com>
93542
93543         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93544
93545 2000-06-25  Jim Meyering  <meyering@lucent.com>
93546
93547         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93548         Linux header bug when _XOPEN_SOURCE is defined to 500.
93549
93550 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93551
93552         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93553         deficiency.
93554
93555 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93556
93557         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93558         Include xalloc.h.
93559         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93560
93561 2000-06-24  Jim Meyering  <meyering@lucent.com>
93562
93563         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93564         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93565         for which strerror does return char*, but which lacks a conveniently
93566         accessible declaration of the function.  If the compile-test says
93567         strerror_r doesn't work, then resort to a `run'-test that works on
93568         BeOS and segfaults on DEC Unix.
93569
93570 2000-06-24  Jim Meyering  <meyering@lucent.com>
93571
93572         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93573
93574 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93575
93576         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93578
93579 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93580
93581         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93582         (mbrtowc, mbstate_t): Define substitutes if
93583         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93584         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93585         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93586
93587 2000-06-23  Jim Meyering  <meyering@lucent.com>
93588
93589         * m4/afs.m4: Add missing AC_MSG_RESULT.
93590         Reported by Bruno Haible.
93591
93592         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93593         Suggestion from Bruno Haible.
93594
93595 2000-06-23  Jim Meyering  <meyering@lucent.com>
93596
93597         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93598
93599 2000-06-21  Jim Meyering  <meyering@lucent.com>
93600
93601         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93602
93603 2000-06-21  Jim Meyering  <meyering@lucent.com>
93604
93605         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93606         (noinst_HEADERS): Add getstr.h.
93607
93608         * lib/getline.c (getstr): Move into a separate file.
93609         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93610         the following changes: new parameter, delim2; both delim[12]
93611         parameters have type `int', not `char'.  The latter would lose
93612         with 8-bit delimiters.
93613         * lib/getstr.h: New file.
93614
93615 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93616
93617         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93618         than 1024, return a memory chunk of least possible size, instead
93619         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93620         Use free/xmalloc instead of xrealloc to avoid copying for very long
93621         paths.
93622
93623 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93624
93625         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93626         the empty string.
93627
93628 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93629
93630         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93631         address, not strdup.  Include <stdlib.h> and don't declare free().
93632
93633 2000-06-19  Jim Meyering  <meyering@lucent.com>
93634
93635         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93636
93637 2000-06-18  Jim Meyering  <meyering@lucent.com>
93638
93639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93640
93641         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93642         `checking whether...' message to be consistent with that of the
93643         lstat test.
93644
93645 2000-06-18  Jim Meyering  <meyering@lucent.com>
93646
93647         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93648         Besides, these days every porting target provides a mkdir function.
93649
93650         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93651         needed. (this snippet comes from src/system.h).
93652
93653 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93654
93655         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93656
93657 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93658
93659         * lib/human.c (adjust_value): New function.
93660         (human_readable_inexact): Apply rounding style even when
93661         printing approximate values.
93662
93663 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93664
93665         * lib/human.c (human_readable_inexact): Allow an input block
93666         size that is not a multiple of the output block size, and vice versa.
93667         Reported by Piergiorgio Sartor.
93668
93669 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93670
93671         * lib/getdate.y (get_date): Apply relative times after time
93672         zone indicator, not before.  Reported by Todd A. Jacobs.
93673
93674 2000-06-13  Jim Meyering  <meyering@lucent.com>
93675
93676         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93677
93678         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93679
93680 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93681
93682         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93683
93684 2000-06-12  Jim Meyering  <meyering@lucent.com>
93685
93686         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93687         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93688         optional argument.
93689         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93690         the optional argument, `lib'.
93691
93692 2000-06-08  Jim Meyering  <meyering@lucent.com>
93693
93694         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93695
93696 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93697
93698         Rewrite largefile configuration so that we don't need to run
93699         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93700         AC_CANONICAL_HOST in configure.in -- jmm]
93701
93702         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93703         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93704         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93705         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93706         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93707         All uses changed.
93708         Instead of inspecting the output of getconf, try to compile the
93709         test program without and with the macro definition.
93710         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93711         for getconf.  Instead, check for the needed flags by compiling
93712         test programs.
93713
93714 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93715
93716         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93717
93718 2000-06-04  Jim Meyering  <meyering@lucent.com>
93719
93720         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93721         SunOS 4.1.4 for which gid_t is an unsigned type.
93722
93723 2000-06-03  Jim Meyering  <meyering@lucent.com>
93724
93725         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93726         now that autoconf requires that.
93727
93728         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93729         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93730         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93731
93732 2000-06-03  Jim Meyering  <meyering@lucent.com>
93733
93734         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93735
93736 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93737
93738         * m4/glibc21.m4: New file.
93739         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93740
93741 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93742
93743         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93744         newer, don't install charset.alias.
93745         * lib/config.charset: Change the Linux/glibc rules so they become empty
93746         on glibc-2.1 or newer.
93747
93748 2000-06-02  Jim Meyering  <meyering@lucent.com>
93749
93750         * lib/mountlist.c: Back out last change.  Instead, do this...
93751         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93752         me_dummy member using the same `ignore'-testing code.
93753         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93754         fs_type strings.
93755         From Mark D. Roth.
93756
93757 2000-05-29  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93760         mounts with the `ignore' attribute.  Based on a patch from
93761         Mark D. Roth.
93762
93763 2000-05-28  Jim Meyering  <meyering@lucent.com>
93764
93765         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93766         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93767         * m4/stat.m4: Likewise.
93768         * m4/lstat.m4: Likewise.
93769         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93770
93771         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93772         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93773
93774 2000-05-26  Jim Meyering  <meyering@lucent.com>
93775
93776         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93777
93778 2000-05-24  Jim Meyering  <meyering@lucent.com>
93779
93780         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93781         autoconf requires that.
93782         * m4/lib-check.m4: Likewise.
93783         * m4/jm-macros.m4: Likewise.
93784         * m4/strftime.m4: Likewise.
93785
93786         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93787         AC_CHECK_DECLS, now that autoconf requires that.
93788
93789 2000-05-22  Jim Meyering  <meyering@lucent.com>
93790
93791         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93792         * m4/lstat.m4: Likewise.
93793
93794 2000-05-22  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93797
93798 2000-05-20  Jim Meyering  <meyering@lucent.com>
93799
93800         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93801         (jm_PREREQ): Use it.
93802
93803 2000-05-18  Jim Meyering  <meyering@lucent.com>
93804
93805         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93806         back, too, since it may have been modified by allocate_entry.
93807         (hash_delete): Rewrite to use neither the assignment operator
93808         nor the comma operator in an if-expression.
93809
93810 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93811
93812         * lib/closeout.c:
93813         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93814         Remove; no longer needed.
93815         "quotearg.h": Add include.
93816         (file_name): Do not bother to explicitly initialize to NULL; it's less
93817         efficient on some hosts.
93818         (close_stdout_status): Remove test as to whether stdout was already
93819         closed; it breaks for the case "echo x | sort >&-".
93820         Quote file name colons.
93821         Do not assume that _("write error") lacks format strings.
93822
93823 2000-05-15  Jim Meyering  <meyering@lucent.com>
93824
93825         * lib/version-etc.c (version_etc_copyright): Update the copyright
93826         string used in all --version output.
93827
93828 2000-05-14  Jim Meyering  <meyering@lucent.com>
93829
93830         * lib/closeout.c (close_stdout_set_file_name): New function.
93831         (close_stdout_status): Use new file-scoped global.
93832         Return right away if fstat says the stdout file descriptor is invalid.
93833         * lib/closeout.h (close_stdout_set_file_name): Declare.
93834
93835 2000-05-10  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93838         (close_stdout_set_status): New function.
93839         * lib/closeout.h (close_stdout_set_status): Declare.
93840
93841 2000-05-09  Jim Meyering  <meyering@lucent.com>
93842
93843         * m4/gettext.m4: Rename this...
93844         * m4/libintl.m4: ...to this.
93845
93846 2000-05-08  Jim Meyering  <meyering@lucent.com>
93847
93848         * lib/long-options.c: Don't include closeout.h.
93849         (parse_long_options): Don't call close_stdout for --version.
93850
93851 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93852
93853         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93854         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93855         2.1.3 bug.  This avoids a clash when files like regex.c define
93856         _GNU_SOURCE.
93857
93858 2000-05-06  Jim Meyering  <meyering@lucent.com>
93859
93860         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93861         (AC_REPLACE_FUNCS): Add strnlen.
93862
93863         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93864         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93865
93866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93867         AC_SEARCH_LIBS call for nanosleep.
93868         (LIB_NANOSLEEP): Set and AC_SUBST.
93869
93870 2000-05-06  Jim Meyering  <meyering@lucent.com>
93871
93872         * lib/strnlen.c: Undefine __strnlen and strnlen.
93873         [!weak_alias]: Define __strnlen to strnlen.
93874
93875         * lib/atexit.c: New file, from libiberty.
93876
93877 2000-05-06  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/closeout.c (close_stdout_status): Also check for errors on the
93880         stderr stream.
93881
93882 2000-05-05  Jim Meyering  <meyering@lucent.com>
93883
93884         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93885         AC_SEARCH_LIBS call for clock_gettime.
93886         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93887
93888         * m4/search-libs.m4: Update from autoconf.
93889
93890         su doesn't work on Solaris 2.6.
93891         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93892         <shadow.h>.  Reported by Dragos Harabor.
93893
93894 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93895
93896         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93897         memcpy instead of xmalloc, xrealloc, path_concat.
93898         (locale_charset): Treat empty environment variables as absent.
93899         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93900
93901 2000-05-04  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/getopt.c: Update from glibc.
93904         * lib/obstack.c: Likewise.
93905         * lib/obstack.h: Likewise.
93906         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93907         file
93908
93909         * lib/regex.h: Likewise.
93910         * lib/strndup.c: Likewise.
93911         * lib/strnlen.c: New file, from glibc.
93912
93913 2000-05-03  Jim Meyering  <meyering@lucent.com>
93914
93915         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93916
93917 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93918
93919         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93920         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93921         compile-time test, rather than inspecting host and OS, to
93922         decide whether to define _LARGEFILE_SOURCE.
93923
93924 2000-05-01  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93927
93928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93929         Based on a patch from Bruno Haible.
93930
93931 2000-05-01  Jim Meyering  <meyering@lucent.com>
93932
93933         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93934
93935 2000-04-29  Jim Meyering  <meyering@lucent.com>
93936
93937         * lib/path-concat.c: Declare strdup only if it's not defined.
93938         * lib/canon-host.c: Likewise.
93939
93940 2000-04-28  Jim Meyering  <meyering@lucent.com>
93941
93942         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93943         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93944         is included first, then limits.h is included by locale.h by libintl.h.
93945         From John David Anglin.
93946
93947 2000-04-25  Jim Meyering  <meyering@lucent.com>
93948
93949         * lib/makepath.c (S_IRWXUGO): Define.
93950         (make_path): Always perform explicit chmod if MODE specifies any
93951         of the `special' permission bits.  Prompted by a bug report against
93952         install from Mate Wierdl and Joost van Baal.
93953
93954 2000-04-18  Jim Meyering  <meyering@lucent.com>
93955
93956         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93957         (jm_PREREQ): Use it.
93958
93959 2000-04-18  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/README: New file.
93962
93963         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93964         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93965
93966 2000-04-17  Jim Meyering  <meyering@lucent.com>
93967
93968         Get it right :-)
93969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93970         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93971         Suggestion from Akim Demaille.
93972
93973 2000-04-17  Jim Meyering  <meyering@lucent.com>
93974
93975         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93976         the definition of it to rpl_strftime also defined-away the system's
93977         declaration.
93978
93979 2000-04-15  Jim Meyering  <meyering@lucent.com>
93980
93981         Use `C' to denote so-called `contiguous' files, the same way
93982         that tar does.
93983         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93984         (ftypelet): Use S_ISCTG.
93985         From Michael Deutschmann.
93986
93987 2000-04-14  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93990         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93991         clobbered.
93992
93993 2000-04-14  Jim Meyering  <meyering@lucent.com>
93994
93995         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93996
93997 2000-04-13  Jim Meyering  <meyering@lucent.com>
93998
93999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94000         AH_VERBATIM to insert required #ifndef into config.h.in.
94001         Suggestion from Akim Demaille.
94002
94003 2000-04-12  Jim Meyering  <meyering@lucent.com>
94004
94005         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94006         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94007         Christian Krackowizer.
94008
94009         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94010         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94011         (AC_SYS_LARGEFILE): Require.
94012         (AM_C_PROTOTYPES): Require.
94013
94014 2000-04-08  Jim Meyering  <meyering@lucent.com>
94015
94016         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94017         names don't conflict.  Reported by Eli Zaretskii.
94018
94019 2000-04-07  Jim Meyering  <meyering@lucent.com>
94020
94021         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94022         sys/types.h, to work around system header problems on AIX 3.2.5.
94023         From Bruno Haible.
94024
94025 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94026
94027         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94028         bug.  Deal with the different error behavior of Irix iconv.
94029
94030 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94031
94032         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94033         IRIX if the installer said otherwise.
94034
94035 2000-04-05  Jim Meyering  <meyering@lucent.com>
94036
94037         Portability tweaks required for ultrix4.3.
94038         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94039         (jm_CHECK_DECLS): Add getutent to the list of functions.
94040         (_jm_DECL_HEADERS): Add utmpx.h.
94041         From John David Anglin.
94042
94043         * m4/strftime.m4: Back out the 2000-04-02 change.
94044         Instead of that change, simply undefine putenv in the test program.
94045
94046 2000-04-05  Jim Meyering  <meyering@lucent.com>
94047
94048         Portability tweaks required for ultrix4.3.
94049         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94050         getutent.
94051         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94052         * lib/canon-host.c: Declare strdup.
94053         * lib/path-concat.c: Likewise.
94054         From John David Anglin.
94055
94056 2000-04-04  Jim Meyering  <meyering@lucent.com>
94057
94058         Be more DOS 8.3-friendly.
94059         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94060         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94061         * lib/Makefile.am: Reflect renaming.
94062         Reported by Eli Zaretskii.
94063
94064         Use a temporary file name that won't clash with `charset.alias'
94065         in the DOS 8.3 name space.
94066         * lib/Makefile.am (charset_tmp): Define.
94067         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94068         (uninstall-local): Likewise.
94069         Reported by Eli Zaretskii.
94070
94071 2000-04-03  Jim Meyering  <meyering@lucent.com>
94072
94073         * m4/gettext.m4: Fix typo in comment.
94074
94075         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94076         textutils/configure.in).  Suggestion from Paul Eggert.
94077         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94078
94079 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94080
94081         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94082         variable in the shell rather than using putenv, which isn't
94083         portable.  This avoids the configure-time inter-test dependency
94084         on the potentially-renamed putenv function.
94085
94086 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94087
94088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94089         before checking struct stat.st_blksize, so that
94090         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94091
94092 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94093
94094         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94095         since strftime.c uses HAVE_STRFTIME to decide whether to use
94096         the underlying strftime.
94097
94098 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94099
94100         * lib/time/strftime.c (my_strftime): Make sure we call the system
94101         strftime, not ourselves, when invoking the underlying strftime.
94102
94103 2000-03-24  Jim Meyering  <meyering@lucent.com>
94104
94105         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94106         (charset_alias): Define.
94107         (install-exec-local): Factor out common code.
94108         (uninstall-local): Split lines longer than 80.
94109         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94110         (SUFFIXES): Define.
94111         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94112         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94113
94114 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94115
94116         * lib/config.charset: Output a line containing "Packages using this
94117         file".
94118         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94119         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94120         ref-del.sed): New rules.
94121
94122 2000-03-17  Jim Meyering  <meyering@lucent.com>
94123
94124         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94125         Otherwise, include <strings.h>
94126
94127 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94128
94129         * lib/unicodeio.c (utf8_wctomb): New function.
94130         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94131         format instead of in UCS-4 with platform dependent endianness.
94132
94133 2000-03-10  Jim Meyering  <meyering@lucent.com>
94134
94135         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94136         From Marco Franzen.
94137
94138 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94139
94140         * lib/savedir.c (savedir): Work even if directory size is
94141         negative; this can happen with some screwy NFS configurations.
94142
94143 2000-03-06  Jim Meyering  <meyering@lucent.com>
94144
94145         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94146         if it's NULL (because we ran out of memory).  From Bruno Haible.
94147
94148 2000-03-05  Jim Meyering  <meyering@lucent.com>
94149
94150         * lib/localcharset.c ("path-concat.h"): Include.
94151         (get_charset_aliases): Use path_concat instead of ANSI string
94152         concatenation.
94153
94154         * lib/unicodeio.h (PARAMS): Define.
94155         Use it to guard prototype.
94156
94157 2000-03-04  Jim Meyering  <meyering@lucent.com>
94158
94159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94160         for lib/localcharset.c.
94161
94162 2000-03-04  Jim Meyering  <meyering@lucent.com>
94163
94164         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94165         installing into it.
94166         (uninstall-local): Uncomment this rule so `make distcheck' works
94167         once again.
94168
94169         * lib/unicodeio.c (<errno.h>): Include it.
94170         (errno): Declare if not defined.
94171
94172         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94173
94174         * lib/config.charset: New version, incorporating remarks from a linux
94175         i18n mailing list.  From Bruno Haible.
94176
94177 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94178
94179         * m4/codeset.m4: New file.
94180         * m4/iconv.m4: New file.
94181         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94182
94183 2000-03-03  Jim Meyering  <meyering@lucent.com>
94184
94185         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94186
94187 2000-03-02  Jim Meyering  <meyering@lucent.com>
94188
94189         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94190         the messages come out on separate lines.
94191
94192         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94193         rather than jm_CHECK_DECLARATIONS.
94194         * m4/decl.m4: Remove now-unused file.
94195
94196         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94197         geteuid.
94198
94199 2000-03-02  Jim Meyering  <meyering@lucent.com>
94200
94201         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94202
94203 2000-03-01  Jim Meyering  <meyering@lucent.com>
94204
94205         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94206         * lib/unicodeio.c: Likewise.
94207
94208 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94209
94210         * lib/config.charset: New file.
94211         * lib/localcharset.c: New file.
94212         * lib/unicodeio.h, lib/unicodeio.c: New files.
94213         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94214         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94215         (noinst_HEADERS): Add unicodeio.h.
94216         (all-local, install-exec-local, charset.alias): New targets.
94217
94218 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94219
94220         * lib/quotearg.c (ALERT_CHAR): New macro.
94221         (quotearg_buffer_restyled): Use it.
94222
94223 2000-02-27  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/check-decl.m4: Add getenv to the list.
94226
94227 2000-02-27  Jim Meyering  <meyering@lucent.com>
94228
94229         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94230         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94231
94232         * lib/backupfile.c: Guard inclusion of stdlib.h with
94233         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94234         Declare malloc if needed.
94235
94236         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94237         `#ifndef HAVE_DECL..'
94238         now that autoconf always defines the HAVE_DECL_ symbols.
94239         * lib/human.c: Likewise.
94240         * lib/same.c: Likewise.
94241         * lib/strtoumax.c: Likewise.
94242
94243         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94244         declaration check was not run.
94245         * lib/hash.c: Likewise.
94246         * lib/human.c: Likewise.
94247         * lib/same.c: Likewise.
94248         * lib/strtoumax.c: Likewise.
94249
94250         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94251         `.', then first look up the entire `.'-containing string as a login
94252         name.
94253
94254 2000-02-23  Jim Meyering  <meyering@lucent.com>
94255
94256         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94257         in place of my hack.
94258
94259 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94260
94261         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94262         (textint): New typedef.
94263         (parser_control): Member year changed from int to textint.
94264         All uses changed.
94265         (YYSTYPE): Removed; replaced by %union with int and textint members.
94266         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94267         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94268         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94269         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94270         (date, number, to_year): Use width of number in digits, not its value,
94271         to determine whether it's a 2-digit year, or a 2-digit time.
94272         (yylex): Store number of digits of numeric tokens.
94273         Reported by John Kendall.
94274
94275         (parser_control): Changed from struct parser_control to typedef (for
94276         consistency).  All uses changed.
94277
94278         (tID): Removed; not used.
94279         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94280
94281 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94282
94283         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94284         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94285
94286 2000-02-12  Jim Meyering  <meyering@lucent.com>
94287
94288         * lib/userspec.c (ISDIGIT): Define it.
94289         (isdigit): Remove definition.
94290         (is_number): Use ISDIGIT, not isdigit.
94291         <libintl.h>: Include.
94292         (_ and N_): Define.
94293         (parse_user_spec): Mark translatable strings.
94294
94295 2000-02-10  Jim Meyering  <meyering@lucent.com>
94296
94297         With these changes, nanosleep.[ch] are finally enough like the other
94298         lib/* replacement files to compile on a few more losing systems.
94299
94300         * lib/nanosleep.h: Don't include config.h.
94301         Remove prototype from declaration of nanosleep.
94302         (PARAMS): Remove now-unneeded definition.
94303         * lib/nanosleep.c: #undef nanosleep.
94304         (rpl_nanosleep): Rename from nanosleep.
94305
94306 2000-02-10  Jim Meyering  <meyering@lucent.com>
94307
94308         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94309         gnu_nanosleep to rpl_nanosleep.
94310
94311 2000-02-09  Jim Meyering  <meyering@lucent.com>
94312
94313         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94314         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94315
94316 2000-02-08  Akim Demaille  <akim@epita.fr>
94317
94318         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94319         `[' and `]' and remove uses of `changequote'.
94320         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94321         (AC_SYS_LARGEFILE): Likewise.
94322         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94323         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94324         of changequote.
94325         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94326         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94327         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94328         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94329
94330 2000-02-05  Jim Meyering  <meyering@lucent.com>
94331
94332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94333         Remove explicit use of AC_HEADER_TIME.  It is required by
94334         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94335         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94336         in autoconf whereby the expansion of the latter ended up preceding
94337         the expansion of its prerequisite, AC_HEADER_TIME.
94338         Reported by Volker Borchert.
94339
94340 2000-02-03  Jim Meyering  <meyering@lucent.com>
94341
94342         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94343
94344 2000-02-03  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94347         rather than with `#if HAVE_UTMPNAME'.
94348
94349 2000-02-02  Jim Meyering  <meyering@lucent.com>
94350
94351         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94352         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94353         Reported by Eli Zaretskii.
94354
94355 2000-02-01  Jim Meyering  <meyering@lucent.com>
94356
94357         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94358
94359 2000-01-31  Jim Meyering  <meyering@lucent.com>
94360
94361         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94362         functions.  Add the time.h and sys/time.h headers along with the
94363         AC_REQUIRE'ment of AC_HEADER_TIME.
94364
94365 2000-01-31  Jim Meyering  <meyering@lucent.com>
94366
94367         * lib/nanosleep.h (nanosleep): Guard declaration with
94368         `#if ! HAVE_DECL_NANOSLEEP'.
94369         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94370         the declaration in that vendor's sys/timers.h.
94371         Reported by Christian Krackowizer.
94372
94373         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94374         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94375         (ISPRINT): Likewise.
94376         Reported by Tom Tromey.
94377
94378 2000-01-30  Jim Meyering  <meyering@lucent.com>
94379
94380         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94381
94382         * m4/prereq.m4 (utmp_includes): Define.
94383         Check for ut_user and ut_name members in both struct utmpx
94384         and struct utmp.
94385
94386 2000-01-30  Jim Meyering  <meyering@lucent.com>
94387
94388         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94389         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94390         header files where only utmpx.ut_user is declared.
94391
94392         * lib/readutmp.h (UT_USER): Define.
94393
94394 2000-01-29  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/lib-check.m4: New file containing library-related checks from
94397         fileutils and sh-utils (textutils had none).
94398
94399 2000-01-28  Jim Meyering  <meyering@lucent.com>
94400
94401         * m4/perl.m4: Change format of warning message to look more like that
94402         from the missing script.  Suggestion from François Pinard.
94403
94404 2000-01-25  Jim Meyering  <meyering@lucent.com>
94405
94406         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94407         well as time.h in the compile check.
94408         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94409         Fix typo in cross-compiling case: s/yes/no/.
94410
94411 2000-01-23  Jim Meyering  <meyering@lucent.com>
94412
94413         * m4/jm-macros.m4: Move df-related tests here from
94414         fileutils/configure.in
94415
94416         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94417         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94418
94419         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94420         s/space/ac_fsusage_space/.
94421         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94422
94423         * m4/ftruncate.m4: New file (derived from part of
94424         fileutils/configure.in).
94425         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94426         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94427
94428         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94429         AC_SUBST these here, rather than just in sh-util/configure.in, so
94430         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94431         all the same.
94432         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94433         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94434         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94435         (AC_SUBST(POW_LIBM)): Likewise.
94436         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94437
94438 2000-01-23  Jim Meyering  <meyering@lucent.com>
94439
94440         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94441         obstack.c.
94442
94443 2000-01-22  Jim Meyering  <meyering@lucent.com>
94444
94445         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94446
94447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94448
94449         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94450         configure.in
94451         (AC_CHECK_HEADERS): Likewise for sh-utils.
94452         (AC_CHECK_HEADERS): Likewise for textutils.
94453         Merge the three lists of headers.
94454
94455         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94456         from fileutils' configure.in.
94457
94458         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94459         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94460         check-decl.m4.
94461
94462         * m4/check-decl.m4: Use #if rather than #ifdef.
94463         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94464         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94465         (_jm_DECL_HEADERS): Define new function.
94466         (jm_CHECK_DECLARATIONS): Require it.
94467
94468 2000-01-22  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94471         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94472         Required for some AIX systems.  Reported by Christian Krackowizer.
94473         [TESTING] (main): New function.
94474
94475         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94476         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94477         letters.
94478
94479         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94480         iswprint.
94481
94482         * lib/strverscmp.c (ISDIGIT): Define.
94483         (strverscmp): Use ISDIGIT, not isdigit.
94484
94485 2000-01-19  Jim Meyering  <meyering@lucent.com>
94486
94487         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94488         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94489         defines `struct timespec' in <sys/time.h>
94490
94491         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94492         Thanks to Akim for explaining.
94493
94494 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94495
94496         * lib/nanosleep.c (nanosleep):
94497         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94498         POSIX.1 doesn't require SA_INTERRUPT and some systems
94499         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94500         it's been part of POSIX.1 since day 1 (in 1988).
94501
94502 2000-01-17  Jim Meyering  <meyering@lucent.com>
94503
94504         * lib/interlock: Remove unused file.  Reported by François Pinard.
94505
94506 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94507
94508         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94509         alert, backslash, formfeed, and vertical tab unnecessarily in
94510         shell quoting style.
94511
94512 2000-01-16  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94515         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94516         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94517         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94518
94519 2000-01-16  Jim Meyering  <meyering@lucent.com>
94520
94521         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94522         because the latter didn't work.
94523
94524 2000-01-15  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94527         (AC_REPLACE_FUNCS): Add memcpy and memset.
94528         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94529         Add strpbrk.
94530         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94531
94532 2000-01-12  Jim Meyering  <meyering@lucent.com>
94533
94534         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94535         (jm_PREREQ): Use it.
94536         (jm_PREREQ_READUTMP): New macro.
94537         (jm_PREREQ): Use it.
94538
94539 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94540
94541         Quote multibyte characters correctly.
94542         * m4/c-bs-a.m4: New file.
94543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94544         (jm_PREREQ): Use it.
94545
94546 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94547
94548         * m4/uintmax_t.m4: Port to autoconf 2.13.
94549
94550 2000-01-08  Jim Meyering  <meyering@ascend.com>
94551
94552         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94553         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94554
94555 2000-01-04  Jim Meyering  <meyering@ascend.com>
94556
94557         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94558         jm_STRUCT_DIRENT_D_TYPE.
94559         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94560         jm_STRUCT_DIRENT_D_INO.
94561         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94562         jm_STRUCT_UTIMBUF.
94563         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94564         renamings.
94565         * m4/utime.m4: Likewise.
94566
94567         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94568         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94569
94570 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94571
94572         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94573         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94574
94575 2000-01-02  Jim Meyering  <meyering@ascend.com>
94576
94577         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94578         remember if this is necessary.
94579
94580 1999-12-26  Jim Meyering  <meyering@ascend.com>
94581
94582         * m4/jm-macros.m4: Use it here.
94583         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94584
94585 1999-12-23  Jim Meyering  <meyering@ascend.com>
94586
94587         * m4/jm-macros.m4: Check for clock_gettime (moved from
94588         fileutils/configure.in)
94589         Check for gettimeofday.
94590
94591 1999-12-20  Jim Meyering  <meyering@ascend.com>
94592
94593         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94594         autoconf-2.14a-1999-12-20.
94595
94596 1999-12-19  Jim Meyering  <meyering@ascend.com>
94597
94598         * m4/lstat-slash.m4: New file.
94599         * m4/jm-macros.m4: Use the new macro:
94600         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94601
94602 1999-12-07  Jim Meyering  <meyering@ascend.com>
94603
94604         * m4/perl.m4: Require that File::Compare be available, too.
94605         Too many systems seem to lack it.
94606
94607         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94608         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94609
94610 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94611
94612         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94613         problem with the QNX 4.25 shell, which doesn't propagate exit
94614         status of failed commands inside shell assignments.
94615
94616 1999-11-17  Jim Meyering  <meyering@ascend.com>
94617
94618         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94619
94620 1999-11-07  Jim Meyering  <meyering@ascend.com>
94621
94622         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94623
94624 1999-11-06  Jim Meyering  <meyering@ascend.com>
94625
94626         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94627         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94628
94629 1999-11-05  Jim Meyering  <meyering@ascend.com>
94630
94631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94632         configure.in of textutils, fileutils, and sh-utils into this one
94633         (shared between those packages) file.
94634         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94635         AC_STRUCT_ST_BLKSIZE.
94636
94637 1999-11-03  Jim Meyering  <meyering@ascend.com>
94638
94639         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94640         of AC_CHECK_TYPE checks includes unistd.h.
94641         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94642         Suggestion from Akim Demaille.
94643
94644 1999-10-30  Jim Meyering  <meyering@ascend.com>
94645
94646         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94647         m4-quoted string.
94648         * m4/ls-mntd-fs.m4: Likewise.
94649         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94650         * m4/jm-winsz1.m4: Likewise.
94651
94652         * m4/const.m4: Remove file, since the fix made it into the experimental
94653         version of autoconf.
94654         * m4/mktime.m4: Likewise.
94655
94656         * m4/check-type.m4: Remove file, now that the latest version of
94657         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94658
94659         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94660         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94661         AC_CHECK_TYPE.
94662
94663 1999-10-04  Jim Meyering  <meyering@ascend.com>
94664
94665         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94666
94667 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94668
94669         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94670         2.95.1 bug with HP-UX 10.20.
94671
94672 1999-09-17  Jim Meyering  <meyering@ascend.com>
94673
94674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94675         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94676         due to missing strdup (against sh-utils-2.0).
94677
94678 1999-08-29  Jim Meyering  <meyering@ascend.com>
94679
94680         * m4/jm-macros.m4: Require jm_BISON.
94681         * m4/bison.m4: New file.
94682
94683 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94684
94685         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94686         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94687
94688 1999-08-05  Jim Meyering  <meyering@ascend.com>
94689
94690         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94691         to avoid conflicts with `conftest' on 8+3 filesystems.
94692         Suggestion from Eli Zaretskii.
94693
94694 1999-08-04  Jim Meyering  <meyering@ascend.com>
94695
94696         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94697         fileutils and sh-utils (textutils's getline test was inadequate).
94698         (AM_FUNC_GETLINE): Run this test.
94699         (AC_CHECK_FUNCS): Check for getdelim.
94700         Reported by Bob Proulx.
94701
94702 1999-08-02  Jim Meyering  <meyering@ascend.com>
94703
94704         * m4/jm-macros.m4: Add a comment.
94705
94706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94707
94708         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94709         <inttypes.h> defines strtoumax as a macro (and not as a
94710         function).
94711
94712 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94713
94714         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94715         that we can shift, multiply and divide unsigned long long
94716         values; Ultrix cc can't do it.
94717
94718 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94719
94720         * m4/mktime.m4: New file, which is a preview of what should appear
94721         in the next public autoconf release.
94722
94723 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94724
94725         * m4/lfs.m4: Remove this file.
94726         * m4/largefile.m4: New file.  It contains the old contents of
94727         lfs.m4, except that all names with prefix AC_LFS have been
94728         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94729         compatible with future autoconf versions.  Also, some minor m4
94730         quoting problems have been fixed.
94731
94732 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94733
94734         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94735         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94736         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94737         and simplify the shell code.
94738
94739 1999-08-01  Jim Meyering  <meyering@ascend.com>
94740
94741         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94742         m4.
94743
94744 1999-07-20  Jim Meyering  <meyering@ascend.com>
94745
94746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94747
94748 1999-07-15  Jim Meyering  <meyering@ascend.com>
94749
94750         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94751
94752 1999-05-22  Jim Meyering  <meyering@ascend.com>
94753
94754         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94755
94756 1999-05-20  Jim Meyering  <meyering@ascend.com>
94757
94758         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94759         Add a colon after each `then' in case $4 is empty.
94760
94761 1999-05-16  Jim Meyering  <meyering@ascend.com>
94762
94763         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94764
94765 1999-05-10  Jim Meyering  <meyering@ascend.com>
94766
94767         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94768
94769         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94770         AC_FUNC_MKTIME.
94771
94772 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94773
94774         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94775
94776 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94777
94778         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94779         not CPPFLAGS, so that linking works correctly in IRIX.
94780
94781 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94782
94783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94784
94785 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94786
94787         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94788         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94790         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94791         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94792
94793         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94794
94795 1999-04-20  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94798         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94799         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94800
94801 1999-04-18  Jim Meyering  <meyering@ascend.com>
94802
94803         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94804         * m4/jm-macros.m4: Use it.
94805
94806 1999-04-06  Jim Meyering  <meyering@ascend.com>
94807
94808         * m4/strftime.m4: Remove test for %f.
94809
94810 1999-03-29  Jim Meyering  <meyering@ascend.com>
94811
94812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94813         superset of the AC_TYPE_* checks in the textutils, fileutils,
94814         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94815         AC_TYPE_PID_T.
94816
94817 1999-03-28  Jim Meyering  <meyering@ascend.com>
94818
94819         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94820         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94821         replaced e.g., in the *.sh files of the sh-utils.
94822
94823 1999-03-20  Jim Meyering  <meyering@ascend.com>
94824
94825         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94826         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94827         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94828
94829 1999-03-19  Jim Meyering  <meyering@ascend.com>
94830
94831         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94832
94833 1999-03-12  Jim Meyering  <meyering@ascend.com>
94834
94835         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94836
94837 1999-03-07  Jim Meyering  <meyering@ascend.com>
94838
94839         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94840         declared.
94841
94842 1999-02-17  Jim Meyering  <meyering@ascend.com>
94843
94844         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94845         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94846
94847 1999-02-07  Jim Meyering  <meyering@ascend.com>
94848
94849         * m4/group-member.m4: New file -- extracted from sh-utils'
94850         configure.in.
94851
94852         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94853         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94854
94855 1999-02-06  Jim Meyering  <meyering@ascend.com>
94856
94857         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94858         * m4/fnmatch.m4: Likewise.
94859         * m4/getgroups.m4: Likewise.
94860         * m4/lstat.m4: Likewise.
94861         * m4/malloc.m4: Likewise.
94862         * m4/putenv.m4: Likewise.
94863         * m4/realloc.m4: Likewise.
94864         * m4/regex.m4: Likewise.
94865         * m4/stat.m4: Likewise.
94866         * m4/strftime.m4: Likewise.
94867         Suggestion from Alain Magloire.
94868
94869         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94870         * m4/fnmatch.m4: Likewise.
94871         * m4/getgroups.m4: Likewise.
94872         * m4/getline.m4: Likewise.
94873         * m4/lstat.m4: Likewise.
94874         * m4/malloc.m4: Likewise.
94875         * m4/memcmp.m4: Likewise.
94876         * m4/putenv.m4: Likewise.
94877         * m4/realloc.m4: Likewise.
94878         * m4/regex.m4: Likewise.
94879         * m4/stat.m4: Likewise.
94880         * m4/strftime.m4: Likewise.
94881         Suggestion from Alain Magloire.
94882
94883         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94884         an argument.
94885
94886         * m4/regex.m4: Add a run-time Test for proper operation of
94887         re_compile_pattern.
94888
94889 1999-01-31  Jim Meyering  <meyering@ascend.com>
94890
94891         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94892
94893 1999-01-30  Jim Meyering  <meyering@ascend.com>
94894
94895         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94896
94897         * m4/jm-mktime.m4: Make this a wrapper around the official
94898         AM_FUNC_MKTIME rather than my private copy, now that the official one
94899         is up to date.
94900         * m4/mktime.m4: Remove file.
94901
94902         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94903         * m4/uptime.m4: Likewise.
94904         * m4/uintmax_t.m4: Likewise.
94905
94906 1999-01-28  Jim Meyering  <meyering@ascend.com>
94907
94908         * m4/jm-macros.m4: Use jm_AFS.
94909         * m4/afs.m4: New file (from fileutils' configure.in).
94910
94911         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94912         * m4/chown.m4: Likewise.
94913         * m4/d-ino.m4: Likewise.
94914         * m4/d-type.m4: Likewise.
94915         * m4/fnmatch.m4: Likewise.
94916         * m4/getgroups.m4: Likewise.
94917         * m4/gettext.m4: Likewise.
94918         * m4/jm-mktime.m4: Likewise.
94919         * m4/jm-winsz2.m4: Likewise.
94920         * m4/lcmessage.m4: Likewise.
94921         * m4/ls-mntd-fs.m4: Likewise.
94922         * m4/malloc.m4: Likewise.
94923         * m4/memcmp.m4: Likewise.
94924         * m4/putenv.m4: Likewise.
94925         * m4/realloc.m4: Likewise.
94926         * m4/st_mtim.m4: Likewise.
94927         * m4/strftime.m4: Likewise.
94928
94929 1999-01-16  Jim Meyering  <meyering@ascend.com>
94930
94931         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94932         (ARGMATCH_DIE_DECL): Define.
94933
94934 1999-01-12  Jim Meyering  <meyering@ascend.com>
94935
94936         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94937         Reported by Lars Hecking.
94938
94939 1999-01-10  Jim Meyering  <meyering@ascend.com>
94940
94941         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94942         gross kludge.
94943         * m4/inttypes_h.m4: Likewise.
94944         * m4/lstat.m4: Likewise.
94945         * m4/malloc.m4: Likewise.
94946         * m4/readdir.m4: Likewise.
94947         * m4/realloc.m4: Likewise.
94948         * m4/st_dm_mode.m4: Likewise.
94949         * m4/stat.m4: Likewise.
94950         * m4/utimbuf.m4: Likewise.
94951         * m4/utimes.m4: Likewise.
94952
94953         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94954         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94955         comments in config.h.in are meaningful.
94956
94957         * m4/jm-macros.m4: Require autoconf-2.13 here.
94958
94959         * m4/regex.m4: By default, don't use the included regex.c on systems
94960         with glibc 2.  Suggestion from Uli Drepper.
94961
94962 1999-01-02  Jim Meyering  <meyering@ascend.com>
94963
94964         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94965
94966 1998-12-18  Jim Meyering  <meyering@ascend.com>
94967
94968         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94969         Based on a suggestion from Lars Hecking.
94970
94971 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94972
94973         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94974
94975 1998-11-16  Jim Meyering  <meyering@ascend.com>
94976
94977         * m4/lfs.m4: Double-quote the `uname...` expression.
94978
94979 1998-11-14  Jim Meyering  <meyering@ascend.com>
94980
94981         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94982         * m4/stat.m4: Likewise.
94983
94984 1998-11-03  Jim Meyering  <meyering@ascend.com>
94985
94986         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94987         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94988
94989 1998-10-18  Jim Meyering  <meyering@ascend.com>
94990
94991         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94992
94993 1998-10-17  Jim Meyering  <meyering@ascend.com>
94994
94995         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94996         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94997         calls for those previously hard-coded headers.  Instead, take a new
94998         parameter.
94999         (jm_CHECK_DECLARATIONS): Reflect interface change.
95000         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95001         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95002
95003         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95004
95005 1998-10-14  Jim Meyering  <meyering@ascend.com>
95006
95007         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95008         instead of "TZ=America/Vancouver".  From Paul Eggert.
95009
95010 1998-10-11  Jim Meyering  <meyering@ascend.com>
95011
95012         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95013         This adds a test for a recently added compatibility fix for mktime.c.
95014         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95015
95016 1998-09-27  Jim Meyering  <meyering@ascend.com>
95017
95018         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95019
95020         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95021         ../configure.in, including a change from Gordon Matzigkeit to allow
95022         cross-compiling for the Hurd.
95023
95024         * m4/glibc.m4: New file/macro to test for the GNU C Library
95025         versions 1 and 2.  From Gordon Matzigkeit.
95026         Indent.
95027
95028 1998-09-21  Jim Meyering  <meyering@ascend.com>
95029
95030         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95031
95032 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95033
95034         Port nanosecond-resolution times to UnixWare 2.1.2 and
95035         pedantic Solaris 2.6.
95036
95037         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95038         AC_STRUCT_ST_MTIM.
95039         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95040         Generate name of ns member, instead of just 1 or undef.
95041         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95042
95043 1998-08-15  Jim Meyering  <meyering@ascend.com>
95044
95045         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95046         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95047         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95048         instead of jm_TYPE_SSIZE_T.
95049
95050 1998-08-12  Jim Meyering  <meyering@ascend.com>
95051
95052         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95053
95054 1998-08-02  Jim Meyering  <meyering@ascend.com>
95055
95056         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95057         in acconfig.h manually.
95058
95059 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95060
95061         * m4/st_mtim.m4: New file.
95062
95063 1998-07-28  Jim Meyering  <meyering@ascend.com>
95064
95065         * m4/utimes.m4: Undef stat.
95066
95067 1998-07-25  Jim Meyering  <meyering@ascend.com>
95068
95069         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95070         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95071
95072 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95073
95074         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95075         uid and gid actually remain unchanged.
95076
95077 1998-07-07  Jim Meyering  <meyering@ascend.com>
95078
95079         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95080
95081 1998-07-04  Jim Meyering  <meyering@ascend.com>
95082
95083         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95084         to prove that this macro can be used in packages without regex.c.
95085
95086 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95087
95088         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95089         is to be used.
95090
95091 1998-07-03  Jim Meyering  <meyering@ascend.com>
95092
95093         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95094
95095         * m4/gettext.m4: New file -- from gettext-0.10.35.
95096         * m4/lcmessage.m4: Likewise.
95097         * m4/progtest.m4: Likewise.
95098
95099         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95100         * m4/jm-macros.m4: Require the new macro.
95101
95102 1998-06-29  Jim Meyering  <meyering@ascend.com>
95103
95104         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95105         for the definition of NGROUPS (used in a system header included
95106         by sys/mount.h).
95107
95108 1998-06-28  Jim Meyering  <meyering@ascend.com>
95109
95110         * m4/ls-mntd-fs.m4: New file.
95111         * m4/fstypename.m4: New file.
95112
95113         * m4/jm-macros.m4: Require the new macro.
95114         * m4/jm-glibc-io.m4: New file.
95115
95116 1998-05-19  Jim Meyering  <meyering@ascend.com>
95117
95118         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95119         * m4/lchown.m4: New file.
95120
95121         * m4/Makefile.am.in: New file.
95122         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95123
95124 1998-05-14  Jim Meyering  <meyering@ascend.com>
95125
95126         * m4/Makefile.am (EXTRA_DIST): Add them.
95127         * m4/jm-macros.m4: New file.
95128         * m4/utimbuf.m4: New file.
95129
95130 1998-05-12  Jim Meyering  <meyering@ascend.com>
95131
95132         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95133
95134 1998-05-11  Jim Meyering  <meyering@ascend.com>
95135
95136         * m4/isc-posix.m4: New file.
95137
95138 1998-05-10  Jim Meyering  <meyering@ascend.com>
95139
95140         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95141
95142 1998-05-09  Jim Meyering  <meyering@ascend.com>
95143
95144         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95145         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95146         with automake.
95147
95148         * m4/ssize_t.m4: New file.
95149         * m4/mktime.m4: Remove file -- the new automake has this now.
95150
95151 1998-04-26  Jim Meyering  <meyering@ascend.com>
95152
95153         * m4/assert.m4: New file.
95154         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95155
95156 1998-04-05  Jim Meyering  <meyering@ascend.com>
95157
95158         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95159         (jm_PREREQ): Use it here.
95160
95161 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95162
95163         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95164         in acconfig.h.
95165
95166 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95167
95168         * m4/prereq.m4: New file.
95169         * m4/error.m4: New file.
95170         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95171
95172 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95173
95174         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95175         cache-check for the same variable -- that defeated the purpose of
95176         the test; the test program was never run.  This was a problem only
95177         on systems with losing getline functions -- HP-UX 10.20 is one.
95178         Reported by Bjorn Helgaas.
95179
95180 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95181
95182         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95183
95184 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95185
95186         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95187
95188         * m4/const.m4: New file.  Use an initializer in this declaration
95189         typedef int charset[2]; const charset x;
95190         Reported by Bob Glickstein.
95191
95192 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95193
95194         * m4/chown.m4: Fix reversed types on -1 args to chown.
95195         From Kaveh Ghazi.
95196
95197 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95198
95199         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95200         Add lseek and memchr.
95201
95202         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95203         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95204         have a 20-character limit on names.
95205
95206 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95207
95208         * m4/inttypes_h.m4: New file.
95209         * m4/uintmax_t.m4: New file.
95210         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95211
95212
95213         -----
95214
95215         Local Variables:
95216         coding: utf-8
95217         End:
95218
95219         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95220
95221         Copying and distribution of this file, with or without
95222         modification, are permitted provided the copyright notice
95223         and this notice are preserved.